1 2004-06-24 Ulrich Weigand <uweigand@de.ibm.com>
3 * c-decl.c (finish_function): Do not check for DEFAULT_MAIN_RETURN.
4 * system.h (DEFAULT_MAIN_RETURN): Poison.
5 * doc/tm.texi (DEFAULT_MAIN_RETURN): Remove documentation.
7 2004-06-24 Ben Elliston <bje@au.ibm.com>
9 * doc/cfg.texi (Edges): Fix typo.
11 2004-06-24 Paul Brook <paul@codesourcery.com>
13 * config/arm/arm.c (arm_output_epilogue): Remove excess checks.
15 2004-06-23 Andrew Pinski <apinski@apple.com>
18 * fold-const.c (fold_convert): Types which are compatible
19 can be converted with only a NOP_EXPR.
21 2004-06-24 Alan Modra <amodra@bigpond.net.au>
23 * calls.c (expand_call): Call INIT_CUMULATIVE_ARGS earlier, and
24 pass raw n_named_args to it.
25 * targhooks.c: Formatting.
26 (hook_bool_CUMULATIVE_ARGS_false): Correct comment.
28 2004-06-23 Richard Henderson <rth@redhat.com>
30 * c-gimplify.c (gimplify_decl_stmt): Push gimplify_one_sizepos inside
31 non-constant size check. Gimplify the type too. Tidy building
32 BUILT_IN_STACK_ALLOC call.
34 2004-06-23 Roger Sayle <roger@eyesopen.com>
36 * c-common.c (expand_unordered_cmp): Delete.
37 (expand_tree_builtin): Delete.
38 * c-common.h (expand_tree_builtin): Delete function prototype.
39 * c-typeck.c (build_function_call): Don't call expand_tree_builtin.
41 2004-06-23 Richard Henderson <rth@redhat.com>
43 * gimplify.c (gimplify_compound_lval): Don't set ARRAY_REF or
44 COMPONENT_REF variable fields unless they're non-constant.
46 2004-06-23 Robert Millan <robertmh@gnu.org>
48 * config.gcc: Merge kfreebsd*-gnu with linux* and add knetbsd*-gnu.
49 * config/i386/linux.h: Allow overriding of LINK_EMULATION,
50 DYNAMIC_LINKER and register names in sc_ structure.
51 * config/kfreebsd-gnu.h: New. kfreebsd-gnu followup for linux.h.
52 * config/i386/kfreebsd-gnu.h: New. Ditto for i386-kfreebsd-gnu.
53 * config/knetbsd-gnu.h: New. Ditto for knetbsd-gnu.
54 * config/i386/knetbsd-gnu.h: New. Ditto for i386-knetbsd-gnu.
56 * config/kfreebsdgnu.h: Remove.
57 * config/t-kfreebsd-gnu: Likewise.
58 * config/i386/kfreebsdgnu.h: Likewise.
60 2004-06-23 Eric Christopher <echristo@redhat.com>
62 * fold-const.c (make_range): Cleanup type checking through function.
63 Remove orig_type. Replace with checks to exp_type and arg0_type.
64 Clarify comment when converting from unsigned to signed.
66 2004-06-23 Eric Christopher <echristo@redhat.com>
68 * config/mips/mips.c (mips_use_dfa_pipeline_interface): Add R3000.
69 * config/mips/mips.md: Remove R3000 scheduling description.
70 * config/mips/3000.md: New file.
72 2004-06-23 Ulrich Weigand <uweigand@de.ibm.com>
74 * config/s390/s390-protos.h (s390_emit_compare): Add prototype.
75 (s390_emit_jump): Likewise.
76 * config/s390/s390.c (s390_emit_compare): New function.
77 (s390_emit_jump): Likewise.
78 * config/s390/s390.md ("beq", "bne", "bgt", "bgtu", "blt", "bltu",
79 "bge", "bgeu", "ble", "bleu", "bunordered", "bordered", "buneq",
80 "bungt", "bunlt", "bunge", "bunle", "bltgt"): Use s390_emit_compare
82 ("cjump"): Remove, replace by ...
83 ("*cjump_64", "*cjump_31"): ... these insns. Improve length default.
84 ("icjump", "*icjump_64", "*icjump_31"): Likewise.
85 ("trap"): Fix type attribute.
86 ("conditional_trap"): Use s390_emit_compare.
87 ("doloop_si"): Remove, replace by ...
88 ("doloop_si64", "doloop_si31"): ... these new insn_and_split.
89 Merge existing splitter into insn_and_split. Improve length default.
90 ("doloop_di"): Merge with existing splitter into insn_and_split.
92 ("jump"): Convert to expander. Use s390_emit_jump.
93 ("*jump_64", "*jump_31"): New insns. Improve length default.
95 2004-06-23 Wu Yongwei <adah@sh163.net>
97 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Adjust.
98 (__gthr_i486_lock_cmp_xchg): New inline assembly function.
99 (__GTHR_W32_InterlockedCompareExchange): New macro to choose a
100 suitable function for interlocked compare-and-exchange.
101 (__gthread_mutex_trylock): Use
102 __GTHR_W32_InterlockedCompareExchange.
103 (__gthread_mutex_init_function, __gthread_mutex_lock,
104 __gthread_mutex_trylock, __gthread_mutex_unlock): Adjust the
105 initial counter value to work correctly under Windows 95.
106 * config/i386/gthr-win32.c: Adjust include order.
107 Define __GTHREAD_I486_INLINE_LOCK_PRIMITIVES before including
109 (__gthr_win32_mutex_init_function, __gthr_win32_mutex_lock,
110 __gthr_win32_mutex_trylock, __gthr_win32_mutex_unlock): Adjust
111 to match inline versions in gthr-win32.h.
113 2004-06-23 David Edelsohn <edelsohn@gnu.org>
115 * config/rs6000/rs6000.c (rs6000_use_dfa_pipeline_interface): Delete.
116 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Redefine a hook_int_void_1.
117 (insvdi_rshift_rlwimi_p): New function.
118 * config/rs6000/rs6000.md (insvdi_internal2/3): New patterns.
119 (extendsfdf2): Convert to define_insn_and_split.
120 * config/rs6000/rs6000-protos.h (insvdi_rshift_rlwimi_p): Prototype.
122 2004-06-23 Andrew Pinski <apinski@apple.com>
124 * c-typeck.c (composite_type, <case ARRAY_TYPE>): Abort if we have
125 type qualifiers at all.
126 If both of the type domains are null and the new element type is
127 the same as one of the, return the one which the element type.
129 Do not call qualify_type on the new type.
131 2004-06-23 Ulrich Weigand <uweigand@de.ibm.com>
133 * config/s390/s390.h (DEFAULT_MAIN_RETURN): Remove.
135 2004-06-23 Roger Sayle <roger@eyesopen.com>
137 * convert.c (strip_float_extension): Skip both NOP_EXPR and
138 CONVERT_EXPR floating point extensions.
140 2004-06-23 Diego Novillo <dnovillo@redhat.com>
142 * Makefile.in (tree-vn.o): New.
143 (tree-ssa-pre.o): Don't depend on RTL_H.
144 * tree-dfa.c (find_referenced_vars): Don't call init_tree_ssa.
145 * tree-flow.h (struct var_ann_d): Remove field expr_set.
146 (add_to_value, expressions_equal_p, get_value_handle, vn_compute,
147 vn_lookup_or_add, vn_add, vn_lookup, vn_init, vn_delete): Declare.
148 * tree-optimize.c (execute_init_datastructures): New local function.
149 (pass_init_datastructures): New local variable.
150 (init_tree_optimization_passes): Sequence pass_init_datastructures.
151 * tree-pretty-print.c (MASK_POINTER): Remove.
152 (dump_generic_node): Handle VALUE_HANDLE.
153 * tree-ssa-pre.c: Move all value numbering routines to tree-vn.c.
154 Update callers to use new function names.
155 Use VALUE_HANDLE_ID and VALUE_HANDLE_EXPR_SET instead of
156 variable annotations.
157 * tree-ssa.c (init_tree_ssa): Call vn_init.
158 (delete_tree_ssa): Call vn_delete.
159 * tree-vn.c: New file.
160 * tree.c (tree_size): Handle VALUE_HANDLE.
161 (tree_node_structure): Likewise.
162 (iterative_hash_expr): Likewise.
163 * tree.def (VALUE_HANDLE): New code.
164 * tree.h (struct tree_value_handle): New.
165 (VALUE_HANDLE_ID): Define.
166 (VALUE_HANDLE_EXPR_SET): Define.
167 (enum tree_node_structure_enum): Add TS_VALUE_HANDLE.
168 (union tree_node): Add struct tree_value_handle.
170 2004-06-23 Andrew Pinski <apinski@apple.com>
172 * c-typeck.c (composite_type):
173 <case POINTER_TYPE>: Build a qualified type of
175 <case ARRAY_TYPE>: Likewise.
176 <case FUNCTION_TYPE>: Likewise.
178 2004-06-23 Pat Haugen <pthaugen@us.ibm.com>
180 PR optimization/15633
181 * value-prof.c (divmod_fixed_value_transform): Compute probability
182 of taking optimal path and pass along to gen_ routine.
183 (mod_pow2_value_transform): Same.
184 (mod_subtract_transform): Same.
185 (gen_divmod_fixed_value): Add new probability parameter.
186 Add probability to newly created jump.
187 (gen_mod_pow2): Same.
188 (gen_mod_subtract): Same.
190 2004-06-23 Richard Earnshaw <rearnsha@arm.com>
193 * arm.md (bicsi3_cbranch): Add alternative to handle tying operands
196 2004-06-23 Richard Earnshaw <rearnsha@arm.com>
199 * arm.h (THUMB_SECONDARY_OUTPUT_RELOAD_CLASS): Don't need a secondary
200 reload if CLASS is BASE_REGS.
202 2004-06-23 Richard Sandiford <rsandifo@redhat.com>
204 * gengtype-yacc.y (option): Avoid use of non-constant struct
207 2004-06-23 Nathan Sidwell <nathan@codesourcery.com>
209 * doc/extend.texi (Function Attributes): Alphabetize.
211 2004-06-23 Richard Henderson <rth@redhat.com>
213 * c-gimplify.c (gimplify_decl_stmt): Update gimplify_type_sizes call.
214 Use gimplify_and_add.
215 * c-typeck.c (c_finish_if_stmt): Use NULL instead of empty stmt.
216 * gimplify.c (build_and_jump, gimplify_exit_expr,
217 gimplify_init_constructor, gimplify_save_expr, gimple_push_cleanup,
218 gimplify_stmt, gimplify_expr): Likewise.
219 (shortcut_cond_expr): Handle NULL arms of COND_EXPR.
220 (gimplify_statement_list): Remove NULL entries.
221 (gimplify_to_stmt_list): Handle NULL results.
222 (gimplify_type_sizes): Add list_p argument.
223 (gimplify_one_sizepos): Don't use internal pre/post queue.
224 * tree-gimple.h (gimplify_type_sizes): Update.
226 2004-06-22 Eric Christopher <echristo@redhat.com>
228 * config/rs6000/rs6000.md (*insvsi_internal5/6): New patterns.
230 2004-06-22 Pat Haugen <pthaugen@us.ibm.com>
232 * cfghooks.c (make_forwarder_block): Decrement count on fallthru edge
233 when redirecting back edges.
235 * cfghooks.c (split_block): Call make_single_succ_edge so that edge
236 count/probability are set correctly.
238 2004-06-22 Richard Henderson <rth@redhat.com>
240 * c-typeck.c (emit_side_effect_warnings): Ignore error marks.
241 (c_finish_stmt_expr): Likewise.
243 * config/i386/i386.c (TARGET_STRUCT_VALUE_RTX): New.
244 (ix86_return_in_memory): Move SSE vector return warning ...
245 (ix86_struct_value_rtx): ... here. New.
247 2004-06-22 Richard Henderson <rth@redhat.com>
249 * tree.def (VTABLE_REF): Remove.
251 (TRY_CATCH_EXPR, TRY_FINALLY_EXPR): Set type 's'.
252 * expr.c (expand_expr_real_1): Replace VTABLE_REF with OBJ_TYPE_REF.
253 * fold-const.c (non_lvalue): Likewise.
254 * gimplify.c (gimplify_expr): Likewise.
255 (gimplify_call_expr): Use is_gimple_call_addr.
256 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): New.
257 * langhooks.h (fold_obj_type_ref): New.
258 * tree-gimple.c (is_gimple_call_addr): New.
259 * tree-gimple.h (is_gimple_call_addr): Declare.
260 * tree-inline.c (inlinable_function_p): Fix merge error.
261 (estimate_num_insns_1): Replace VTABLE_REF with OBJ_TYPE_REF.
262 * tree-pretty-print.c (dump_generic_node): Likewise.
263 (print_call_name): Handle OBJ_TYPE_REF.
264 * tree-ssa-ccp.c (fold_stmt): Fold OBJ_TYPE_REF.
265 * tree-ssa-operands.c (get_expr_operands): Handle OBJ_TYPE_REF.
266 * tree.h (OBJ_TYPE_REF_EXPR): New.
267 (OBJ_TYPE_REF_OBJECT, OBJ_TYPE_REF_TOKEN): New.
268 * doc/c-tree.texi (VTABLE_REF): Remove.
269 * objc/objc-act.c (build_objc_method_call): Build an OBJ_TYPE_REF.
271 2004-06-22 Richard Henderson <rth@redhat.com>
274 * function.c (assign_parms): Don't abort for overaligned PARALLEL.
276 2004-06-22 Joseph S. Myers <jsm@polyomino.org.uk>
278 * Makefile.in (distclean): Don't try to remove empty directories.
280 2004-06-22 Richard Sandiford <rsandifo@redhat.com>
283 * config/mips/mips.c (mips_avoid_hazards): Call split_all_insns_noflow.
285 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
287 * config/mn10300/mn10300.md (movdi, movdf): Use high/low for movu
290 2004-06-22 Dale Johannesen <dalej@apple.com>
292 * config/rs6000/rs6000.c (legitimate_offset_address_p): Make
293 global, rename rs6000_legitimate_offset_address_p.
294 (rs6000_legitimate_address_p): Adjust calls to it.
295 (lmw_operation): Ditto.
296 (stmw_operation): Ditto.
297 * config/rs6000/rs6000-protos.h: Declare it.
298 * config/rs6000/rs6000.md (*movdf_hardfloat32): Use it
299 instead of offsettable_memref_p.
301 2004-06-22 Dale Johannesen <dalej@apple.com>
303 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
304 [reg+reg] mode for TFmode memory accesses.
305 (rs6000_eliminate_indexed_memrefs): New.
306 (rs6000_emit_move): Call preceding for TImode and TFmode.
308 2004-06-22 Paolo Bonzini <bonzini@gnu.org>
310 * tree-cfg.c (pass_warn_function_return): It needs
313 2004-06-22 Nathan Sidwell <nathan@codesourcery.com>
315 * doc/invoke.texi (Machine Dependent Options): Alphabetize.
316 (Submodel Options): Likewise.
318 2004-06-21 Andrew Pinski <apinski@apple.com>
321 * c-decl.c (push_file_scope): Return early if we already
324 2004-06-21 Geoffrey Keating <geoffk@apple.com>
326 * c-opts.c (c_common_handle_option): Handle -fpch-preprocess.
327 * c-common.h (flag_pch_preprocess): Declare.
328 (c_common_pch_pragma): Likewise.
329 * c-common.c (flag_pch_preprocess): New.
330 * c-pch.c (c_common_read_pch): Support -fpreprocess-only.
331 (c_common_pch_pragma): New.
332 * c-ppoutput.c (cb_read_pch): New.
333 (init_pp_output): Support -fpch-preprocess.
334 * c-pragma.c (init_pragma): Support #pragma GNUC pch_preprocess.
335 * c.opt (fpch-preprocess): New.
336 * gcc.c (cpp_options): When save-temps, pass -fpch-preprocess.
337 * doc/cppopts.texi: Document -fpch-preprocess.
338 * doc/invoke.texi (Precompiled Headers): Mention that
339 -fpreprocessed is safe for PCH. Mention that if an option is
340 listed as safe that doesn't mean it does what you expect.
342 2004-06-22 Ben Elliston <bje@au.ibm.com>
344 * tree-ssa.c (ssa_redirect_edge): Correct leading comment.
346 2004-06-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
348 * Makefile.in (gimplify.o): Add cgraph.h.
349 * alias.c (adjust_offset_for_component_ref): Use
350 component_ref_field_offset.
351 * c-decl.c (build_array_declarator): Add news args for ARRAY_REF.
352 * c-gimplify.c (gimplify_expr_stmt): Use alloc_stmt_list.
353 (gimplify_decl_stmt): Call gimplify_type_sizes for type.
354 For decl, call gimplify_one_sizepos and use statement list.
355 (gimplify_compound_literal_expr): New arg PRE_P.
356 Add statement to PRE_P list and return DECL.
357 (c_gimplify_expr, case COMPOUND_LITERAL_EXPR): Add arg to
358 gimplify_compound_literal_expr.
359 * c-tree.h (getdecls): Deleted.
360 * c-typeck.c (build_component_ref): Add operand for COMPONENT_REF.
361 (build_array_ref): Add two operands for ARRAY_REF.
362 (build_unary_op): Set TREE_INVARIANT and TREE_CONSTANT for
363 COMPOUND_LITERAL_EXPR.
364 * coverage.c (tree_coverage_counter_ref): Add new operands
366 * emit-rtl.c (component_ref_for_mem_expr): Add new operand
368 (set_mem_attributes_minus_bitpos): Use array_ref_low_bound
369 and array_ref_element_size.
370 (widen_memory_access):Use component_ref_field_offset.
371 * explow.c (update_nonlocal_goto_save_area): Add two operands
373 * expr.c (array_ref_element_size, array_ref_low_bound): New functions.
374 (component_ref_field_offset): Likewise.
375 (get_inner_reference): Use them.
376 (expand_expr_real_1, case ARRAY_REF): Use array_ref_low_bound.
377 * fold-const.c (fold, case EQ_EXPR): Properly handle DECL_SIZE.
378 (fold_read_from_constant_string): Use array_ref_low_bound.
379 Verify that result is a character type.
380 (build_fold_indirect_ref): Add two operands for ARRAY_REF.
381 * function.c (expand_function_start): Likewise.
382 * gimple-low.c (expand_var_p): Delete duplicated line.
383 * gimplify.c: Add static decls for local functions.
384 (cgraph.h): Now included.
385 (create_tmp_var): Remove check for ARRAY_TYPE.
386 (copy_if_shared_r): Look at bounds and sizes of types.
387 (build_and_jump): Return alloc_stmt_list instead of build_empty_stmt.
388 (gimplify_exit_expr, shortcut_cond_expr): Likewise.
389 (gimplify_save_expr, gimple_push_cleanup): Likewise.
390 (gimplify_init_constructor): Likewise.
392 If empty list with no result wanted, return GS_UNHANDLED.
393 Add additional operands for ARRAY_REF and COMPONENT_REF.
394 (canonicalize_component_ref): Convert to &array[L].
395 (gimplify_array_ref_to_plus): Use array_ref_element_size and
396 array_ref_lower_bound.
397 (build_addr_expr_with_type, build_addr_expr): New functions.
398 (gimplify_compound_lval): WANT_LVALUE now bool.
399 Major rework to allow handle_component_p and initialize and
400 gimplify new operands for ARRAY_REF, ARRAY_RANGE_REF, and
402 (gimplify_array_ref): Deleted.
403 (gimplify_self_mod_expr): WANT_VALUE now bool.
404 (gimplify_modify_expr): Gimplify to_p and from_p later.
405 Factor out code into gimplify_modify_expr_rhs and call twice.
406 Move variable-size code earlier and handle PLACEHOLDER_EXPR.
407 (gimplify_modify_expr_rhs, gimplify_variable_sized_compare): New fns.
408 (gimplify_addr_expr, case VIEW_CONVERT_EXPR): New case.
409 (gimplify_expr, case ARRAY_REF): Delete special case.
410 Instead handle like COMPONENT_REF; also do ARRAY_RANGE_REF,
411 IMAGPART, and REALPART the same way.
412 (gimplify_expr, case VIEW_CONVERT_EXPR): New case.
413 (gimplify_expr): Call gimplify_variable_sized_compare if applicable.
414 Call alloc_stmt_list instead of build_empty_stmt.
415 Deal with _REF that's volatile.
416 (gimplify_type_sizes, gimplify_one_sizepos): New functions.
417 (unshare_body, unvisit_body): New functions.
418 (gimplify_body): Call them.
419 * stmt.c (expand_stack_alloc): Don't expand TYPE_MAX_VALUE.
420 * stor-layout.c (get_pending_sizes): Don't change SAVE_EXPR_CONTEXT.
421 * tree-alias-common.c (get_alias_var): Also skip ARRAY_RANGE_REF.
422 * tree-cfg.c (tree_node_can_be_shared): Treat ARRAY_RANGE_REF
424 (verify_expr, case ADDR_EXPR): Use handled_component_p.
425 * tree-dfa.c (get_virtual_var): Likewise.
426 * tree-dump.c (dequeue_and_dump, case COMPONENT_REF, ARRAY_REF):
427 New cases to dump new operands; likewise for ARRAY_RANGE_REF.
428 * tree-eh.c (tree_could_trap, case ARRAY_RANGE_REF): Like ARRAY_REF.
429 * tree-gimple.c (is_gimple_addr_expr_arg): Add ARRAY_RANGE_REF
431 (get_base_address): Use handled_component_p.
432 * tree-gimple.h (gimplify_type_sizes, gimplify_one_sizepos): New.
433 * tree-inline.c (walk_tree): Walk more things for types and decls.
434 * tree-mudflap.c (mf_build_check_statement_for): Add new operands
435 for ARRAY_REF and COMPONENT_REF.
436 (mx_xform_derefs_1): Clean up usage of decl sizes.
437 * tree-nested.c (build_addr): Use handled_component_p.
438 (walk_stmts, case CATCH_EXPR): Add missing "break".
439 (get_static_chain, get_frame_field): Add new operand for COMPONENT_REF.
440 (finalize_nesting_tree_1): Likewise.
441 (convert_nonlocal_reference, case ARRAY_RANGE_REF): Like ARRAY_REF
442 and process additional operands.
443 (convert_local_reference): Likewise.
444 * tree-outof-ssa.c (discover_nonconstant_array_refs_r): Treat
445 ARRAY_RANGE_REF similarly to ARRAY_REF.
446 * tree-pretty-print.c (dump_generic_node, case QUAL_UNION_TYPE): Handle
448 (dump_generic_node, case COMPONENT_REF): Print offset operand.
449 (dump_generic_node, case ARRAY_RANGE_REF): Treat like ARRAY_REF
450 and print lower bound and element size for both.
451 (op_prio, case ARRAY_RANGE_REF): Like ARRAY_REF.
452 * tree-sra.c (csc_build_component_ref): Add new operand.
453 (scalarize_call_expr): Use get_base_address.
454 * tree-ssa-ccp.c (widen_bitfield): Clean up size handling.
455 (maybe_fold_offset_to_array_ref): Rework to handle input having an
456 ARRAY_REF, refine handling of lower bound, and add new operands
458 (maybe_fold_to_component_ref): Add new operand for COMPONENT_REF.
459 (maybe_fold_stmt_indirect): Only fold *&B to B if types match.
460 (maybe_fold_stmt_addition): Only handle constant lower bound.
461 * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
462 Treat ARRAY_REF and ARRAY_RANGE_REF the same; look at extra operands.
463 Look at new offset operand of COMPONENT_REF.
464 * tree-ssa.c (set_is_used): Use handled_component_p.
465 * tree.c (substitute_in_expr, case COMPONENT_REF): Add new operand.
466 (stabilize_reference, case COMPONENT_REF): Likewise.
467 (stabilize_reference, case ARRAY_RANGE_REF, ARRAY_REF): Similarly.
468 (recompute_tree_invariant_for_addr_expr): Completely rework to
469 be more precise. Also set TREE_SIDE_EFFECTS.
470 (build1_stat, case ARRAY_EXPR): Don't handle TREE_SIDE_EFFECTS here.
471 (build2_stat, build3_stat, build4_stat): For references,
472 propagate TREE_THIS_VOLATILE.
473 (get_unwidened): Add new operand for COMPONENT_REF.
474 (get_narrower): Likewise; use host_integerp for DECL_SIZE.
475 * tree.def (COMPONENT_REF): Add new operand.
476 (ARRAY_REF, ARRAY_RANGE_REF): Add two new operands.
477 * tree.h (array_ref_element_size, array_ref_low_bound): New decls.
478 (component_ref_field_offset): Likewise.
479 * config/alpha/alpha.c (alpha_va_start): Add new op for COMPONENT_REF.
480 (alpha_gimplify_va_arg): Likewise.
481 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
482 * config/i860/i860.c (i860_va_start, i860_va_arg): Likewise.
483 * config/iq2000/iq2000.c (iq2000_va_arg): Likewise.
484 * config/mips/mips.c (mips_va_start, mips_va_arg): Likewise.
485 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg):
487 * config/s390/s390.c (s390_va_start, s390_gimplify_va_arg): Likewise.
488 * config/sh/sh.c (sh_va_start, sh_va_arg): Likewise.
489 * config/stormy16/stormy16.c (xstormy1_expand_builin_va_start):
491 (xstormy16_expand_builtin_va_arg): Likewise.
492 * config/xtensa/xtensa.c (xtensa_va_start, xtensa_va_arg): Likewise.
493 * objc/objc-act.c (generate_static_references): Likewise.
494 (generate_strings, build_method_prototype_list_template): Likewise.
495 (generate_protocol_list): Likewise.
497 2004-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
499 PR rtl-optimization/14782
500 * pa.c (emit_move_sequence): Use SFmode for 4-byte modes when doing
501 the address checks for secondary reloads for loads from and stores
502 to floating-point registers.
503 * pa.h (EXTRA_CONSTRAINT, case T): Use SFmode for 4-byte modes
504 in the address check. Move work around for ELF32 targets to
505 GO_IF_LEGITIMATE_ADDRESS.
506 (GO_IF_LEGITIMATE_ADDRESS): Require constant offsets to be
507 correctly aligned for DImode loads and stores. Don't allow long
508 SFmode displacements on ELF32.
510 2004-06-21 Richard Henderson <rth@redhat.com>
513 * cse.c (merge_equiv_classes): Also rehash in response to
514 delete_reg_equiv changes.
515 (rehash_using_reg): Don't exclude REGs from rehashing.
517 2004-06-21 Richard Henderson <rth@redhat.com>
519 * c-common.def (RETURN_STMT): Remove.
520 * c-common.h (RETURN_STMT_EXPR): Remove.
521 (c_expand_return, build_return_stmt): Remove.
522 (c_common_stmt_codes): Remove RETURN_STMT.
523 * c-dump.c (dump_next_stmt): Remove.
524 (c_dump_tree): Remove RETURN_STMT.
525 * c-decl.c (finish_function): Use c_finish_return.
526 * c-parse.in (stmt): Likewise.
527 * c-gimplify.c (gimplify_return_stmt): Remove.
528 (c_gimplify_expr): Remove RETURN_STMT.
529 * c-pretty-print.c (pp_c_statement): Likewise.
530 * c-semantics.c (build_return_stmt): Remove.
531 * c-tree.h (c_finish_return): Declare.
532 * c-typeck.c (c_finish_return): Rename from c_expand_return.
533 Return void. Build RETURN_EXPR directly.
534 * tree-dump.h (dump_next_stmt): Remove.
536 2004-06-21 Zack Weinberg <zack@codesourcery.com>
538 * c-decl.c (start_function): Don't call make_decl_rtl. Don't
539 look at TREE_ADDRESSABLE of symbol name.
541 2004-06-21 Kelley Cook <kcook@gcc.gnu.org>
544 * config/i386/i386.md: Change UNSPEC_STACK_PROBE to UNSPECV_STACK_PROBE.
545 (allocate_stack_worker): Make unspec_volatile.
546 (allocate_stack_worker_rex64): Likewise.
547 (allocate_stack_worker_postreload): Likewise.
548 (allocate_stack_worker_rex64_postreload): Likewise.
550 2004-06-21 Daniel Berlin <dberlin@dberlin.org>
552 Fix PR optimization/15982
553 * tree-ssa-pre.c: Update a few comments and todos to
554 reflect constants change.
555 (get_value_handle): Constants now value number to themselves.
556 (lookup): Constants lookup to themselves.
557 (add_to_value): Adjust to always be on.
558 (set_contains_value): Adjust for constants change.
559 (find_leader): Ditto.
560 (phi_translate): 'r' nodes are never ANTIC right now.
561 (valid_in_set): Ditto.
562 (get_expr_set): New function.
563 (find_or_generate_expression): New function, broken out from
565 (create_expression_by_pieces): Ditto, plus additional
566 machinery to handle complex values.
567 (compute_avail): Remove dead RETURN_EXPR handling.
569 2004-06-21 Steven Bosscher <stevenb@suse.de>
571 * config/i386/i386.c: Include insn-codes.h
572 * config/i386/i386.h (FLAGS_REG, FPSR_REG, DIRFLAG_REG): Don't
574 * config/i386/i386.md (BP_REG, SP_REG, FLAGS_REG, FPSR_REG,
575 DIRFLAG_REG): New define_constants. Use them everywhere.
577 2004-06-21 Kaz Kojima <kkojima@gcc.gnu.org>
579 * config/sh/t-linux (MULTILIB_OPTIONS): Remove.
581 2004-06-21 J"orn Rennecke <joern.rennecke@superh.com>
583 * sh.h (SUPPORT_SH1, SUPPORT_SH2E, SUPPORT_SH4): Conditionanlly define.
584 (SUPPORT_SH4_SINGLE): Likewise.
585 (TARGET_SWITCHES): Break out switches for cpu subtargets:
586 (TARGET_SWITCH_SH1, TARGET_SWITCH_SH2, TARGET_SWITCH_SH2E): Define.
587 (TARGET_SWITCH_SH3, TARGET_SWITCH_SH3E): Likewise.
588 (TARGET_SWITCH_SH4_SINGLE_ONLY, TARGET_SWITCH_SH4_SINGLE): Likewise.
589 (TARGET_SWITCH_SH4_NOFPU, TARGET_SWITCH_SH4): Likewise.
590 (TARGET_SWITCH_SH5_64MEDIA, TARGET_SWITCH_SH5_64MEDIA_NOFPU): Likewise.
591 (TARGET_SWITCHES_SH5_32MEDIA): Likewise.
592 (TARGET_SWITCHES_SH5_32MEDIA_NOFPU): Likewise.
593 (SELECT_SH5_64, SELECT_SH5_64_NOFPU): Rename to:
594 (SELECT_SH5_64MEDIA, SELECT_SH5_64MEDIA_NOFPU)
595 (SELECT_SH5_32, SELECT_SH5_32_NOFPU): Rename to:
596 (SELECT_SH5_32MEDIA, SELECT_SH5_32MEDIA_NOFPU).
597 (SH_MULTILIB_CPU_DEFAULT, MULTILIB_DEFAULTS): Define.
598 (ASM_ISA_SPEC_DEFAULT, ASM_ISA_DEFAULT_SPEC): Likewise.
599 * sh64.h (ASM_SPEC, LINK_DEFAULT_CPU_EMUL): Don't redefine.
600 (TARGET_DEFAULT): Likewise.
601 * config/sh/t-elf: Amend comment.
602 * config/sh/t-1e, config/sh/t-mlib-sh1: New files.
603 * config/sh/t-mlib-sh2, config/sh/t-mlib-sh2e: Likewise.
604 * config/sh/t-mlib-sh3, config/sh/t-mlib-sh3e: Likewise.
605 * config/sh/t-mlib-sh4, config/sh/t-mlib-sh4-nofpu: Likewise.
606 * config/sh/t-mlib-sh4-single: Likewise.
607 * config/sh/t-mlib-sh4-single-only: Likewise.
608 * config/sh/t-mlib-sh5-32media: Likewise.
609 * config/sh/t-mlib-sh5-32media-nofpu: Likewise.
610 * config/sh/t-mlib-sh5-64media: Likewise.
611 * config/sh/t-mlib-sh5-64media-nofpu: Likewise.
612 * config/sh/t-mlib-sh5-compact: Likewise.
613 * config/sh/t-mlib-sh5-compact-nofpu: Likewise.
614 * config/sh/t-sh: (MULTILIB_ENDIAN): Add mb.
615 (MULTILIB_CPUS): Define.
616 (MULTILIB_OPTIONS): Use MULTILIB_CPUS.
617 (MULTILIB_MATCHES): Use some shell code to calculate it.
618 (MULTILIB_EXCEPTIONS): Change to ml/m1.
619 * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Use ASM_ISA_DEFAULT_SPEC.
620 * config/sh/netbsd-elf.h: Update code which sets TARGET_VERSION_CPU.
621 (LINK_DEFAULT_CPU_EMUL): Don't redefine.
622 (NO_PROFILE_COUNTERS): Define to 1.
623 * config/sh/t-netbsd (MULTILIB_OPTIONS): Don't append to.
624 (MULTILIB_DIRNAMES, MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Don't zap.
625 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Don't redefine.
626 (MULTILIB_MATCHES): Don't zap.
627 (MULTILIB_DIRNAMES): Use MULTILIB_RAW_DIRNAMES.
628 * config/sh/t-sh64 (MULTILIB_OPTIONS): Don't redefine.
629 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Don't zap.
630 (MULTILIB_RAW_DIRNAMES): Define.
631 (MULTILIB_DIRNAMES): Use it.
632 * config.gcc: Also set cpu_type / need_64bit_hwint for sh[be]*-*-*.
633 (sh*linux configurations): Merge into:
634 (sh*elf / sh*kaos configurations). Support --with-endian, --with-cpu,
635 --with-multilib-list options. Support sh-superh-elf configuration.
636 (sh*-netbsd*): Use SELECT_SH* macros.
637 (supported_defaults): sh[123456ble]-*-* | sh-*-* support "cpu".
638 Merge sh*-*-netbsd* configurations into sh-elf configurations.
639 * config/sh/t-netbsd-sh5, config/sh/t-be, config/sh/t-le: Delete.
640 * config/sh/t-monolib: Likewise.
642 2004-06-21 Paul Brook <paul@codesourcery.com>
644 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Soft-float need
647 2004-06-21 Roger Sayle <roger@eyesopen.com>
649 * fold-const.c (operand_equal_p): Pass flags in recursive calls for
650 binary and relational operations. Add support for TRUTH_ANDIF_EXPR,
651 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR.
652 * tree.c (commutative_tree_code): Also list UNORDERED_EXPR,
653 ORDERED_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR
656 2004-06-21 Paolo Bonzini <bonzini@gnu.org>
658 * rtlanal.c (may_trap_p): Mark LTGT as trapping.
660 2004-06-21 Joseph S. Myers <jsm@polyomino.org.uk>
662 * tree-alias-common.h (struct tree_alias_ops): Change ip and
663 ip_partial to unsigned int.
665 2004-06-21 Richard Henderson <rth@redhat.com>
667 * c-common.c (verify_sequence_points): Export.
668 (c_expand_expr_stmt): Move to c-typeck.c.
669 * c-common.h (c_expand_expr_stmt): Remove.
670 (verify_sequence_points): Declare.
671 * c-mudflap.c (mflang_flush_calls): Use c_finish_expr_stmt.
672 * c-parse.in (for_init_stmt, stmt): Likewise.
673 * c-tree.h (c_finish_expr_stmt): Declare.
674 (c_tree_expr_nonnegative_p): Remove.
675 * c-typeck.c (c_tree_expr_nonnegative_p): Remove.
676 (build_conditional_expr, build_binary_op): Use tree_expr_nonnegative_p.
677 (emit_side_effect_warnings): New.
678 (c_finish_expr_stmt): Rename from c_expand_expr_stmt. Use it.
679 (c_finish_stmt_expr): Work without EXPR_STMT. Handle eh regions.
680 Use emit_side_effect_warnings.
681 (push_cleanup): Copy STATEMENT_LIST_STMT_EXPR.
682 * fold-const.c (tree_expr_nonnegative_p): Handle TARGET_EXPR.
683 * gimplify.c (gimplify_modify_expr): Don't discard TARGET_EXPR
684 with void initializer.
685 (gimplify_target_expr): Handle void BIND_EXPR initializer.
686 * tree-inline.c (estimate_num_insns_1): Fix type lookup for
687 INIT_EXPR and MODIFY_EXPR.
688 * objc/objc-act.c (build_module_descriptor): Use add_stmt
689 instead of c_expand_expr_stmt.
691 2004-06-21 Paolo Bonzini <bonzini@gnu.org>
693 * fold-const.c (fold_cond_expr_with_comparison):
694 New function, extracted from fold.
695 (fold): Extract code to fold A op B ? A : C, use
696 it to fold A op B ? C : A. Really optimize
697 A & N ? N : 0 where N is a power of two. Avoid
698 relying on canonicalization and recursion for
699 foldings of COND_EXPR to happen.
701 2004-06-20 David Ayers <d.ayers@inode.at>
703 * objc/objc-act.h (get_object_reference): Rename to
704 get_protocol_reference.
705 (super_type): Rename to objc_super_type.
706 (selector_type): Rename to objc_selector_type.
707 (id_type): Rename to objc_id_type.
708 (instance_type): Rename to objc_instance_type.
709 (protocol_type): Rename to objc_protocol_type.
710 (IS_ID): Update reference to id_type.
711 * objc/objc-act.c (get_object_reference): Rename to
712 get_protocol_reference; add documentation; update references to
714 (lookup_method_in_protocol_list): Rename class_meth to
715 is_class; add documentation.
716 (finish_message_expr): Rename is_class to class_tree.
717 (synth_module_prologue, objc_is_object_ptr, objc_build_exc_ptr,
718 next_sjlj_build_try_catch_finally, objc_begin_catch_clause,
719 build_next_objc_exception_stuff, get_arg_type_list,
720 build_objc_method_call): Update references to id_type.
721 (synth_module_prologue, build_objc_symtab_template,
722 build_selector_reference_decl, build_selector,
723 build_selector_translation_table, build_typed_selector_reference,
724 get_arg_type_list, synth_self_and_ucmd_args, get_arg_type_list,
725 synth_self_and_ucmd_args): Update references to selector_type.
726 (build_private_template, build_ivar_reference): Update references
728 (synth_module_prologue, build_protocol_reference,
729 build_protocol_expr, start_protocol): Update references to
731 (synth_module_prologue, get_arg_type_list, build_objc_method_call):
732 Update references to super_type.
733 * c-parse.in: (typespec_nonreserved_nonattr): Update
734 references to get_object_reference.
735 * objc/objc-tree.def: Add C mode identifier sequence.
737 2004-06-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
739 * loop-invariant.c: New file.
740 * Makefile.in (loop-invariant.o): New.
741 * cfgloop.h (global_cost_for_size, init_set_costs,
742 move_loop_invariants): Declare.
743 * cfgloopanal.c (seq_cost, init_set_costs, global_cost_for_size): New
745 (avail_regs, res_regs, small_cost, pres_cost, spill_cost): New
747 * common.opt (floop-optimize2, fmove-loop-invariants): New options.
748 * loop-init.c (loop_optimizer_init): Call init_set_costs.
749 * passes.c (rest_of_handle_loop2): Call move_loop_invariants.
750 (rest_of_compilation): Check flag_loop_optimize2.
751 * toplev.c (process_options): Handle flag_loop_optimize2.
752 * doc/invoke.texi (-floop-optimize2, -fmove-loop-invariants): Document.
753 * doc/passes.texi (loop-invariant.c): Document.
755 2004-06-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
757 * tree-ssa-pre.c (compute_antic): Keep BB_VISITED flag zeroed.
759 2004-06-20 Richard Henderson <rth@redhat.com>
761 * stmt.c (warn_if_unused_value): Add locus argument.
762 * tree.h (warn_if_unused_value): Update decl.
763 * c-typeck.c (internal_build_compound_expr): Update call.
764 * c-gimplify.c (gimplify_expr_stmt): Likewise.
766 2004-06-20 Andrew Pinski <pinskia@physics.uc.edu>
769 * builtins.c (entry_of_function): Move to ...
770 * cfgrtl.c (entry_of_function): Here and make non-static.
771 * integrate.c (emit_initial_value_sets): Use entry_of_function.
772 * rtl.h (entry_of_function): Prototype.
774 2004-06-20 Roger Sayle <roger@eyesopen.com>
776 * config/i386/i386.c (pentium4_cost): Increase "lea" cost from 1 to 3.
777 (ix86_rtx_costs) <ASHIFT, PLUS>: Consider ix86_cost->lea even when
778 TARGET_DECOMPOSE_LEA.
780 2004-06-20 Richard Henderson <rth@redhat.com>
782 * c-common.h (add_decl_stmt): Move to cp-tree.h.
783 * c-decl.c (finish_decl): Don't use add_decl_stmt.
784 * c-parse.in: Likewise.
785 * c-gimplify.c (gimplify_expr_stmt): Don't build CLEANUP_POINT_EXPR.
786 (gimplify_c_loop, gimplify_return_stmt, gimplify_decl_stmt): Likewise.
787 * c-semantics.c (add_decl_stmt): Move to cp/semantics.c.
789 2004-06-20 Richard Henderson <rth@redhat.com>
791 * c-common.def (IF_STMT, CLEANUP_STMT): Move to cp-tree.def.
792 * c-common.h (IF_COND, THEN_CLAUSE, ELSE_CLAUSE, CLEANUP_BODY,
793 CLEANUP_EXPR, CLEANUP_DECL): Move to cp-tree.h.
794 (c_common_stmt_codes): Remove IF_STMT, CLEANUP_STMT.
795 * c-dump.c (c_dump_tree): Move IF_STMT, CLEANUP_STMT to cp_dump_tree.
796 * c-pretty-print.c (pp_c_statement): Similarly.
797 * c-gimplify.c (gimplify_cleanup_stmt, gimplify_cleanup_stmts,
798 gimplify_if_stmt): Move to cp-gimplify.c.
799 (c_genericize, c_gimplify_expr): Don't call them.
800 * c-semantics.c (push_cleanup): Move to cp/semantics.c.
801 * c-typeck.c (push_cleanup): New.
802 (c_begin_if_stmt, c_finish_if_cond, c_finish_then, c_finish_else,
803 c_finish_if_stmt): Use COND_EXPR.
804 * tree.h (CLEANUP_EH_ONLY): Update documentation.
806 2004-06-20 Zack Weinberg <zack@codesourcery.com>
808 * c-common.h (has_c_linkage): New interface.
809 * c-cppbuiltin.c: Include target.h.
810 (c_cpp_builtins): Define __PRAGMA_REDEFINE_EXTNAME and
811 __PRAGMA_EXTERN_PREFIX when appropriate.
812 * c-pragma.c: Include target.h.
813 Document clarified semantics of symbol-renaming #pragmas.
814 (handle_pragma_redefine_extname, handle_pragma_extern_prefix)
815 (maybe_apply_renaming_pragma): Rewrite according to clarified
816 semantics. Always recognize, but do not necessarily execute.
817 (init_pragma): Unconditionally register symbol-renaming pragmas.
818 * system.h: Poison HANDLE_PRAGMA_REDEFINE_EXTNAME
819 and HANDLE_PRAGMA_EXTERN_PREFIX.
820 * target.h (struct gcc_target): Add handle_pragma_redefine_extname
821 and handle_pragma_extern_prefix flags.
822 * target-def.h: Add defaults for TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME
823 and TARGET_HANDLE_PRAGMA_EXTERN_PREFIX.
824 * Makefile.in (c-pragma.o, c-cppbuiltin.o): Update dependencies.
825 * config/sol2.h: Define TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME,
826 not HANDLE_PRAGMA_REDEFINE_EXTNAME.
827 (TARGET_OS_CPP_BUILTINS): No need to define __PRAGMA_REDEFINE_EXTNAME.
828 (TRANSFER_FROM_TRAMPOLINE): Prototype mprotect.
829 * config/alpha/osf.h: Define TARGET_HANDLE_PRAGMA_EXTERN_PREFIX,
830 not HANDLE_PRAGMA_EXTERN_PREFIX.
831 (TARGET_OS_CPP_BUILTINS): No need to define __PRAGMA_EXTERN_PREFIX.
832 * doc/extend.texi (Solaris Pragmas, Tru64 Pragmas): Combine
833 into one section "Symbol-Renaming Pragmas"; clarify; document
836 * builtins.c (expand_builtin): Do not issue error for a builtin
837 with no special case code and no DECL_ASSEMBLER_NAME; just do the
839 * c-decl.c (builtin_function): Don't call make_decl_rtl.
840 * c-objc-common.c (has_c_linkage): Stub implementation.
841 * cgraphunit.c (cgraph_expand_function)
842 (cgraph_remove_unreachable_nodes): Don't clear DECL_ARGUMENTS.
844 2004-06-19 Roger Sayle <roger@eyesopen.com>
846 * builtins.c (fold_builtin_unordered_cmp): Take an EXP argument
847 instead of both an ARGLIST and a result TYPE. Handle these C99
848 comparison functions as "polymorphic" builtins. Also handle
849 lowering of BUILT_IN_ISUNORDERED to an UNORDERED_EXPR tree node.
850 (fold_builtin_1): Update calls to fold_builtin_unordered_cmp.
851 Move handling of BUILT_IN_ISUNORDERED from here to there.
853 2004-06-19 Richard Henderson <rth@redhat.com>
855 * c-common.c, c-common.h (lang_gimplify_stmt): Remove.
856 * c-gimplify.c: Remove unnecessary prototypes.
857 (c_gimplify_stmt): Merge into ...
858 (c_gimplify_expr): ... here. Don't play with prep_stmt.
859 * c-semantics.c (prep_stmt): Remove.
860 * gimplify.c (annotate_one_with_locus): Break out from ...
861 (annotate_all_with_locus): ... here.
862 (gimplify_expr): Add locus to expressions even if pre/post queues
865 2004-06-19 Richard Henderson <rth@redhat.com>
868 * function.c (assign_parms): If not padding upward or intentionally
869 forcing upward padding, take offset_rtx into account when determining
870 the alignment for stack_parm.
872 2004-06-19 Richard Henderson <rth@redhat.com>
875 * ifcvt.c (noce_try_move): Recognize all generated instructions.
877 2004-06-19 Jan Hubicka <jh@suse.cz>
879 * function.c (free_after_compilation): Do not free computed_goto_common*.
880 * function.h (struct function): Kill computed_goto_common*.
881 * stmt.c (expand_computed_goto): Do not commonize the computed gotos.
882 * tree-cfg.c (disband_implicit_edges): Do not forward across the
883 commonized computed goto.
885 2004-06-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
887 * doc/invoke.texi: Remove obsolete comment regarding PA 2.0 support
890 2004-06-19 Andrew Pinski <apinski@apple.com>
893 * toplev.c (wrapup_global_declarations): Do not check
894 TREE_SYMBOL_REFERENCED of the DECL_ASSEMBLER_NAME but check
895 cgraph_varpool_node's needed field.
897 2004-06-19 Jan Hubicka <jh@suse.cz>
898 Steven Bosscher <stevenb@suse.de>
900 CFG transparent RTL expansion:
901 * Makefile.in (cfgexpand.o): New object file.
902 (builtins.o): Add dependency on basic-block.h
903 * builtins.c: Include basic-block.h
904 (entry_of_function): New function.
905 (expand_builtin_apply_args, expand_builtin_saveargs): Use it.
906 * cfgexpand.c: New file.
907 * expr.c (execute_expand, pass_expand): Kill.
908 * pass.c (rest_of_compilation): Do not build CFG unless called from
910 * tree-cfg.c (delete_tree_cfg): Rename to..
911 (delete_tree_cfg_annotations): ... this one; Do not remove the CFG itself.
912 * tree-flow.h (delete_tree_cfg_annotations): Declare.
913 (dleete_tree_cfg): Kill.
914 * tree-optimize.c (execute_rebuild_bind, pass_rebuild_bind): Kill.
915 (execute_del_cfg): Rename to...
916 (execute_free_datastructures): This one...
917 (pass_del_cfg): Rename to...
918 (pass_free_datastructures): ... this one; Do not kill PROP_cfg.
919 (init_tree_optimization_passes): Make cfg build and profiling to happen
922 2004-06-19 Steven Bosscher <stevenb@suse.de>
924 * tree-mudflap.c (mf_decl_cache_locals): Skip labels before
925 inserting the cache variables.
927 * tree-mudflap.c: Include headers to make basic_block available.
928 Move functions around such that related functions are near each
929 other. Add prototypes for all static functions. Add comments
930 briefly explaining what IR the mudflap1 and mudflap2 work on and
932 (mudflap_function_decls): Rename to execute_mudflap_function_decls.
933 (mudflap_function_ops): Rename to execute_mudflap_function_ops.
934 (pass_mudflap_1, pass_mudflap_2): Update.
935 (mf_decl_cache_locals): Make it work on the CFG instead of the saved
937 (mf_build_check_statement_for): Make it work on the CFG.
938 (mf_xform_derefs_1): Likewise. Cleanup code style.
939 (mf_xform_derefs): Likewise.
941 2004-06-19 Jan Hubicka <jh@suse.cz>
943 * tree-cfg.c (label_to_block): Invent the label destination for
945 (cleanup_dead_labels): Update table in the case label_to_block added
948 2004-06-18 Richard Henderson <rth@redhat.com>
951 * gimple-low.c (lower_function_body): Generate return statement for
952 fall off the end of the function here ...
953 * tree-cfg.c (make_edges): ... instead of here.
954 * gimplify.c (gimplify_return_expr): Mark return temp TREE_NO_WARNING.
956 2004-06-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
958 * tree-ssa.c (raise_value): Removed.
959 (get_eq_name, check_phi_redundancy): New functions.
960 (kill_redundant_phi_nodes): Use standard ssa minimalization algorithm.
962 2004-06-18 Roger Sayle <roger@eyesopen.com>
964 * fold-const.c (fold) <UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR,
965 UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR>: Add
966 constant folding for unordered comparison tree nodes. If both
967 operands are real constants, call fold_relational_const. If either
968 operand is a NaN, evaluate the other for side-effects and return a
969 constant. Optimize (double)float1 CMP (double)float2 into the
970 equivalent float1 CMP float2.
971 (nondestructive_fold_binary_to_constant) <UNORDERED_EXPR,
972 ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR,
973 LTGT_EXPR>: Call fold_relational_const for constant operands.
974 (fold_relational_const): Add support for unordered comparison tree
975 nodes. Don't constant fold "ordered" floating point comparisons
976 against NaN if when flag_trapping_math is set.
978 2004-06-19 Jakub Jelinek <jakub@redhat.com>
980 * fold-const.c (build_range_check): If !in_p and recursive call
981 fails, exit immediately. If high - low overflows and etype is
982 a signed type, retry with unsigned etype.
983 (merge_ranges): If !in0_p and !in1_p, handle even range2 adjacent
984 to range1 at TYPE_MAX_VALUE and TYPE_MIN_VALUE.
986 2004-06-18 Richard Henderson <rth@redhat.com>
988 * c-gimplify.c (gimplify_condition): Remove.
989 (gimplify_c_loop, gimplify_if_stmt, gimplify_switch_stmt): Don't
992 2004-06-18 Richard Henderson <rth@redhat.com>
994 * tree-eh.c (decide_copy_try_finally): Fix scaling of copy and
997 2004-06-18 Andrew Pinski <pinskia@physics.uc.edu>
999 * config/i386/darwin.h (HOT_TEXT_SECTION_NAME): Define.
1000 (NORMAL_TEXT_SECTION_NAME): Define.
1001 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
1002 (SECTION_FORMAT_STRING): Define.
1004 2004-06-18 Steven Bosscher <stevenb@suse.de>
1006 * config/xtensa/xtensa.c
1007 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
1008 * xtensa.md: Replace the old pipeline description with a DFA model.
1010 2004-06-18 Steven Bosscher <stevenb@suse.de>
1011 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1013 * config/s390/s390.md: Remove the generic pipeline description.
1014 * config/s390/2064.md: Make all insn reservations apply to
1015 the z900, g5 and g6.
1016 * config/s390/s390.c (s390_use_dfa_pipeline_interface): Remove.
1017 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
1018 Define to hook_int_void_1.
1019 (s390_adjust_cost): Cleanup. Don't check address dependency here.
1020 (s390_first_cycle_multipass_dfa_lookahead): Always return 4.
1022 2004-06-18 Daniel Berlin <dberlin@dberlin.org>
1023 Diego Novillo <dnovillo@redhat.com>
1025 * tree-dfa.c (create_var_ann): tree_ann -> tree_ann_t.
1026 (create_stmt_ann): Ditto.
1027 (create_tree_ann): New function.
1028 (create_cst_ann): Remove.
1029 (create_expr_ann): Ditto.
1031 * tree-flow-inline.h (cst_ann): Remove.
1032 (get_cst_ann): Ditto.
1033 (get_expr_ann): Ditto.
1035 (get_tree_ann): New function.
1037 (ann_type): tree_ann -> tree_ann_t.
1038 * tree-flow.h (tree_ann_type): CST_ANN, EXPR_ANN removed.
1039 (struct cst_ann_d): Removed.
1040 (struct expr_ann_d): Ditto.
1041 (union tree_ann_d): Removed cst and expr.
1042 (tree_ann): Renamed to tree_ann_t.
1043 * tree-ssa-ccp.c (set_rhs): tree_ann -> tree_ann_t.
1044 * tree-ssa-pre.c (get_value_handle): Rewrite for single common
1046 (set_value_handle): Ditto.
1047 (phi_translate): Ditto.
1048 * tree-tailcall.c (adjust_return_value): tree_ann -> tree_ann_t.
1050 2004-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
1052 * config/sh/t-linux64: New file.
1053 * config.gcc: Add it to tmake_file for sh64*-*-linux*.
1055 2004-06-18 Paolo Bonzini <bonzini@gnu.org>
1057 * emit-rtl.c (unshare_all_rtl_1): New name of unshare_all_rtl.
1058 (unshare_all_rtl_again): Call unshare_all_rtl_1.
1059 (unshare_all_rtl): New.
1060 * function.c (instantiate_virtual_regs): Remove parameters.
1061 * function.h (instantiate_virtual_regs): Add prototype.
1062 * rtl.h (unshare_all_rtl): Add prototype.
1063 * tree.h (instantiate_virtual_regs, unshare_all_rtl): Remove
1065 * passes.c: Remove assertions on the parameters to
1066 rest_of_handle_* functions. Remove the parameters to
1067 the functions, replacing decl with current_function_decl
1068 and insns with get_insns ().
1070 2004-06-17 Roger Sayle <roger@eyesopen.com>
1072 * fold-const.c (constant_boolean_node): Handle boolean_type_node
1073 directly, return either boolean_true_node or boolean_false_node.
1075 2004-06-18 Kelley Cook <kcook@gcc.gnu.org>
1077 * opts.sh: Delete. Break out generated code to next four files.
1078 * opt-gather.awk: New file.
1079 * optc-gen.awk: New file.
1080 * opth-gen.awk: New file.
1081 * opt-functions.awk: New common file.
1082 * Makefile.in: Update for above.
1083 * configure.ac: Update comment.
1084 * configure: Regenerate.
1086 2004-06-17 Richard Henderson <rth@redhat.com>
1088 * c-common.c (flag_objc_sjlj_exceptions): New.
1089 * c-common.h (flag_objc_sjlj_exceptions): Declare.
1090 * c-opts.c (c_common_handle_option): Set it.
1091 (c_common_post_options): Handle interation of different
1092 objective-c exception and runtime switches.
1093 * c-decl.c (c_eh_initialized_p): New.
1094 (finish_decl): Use it instead of local eh_initialized_p.
1095 * c-parse.in (nested_function, notype_nested_function): Record
1096 the result of compstmt.
1097 (compstmt_or_error): Likewise.
1098 (compstmt): Don't add_stmt the result.
1099 (stmt): Don't return anything. Rewrite objc try and sync rules.
1100 (objc_try_stmt, objc_catch_list): Remove.
1101 (objc_catch_block, objc_finally_block): Remove.
1102 (objc_catch_prefix, objc_catch_clause, objc_opt_catch_list): New.
1103 (objc_try_catch_clause, objc_finally_clause): New.
1104 (objc_try_catch_stmt): Rewrite.
1105 * c-tree.h (c_eh_initialized_p): Declare.
1106 * c-opt (fobjc-sjlj-exceptions): New.
1107 * except.c (output_function_exception_table): Don't call cgraph
1109 * objc/objc-act.c (UTAG_EXCDATA_VAR, UTAG_CAUGHTEXC_VAR,
1110 UTAG_RETHROWEXC_VAR, UTAG_EVALONCE_VAR, struct val_stack,
1111 catch_count_stack, exc_binding_stack, if_nesting_count,
1112 blk_nesting_count, objc_enter_block, objc_exit_block,
1113 objc_declare_variable, val_stack_push, val_stack_pop,
1114 objc_build_try_enter_fragment, objc_build_extract_expr,
1115 objc_build_try_exit_fragment, objc_build_extract_fragment,
1116 objc_build_try_prologue, objc_build_try_epilogue,
1117 objc_build_catch_stmt, objc_build_catch_epilogue,
1118 objc_build_finally_prologue, objc_build_finally_epilogue,
1119 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
1120 objc_build_synchronized_epilogue): Remove.
1121 (objc_create_temporary_var, struct objc_try_context, cur_try_context,
1122 objc_eh_runtime_type, objc_init_exceptions, objc_build_exc_ptr,
1123 next_sjlj_build_try_exit, next_sjlj_build_enter_and_setjmp,
1124 next_sjlj_build_exc_extract, next_sjlj_build_catch_list,
1125 next_sjlj_build_try_catch_finally, objc_begin_try_stmt,
1126 objc_begin_catch_clause, objc_finish_catch_clause,
1127 objc_build_finally_clause, objc_finish_try_stmt,
1128 objc_build_synchronized): New.
1129 (objc_is_object_id, objc_is_class_id): New.
1130 (objc_comptypes): Use them.
1131 (build_next_objc_exception_stuff): Break NeXT sjlj out from
1132 build_objc_exception_stuff.
1133 (synth_module_prologue): Update to match.
1134 (objc_build_throw_stmt): Use cur_try_context to decide if
1136 * objc/objc-act.h: Update prototypes.
1137 (OCTI_EXCEPTION_BLK_STACK, objc_exception_block_stack): Remove.
1139 2004-06-17 Andrew Pinski <apinski@apple.com>
1141 * c-typeck.c (tagged_types_tu_compatible_p <case UNION_TYPE>):
1142 Use TYPE_FIELDS instead of TYPE_VALUES.
1144 2004-06-17 Jason Merrill <jason@redhat.com>
1147 * gimplify.c (gimplify_target_expr): Handle void initializer.
1148 * expr.c (expand_expr_real_1) [TARGET_EXPR]: Likewise.
1149 * doc/c-tree.texi (Expression trees): Update TARGET_EXPR
1152 2004-06-17 Roger Sayle <roger@eyesopen.com>
1154 * fold-const.c (fold_relational_const): Use constant_boolean_node.
1156 2004-06-17 Jan Hubicka <jh@suse.cz>
1159 * i386.md (SSE SF cmov 0 splitter): The conditional is VOIDmode; fix
1160 operand numbering in the output template.
1161 (SSE DF cmov 0 splitter): The conditional is VOIDmode.
1163 2004-06-17 Jan Hubicka <jh@suse.cz>
1165 * except.c (can_throw_internal): Recognize RESX expresisons.
1167 2004-06-17 Jan Hubicka <jh@suse.cz>
1169 * cfgbuild.c (make_edges): Do not use label_value_list.
1170 (find_basic_blocks_1): Do not collect label_value_list.
1171 (find_sub_basic_blocks): Update call of make_edges.
1173 2004-06-17 Andrew MacLeod <amacleod@redhat.com>
1175 * tree-cfg.c (tree_make_forwarder_block): Use SET_PHI_RESULT.
1176 * tree-flow-inline.h (get_use_op_ptr): Return a use_operand_p.
1177 (get_use_from_ptr, get_def_from_ptr): New. Return operand pointers.
1178 (get_def_op_ptr): Return a def_operand_p instead of a 'tree *'.
1179 (get_v_may_def_result_ptr): Return a def_operand_p.
1180 (get_v_may_def_op_ptr, get_vuse_op_ptr): Return a use_operand_p.
1181 (get_v_must_def_op_ptr): Return a def_operand_p.
1182 (get_phi_result_ptr): New. Return a pointer to the result of a PHI.
1183 (get_phi_arg_def_ptr): New. Return a pointer to an argument of a PHI.
1184 (phi_element_for_edge): Remove.
1185 * tree-flow.h (propagate_value, replace_exp): Change prototype.
1186 (propagate_tree_value): Add new prototype.
1187 (phi_element_for_edge): Remove prototype.
1188 * tree-into-ssa.c (mark_def_sites): Use new operand types.
1189 (prepare_operand_for_rename): Split into two functions.
1190 (prepare_use_operand_for_rename): Prepare use operands.
1191 (prepare_def_operand_for_rename): Prepare def operands.
1192 (rewrite_stmt): Use new operand types.
1193 (rewrite_operand): Use new operand types, change parameter type.
1194 * tree-outof-ssa.c (replace_variable): Split into two functions.
1195 (replace_use_variable): Rewrite uses.
1196 (replace_def_variable): Rewrite defs.
1197 (rewrite_trees, rewrite_vars_out_of_ssa): Use new operand types.
1198 * tree-phinodes.c (make_phi_node, resize_phi_node): Use new types.
1199 (add_phi_arg, remove_phi_arg_num): Use new operand types.
1200 * tree-ssa-ccp.c (substitute_and_fold): Use new operand types.
1201 (ccp_fold, replace_uses_in): Use new operand types.
1202 * tree-ssa-copy.c (replace_ssa_names): Rename to replace_ssa_names_ann
1203 and no longer set the value, change parameter type.
1204 (replace_exp_1): Use new operand types.
1205 (propagate_value): Change parameter type, use new operand types.
1206 (propagate_tree_value): Propagate_value without SSA operands.
1207 (replace_exp, cprop_operand, cprop_into_stmt): Use new operand types.
1208 (cprop_into_successor_phis): Use new operand types.
1209 * tree-ssa-dom.c (thread_across_edge): Use new operand types.
1210 (eliminate_redundant_computations): Use new operand types.
1211 * tree-ssa-dse.c (fix_phi_uses): Use new operand_types.
1212 (fix_stmt_v_may_defs): Use new operand_types.
1213 * tree-ssa-live.c (create_ssa_var_map): Use new operand_types.
1214 (build_tree_conflict_graph): Use new operand_types.
1215 * tree-ssa-loop.c (duplicate_blocks): Use PHI_ARG_DEF_FROM_EDGE.
1216 * tree-ssa-operands.c (struct freelist_d): Remove.
1217 (check_optype_freelist, add_optype_freelist): Remove.
1218 (allocate_def_optype, allocate_use_optype, allocate_v_may_def_optype,
1219 allocate_vuse_optype, allocate_v_must_def_optype): Call ggc_alloc.
1220 (free_uses, free_defs, free_vuses, free_v_may_defs, free_v_must_defs):
1221 Call ggc_free instead of add_optype_freelist.
1222 (init_ssa_operands, fini_ssa_operands): Remove free list code.
1223 (finalize_ssa_defs, finalize_ssa_uses): Set new use/def operands.
1224 * tree-ssa-operands.h (struct def_optype_d): Change underlying type.
1225 (struct use_optype_d): Change underlying type.
1226 (def_operand_p, use_operand_p): New types for pointers to operands.
1227 (USE_OP, DEF_OP, V_MAY_DEF_RESULT, V_MAY_DEF_OP, VUSE_OP,
1228 V_MUST_DEF_OP): Use new pointer type instead of dereferencing directly.
1229 (USE_FROM_PTR, DEF_FROM_PTR): New macros to "dereference" operand
1231 (SET_USE, SET_DEF): New macros to set operands from their pointer.
1232 (SET_USE_OP, SET_DEF_OP, SET_V_MAY_DEF_RESULT, SET_V_MAY_DEF_OP,
1233 SET_VUSE_OP, SET_V_MUST_DEF_OP): New SET routines for operands.
1234 (PHI_RESULT_PTR, PHI_RESULT, SET_PHI_RESULT): Macros to manage the
1235 PHI result as an operand.
1236 (PHI_ARG_DEF_PTR, PHI_ARG_DEF, SET_PHI_ARG_DEF, PHI_ARG_DEF_FROM_EDGE,
1237 PHI_ARG_DEF_PTR_FROM_EDGE): Macros to manage the PHI arguments.
1238 * tree-ssa-pre.c (eliminate): Call propagate_tree_value.
1239 * tree-tailcall.c (independent_of_stmt_p, propagate_through_phis): Use
1240 PHI_ARG_DEF_FROM_EDGE.
1241 * tree.h (PHI_RESULT): Renamed to PHI_RESULT_TREE.
1242 (PHI_ARG_DEF): Renamed to PHI_ARG_DEF_TREE.
1244 2004-06-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1246 PR tree-optimization/15991
1247 * tree-cfg.c (tree_block_label): Export.
1248 * tree-flow-inline.h (bsi_after_labels): New function.
1249 * tree-flow.h (bsi_after_labels, tree_block_label): Declare.
1250 * tree-ssa.c (propagate_into_addr): New function.
1251 (replace_immediate_uses): Handle propagation of pointer constants.
1252 (raise_value): Do not restrict propagation of pointer constants.
1253 * tree-ssanames.c (duplicate_ssa_name): New function.
1254 * tree.h (duplicate_ssa_name): Declare.
1256 2004-06-17 David Ayers <d.ayers@inode.at>
1258 * c-parse.in: Unify Objective-C token names.
1260 2004-06-17 Zack Weinberg <zack@codesourcery.com>
1263 * Makefile.in (min-insn-modes.o): Correct dependencies.
1264 * real.c (encode_ieee_extended, decode_ieee_extended): Always
1265 produce/consume 12-byte little-endian Intel format.
1266 (encode_ieee_extended_128, decode_ieee_extended_128): Delete.
1267 (encode_ieee_extended_motorola, decode_ieee_extended_motorola)
1268 (encode_ieee_extended_intel_96, decode_ieee_extended_intel_96)
1269 (encode_ieee_extended_intel_128, decode_ieee_extended_intel_128):
1270 New functions which convert between 12-byte little-endian Intel
1271 format and the desired format.
1272 (ieee_extended_motorola_format, ieee_extended_intel_96_round_53_format)
1273 (ieee_extended_intel_96_format, ieee_extended_intel_128_format):
1276 2004-06-17 Zack Weinberg <zack@codesourcery.com>
1278 * expmed.c (expand_mult_const): In sanity check, compare only
1279 the bits of val and val_so_far that are significant in the
1282 2004-06-17 Daniel Berlin <dberlin@dberlin.org>
1284 * tree-ssa-pre.c: Update comments.
1285 (val_expr_pair_eq): Factor code from here.
1286 (expr_pred_trans_eq): and here.
1287 (expressions_equal_p): To here.
1288 (print_value_set): Print value for expression.
1289 (phi_trans_lookup): Rename some variables.
1291 (value_exists_in_set_bitmap): Ditto.
1292 (value_remove_from_set_bitmap): Ditto.
1293 (value_insert_into_set_bitmap): Ditto.
1295 2004-06-17 Ulrich Weigand <uweigand@de.ibm.com>
1297 * config/s390/s390-modes.def (CCL3mode): New machine mode.
1298 * config/s390/s390.c (s390_match_ccmode_set): Support CCL3mode.
1299 (s390_alc_comparison, s390_slb_comparison): Likewise.
1300 (s390_branch_condition_mask): Likewise.
1301 * config/s390/s390.md ("*subdi3_cc2", "*subdi3_cconly2"): New.
1302 ("*subsi3_cc2", "*subsi3_cconly2"): New.
1304 * config/s390/s390.h (PREDICATE_CODE): Accept SIGN_EXTEND and
1305 ZERO_EXTEND for s390_alc_comparison and s390_slb_comparison.
1306 * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
1307 Handle SIGN_EXTEND and ZERO_EXTEND.
1309 * config/s390/s390-protos.h (s390_expand_addcc): New prototype.
1310 * config/s390/s390.c (s390_expand_addcc): New function.
1311 * config/s390/s390.md ("adddicc", "addsicc"): New expanders.
1312 ("*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg"): New insns.
1313 ("sltu", "sgtu", "sleu", "sgeu"): New expanders.
1315 2004-06-17 Ben Elliston <bje@au.ibm.com>
1317 * tree-alias-common.c: Add whitespace.
1318 * tree-inline.c: Correct comment about this file's purpose.
1319 * tree-optimize.c: Likewise.
1320 * tree-tailcall.c: Likewise.
1322 * tree-alias-ander.h: Add standard top-of-file comment.
1323 * tree-alias-common.h: Likewise.
1324 * tree-alias-type.h: Likewise.
1326 2004-06-16 Daniel Berlin <dberlin@dberlin.org>
1328 * tree-ssa-pre.c (compute_avail): Value number uses as well.
1329 Strip useless type conversions.
1330 Casts have to be treated slightly different than normal unaries.
1332 2004-06-16 Richard Henderson <rth@redhat.com>
1334 * c-common.def (COMPOUND_STMT): Remove.
1335 * c-common.c (finish_fname_decls): Don't look through it.
1336 * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
1337 * c-common.h (COMPOUND_BODY): Remove.
1338 (c_common_stmt_codes): Remove COMPOUND_STMT.
1339 * c-dump.c (c_dump_tree): Likewise.
1340 * c-gimplify.c (c_gimplify_stmt): Likewise.
1341 * c-pretty-print.c (pp_c_statement): Likewise.
1342 * tree.h (DECL_SAVED_TREE): Update commentary.
1343 * doc/c-tree.texi (ASM_EXPR): Rename from ASM_STMT.
1344 (CASE_LABEL_EXPR): Rename from CASE_LABEL.
1345 (GOTO_EXPR): Rename from GOTO_STMT.
1346 (GOTO_FAKE_P): Remove.
1347 (COMPOUND_STMT): Remove.
1348 (HANDLER): Update wrt COMPOUND_STMT.
1349 (STMT_EXPR): Likewise.
1350 (LABEL_EXPR): Rename from LABEL_STMT.
1351 (SCOPE_STMT): Remove.
1352 * objc/objc-act.c (objc_build_try_catch_finally_stmt): Don't look
1353 through COMPOUND_STMT.
1355 2004-06-16 Richard Henderson <rth@redhat.com>
1357 * c-common.h (c_begin_if_stmt, c_begin_while_stmt,
1358 c_finish_while_stmt_cond): Remove decls.
1359 * c-parse.in (if_prefix): Don't save c_begin_if_stmt result.
1360 * c-typeck.c (c_begin_if_stmt): Return void.
1361 (c_begin_else): Tidy. Save stmt_count.
1362 * c-tree.h (c_begin_if_stmt): Update decl.
1364 * objc/objc-act.c (objc_build_try_enter_fragment,
1365 objc_build_extract_fragment, objc_build_try_epilogue,
1366 objc_build_catch_stmt, objc_build_catch_epilogue,
1367 objc_build_finally_prologue, objc_build_finally_epilogue): Update
1368 for if builder function changes.
1370 2004-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1372 * config/s390/s390.c (struct machine_function): New member
1374 (s390_frame_info): Add BASE_USED and RETURN_ADDR_USED parameters.
1375 Do not modify machine->save_return_addr_p or regs_ever_live.
1376 Fill in machine->last_restore_gpr.
1377 (s390_optimize_prolog): Use s390_frame_info to compute registers
1378 to save/restore, remove duplicated code.
1379 (s390_arg_frame_offset): Use s390_frame_info to compute frame
1380 size, remove duplicated code.
1381 (s390_emit_prologue): Adapt s390_frame_info call. Update
1382 machine->save_return_addr_p and regs_ever_live.
1383 (s390_emit_epilogue): Use machine->last_restore_gpr instead of
1384 machine->last_save_gpr.
1386 2004-06-16 Richard Henderson <rth@redhat.com>
1388 * c-parse.in (if_stmt_locus): Remove.
1389 (if_prefix): Increment stmt_count; pass it to c_finish_if_cond.
1390 (select_or_iter_stmt): Move empty if warnings to c-typeck.c.
1391 * c-typeck.c (if_elt): Sort by expected size. Rename locus to
1392 empty_locus. Add stmt_count, saw_else.
1393 (c_begin_if_stmt): Push if_stack here.
1394 (c_finish_if_cond): Rename from c_expand_end_cond. Record stmt_count.
1395 (c_finish_then, c_finish_else): Record empty_locus.
1396 (c_begin_else): Rename from c_expand_start_else. Record stmt_count.
1397 (c_finish_if_stmt): Rename from c_expand_end_cond. Warn for empty
1399 * c-tree.h: Update prototypes.
1401 2004-06-16 Steven Bosscher <stevenb@suse.de>
1403 * tree.h (PHI_CHAIN): New.
1404 * (tree-cfg.c, tree-dfa.c, tree-flow-inline.h, tree-into-ssa.c,
1405 tree-outof-ssa.c, tree-phinodes.c, tree-pretty-print.c,
1406 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dom.c, tree-ssa-dse.c,
1407 tree-ssa-live.c, tree-ssa-loop.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
1408 tree-ssa.c, tree-tailcall.c): Use PHI_CHAIN instead of TREE_CHAIN
1409 when traversing a list of PHI_NODEs.
1411 2004-06-16 Bernardo Innocenti <bernie@develer.com>
1414 * config/m68k/m68k.h (TARGET_SWITCHES): Don't remove MASK_68040_ONLY
1416 (TARGET_FLT_EVAL_METHOD): Don't advertise extended precision for
1417 68040 and soft-float.
1418 * config/m68k/m68k.md (truncdfsf2): Explicitly require TARGET_68881
1419 in the TARGET_68040_ONLY case.
1421 2004-06-16 Peter Barada <peter@the-baradas.com>
1423 * config/m68k/m68k.md (movsi_cfv4): New pattern to allow mov3q.
1424 (movsi_cf): Make named, don't match TARGET_CFV4.
1425 (pushexthisi_const): Use mov3q if possible.
1426 (extendhisi2, cvf4_extendhisi2): Split extendhisi2 pattern
1427 to special case mvz.w for ColdFire V4.
1428 (extendqisi2, cvf4_extendqisi2): Split extendhisi2 pattern
1429 to special case mvz.b for ColdFire V4.
1430 (udivmodhi4, divmodhi4): Use mvz to zero extend arg for
1432 (iorsi3, xorsi3, andsi3): Use bitfield instructions if possible.
1433 * config/m68k/m68k.c(valid_mov3q_const): New function.
1434 (const_method): SWAP is valid for ColdFire.
1435 (MULL_COST, MULW_COST): Fix costs for ColdFire V3/V4.
1436 * config/m68k/m68k-protos.h (valid_mov3q_const): Prototype here.
1438 2004-06-16 Richard Henderson <rth@redhat.com>
1440 * c-common.def (CASE_LABEL): Remove.
1441 * c-common.c (c_add_case_label): Use CASE_LABEL, not CASE_LABEL_DECL.
1442 (match_case_to_enum_1): Likewise.
1443 * c-common.h (c_common_stmt_codes): Remove CASE_LABEL.
1444 * c-dump.c (c_dump_tree): Likewise.
1445 * c-gimplify.c (c_gimplify_stmt): Likewise.
1446 * c-pretty-print.c (pp_c_statement): Likewise.
1447 * c-semantics.c (build_case_label): Use CASE_LABEL_EXPR.
1448 * tree.h (CASE_LOW): Update commentary.
1450 2004-06-16 Richard Henderson <rth@redhat.com>
1452 * c-common.def (ASM_STMT): Remove.
1453 * c-common.h (c_common_stmt_codes): Remove ASM_STMT.
1454 * c-dump.c (c_dump_tree): Likewise.
1455 * c-gimplify.c (c_gimplify_stmt): Likewise.
1456 * c-pretty-print.c (pp_c_statement): Likewise.
1457 * c-typeck.c (build_asm_expr): Use ASM_EXPR.
1458 * tree.h: Fix commentary.
1460 2004-06-16 Richard Henderson <rth@redhat.com>
1462 * c-common.def (GOTO_STMT, LABEL_STMT): Remove.
1463 * c-common.c (c_add_case_label): Use LABEL_EXPR.
1464 * c-common.h (GOTO_FAKE_P, LABEL_STMT_LABEL): Remove.
1465 (c_common_stmt_codes): Remove GOTO_STMT, LABEL_STMT.
1466 * c-dump.c (c_dump_tree): Likewise.
1467 * c-gimplify.c (c_gimplify_stmt): Likewise.
1468 * c-pretty-print.c (pp_c_statement): Likewise.
1469 * c-parse.in (stmt): Use GOTO_EXPR.
1470 (label): Use LABEL_EXPR.
1471 * c-semantics.c (build_stmt): Set TREE_TYPE to void.
1472 * tree-inline.c (copy_body_r): Don't build empty BLOCKs.
1474 2004-06-16 J"orn Rennecke <joern.rennecke@superh.com>
1476 * cfgcleanup.c (try_simplify_condjump): Update test to make
1477 sure we have a conditional branch around am unconditional branch.
1479 2004-06-16 Daniel Berlin <dberlin@dberlin.org>
1481 * tree-cfg.c (pass_split_crit_edge): Give it a name and a dump file.
1483 2004-06-16 Dale Johannesen <dalej@apple.com>
1485 * loop.c (loop_givs_reduce): Avoid miscompilation of
1486 loops entered at bottom.
1488 2004-06-16 J"orn Rennecke <joern.rennecke@superh.com>
1490 * cfglayout.c (fixup_reorder_chain): Handle case where the
1491 destination of E_FALL is EXIT_BLOCK_PTR.
1493 2004-06-16 Vladimir Makarov <vmakarov@redhat.com>
1496 * config/ia64/ia64.c (ia64_dfa_new_cycle): Do not insert nops
1497 after shifts before asm.
1499 2004-06-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1501 PR tree-optimization/15993
1502 * tree-ssa-dom.c (thread_across_edge): Do not thread edge if its
1503 destination is unchanged.
1505 2004-06-16 Andreas Jaeger <aj@suse.de>
1507 * doc/install.texi (Configuration): Update description for
1508 --enable-version-specific-runtime-libs.
1510 2004-06-16 Paolo Bonzini <bonzini@gnu.org>
1512 * doc/install.texi: boehm-gc now uses automake 1.8.5.
1514 2004-06-16 Paolo Bonzini <bonzini@gnu.org>
1516 * toplev.h (rest_of_compilation): Adjust prototype.
1518 2004-06-16 Paolo Bonzini <bonzini@gnu.org>
1520 * coverage.c: Remove argument to rest_of_compilation.
1521 * expr.c (execute_expand, set_save_expr_context, pass_expand): New.
1522 * passes.c (rest_of_compilation): Remove argument.
1523 (pass_rest_of_compilation): New.
1524 (rest_of_handle_final, rest_of_handle_delay_slots,
1525 rest_of_handle_stack_regs, rest_of_handle_variable_tracking
1526 rest_of_handle_machine_reorg, rest_of_handle_regrename
1527 rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_gcse2
1528 rest_of_handle_regmove, rest_of_handle_tracer
1529 rest_of_handle_if_conversion, rest_of_handle_if_after_combine
1530 rest_of_handle_web, rest_of_handle_branch_prob
1531 rest_of_handle_value_profile_transformations, rest_of_handle_cfg
1532 rest_of_handle_addressof, rest_of_handle_jump_bypass
1533 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2):
1534 Check that the two arguments are actually superfluous.
1535 * tree-optimize.c (register_dump_files): Add properties argument.
1536 Track validity of passes. Only initialize dump files for
1537 tree-based passes. Store the full set of provided passes in
1539 (init_tree_optimization_passes): Register pass_expand and
1540 pass_rest_of_compilation.
1541 (execute_one_pass): Do not track the presence of required properties
1542 here. Set in_gimple_form. Do not update current_properties.
1543 (current_properties): Remove.
1544 (set_save_expr_context): Remove.
1545 (tree_rest_of_compilation): Do not set in_gimple_form. Do not
1546 expand to RTL here, and do not call rest_of_compilation. Push
1547 GGC context even before gimplification.
1548 * tree-pass.h (PROP_rtl, PROP_trees): New flags.
1549 (pass_expand, pass_rest_of_compilation): Declare.
1551 2004-06-15 Jeff Law <law@redhat.com>
1553 * fold-const.c (swap_tree_comparison): No longer static.
1554 (tree_swap_operands_p): Similarly. Return true if both operands
1555 are SSA_NAMEs and the first operand has a higher version number than
1557 * tree.h (swap_tree_comparison): Prototype.
1558 (tree_swap_operands_p): Prototype.
1559 * tree-ssa-operands.c (get_expr_operands): For commutative
1560 operators and relational comparisons, canonicalize the
1561 order of the operands.
1563 2004-06-15 Richard Henderson <rth@redhat.com>
1565 * c-common.c (lang_gimplify_stmt): Remove next_p argument.
1566 (if_elt, if_stack, if_stack_space, c_expand_start_cond, c_finish_then,
1567 c_expand_end_cond, c_expand_start_else, c_finish_else, c_begin_if_stmt,
1568 c_begin_while_stmt, c_finish_while_stmt_cond): Move to c-typeck.c.
1569 (finish_fname_decls, fname_decl): Use statement_lists.
1570 (c_expand_expr_stmt): Don't set last_expr_type.
1571 (c_type_hash): Fix indentation.
1572 (c_safe_from_p): Don't follow TREE_CHAIN.
1573 (c_tree_chain_matters_p): Remove.
1574 * c-common.def (SCOPE_STMT): Remove.
1575 (CLEANUP_STMT): Redefine to contain its own body.
1576 * c-common.h (struct stmt_tree_s): Remove x_last_stmt,
1577 x_last_expr_type, x_last_expr_filename, x_scope_stmt_stack.
1578 Add x_cur_stmt_list.
1579 (last_tree, last_expr_type, last_expr_filename, RECHAIN_STMTS): Remove.
1580 (cur_stmt_list): New.
1581 (STATEMENT_LIST_STMT_EXPR): New.
1582 (SCOPE_BEGIN_P, SCOPE_END_P, SCOPE_STMT_BLOCK, SCOPE_NULLIFIED_P,
1583 SCOPE_NO_CLEANUPS_P, SCOPE_PARTIAL_P, NEW_FOR_SCOPE_P): Remove.
1584 (CLEANUP_BODY): New.
1585 (CLEANUP_DECL): Move to operand 2.
1586 (c_common_stmt_codes): Remove SCOPE_STMT.
1587 (COMPOUND_STMT_NO_SCOPE, COMPOUND_STMT_BODY_BLOCK): Remove.
1588 * c-decl.c (c_scope_stmt_stack, current_scope_stmt_stack): Remove.
1589 (c_push_function_context, c_pop_function_context): Don't save it.
1590 (finish_decl): Set TREE_USED on the decl for a cleanup.
1592 (store_parm_decls): Use statement lists.
1593 (finish_function): Remove compstmt rule workaround. Use statement
1594 lists. Call finish_fname_decls after finalizing the body.
1595 (c_begin_compound_stmt): Move to c-typeck.c.
1596 * c-dump.c (c_dump_tree): Remove SCOPE_STMT.
1597 * c-gimplify.c (gimplify_cleanup_stmt, gimplify_cleanup_stmts): New.
1598 (c_genericize): Invoke them.
1599 (c_gimplify_stmt): Don't look through TREE_CHAIN. Kill SCOPE_STMT.
1600 (c_build_bind_expr): Export.
1601 (gimplify_block, gimplify_cleanup): Remove.
1602 (gimplify_condition): Use gimplify_stmt.
1603 (gimplify_for_stmt): Remove FOR_INIT_STMT chaining hack.
1604 (gimplify_if_stmt): Remove recursion hack.
1605 (c_gimplify_expr): Remove STMT_EXPR handling.
1606 (stmt_expr_last_stmt, gimplify_stmt_expr): Remove.
1607 (is_last_stmt_of_scope): Remove.
1608 * c-lang.c (LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P): Remove.
1609 * c-mudflap.c (mflang_flush_calls): Use c_begin_compound_stmt,
1610 c_end_compound_stmt.
1611 * c-objc-common.c (build_cdtor): Likewise.
1612 * c-parse.in (primary): Use c_finish_stmt_expr.
1613 (push_scope, pop_scope): Remove.
1614 (c99_block_start, compstmt_start): Use c_begin_compound_stmt.
1615 (c99_block_end, compstmt): Use c_end_compound_stmt.
1616 (c99_block_lineno_labeled_stmt): Likewise.
1617 (compstmt_primary_start): Use c_begin_stmt_expr.
1618 (simple_if, select_or_iter_stmt): Update calls to stmt builders.
1619 (do_stmt_start): Fill in body directly.
1620 (lineno_stmt): Avoid setting lineno on constants.
1621 * c-pretty-print.c (pp_c_statement): Handle STATEMENT_LIST.
1623 * c-semantics.c (begin_stmt_tree): Remove.
1624 (push_stmt_list, re_push_stmt_list, pop_stmt_list): New.
1625 (add_stmt): Use statement lists.
1626 (add_scope_stmt, finish_stmt_tree): Remove.
1627 (push_cleanup): New.
1628 * c-tree.h: Move some decls from c-common.h.
1629 * c-typeck.c (c_tree_expr_nonnegative_p): Simplify for statement lists.
1630 (do_case, c_finish_case): Likewise.
1631 (c_finish_then): Take body for then as argument.
1632 (c_finish_else): Similarly.
1633 (c_begin_for_stmt, c_finish_for_stmt_init, c_finish_for_stmt_cond,
1634 c_finish_for_stmt_incr, c_finish_for_stmt): New.
1635 (c_begin_stmt_expr, c_finish_stmt_expr): New.
1636 (c_begin_compound_stmt): Do scope management.
1637 (c_end_compound_stmt): New.
1638 * fold-const.c (tree_expr_nonnegative_p): Fix BIND_EXPR.
1639 * gimplify.c (voidify_wrapper_expr): Accept temporary argument.
1640 Look through exception handling constructs.
1641 (gimplify_bind_expr): Accept temporary argument.
1642 (gimplify_target_expr): Special case BIND_EXPR bodies.
1643 (gimplify_expr): Handle fallback == fb_none like a statement.
1644 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P): Kill.
1645 * langhooks.c (lhd_tree_inlining_tree_chain_matters_p): Remove.
1646 * langhooks.h (tree_chain_matters_p): Remove.
1647 * stub-objc.c (objc_clear_super_receiver): New.
1648 * tree-gimple.h (voidify_wrapper_expr): Update decl.
1649 (append_to_statement_list, append_to_statement_list_force): Move
1651 * tree-inline.c (expand_call_inline): Update call.
1652 (clone_body): Use statement lists.
1653 (walk_tree): Don't check tree_chain_matters_p.
1654 (copy_tree_r): Likewise.
1655 * tree-iterator.c (alloc_stmt_list): Clear lang bits.
1656 (tsi_link_before, tsi_link_after): Set TREE_SIDE_EFFECTS properly.
1657 * tree-iterator.h (append_to_statement_list,
1658 append_to_statement_list_force): Moved from tree-gimple.h.
1659 * tree-pretty-print.c (dump_generic_node): Clean up TARGET_EXPR dump.
1660 * objc/objc-act.c (build_module_descriptor): Use c_begin_compound_stmt.
1661 (objc_enter_block): Likewise.
1662 (objc_exit_block): Use c_end_compound_stmt.
1663 (objc_build_try_enter_fragment): Add #error and comment for
1664 rewriting for OBJCPLUS.
1665 (objc_build_extract_fragment, objc_build_try_epilogue,
1666 objc_build_catch_stmt, objc_build_finally_prologue,
1667 objc_build_finally_epilogue): Update for C statement builders.
1668 * objc/objc-lang.c (LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P):
1671 2004-06-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1673 * df.c (df_reg_clobber_gen): Removed.
1674 (df_bb_rd_local_compute, df_insn_refs_record, df_rd_local_compute):
1675 Make more effective for hard regs.
1676 * ra-build.c (livethrough_conflicts_bb): Check contains_call.
1678 2004-06-15 Alexandre Oliva <aoliva@redhat.com>
1680 * c-pragma.h (c_lex_string_translate): Change type to int.
1681 * c-parse.in: Change all assignments of c_lex_string_translate
1682 to true and false to 1 and 0.
1683 * c-lex.c (c_lex_string_translate): Likewise.
1684 (lex_string): Convert string without translation in the -1
1687 2004-06-15 Mark G. Adams <mark.g.adams@sympatico.ca>
1689 * convert.h: Add include guards
1691 2004-06-15 Daniel Berlin <dberlin@dberlin.org>
1693 * tree-flow-inline.h: Document all functions.
1695 2004-06-15 Daniel Berlin <dberlin@dberlin.org>
1697 * tree-flow-inline.h (stmt_ann): Remove use of is_essa_node.
1698 * tree-dfa.c (create_stmt_ann): Ditto.
1699 * tree-pretty-print.c (dump_generic_node): Remove E* node handling.
1700 * tree-inline.c (estimate_num_insns_1): Ditto.
1701 * tree.c (tree_size): Ditto.
1702 (make_node_stat): Ditto.
1703 (tree_node_structure): Ditto.
1704 (ephi_node_elt_check_failed): Remove.
1705 (is_essa_node): Ditto.
1706 * tree.def (EPHI_NODE): Ditto.
1707 (EEXIT_NODE): Ditto.
1709 (EKILL_NODE): Ditto.
1710 * tree.h (EREF_NODE_CHECK): Remove.
1711 (EPHI_NODE_ELT_CHECK): Ditto.
1712 (struct tree_eref_common): Ditto.
1713 (struct tree_euse_node): Ditto.
1714 (struct ephi_arg_d): Ditto.
1715 (struct tree_ephi_node): Ditto.
1716 (ephi_node_elt_check_failed): Remove prototype.
1717 (is_essa_node): Ditto.
1718 (enum tree_node_structure_enum): Remove TS_E*_NODE.
1719 (union tree_node): Remove E*_NODE uses.
1721 2004-06-15 Jerry Quinn <jlquinn@optonline.net>
1723 * alias.c (record_set, record_base_value, canon_rtx, get_addr,
1724 nonlocal_mentioned_p_1, init_alias_analysis): Use REG_P.
1725 * bt-load.c (find_btr_reference, insn_sets_btr_p, note_btr_set):
1727 * builtins.c (expand_builtin_setjmp, expand_builtin_apply,
1728 expand_builtin_mathfn, expand_builtin_strlen, expand_builtin_memcmp,
1729 expand_builtin_strcmp, expand_builtin_strncmp,
1730 expand_builtin_frame_address): Likewise.
1731 * caller-save.c (mark_set_regs, add_stored_regs, mark_referenced_regs,
1732 insert_one_insn): Likewise.
1733 * calls.c (prepare_call_address, precompute_register_parameters,
1734 precompute_arguments, expand_call, emit_library_call_value_1): Likewise.
1735 * cfganal.c (flow_active_insn_p): Likewise.
1736 * combine.c (set_nonzero_bits_and_sign_copies, can_combine_p,
1737 combinable_i3pat, try_combine, find_split_point, COMBINE_RTX_EQUAL_P,
1738 subst, combine_simplify_rtx, simplify_if_then_else, simplify_set,
1739 make_extraction, recog_for_combine, gen_lowpart_for_combine,
1740 simplify_comparison, record_dead_and_set_regs_1,
1741 record_dead_and_set_regs, record_promoted_value,
1742 check_promoted_subreg, get_last_value_validate, get_last_value,
1743 reg_dead_at_p_1, reg_bitfield_target_p, distribute_notes,
1744 unmentioned_reg_p_1): Likewise.
1745 * conflict.c (mark_reg): Likewise.
1746 * cse.c (HASH, COST, COST_IN, approx_reg_cost_1, notreg_cost,
1747 mention_regs, insert_regs, lookup, lookup_for_remove, insert,
1748 merge_equiv_classes, flush_hash_table, invalidate,
1749 remove_invalid_refs, remove_invalid_subreg_refs, rehash_using_reg,
1750 invalidate_for_call, use_related_value, canon_hash, exp_equiv_p,
1751 cse_rtx_varies_p, canon_reg, find_best_addr, fold_rtx, equiv_constant,
1752 record_jump_cond, cse_insn, addr_affects_sp_p,
1753 invalidate_from_clobbers, cse_process_notes, cse_around_loop,
1754 cse_set_around_loop, count_reg_usage, set_live_p, cse_change_cc_mode,
1755 cse_cc_succs, cse_condition_code_reg): Likewise.
1756 * cselib.c (cselib_reg_set_mode, rtx_equal_for_cselib_p,
1757 cselib_lookup, cselib_invalidate_regno, cselib_invalidate_rtx,
1758 cselib_record_set, cselib_record_sets): Likewise.
1759 * dbxout.c (dbxout_symbol_location, dbxout_parms, dbxout_reg_parms,
1760 dbxout_block): Likewise.
1761 * df.c (df_ref_record, df_def_record_1, df_uses_record): Likewise.
1762 * dojump.c (do_jump): Likewise.
1763 * dwarf2out.c (dwarf2out_frame_debug_expr, is_pseudo_reg,
1764 is_based_loc, rtl_for_decl_location): Likewise.
1765 * emit-rtl.c (set_reg_attrs_for_parm, set_decl_rtl,
1766 set_decl_incoming_rtl, mark_user_reg): Likewise.
1767 * explow.c (copy_all_regs, copy_all_regs, memory_address, force_reg,
1768 copy_to_suggested_reg, allocate_dynamic_stack_space,
1769 probe_stack_range, hard_function_value): Likewise.
1770 * expmed.c (store_bit_field, store_fixed_bit_field,
1771 store_split_bit_field, extract_bit_field, extract_fixed_bit_field,
1772 extract_split_bit_field, expand_divmod, emit_store_flag_force):
1774 * expr.c (convert_move, convert_modes,
1775 block_move_libcall_safe_for_call_parm, emit_group_load, use_reg,
1776 use_group_regs, emit_move_insn, emit_move_insn_1,
1777 compress_float_constant, push_block, emit_single_push_insn,
1778 emit_push_insn, get_subtarget, expand_assignment, store_expr,
1779 store_constructor, store_field, force_operand, safe_from_p,
1780 expand_expr_real_1, expand_increment, do_store_flag, do_tablejump):
1782 * final.c (profile_function, final_scan_insn, alter_subreg,
1783 get_mem_expr_from_op, output_asm_operand_names, output_operand,
1784 only_leaf_regs_used, leaf_renumber_regs_insn): Likewise.
1785 * flow.c (verify_wide_reg_1, mark_regs_live_at_end,
1786 find_regno_partial, propagate_one_insn, init_propagate_block_info,
1787 insn_dead_p, libcall_dead_p, mark_set_1, not_reg_cond,
1788 attempt_auto_inc, find_auto_inc, mark_used_regs,
1789 count_or_remove_death_notes_bb): Likewise.
1790 * function.c (find_temp_slot_from_address, update_temp_slot_address,
1791 preserve_temp_slots, put_var_into_stack, fixup_var_refs_insn,
1792 fixup_var_refs_1, fixup_stack_1, optimize_bit_field, flush_addressof,
1793 put_addressof_into_stack, purge_addressof_1, insns_for_mem_walk,
1794 purge_single_hard_subreg_set, instantiate_decl,
1795 instantiate_virtual_regs_1, aggregate_value_p, assign_parms,
1796 promoted_input_arg, setjmp_vars_warning, setjmp_args_warning,
1797 setjmp_protect, setjmp_protect_args, fix_lexical_addr,
1798 expand_function_start, diddle_return_value, clobber_return_register,
1799 expand_function_end, keep_stack_depressed, handle_epilogue_set,
1800 update_epilogue_consts): Likewise.
1801 * genemit.c (gen_exp, gen_insn): Likewise.
1802 * genrecog.c (make_insn_sequence): Likewise.
1803 * global.c (global_conflicts, expand_preferences, mark_reg_store,
1804 mark_reg_conflicts, set_preference, reg_becomes_live,
1805 build_insn_chain, mark_reg_change): Likewise.
1806 * haifa_sched.c (CONST_BASED_ADDRESS_P, find_set_reg_weight):
1808 * ifcvt.c (noce_try_abs, noce_get_condition, noce_process_if_block):
1810 * integrate.c (copy_rtx_and_substitute, try_constants,
1811 subst_constants, mark_stores, allocate_initial_values): Likewise.
1812 * jump.c (reversed_comparison_code_parts, delete_prior_computation,
1813 delete_computation, rtx_renumbered_equal_p, true_regnum,
1814 reg_or_subregno): Likewise.
1815 * lcm.c (reg_dies, reg_becomes_live): Likewise.
1816 * local-alloc.c (validate_equiv_mem_from_store, validate_equiv_mem,
1817 update_equiv_regs, no_equiv, block_alloc, combine_regs, reg_is_set,
1818 wipe_dead_reg, no_conflict_p): Likewise.
1819 * loop-iv.c (simple_reg_p, simple_set_p, kill_sets,
1820 iv_get_reaching_def, iv_analyze_biv, altered_reg_used, mark_altered,
1821 simple_rhs_p, simplify_using_assignment, implies_p): Likewise.
1822 * loop.c (scan_loop, combine_movables, rtx_equal_for_loop_p,
1823 move_movables, note_set_pseudo_multiple_uses, consec_sets_invariant_p,
1824 find_single_use_in_loop, count_one_set, loop_bivs_init_find,
1825 loop_givs_rescan, check_insn_for_bivs, check_insn_for_givs,
1826 valid_initial_value_p, simplify_giv_expr, consec_sets_giv,
1827 loop_regs_update, check_dbra_loop, maybe_eliminate_biv,
1828 maybe_eliminate_biv_1, record_initial, update_reg_last_use,
1829 canonicalize_condition, loop_regs_scan, load_mems, try_copy_prop,
1830 try_swap_copy_prop): Likewise.
1831 * optabs.c (expand_binop, expand_vector_binop, expand_vector_unop,
1832 expand_abs, emit_no_conflict_block, emit_libcall_block, expand_float):
1834 * postreload.c (reload_cse_simplify, reload_cse_simplify_set,
1835 reload_cse_simplify_operands, reload_combine,
1836 reload_combine_note_store, reload_combine_note_use,
1837 reload_cse_move2add, move2add_note_store): Likewise.
1838 * print-rtl.c (print_rtx): Likewise.
1839 * ra-build.c (copy_insn_p, remember_move, init_one_web_common,
1840 contains_pseudo, handle_asm_insn): Likewise.
1841 * ra-debug.c (ra_print_rtx_object, dump_constraints,
1842 dump_static_insn_cost): Likewise.
1843 * ra-rewrite.c (slots_overlap_p, emit_colors,
1844 remove_suspicious_death_notes): Likewise.
1845 * recog.c (validate_replace_rtx_1, find_single_use_1, find_single_use,
1846 register_operand, scratch_operand, nonmemory_operand,
1847 constrain_operands): Likewise.
1848 * reg-stack (check_asm_stack_operands, remove_regno_note,
1849 emit_swap_insn, swap_rtx_condition, subst_stack_regs_pat,
1850 subst_asm_stack_regs): Likewise.
1851 * regclass.c (scan_one_insn, record_reg_classes, copy_cost,
1852 record_address_regs, reg_scan_mark_refs): Likewise.
1853 * regmove.c (discover_flags_reg, replacement_quality,
1854 copy_src_to_dest, reg_is_remote_constant_p, regmove_optimize,
1855 fixup_match_1): Likewise.
1856 * regrename.c (note_sets, clear_dead_regs, build_def_use, kill_value,
1857 kill_set_value, copyprop_hardreg_forward_1): Likewise.
1858 * reload.c (MATCHES, push_secondary_reload, find_reusable_reload,
1859 reload_inner_reg_of_subreg, can_reload_into, push_reload,
1860 combine_reloads, find_dummy_reload, hard_reg_set_here_p,
1861 operands_match_p, decompose, find_reloads, find_reloads_toplev,
1862 find_reloads_address, subst_indexed_address, find_reloads_address_1,
1863 find_reloads_subreg_address, find_replacement,
1864 refers_to_regno_for_reload_p, reg_overlap_mentioned_for_reload_p,
1865 refers_to_mem_for_reload_p, find_equiv_reg, regno_clobbered_p): Likewise.
1866 * reload1.c (replace_pseudos_in, reload, calculate_needs_all_insns,
1867 find_reg, delete_dead_insn, alter_reg, eliminate_regs,
1868 elimination_effects, eliminate_regs_in_insn, scan_paradoxical_subregs,
1869 forget_old_reloads_1, reload_reg_free_for_value_p, choose_reload_regs,
1870 emit_input_reload_insns, emit_output_reload_insns, do_input_reload,
1871 do_output_reload, emit_reload_insns, gen_reload,
1872 delete_address_reloads_1, inc_for_reload): Likewise.
1873 * reorg.c (update_reg_dead_notes, fix_reg_dead_note,
1874 update_reg_unused_notes, fill_slots_from_thread): Likewise.
1875 * resource.c (update_live_status, mark_referenced_resources,
1876 mark_set_resources, mark_target_live_regs): Likewise.
1877 * rtlanal.c (nonzero_address_p, get_jump_table_offset,
1878 global_reg_mentioned_p_1, reg_mentioned_p, reg_referenced_p,
1879 reg_set_p, set_noop_p, find_last_value, refers_to_regno_p,
1880 note_stores, dead_or_set_p, dead_or_set_regno_p, find_regno_note,
1881 find_reg_fusage, find_regno_fusage, replace_regs, regno_use_in,
1882 parms_set, find_first_parameter_load, keep_with_call_p,
1883 hoist_test_store, hoist_update_store, address_cost, nonzero_bits1,
1884 num_sign_bit_copies1): Likewise.
1885 * rtlhooks.c (gen_lowpart_general): Likewise.
1886 * sched-deps.c (deps_may_trap_p, sched_analyze_1, sched_analyze_insn,
1887 sched_analyze): Likewise.
1888 * sched-rgn.c (check_live_1, update_live_1, sets_likely_spilled_1):
1890 * sdbout.c (sdbout_symbol, sdbout_parms, sdbout_reg_parms): Likewise.
1891 * simplify-rtx.c (simplify_replace_rtx, simplify_unary_operation,
1892 simplify_binary_operation, simplify_const_relational_operation,
1893 simplify_subreg): Likewise.
1894 * stmt.c (decl_conflicts_with_clobbers_p, expand_asm_operands,
1895 expand_end_stmt_expr, expand_return, expand_decl,
1896 expand_anon_union_decl): Likewise.
1897 * unroll.c (precondition_loop_p, calculate_giv_inc, copy_loop_body,
1898 find_splittable_regs, find_splittable_givs, find_common_reg_term,
1899 loop_iterations): Likewise.
1900 * var-tracking.c (variable_union, variable_part_different_p,
1901 variable_different_p, count_uses, add_uses, add_stores,
1902 compute_bb_dataflow, set_variable_part, delete_variable_part,
1903 emit_notes_in_bb, vt_get_decl_and_offset, vt_add_function_parameters):
1905 * varasm.c (assemble_variable): Likewise.
1907 2004-06-15 Chris Demetriou <cgd@broadcom.com>
1909 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove
1911 * config/mips/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove
1912 #undef and #if 0'd definition.
1914 2004-06-15 J"orn Rennecke <joern.rennecke@superh.com>
1916 * combine.c (distribute_notes): Comment typo fix.
1918 2004-06-15 Roger Sayle <roger@eyesopen.com>
1920 * expmed.c (synth_mult): Mask bits of the multiplier to the
1921 machine mode of the multiplication. Don't consider shifts
1922 by more than (or equal to) the width of the operation's mode.
1924 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1926 * doc/install.texi: Yet another update for autoconf
1927 and automake versions.
1929 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1931 * function.h (struct function): Remove cannot_inline field.
1932 (current_function_cannot_inline): Remove.
1933 * passes.c (rest_of_compilation): Reset DECL_DEFER_OUTPUT.
1934 Simplify conditionals to ignore warn_return_type.
1935 * tree-optimize.c (tree_rest_of_compilation): Do not reset
1937 * objc/objc-act.c (build_module_descriptor, finish_method_def):
1938 Do not set current_function_cannot_inline.
1940 2004-06-15 J"orn Rennecke <joern.rennecke@superh.com>
1942 * cfglayout.c (fixup_reorder_chain): Handle case where the
1943 destination of E_TAKEN is EXIT_BLOCK_PTR.
1945 2004-06-15 Diego Novillo <dnovillo@redhat.com>
1947 * tree-ssa-copy.c (cprop_into_successor_phis): Fix typo.
1949 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1951 * fold-const.c (operand_equal_p): Update comment.
1953 2004-06-15 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1955 * config/m32r/m32r.h (RETURN_ADDR_RTX): Define.
1956 (INCOMING_RETURN_ADDR_RTX): Define.
1957 * config/m32r/m32r-protos.h (m32r_return_addr): Added.
1958 * config/m32r/m32r.c (m32r_exppand_prologue): Changed for
1959 __builtin_return_address(0).
1960 (m32r_return_addr): Added for __builtin_return_address(0).
1961 (m32r_reload_lr): Ditto.
1963 * longlong.h: Fix macros for m32r add_ssaaaa and sub_ddmmss.
1965 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1967 * doc/install.texi (Prerequisites): Update libbanshee,
1968 fastjar, libcpp, libjava/libltdl entries to
1971 2004-06-15 Eric Botcazou <ebotcazou@act-europe.fr>
1972 Olivier Hainque <hainque@act-europe.fr>
1974 * function.c (fixup_var_refs): Also adjust the start of sequence
1975 after fixing up the insns.
1977 2004-06-15 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1979 * gccbug.in: Update optimization -> tree-optimization/rtl-optimization.
1981 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
1983 * doc/install.texi (Prerequisites): Update libstdc++ entry to
1986 2004-06-14 Eric Christopher <echristo@redhat.com>
1988 * config/s390/s390.h (TARGET_SWITCHES): Change -mtpf (-mno-tpf)
1989 to -mtpf-trace (-mno-tpf-trace).
1990 * doc/invoke.texi (S/390 and zSeries Options): Add tpf option
1993 2004-06-14 Eric Botcazou <ebotcazou@libertysurf.fr>
1995 * real.c: Fix bit count in head comment.
1997 2004-06-14 Jeff Law <law@redhat.com>
1999 * tree-ssa.c (kill_redundant_phi_nodes): More correctly handle
2000 PHIs where the destination or an argument is marked with
2001 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2003 2004-06-14 Jakub Jelinek <jakub@redhat.com>
2006 * simplify-rtx.c (simplify_binary_operation): Don't optimize out
2007 Inf + -Inf, Inf - Inf, Inf / Inf and 0 * Inf if flag_trapping_math.
2009 2004-06-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2011 * opts.sh (var_args): Fix regexp.
2013 2004-06-14 Jakub Jelinek <jakub@redhat.com>
2016 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
2018 2004-06-14 Paul Brook <paul@codesourcery.com>
2020 * dwarf2out.c (output_call_frame_info): Support dwarf3 cie entries.
2022 2004-06-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2024 * Makefile.in (FLAGS_H): New.
2025 (flags.h): Replace by FLAGS_H.
2026 * c.opt: Document Var, VarExists, Init and Report attributes.
2027 * common.opt: Fill the values of the attributes.
2028 * diagnostic.c (flag_fatal_errors): Do not define.
2029 * except.c (flag_non_call_exceptions): Do not define.
2030 * flags.h: Include options.h. Remove declarations conflicting with
2031 the automatically defined ones.
2032 * opts.c: Remove automatically defined variables.
2033 (handle_option): Perform default initialization.
2034 (common_handle_option): Do not handle options covered by the
2035 default initialization.
2036 * opts.h (struct cl_option): Add flag_var, has_set_value and set_value
2039 * opts.sh: Generate variable declarations, handle CL_REPORT.
2040 * toplev.c: Remove automatically defined variables.
2041 (f_options): Removed.
2042 (print_switch_values): Use cl_options instead of f_options.
2043 * toplev.h (version_flag): Declaration removed.
2045 2004-06-14 Ian Lance Taylor <ian@wasabisystems.com>
2047 * config/sparc/sparc.h: Correct comment about availability of
2048 little endian option.
2050 * config.gcc: Remove sparc64-*-aout*.
2051 * config/sparc/sparc.c (sparc_aout_select_rtx_section): Remove.
2052 * config/sparc/sp64-aout.h: Remove.
2053 * config/sparc/aout.h: Remove.
2055 2004-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2057 * config/s390/s390.c: Include "tree-gimple.h".
2058 (s390_gimplify_va_arg): New function.
2059 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
2060 (s390_va_arg): Remove.
2061 * config/s390/s390-protos.h (s390_va_arg): Remove.
2062 * config/s390/s390.h (EXPAND_BUILTIN_VA_ARG): Call abort ().
2064 2004-06-14 J"orn Rennecke <joern.rennecke@superh.com>
2066 * basic-block.h (could_fall_through): Declare.
2067 * cfganal.c (can_fallthru): Succeed if the target is EXIT_BLOCK_PTR.
2068 Fail if the source already has a fallthrough edge to the exit
2070 (could_fall_through): New function.
2071 * cfgbuild.c (make_edges): Check if we already have a fallthrough
2072 edge to the exit block pointer.
2073 * cfglayout.c (fixup_fallthru_exit_predecessor): Check that it is
2074 not called before reload has completed.
2075 Handle special case of first block having a fall-through exit edge.
2076 (cfg_layout_finalize): Don't call it before reload or if we have
2078 (fixup_reorder_chain): A fall through to the exit block does not
2079 require the block to come last. Add sanity checks.
2080 * cfgrtl.c (rtl_split_edge): Add special handling of fall through
2081 edges to the exit block.
2082 * function.c (cfglayout.h): #include.
2083 (thread_prologue_and_epilogue_insns): If we have neither return nor
2084 epilogue, but a fall through to the exit block from mid-function,
2085 force a non-fall-through exit.
2086 * Makefile.in (function.o): Depend on CFGLAYOUT_H.
2088 2004-06-14 Alan Modra <amodra@bigpond.net.au>
2090 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Handle -mpowerpc64 and -mcpu
2091 for power5 and rs64a. Correct condition for default. Correct power3,
2092 620, 630, 7400, 7450, G4, 970 and G5 -mcpu entries. Add -many.
2094 2004-06-13 Steven Bosscher <stevenb@suse.de>
2096 * gcse.c (hash_scan_set, hash_scan_insn, mark_set, mark_oprs_set):
2097 Revert previous change, don't use CALL_P.
2099 2004-06-13 Jason Merrill <jason@redhat.com>
2101 * tree.h: Move std_gimplify_va_arg_expr protoype here.
2102 * tree-gimple.h: From here.
2104 2004-06-13 Daniel Berlin <dberlin@dberlin.org>
2106 Fix PR tree-optimization/15979
2107 Fix PR tree-optimization/15981
2108 * tree-ssa-pre.c (insert_aux): Fix faulty logic so that we don't
2109 try to insert values undefined along some path.
2111 2004-06-13 Daniel Berlin <dberlin@dberlin.org>
2113 * tree-ssa-pre.c (add_to_value): is_gimple_min_invariant things
2114 are available everywhere too.
2116 2004-06-13 Andrew Pinski <pinskia@physics.uc.edu>
2118 * fold-const.c (fold_checksum_tree <case 't'>): Only
2119 look at TREE_VALUES if the EXPR is an ENUMERAL_TYPE.
2120 Only look at TYPE_MIN_VALUE and TYPE_MAX_VALUE if
2121 EXPR is an INTEGERAL_TYPE or a scalar float type.
2123 2004-06-13 Diego Novillo <dnovillo@redhat.com>
2125 * tree-sra.c (tree_sra): Update documentation.
2127 2004-06-13 Joseph S. Myers <jsm@polyomino.org.uk>
2129 * c-typeck.c (comptypes, tagged_types_tu_compatible_p,
2130 function_types_compatible_p, type_lists_compatible_p): Remove
2132 * c-tree.h (comptypes): Likewise.
2133 (COMPARE_STRICT): Remove.
2134 * c-decl.c, c-lang.c, c-parse.in, c-typeck.c, objc/objc-act.c: All
2137 2004-06-13 Eric Christopher <echristo@redhat.com>
2139 * c-decl.c (diagnose_mismatched_decls): Improve error message.
2141 * c-typeck.c (comptypes): Add location in standard we're checking.
2143 2004-06-13 Kaz Kojima <kkojima@gcc.gnu.org>
2145 * config/sh/libgcc-std.ver: Add __unorddf2 and __unordsf2 with
2148 2004-06-12 Roger Sayle <roger@eyesopen.com>
2150 * expmed.c (shift_cost, shiftadd_cost, shiftsub_cost): Additionally
2151 index by machine mode.
2152 (init_expmed): Initialize shift_cost, shiftadd_cost and shiftsub_cost
2153 tables inside the loop over machine modes.
2154 (synth_mult, expand_mult_highpart_optab, expand_mult_highpart,
2155 expand_divmod): Index shift*_cost by the appropriate machine mode.
2157 2004-06-12 Eric Christopher <echristo@redhat.com>
2159 * config/s390/s390.h: Rename TARGET_TPF to TARGET_TPF_PROFILING.
2160 * config/s390/s390.md: Ditto.
2161 * config/s390/s390.c: Ditto.
2162 (s390_frame_info): Conditionalize frame and setup info on
2163 TARGET_TPF_PROFILING.
2164 (s390_arg_frame_offset): Ditto.
2166 2004-06-12 Roger Sayle <roger@eyesopen.com>
2168 * fold-const.c (omit_two_operands): New function.
2169 * tree.h (omit_two_operands): Prototype here.
2170 * builtins.c (fold_builtin_unordered_cmp): New function to lower
2171 C99 unordered comparison builtins to the appropriate tree nodes.
2172 (fold_builtin_1): Use fold_builtin_unordered_cmp to lower
2173 BUILT_IN_ISGREATER, BUILT_IN_ISGREATEREQUAL, BUILT_IN_ISLESS,
2174 BUILT_IN_ISLESSEQUAL and BUILT_IN_ISLESSGREATER. Manually lower
2175 BUILT_IN_ISUNORDERED comparisons to an UNORDERED_EXPR tree node.
2176 (simplify_builtin_memcmp, simplify_builtin_strncmp,
2177 simplify_builtin_strncat, simplify_builtin_strspn): Use the new
2178 omit_two_operands function to build the required COMPOUND_EXPRs.
2180 2004-06-12 Steven Bosscher <stevenb@suse.de>,
2181 Andreas Jaeger <aj@suse.de>
2183 * gcse.c (record_set_info): Use predicates like REG_P.
2184 (mems_conflict_for_gcse_p): Likewise.
2185 (load_killed_in_block_p): Likewise.
2186 (hash_expr_1): Likewise.
2187 (insert_set_in_table): Likewise.
2188 (gcse_constant_p): Likewise.
2189 (hash_scan_set): Likewise.
2190 (hash_scan_insn): Likewise.
2191 (canon_list_insert): Likewise.
2192 (record_last_mem_set_info): Likewise.
2193 (record_last_set_info): Likewise.
2194 (compute_hash_table_work): Likewise.
2195 (mark_set): Likewise.
2196 (mark_clobber): Likewise.
2197 (mark_oprs_set): Likewise.
2198 (compute_transp): Likewise.
2199 (find_avail_set): Likewise.
2200 (cprop_insn): Likewise.
2201 (do_local_cprop): Likewise.
2203 (find_implicit_sets): Likewise.
2204 (find_bypass_set): Likewise.
2205 (bypass_conditional_jumps): Likewise.
2206 (insert_insn_end_bb): Likewise.
2207 (pre_insert_copy_insn): Likewise.
2208 (compute_transpout): Likewise.
2209 (next_ls_expr): Likewise.
2210 (invalidate_any_buried_refs): Likewise.
2211 (compute_ld_motion_mems): Likewise.
2212 (reg_set_info): Likewise.
2213 (reg_clear_last_set): Likewise.
2214 (find_moveable_store): Likewise.
2215 (compute_store_table): Likewise.
2216 (find_loads): Likewise.
2217 (store_killed_in_insn): Likewise.
2218 (insert_insn_start_bb): Likewise.
2219 (reg_set_between_after_reload_p): Likewise.
2220 (reg_used_between_after_reload_p): Likewise.
2221 (is_jump_table_basic_block): Likewise.
2222 (gcse_after_reload): Likewise.
2223 (hash_scan_set_after_reload): Likewise.
2224 (compute_hash_table_after_reload): Likewise.
2226 2004-06-12 Steven Bosscher <stevenb@suse.de>
2228 * rtl.h (MEM_P, NONJUMP_INSN_P, CALL_INSN_P): New predicates.
2229 (INSN_P): Don't look at the rtx code class, just explicitly
2230 check for one of the tree RTX_INSN codes.
2232 2004-06-11 Zack Weinberg <zack@codesourcery.com>
2234 * c-typeck.c (default_function_array_conversion): Use
2235 build_pointer_type not TYPE_POINTER_TO.
2237 2004-06-11 Zack Weinberg <zack@codesourcery.com>
2239 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
2240 * configure, config.in: Regenerate.
2241 * system.h: Unconditionally define bool as unsigned char,
2242 BOOL_BITFIELD as unsigned int.
2243 * domwalk.h: Use BOOL_BITFIELD.
2245 2004-06-12 Andreas Jaeger <aj@suse.de>
2247 * libgcc-std.ver: Add __unorddf2 and __unordsf2 with version 3.3.4.
2248 * libgcc-darwin.ver: Likewise.
2250 2004-06-12 Peter Jakubek <peter@laseranimation.com>
2252 * reload.c (find_reloads): Force reload for pseudo registers on big
2255 2004-06-11 Steven Bosscher <stevenb@suse.de>
2257 * tree-ssa-dce.c (mark_control_dependent_edges_necessary):
2258 Don't try to mark anything control dependent on the entry or
2261 2004-06-11 Daniel Berlin <dberlin@dberlin.org>
2265 * tree.h (SSA_NAME_VALUE): New macro.
2266 (struct tree_ssa_name): Add value_handle member.
2267 * tree-ssa-pre.c: Replaced.
2268 * tree-flow.h (tree_ann_type): Add CST_ANN, EXPR_ANN.
2269 (struct cst_ann_d): New.
2270 (struct expr_ann_d): New.
2271 (union tree_ann_d): Add cst_ann, expr_ann.
2272 * tree-dfa.c (create_cst_ann): New function.
2273 (create_expr_ann): Ditto.
2274 * tree-flow-inline.h (cst_ann): New function.
2276 (get_cst_ann): Ditto.
2277 (get_expr_ann): Ditto..
2279 2004-06-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2281 * pa.c (pa_hpux_init_libfunc): Add support for unord_optab.
2282 * pa/quadlib.c (enum qfcmp_magic): Define magic values for call to
2283 _U_Qfcmp library function.
2284 (_U_Qfltgt, _U_Qfunle, _U_Qfunlt, _U_Qfunge, _U_Qfungt, _U_Qfuneq,
2285 _U_Qfunord, _U_Qford): Add more TFmode builtin compare functions.
2287 * pa.c (legitimize_pic_address): Use UNSPEC_DLTIND14R to identify
2288 unspec used for loading address from DLT.
2289 * pa.md: Define constants for the uses of UNSPEC and UNSPEC_VOLATILE.
2290 Change all users of UNSPEC and UNSPEC_VOLATILE to use new constants.
2291 Don't use short code sequence when loading the address of a nonlocal
2293 (nonlocal_goto): New expander.
2294 (indirect_goto): New jump pattern for nonlocal gotos.
2295 (short_jump): Remove extra whitespace.
2296 (builtin_longjmp): Clobber memory and hard frame pointer. Restore
2297 frame pointer via virtual_stack_vars_rtx when we have a nonlocal goto
2300 2004-06-11 Roger Sayle <roger@eyesopen.com>
2302 * expmed.c (synth_mult): Add an additional MODE argument for the
2303 machine mode of the multiplication. Update recursive calls. Use
2304 mode instead of word_mode for determining operation costs.
2305 (choose_mult_variant): Update calls to synth_mult with "mode".
2307 2004-06-11 Richard Henderson <rth@redhat.com>
2309 * tree-ssa-operands.c (get_stmt_operands): Clear makes_aliased_loads
2310 and makes_aliased_stores.
2312 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
2314 * doc/install.text (--enable-shared): Fix typo.
2316 2004-06-11 Richard Henderson <rth@redhat.com>
2318 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Remove post_p
2319 argument. Use internal post for call to gimplify_expr. Tidy
2320 rounded type size computation.
2321 (alpha_gimplify_va_arg): Use get_formal_tmp_var and
2322 get_initialized_tmp_var.
2324 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
2326 * doc/install.texi (--enable-shared): Update libobjc's shared library
2327 status. Remove reference to libf2c.
2329 2004-06-11 Jason Merrill <jason@redhat.com>
2331 * config/i386/i386.h (EXPAND_BUILTIN_VA_ARG): Just abort.
2332 * config/i386/i386.c (ix86_va_arg): Remove.
2333 * config/rs6000/rs6000.h (EXPAND_BUILTIN_VA_ARG): Just abort.
2334 * config/rs6000/rs6000.c (rs6000_va_arg): Remove.
2335 * config/alpha/alpha.h (EXPAND_BUILTIN_VA_ARG): Just abort.
2336 * config/alpha/alpha.c (alpha_va_arg): Remove.
2337 * config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Just abort.
2338 * config/sparc/sparc.c (sparc_va_arg): Remove.
2340 * tree-ssa-operands.c (get_stmt_operands): Use a V_MAY_DEF if the
2341 assignment might throw.
2342 * tree-eh.c (tree_could_throw_p): Support non-call exceptions in
2345 2004-06-11 J"orn Rennecke <joern.rennecke@superh.com>
2348 * sh.h (ALLOCATE_INITIAL_VALUE): Use return_address_pointer_rtx.
2350 2004-06-11 Joseph S. Myers <jsm@polyomino.org.uk>
2352 * doc/install.texi (Prerequisites): Update documentation of
2353 required versions of autoconf and automake. Remove mention of
2356 2004-06-11 Jason Merrill <jason@redhat.com>
2358 * config/sparc/sparc.c (sparc_gimplify_va_arg): New fn.
2359 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
2361 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
2363 * typeclass.h: Add GPL plus exception license. Add include
2366 2004-06-10 Jason Merrill <jason@redhat.com>
2368 * gimplify.c (gimplify_modify_expr): Don't force a temporary
2369 of an aggregate_value_p type.
2371 2004-06-10 Jeff Law <law@redhat.com>
2373 * fold-const.c (fold_inf_compare): Avoid creating non-gimple
2374 code when we are in gimple form.
2376 2004-06-10 Diego Novillo <dnovillo@redhat.com>
2378 * Makefile.in (tree-ssanames.o): Depend on TREE_FLOW_H.
2379 * tree-flow.h (ssa_names, num_ssa_names, ssa_name): Declare.
2380 (highest_ssa_version): Remove.
2381 * tree-outof-ssa.c (new_temp_expr_table): Replace
2382 highest_ssa_version with num_ssa_names.
2383 (dump_replaceable_exprs): Likewise.
2384 (rewrite_vars_out_of_ssa): Likewise.
2385 * tree-ssa-ccp.c (initialize): Likewise
2386 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
2387 * tree-ssa-dce.c (tree_dce_init): Likewise.
2388 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2389 * tree-ssa-live.c (create_ssa_var_map): Likewise.
2390 (dump_var_map): Likewise.
2391 * tree-ssa.c (verify_ssa): Likewise.
2392 (kill_redundant_phi_nodes): Likewise.
2393 Do not build a local array of SSA_NAMEs. Use the ssa_names table.
2394 * tree-ssanames.c: Include tree-flow.h
2395 (ssa_names): New varray.
2396 (init_ssa_names): Initialize ssa_names.
2397 Reserve the first slot of the ssa_names table.
2398 (make_ssa_name): Push the newly created SSA_NAME into ssa_names.
2399 Assign version numbers using num_ssa_names.
2401 2004-06-10 Joseph S. Myers <jsm@polyomino.org.uk>
2403 * doc/sourcebuild.texi (Front End): Add details of more
2404 installation documentation required.
2406 2004-06-10 Brian Booth <bbooth@redhat.com>
2408 * doc/tree-ssa.texi: Remove references to VDEF and add descriptions
2409 of V_MAY_DEF and V_MUST_DEF.
2410 * tree-dfa.c (dfa_stats_d): Add num_v_must_defs and rename
2411 num_vdefs to num_v_may_defs.
2412 (compute_immediate_uses_for_stmt): Rename occurences of vdef
2414 (redirect_immediate_uses): Ditto.
2415 (dump_dfa_stats): Ditto. Also added code to dump num_v_must_defs.
2416 (collect_dfa_stats_r): Rename occurences of vdef to v_may_def.
2417 Also add code to sum up the number of v_must_defs.
2418 (vdefs_disappeared_p): Replace with...
2419 (v_may_defs_disappeared_p): This.
2420 (v_must_defs_disappeared_p): New function.
2421 (mark_new_vars_to_rename): Rename occurences of vdef to v_may_def.
2422 Also add code to mark new variables found in V_MUST_DEFs for
2424 * tree-flow.h (stmt_ann_d): Add v_must_def_ops and replace
2425 vdef_ops to v_may_def_ops.
2426 (get_vdef_ops): Replace with...
2427 (get_v_may_def_ops): This.
2428 * tree-flow-inline.h (get_vdef_ops): Replace with...
2429 (get_v_may_def_ops): This.
2430 (get_v_must_def_ops): New function.
2431 (get_vdef_result_ptr): Replace with...
2432 (get_v_may_def_result_ptr): This.
2433 (get_vdef_op_ptr): Ditto with...
2434 (get_v_may_def_op_ptr); This.
2435 (get_v_must_def_op_ptr): New function.
2436 * tree-into-ssa.c (mark_def_sites): Rename occurences of vdef
2437 to v_may_def. Also add code to mark statements with
2438 V_MUST_DEFs as definition sites.
2439 (rewrite_stmt): Rename occurences of vdef to v_may_def. Also
2440 add code to register new V_MUST_DEFs made by the statement.
2441 * tree-outof-ssa.c (VIRTUAL_PARTITION): Update comments.
2442 (check_replaceable): Rename occurences of vdef to v_may_def. Also
2443 add check for V_MUST_DEFs.
2444 (find_replaceable_in_bb): Ditto.
2445 * tree-pretty-print.c (dump_vops): Rename occurences of vdef
2446 to v_may_def. Also add code to dump V_MUST_DEFs.
2447 * tree-sra.c (mark_all_vdefs): Replace with...
2448 (mark_all_v_may_defs): This.
2449 (mark_all_v_must_defs): New function.
2450 (create_scalar_copies): Replace call to mark_all_vdefs with
2451 calls to mark_all_v_may_defs and mark_all_v_must_defs.
2452 (scalarize_structures): Rename occurences of vdef to v_may_def.
2453 Also add a check for V_MUST_DEFs.
2454 (scalarize_modify_expr): Rename occurences of vdef to v_may_def.
2455 * tree-ssa-alias.c (global_var): Update comment.
2456 (compute_may_aliases): Ditto.
2457 (compute_points_to_and_addr_escape): Rename occurences of vdef
2458 to v_may_def. Also add code to mark variables in V_MUST_DEF
2459 operands as being written to.
2460 (group_aliases): Update comment.
2461 (maybe_create_global_var): Ditto.
2462 * tree-ssa.c (verify_ssa): Rename occurences of vdef to v_may_def.
2463 Also add a check for V_MUST_DEFs on GIMPLE registers.
2464 (replace_immediate_uses): Rename occurences of vdef to v_may_def.
2465 * tree-ssa-ccp.c (visit_stmt): Rename occurences of vdef
2466 to v_may_def. Also add code to mark all V_MUST_DEF operands
2468 (initialize): Ditto.
2469 (set_rhs): Rename occurences of vdef to v_may_def. Also add
2470 code to update SSA_NAMEs in V_MUST_DEFs.
2471 * tree-ssa-copy.c (cprop_into_stmt): Rename occurences of vdef
2473 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Rename
2474 occurences of vdef to v_may_def. Also add code to mark statements
2475 with V_MUST_DEFs as necessary.
2476 (propagate_necessity): Rename occurences of vdef to v_may_def.
2477 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Rename
2478 occurences of vdef to v_may_def. Also add code to mark operands
2479 in V_MUST_DEFs for renaming.
2480 (eliminate_redundant_computations): Rename occurences of vdef
2482 (record_equivalences_from_stmt): Rename occurences of vdef
2483 to v_may_def. Also add code to record VUSEs for V_MUST_DEFs.
2484 (optimize_stmt): Remove unnesessary variable vdefs. Update
2486 (register_definitions_for_stmt): Rename occurences of vdef
2487 to v_may_def. Also add code to register definitions made with
2489 * tree-ssa-dse.c (fix_stmt_vdefs): Replace with...
2490 (fix_stmt_v_may_defs): This.
2491 (fix_phi_uses): Rename occurences of vdef to v_may_def.
2492 (dse_optimize_stmt): Ditto.
2493 * tree-ssa-live.c (create_ssa_var_map): Rename occurences of vdef
2494 to v_may_def. Also add code to mark V_MUST_DEF operands as being
2495 used in virtual operators.
2496 * tree-ssa-loop.c (mark_defs_for_rewrite): Rename occurences of
2497 vdef to v_may_def. Also add code to mark V_MUST_DEF operands for
2499 * tree-ssa-operands.c (opf_kill_def): New flag for killing
2501 (build_vdefs): Renamed to...
2502 (build_v_may_defs): This.
2503 (build_v_must_defs): New variable.
2504 (voperands_d): Add v_must_def_ops and replace vdef_ops with
2506 (append_vdef): Replace with...
2507 (append_v_may_def): This.
2508 (append_v_must_def): New function.
2509 (NUM_FREE): Increment for V_MUST_DEF
2510 (optype_freelist): Increment its size for V_MUST_DEF
2511 (allocate_vdef_optype): Replace with...
2512 (allocate_v_may_def_optype): This.
2513 (allocate_v_must_def_optype): New function.
2514 (free_vdefs): Replace with...
2515 (free_v_may_defs): This.
2516 (free_v_must_defs): New function.
2517 (remove_vdefs): Replace with...
2518 (remove_v_may_defs): This.
2519 (remove_v_must_defs): New function.
2520 (init_ssa_operands): Rename occurences of vdef to v_may_def. Also
2521 add code to initialize build_v_must_defs.
2522 (finalize_ssa_vdefs): Replace with...
2523 (finalize_ssa_v_may_defs): This.
2524 (finalize_ssa_vuses): Rename occurences of vdef to v_may_def.
2525 (finalize_ssa_v_must_defs): New function.
2526 (finalize_ssa_stmt_operands): Replace call to finalize_ssa_vdefs
2527 with calls to finalize_ssa_v_may_defs and finalize_ssa_v_must_defs.
2528 (verify_start_operands): Rename occurences of vdef to v_may_def.
2529 Also add check for build_v_must_defs.
2530 (get_stmt_operands): Rename occurences of vdef to v_may_def.
2531 Also add code to handle V_MUST_DEFs and to use opf_kill_def for
2532 killing definitions.
2533 (get_expr_operands): Update comment and use opf_kill_def for
2534 killing definitions.
2535 (add_stmt_operand): Replace code that appends VDEFs with code
2536 that appends V_MUST_DEFs when opf_kill_def is set and V_MAY_DEFs
2538 (add_call_clobber_ops): Update comments.
2539 * tree-ssa-operands.h (vdef_optype_d): Replace with...
2540 (v_may_def_optype_d): This.
2541 (v_must_def_optype_d): New structure.
2542 (VDEF_OPS): Replace with...
2543 (V_MAY_DEF_OPS): This.
2544 (STMT_VDEF_OPS): Same with...
2545 (STMT_V_MAY_DEF_OPS): This.
2547 (NUM_V_MAY_DEFS): This.
2548 (VDEF_RESULT_PTR): As well as...
2549 (V_MAY_DEF_RESULT_PTR): This.
2550 (VDEF_RESULT): Same goes for...
2551 (V_MAY_DEF_RESULT): This.
2552 (VDEF_OP_PTR): And...
2553 (V_MAY_DEF_OP_PTR): This.
2555 (V_MAY_DEF_OP): This.
2556 (V_MUST_DEF_OPS): New macro.
2557 (STMT_V_MUST_DEF_OPS): Ditto.
2558 (NUM_V_MUST_DEFS): Ditto.
2559 (V_MUST_DEF_OP_PTR): Ditto.
2560 (V_MUST_DEF_OP): Ditto.
2561 (remove_vdefs): Replace signature with...
2562 (remove_v_may_defs): This.
2563 (remove_v_must_defs): New function signature.
2564 * tree-ssa-pre.c (subst_phis): Replace call to remove_vdefs
2565 with calls to remove_v_may_defs and remove_v_must_defs.
2566 (process_left_occs_and_kills): Rename occurences of vdef to v_may_def.
2567 Also add code that marks left occurences of operands in V_MUST_DEFs.
2568 * tree-tailcall.c (find_tail_calls): Rename occurences of vdef
2569 to v_may_def. Also add check for V_MUST_DEFs.
2570 (eliminate_tail_call):Rename occurences of vdef to v_may_def.
2572 2004-06-10 Vladimir Makarov <vmakarov@redhat.com>
2575 * haifa-sched.c (schedule_block): Finish cycle after issuing asm
2578 2004-06-10 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2581 * doc/install.texi: Remove superfluous linebreak.
2583 2004-06-10 Roger Sayle <roger@eyesopen.com>
2585 * builtins.c (expand_builtin): Fall back to library function call for
2586 conj, conjf, conjl, creal, crealf, creall, cimag, cimagf and cimagl.
2587 (fold_builtin_1): Lower built-ins BUILT_IN_CONJ{,F,L} to CONJ_EXPR,
2588 BUILT_IN_CREAL{,F,L} to REALPART_EXPR, and BUILT_IN_CIMAG{,F,L} to
2589 IMAGPART_EXPR respectively.
2591 2004-06-10 J"orn Rennecke <joern.rennecke@superh.com>
2593 * sh.c (dump_table): New argument start. Changed caller.
2594 (fixup_mova): New function.
2595 (find_barrier): Use it.
2596 (sh_reorg): Likewise. Check for CODE_FOR_casesi_worker_2.
2597 If the label a mova refers to is above the mova itself, change
2598 the mova into a load.
2599 * sh.md (*casesi_worker): Rename to:
2601 (casesi_worker_2): New insn.
2603 2004-06-10 Jason Merrill <jason@redhat.com>
2605 * target.h (struct gcc_target): Change gimplify_va_arg_expr
2607 * tree-gimple.h: Adjust.
2608 * config/alpha/alpha.c (alpha_gimplify_va_arg): Adjust.
2609 * config/i386/i386.c (ix86_gimplify_va_arg): Adjust.
2611 * config/ia64/ia64.c (ia64_gimplify_va_arg): Adjust.
2612 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust.
2613 Use COMPLEX_EXPR for complex numbers. Use fold_convert.
2614 * builtins.c (std_gimplify_va_arg_expr): Adjust. Use fold_convert.
2615 (gimplify_va_arg_expr): Return GS_ERROR in error case.
2616 Gimplify valist rather than calling stabilize_va_list.
2618 2004-06-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2620 * Makefile.in (df.o): Remove fibheap dependency.
2621 * df.h: Do not include sbitmap.h.
2622 (struct ref): New field "data".
2623 (DF_REF_DATA): New accessor macro.
2624 (struct df): Field "dom" removed.
2625 (df_analyze_subcfg): New function.
2626 (transfer_function_sbitmap, transfer_function_bitmap): Replaced by ...
2627 (transfer_function): ... new type.
2628 (iterative_dataflow_sbitmap, iterative_dataflow_bitmap): Replaced by ...
2629 (iterative_dataflow): ... new function.
2630 (enum set_representation, struct dataflow): New.
2631 * df.c: Do not include fibheap.h.
2633 (df_reg_def_chain_clean, df_reg_use_chain_clean,
2634 (df_bb_table_realloc, df_analyse_subcfg, free_reg_ref_chain,
2635 prune_to_subcfg, df_bb_modify): New functions.
2636 (df_bitmaps_alloc, df_reg_def_chain_create, df_reg_use_chain_create,
2637 df_refs_update, df_reg_table_realloc, df_ref_create,
2638 df_bb_reg_def_chain_create, df_bb_reg_use_chain_create,
2639 df_bb_rd_local_compute, df_bb_ru_local_compute, df_bb_lr_local_compute,
2640 df_analyse_1, df_insn_modify): Support analysing only a part of the cfg.
2642 (dataflow_set_a_op_b, dataflow_set_copy): New functions.
2643 (df_rd_transfer_function, df_ru_transfer_function,
2644 df_lr_transfer_function): Type of bitmaps changed to void *.
2645 (hybrid_search_bitmap, hybrid_search_sbitmap): Merge into ...
2646 (hybrid_search): ... new function.
2647 (iterative_dataflow_bitmap, iterative_dataflow_sbitmap): Merge into ...
2648 (iterative_dataflow): ... new function. Avoid use of fibheaps for
2649 a worklist. Do not process basic blocks unnecessarily.
2651 2004-06-10 Roger Sayle <roger@eyesopen.com>
2653 * fold-const.c (fold_abs_const): Make extern.
2654 * tree.h (fold_abs_const): Prototype here.
2655 * builtins.c (fold_builtin_fabs): New function to transform
2656 fabs, fabsf and fabsl builtins into ABS_EXPR tree nodes.
2657 (fold_builtin_abs): New function to transform abs, labs, llabs
2658 and imaxabs builtins into ABS_EXPR tree nodes.
2659 (expand_builtin): Fall back to a function call for abs, labs,
2660 llabs and imaxabs builtins that survive constant folding.
2661 (fold_builtin_1): Call fold_builtin_fabs for FABS, FABSF and
2662 FABSL, and fold_builtin_abs for ABS, LABS, LLABS and IMAXABS.
2664 2004-06-10 Jakub Jelinek <jakub@redhat.com>
2666 * config/ia64/unwind-ia64.c (uw_frame_state_for): Don't assume a
2667 leaf function without unwind info at RP 0.
2669 2004-06-10 Jakub Jelinek <jakub@redhat.com>
2672 * tree.h (enum tree_index): Add TI_FILEPTR_TYPE.
2673 (fileptr_type_node): Define.
2674 * tree.c (build_common_tree_nodes_2): Initialize
2675 fileptr_type_node to ptr_type_node.
2676 * c-common.c (c_common_nodes_and_builtins): For C++, make
2677 fileptr_type_node a distinct type copy.
2678 * builtin-types.def (BT_FILEPTR, BT_FN_INT_CONST_STRING_FILEPTR,
2679 BT_FN_INT_INT_FILEPTR, BT_FN_INT_FILEPTR_CONST_STRING_VALIST_ARG,
2680 BT_FN_SIZE_CONST_PTR_SIZE_SIZE_FILEPTR,
2681 BT_FN_INT_FILEPTR_CONST_STRING_VAR): Add.
2682 (BT_FN_INT_CONST_STRING_PTR, BT_FN_INT_INT_PTR,
2683 BT_FN_SIZE_CONST_PTR_SIZE_SIZE_PTR, BT_FN_INT_PTR_CONST_STRING_VAR,
2684 BT_FN_INT_PTR_CONST_STRING_VALIST_ARG): Remove.
2685 * builtins.def (BUILT_IN_FPRINTF, BUILT_IN_FPRINTF_UNLOCKED,
2686 BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS,
2687 BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FSCANF, BUILT_IN_FWRITE,
2688 BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): Use
2689 the above *FILEPTR* types instead of *PTR*.
2691 2004-06-09 Daniel Berlin <dberlin@dberlin.org>
2693 * tree-ssa.c (verify_ssa): Verify that vdefs/makes_aliased_stores
2696 2004-06-09 Roger Sayle <roger@eyesopen.com>
2698 * fold-const.c (fold_not_const): New function.
2699 (fold) <ABS_EXPR>: Don't bother testing wins.
2700 (fold) <BIT_NOT_EXPR>: Call fold_not_const.
2701 (nondestructive_fold_unary_to_constant) <BIT_NOT_EXPR>: Likewise.
2703 2004-06-09 Richard Henderson <rth@redhat.com>
2706 * function.c (assign_parms): Always set_mem_align with the computed
2707 FUNCTION_ARG_BOUNDARY. Don't clear stack_parm if !STRICT_ALIGNMENT.
2709 2004-06-09 Richard Henderson <rth@redhat.com>
2712 * tree-tailcall.c (find_tail_calls): Don't check early for
2713 tail_recursion failure.
2715 2004-06-09 Diego Novillo <dnovillo@redhat.com>
2717 Move SSA_NAME annotations into tree_ssa_name.
2719 * tree-dfa.c (create_ssa_name_ann): Remove.
2720 * tree-flow-inline.h (ssa_name_ann, get_ssa_name_ann): Remove.
2721 * tree-flow.h (enum tree_ann_type): Remove SSA_NAME_ANN.
2722 (struct ssa_name_ann_d): Remove.
2723 (union tree_ann_d): Update.
2724 (ssa_name_ann_t): Remove.
2725 * tree-ssa-alias.c: (get_ptr_info): New local function.
2726 Replace references to ssa_name_ann_t with struct ptr_info_def.
2727 * tree-ssa-operands.c (get_expr_operands): Likewise.
2728 * tree.h (SSA_NAME_PTR_INFO): Define.
2729 (struct ptr_info_def): Declare.
2730 (struct tree_ssa_name): Add field 'ptr_info'.
2732 2004-06-09 Danny Smith <dannysmith@users.sourceforge.net>
2734 * config/i386/winnt.c (i386_pe_output_labelref): Correct
2737 2004-06-09 Steven Bosscher <stevenb@suse.de>
2739 * config/i386/k6.md: Rewrite using the DFA model.
2740 * config/i386/i386.c (ix86_adjust_cost): Don't increase the
2741 cost of load-operation insns for the K6.
2742 (ia32_use_dfa_pipeline_interface): Add TARGET_K6.
2743 (ia32_multipass_dfa_lookahead): Likewise.
2745 2004-06-09 Richard Henderson <rth@redhat.com>
2747 * config/alpha/alpha.c (alpha_gimplify_va_arg_1,
2748 alpha_gimplify_va_arg, TARGET_GIMPLIFY_VA_ARG_EXPR): New.
2750 2004-06-09 Richard Henderson <rth@redhat.com>
2752 * expmed.c (emit_store_flag): Cope with FLOAT_STORE_FLAG_VALUE.
2754 2004-06-09 Geoffrey Keating <geoffk@apple.com>
2756 * Makefile.in (CPPLIB_H): Put files in order of inclusion.
2757 (CPP_ID_DATA_H): New.
2758 (gtype-desc.o): Update dependencies.
2759 (GTFILES): Use CPP_ID_DATA_H.
2761 2004-06-09 Mark Mitchell <mark@codesourcery.com>
2765 2004-06-07 Mark Mitchell <mark@codesourcery.com>
2766 * doc/extend.texi: Deprecate #pragma interface and #pragma
2769 2004-06-09 David S. Miller <davem@nuts.davemloft.net>
2771 * config/sparc/sparc.h (MOVE_RATIO): New definition.
2773 2004-06-09 Richard Henderson <rth@redhat.com>
2775 * basic-block.h (struct edge_def): Add goto_locus.
2776 * tree-cfg.c (make_goto_expr_edges): Set it.
2777 (disband_implicit_edges): Use it.
2778 * tree-pretty-print.c (dump_implicit_edges): Print it.
2780 2004-06-08 Anil Paranjpe <anilp1@kpitcummins.com>
2782 * h8300.md (ldm_h8300s_4): Fix condition for expander.
2784 2004-06-08 Jason Merrill <jason@redhat.com>
2786 Gimplify VA_ARG_EXPR into simpler forms.
2787 * target.h: Add gimplify_va_arg_expr hook.
2788 * target-def.h: Add TARGET_GIMPLIFY_VA_ARG_EXPR.
2789 * fold-const.c (build_fold_addr_expr)
2790 (build_fold_addr_expr_with_type): Move from gimplify.c.
2791 * tree.h: Declare them.
2792 * gimplify.c (gimplify_and_add): New fn.
2793 (build_addr_expr, build_addr_expr_with_type): Move to fold-const.c.
2794 (gimplify_array_ref_to_plus, gimplify_modify_expr)
2795 (gimplify_expr): Use build_fold_*.
2796 (copy_if_shared_r): Only mark VA_ARG_EXPR volatile if we
2797 don't know how to gimplify it.
2798 * builtins.c (std_gimplify_va_arg_expr): New fn.
2799 (dummy_object): New static fn.
2800 (gimplify_va_arg_expr): New fn.
2801 (stabilize_va_list): Use build_fold_*.
2802 * tree-gimple.h: Declare new fns.
2803 * config/i386/i386.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
2804 (ix86_gimplify_va_arg): New fn.
2805 * config/ia64/ia64.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
2806 (ia64_gimplify_va_arg): New fn.
2807 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): New fn.
2808 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
2809 * alias.c (get_varargs_alias_set): Just return 0 for now.
2811 * c-objc-common.c (c_tree_printer): Improve handling of %T.
2813 2004-06-09 Andrew Pinski <pinskia@physics.uc.edu>
2815 * tree-complex.c (expand_complex_comparison): Use fold_convert instead
2817 * tree-inline.c (setup_one_parameter): Likewise.
2818 * tree-sra.c (csc_build_component_ref): Likewise.
2819 * tree-ssa-ccp.c (ccp_fold): Likewise.
2820 * tree-ssa-copy.c (cprop_operand): Likewise.
2821 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
2822 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
2824 2004-06-09 J"orn Rennecke <joern.rennecke@superh.com>
2826 PR rtl-optimization/15521:
2827 * sched-int.h (in_post_call_group_p): Change type to enum.
2828 * sched-deps.c (sched_analyze_insn):
2829 (sched_analyze): When in_post_call_group_p is post_call_initial,
2830 don't add a dependency, but still set SCHED_GROUP_P and CANT_MOVE,
2831 and also reset in_post_call_group_p to post_call.
2832 (sched_analyze): When the previous basic block ended in a CALL_INSN,
2833 initialize in_post_call_group_p as post_call_initial.
2834 (init_deps): initialize in_post_call_group_p to not_post_call.
2836 2004-06-09 Arnaud Charlet <charlet@act-europe.fr>
2839 * doc/install.texi: List ada, libada as options to --enable-shared
2841 2004-06-09 Paolo Bonzini <bonzini@gnu.org>
2843 * aclocal.m4 (gcc_AC_PROG_LN): Remove.
2844 (gcc_AC_CHECK_DECLS): Use AH_TEMPLATE to generate
2846 * configure.ac: Call ACX_PROG_LN, falling back to $LN_S
2847 if hard links are not available.
2848 * configure: Regenerate.
2849 * config.in: Regenerate.
2851 2004-06-08 Per Bothner <per@bothner.com>
2853 * configure.ac: New --enable-mapped-location sets USE_MAPPED_LOCATION.
2855 2004-06-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2857 * toplev.c (floor_log2_wide): Correct casts for 64-bit hosts.
2860 2004-06-08 James E Wilson <wilson@specifixinc.com>
2863 * config/i386/i386-coff.h (ASM_OUTPUT_ALIGN): Define.
2865 2004-06-08 Andrew Pinski <pinskia@physics.uc.edu>
2867 * fold-const.c (fold_convert): Treat OFFSET_TYPE like
2868 POINTER_TYPE and INTEGER_TYPE.
2870 2004-06-08 Bernardo Innocenti <bernie@develer.com>
2872 * modulo-sched.c: Compile only when INSN_SCHEDULING is
2875 2004-06-08 Jeff Law <law@redhat.com>
2877 * doc/contrib.texi: Add entries for Stefan Olsson and
2880 2004-06-08 DJ Delorie <dj@redhat.com>
2882 * toplev.c (floor_log2_wide): Replace loop with faster bit
2884 (exact_log2_wide): Define in terms of the above.
2885 * toplev.h (floor_log2): Use _builtin_clz family of builtins if
2888 2004-06-08 Andrew Pinski <pinskia@physics.uc.edu>
2890 * config/rs6000/rs6000.c (print_operand, <case 'z'>):
2891 Make sure that we are in INDIRECT mode when getting the
2894 2004-06-08 Anil Paranjpe <anilp1@kpitcummins.com>
2896 * h8300.md (extendqisi2_h8300): Add constraints.
2897 (ldm_h8300s_4_normal): Fix typo.
2899 2004-06-08 Richard Henderson <rth@redhat.com>
2901 * gimple-low.c (struct lower_data): Replace the_return_label and
2902 one_return_stmt with return_statements.
2903 (lower_function_body): Process the entire list of return_statements.
2904 (lower_return_expr): Check source value before unifying return_exprs.
2905 * gimplify.c (gimplify_return_expr): Force the use of a temporary
2906 for !aggregate_value_p.
2907 * tree-gimple.c: Update RETURN_EXPR grammer.
2909 2004-06-08 Vladimir Makarov <vmakarov@redhat.com>
2912 * config/ia64/ia64.c (bundling): Add missed TYPE_A.
2914 2004-06-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2916 PR rtl-optimization/15717
2917 * config/i386/i386.c (legitimate_constant_p): Do not allow
2920 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
2922 * gimplify.c (copy_if_shared_r): Revert:
2923 2004-05-21 Richard Henderson <rth@redhat.com>
2924 * gimplify.c [...] Don't mark VA_ARG_EXPRs volatile here.
2926 2004-06-07 Roger Sayle <roger@eyesopen.com>
2928 * expmed.c (add_cost, neg_cost, sdiv_pow2_cheap, smod_pow2_cheap):
2929 Make arrays indexed by machine mode. Rename negate_cost to neg_cost.
2930 (init_expmed): Initialize these cost arrays as appropriate.
2931 (store_bit_field, extract_bit_field): Correct whitespace.
2932 (synth_mult, choose_mult_variant, expand_mult, expand_mult_highpart,
2933 expand_mult_highpart_optab, expand_divmod): Update uses of add_cost,
2934 neg_cost, sdiv_pow2_cheap, smod_pow2_cheap to index with mode,
2935 word_mode or compute_mode as appropriate.
2937 2004-06-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2940 * config/sparc/sparc.c (function_arg_union_value): Add 'mode'
2941 parameter. Enumerate the registers inside the PARALLEL.
2942 (function_arg): Adjust call to function_arg_union_value.
2943 (function_value): Likewise.
2945 * config/sparc/sparc.c (sparc_function_epilogue): Properly format.
2947 2004-06-07 Roger Sayle <roger@eyesopen.com>
2949 * real.c (real_copysign): New function to implement libm's copysign.
2950 * real.h (real_copysign): Prototype here.
2951 * fold-const.c (tree_expr_nonnegative_p): The result of sqrt, sqrtf
2952 and sqrtl can be negative, as sqrt(-0.0) = -0.0. Correct whitespace.
2953 * builtins.c (fold_builtin_isascii, fold_builtin_toascii,
2954 fold_builtin_isdigit): Add function prototypes.
2955 (fold_builtin_copysign): New function to fold copysign, copysignf
2956 and copysignl. Optimize copysign(x,x) as x. Evaluate copysign of
2957 constant arguments at compile-time using real_copysign. Fold
2958 copysign(X,Y) as fabs(X) if Y is always non-negative.
2959 (fold_builtin_1): Correct minor whitespace/style issues. Call
2960 fold_builtin_copysign for BUILT_IN_COPYSIGN{,F,L}.
2962 2004-06-07 J"orn Rennecke <joern.rennecke@superh.com>
2964 * tree.c (iterative_hash_expr): Use real_hash.
2966 2004-06-07 Joseph S. Myers <jsm@polyomino.org.uk>
2969 * c-parse.in (compstmt_primary_start): Set last_expr_type to
2972 2004-06-07 Mark Mitchell <mark@codesourcery.com>
2975 * doc/extend.texi: Deprecate #pragma interface and #pragma
2978 2004-06-07 Alexandre Oliva <aoliva@redhat.com>
2981 * c-decl.c (finish_decl): Use change_decl_assembler_name for the
2982 builtin decl as well.
2984 2004-06-07 Roger Sayle <roger@eyesopen.com>
2987 * c-typeck.c (require_constant_value, require_constant_elements):
2988 Move declarations to the top of the file.
2989 (build_function_call): If we require a constant value, fold with
2990 fold_initializer. If the result is a constant, and the function
2991 wasn't called using __builtin_foo, issue a pedantic warning.
2992 (build_unary_op): If we require a constant value, fold tree with
2994 (build_binary_op): Use require_constant_value to determine whether
2995 to call fold or fold_initializer.
2997 2004-06-07 Richard Henderson <rth@redhat.com>
2999 * gimple-low.c (struct lower_data): Add the_return_label and
3001 (lower_function_body): Initialize and use them.
3002 (lower_return_expr): New.
3003 (lower_stmt): Call it.
3004 * gimplify.c (gimplify_return_expr): Force the argument to be either
3005 null or a result_decl.
3006 * tree-gimple.c: Update gimple grammer to match.
3007 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Deny
3008 coalescing of result_decls.
3010 2004-06-07 Richard Henderson <rth@redhat.com>
3013 * expmed.c (extract_bit_field): Fix vector_extract return.
3015 * config/i386/i386.md (negv4sf2): New pattern.
3017 2004-06-07 Mark Mitchell <mark@codesourcery.com>
3020 * c-common.c (c_sizeof_or_alignof_type): Use more detailed error
3023 2004-06-06 Paolo Bonzini <bonzini@gnu.org>
3025 * config.in: Regenerate.
3027 2004-06-06 Steven Bosscher <stevenb@suse.de>
3029 * tree-cfg.c (tree_verify_flow_info): Make sure that labels in
3030 SWITCH_LABELS are always sorted.
3032 2004-06-06 Steven Bosscher <stevenb@suse.de>
3034 * hooks.c (hook_int_void_1): New generic hook.
3035 * hooks.h (hook_int_void_1): Add prototype.
3036 * config/c4x/c4x.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
3037 Define to hook_int_void_1.
3038 * config/c4x/c4x.md: Replace dummies for the old pipeline model
3039 with dummies for the new one.
3041 2004-06-06 Roger Sayle <roger@eyesopen.com>
3043 * tree.h (lvalue_or_else): Delete function prototype.
3044 * c-typeck.c (lvalue_or_else): Make static. Add static prototype.
3046 2004-06-06 Stephane Carrez <stcarrez@nerim.fr>
3049 * config/m68hc11/m68hc11.md (move peephole2): Emit a use note to avoid
3050 a live change of a register after peephole replacement.
3052 2004-06-06 Joseph S. Myers <jsm@polyomino.org.uk>
3055 * c-typeck.c (composite_type, common_pointer_type): New functions.
3056 (common_type): Split parts into composite_type and
3057 common_pointer_type. Ensure that arithmetic operations return
3058 unqualified types without attributes. Don't make composite type
3059 of signed enum and compatible integer be unsigned.
3060 (build_conditional_expr, build_binary_op): Use
3061 common_pointer_type.
3062 * c-decl.c (merge_decls): Use composite_type.
3063 * c-tree.h (composite_type): Declare.
3065 2004-06-06 Stephane Carrez <stcarrez@nerim.fr>
3068 * config/m68hc11/m68hc11.c (splitable_operand): New predicate.
3069 * config/m68hc11/m68hc11-protos.h (splitable_operand): Declare.
3070 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register it.
3071 (inhibit_libc): Must define.
3072 * config/m68hc11/m68hc11.md ("movhi_const0"): Use splitable_operand.
3073 ("*andhi3_gen", "iorhi3", "*iorhi3_gen"): Likewise.
3074 ("xorhi3"): Likewise.
3076 2004-06-06 Eric Botcazou <ebotcazou@libertysurf.fr>
3078 * cgraphunit.c (cgraph_decide_inlining): Adjust dump lines in
3081 2004-06-05 David S. Miller <davem@nuts.davemloft.net>
3083 * config/sparc/linux.h (TARGET_C99_FUNCTIONS): Set.
3084 * config/sparc/linux64.h (TARGET_C99_FUNCTIONS): Likewise.
3086 2004-06-05 Bernardo Innocenti <bernie@develer.com>
3088 * regclass.c (init_reg_sets): Check for missing registers in target
3089 initializer macros FIXED_REGISTERS and CALL_USED_REGISTERS.
3091 2004-06-05 Zack Weinberg <zack@codesourcery.com>
3093 * Makefile.in (MKDEPS_H): New shorthand.
3094 (c-opts.o): Update dependencies.
3095 * c-opts.c: Include mkdeps.h.
3096 (handle_deferred_opts): Use cpp_get_deps and deps_add_target,
3097 not cpp_add_dependency_target.
3099 2004-06-05 Steven Bosscher <stevenb@suse.de>
3101 * config/v850/v850.c (v850_use_dfa_pipeline_interface): New.
3102 * config/v850/v850.md: Convert to DFA scheduler description.
3104 2004-06-05 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
3107 * doc/install.texi: Document GMP as prerequisite. Document
3108 --with-gmp and --with-gmp-dir configure options.
3109 * fortran/gfortran.texi: Remove section "Compiling and testing",
3110 remove TOC reference to it.
3112 2004-06-05 Graham Stott <graham.stott@btinternet.com>
3114 * combine.c(simplify_shift_const): Check shift amount is a
3117 2004-06-05 Danny Smith <dannysmith@users.sourceforge.net>
3119 * toplev.c (init_asm_output): Add explicit 'b' to mode when
3120 opening asm_out_file.
3121 * c-pch.c (c_common_write_pch): Remove unnecessary fflush before
3122 reading asm_out_file. Replace fflush after reading asm_out_file
3124 * hosthooks-def.h (HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY): Define
3125 default and add to HOST_HOOKS_INITIALIZER.
3126 * hosthooks.h (gt_pch_alloc_granularity): Declare hook function.
3127 * ggc-common.c (default_gt_pch_alloc_granularity): New function.
3128 (gt_pch_save): Use host_hooks.gt_pch_alloc_granularity
3129 to set mmi.offset padding.
3130 * config.gcc (i[34567]86-*-mingw32*): Set target_gtfiles to
3131 $(srcdir)/config/i386/winnt.c.
3132 (i[34567]86-*-pe | i[34567]86-*-cygwin*): Likewise.
3133 (i[34567]86-*-uwin*): Likewise.
3134 *i[34567]86-*-interix3*): Likewise.
3135 * config.host (i[34567]86-*-mingw32*): Set out_host_hook_obj.
3136 * config/i386/host-mingw32.c: New file.
3137 * config/i386/x-mingw32: Add rule for host-mingw32.o.
3138 * config/i386/winnt.c: (struct extern_list) Tag as GTY.
3139 (extern_head): Likewise.
3140 (struct export_list) Likewise.
3141 (export_head): Likewise.
3142 (i386_pe_record_external_function): Use ggc_alloc.
3143 (i386_pe_record_exported_symbol): Likewise.
3144 Include "gt-winnt.h" at end.
3145 * doc/hostconfig.texi: Document
3146 HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY.
3148 2004-06-04 Bernardo Innocenti <bernie@develer.com>
3150 * config/m68k/m68k.h: Remove comments copied over from tm.texi.
3151 Rename 68000 and 68k to m68k for consistency in comments. Remove
3152 trailing whitespace before EOLs and before TABs.
3153 (MAX_CODE_ALIGN): Remove unused macro.
3154 (CALL_USED_REGISTERS): Reformat and add comments.
3156 2004-06-04 Frank Ch. Eigler <fche@redhat.com>
3158 * gcc.c (MFLIB_SPEC): Remove library references, to require users
3159 to enumerate -lmudflap* and dependencies when linking.
3161 2004-06-04 Paolo Bonzini <bonzini@gnu.org>
3164 * dojump.c (do_jump): Fix uninitialized variable tcode1.
3166 2004-06-04 Jerry Quinn <jlquinn@optonline.net>
3168 * Makefile.in (insn-conditions.o): Back out removal of reload.h.
3169 * genconditions.c (write_header): Back out removal of reload.h.
3171 2004-06-04 Jan Hubicka <jh@suse.cz>
3173 Re-apply hopefully fixed patch:
3174 * i386.md (UNSPECV_EH_RETURN): Kill.
3175 (eh_return): Use jump_insn.
3176 (eh_return_si, eh_return_di): Change pattern to jump instruction.
3178 2004-06-04 Jeff Law <law@redhat.com>
3180 * cfgrtl.c (try_redirect_by_replacing_jump): Fix return value.
3182 2004-06-04 Steven Bosscher <stevenb@suse.de>
3184 * except.c (for_each_eh_region): New function.
3185 * except.h (for_each_eh_region): Add a prototype for it.
3186 * tree-cfg.c (update_eh_labels): New function, callback for
3188 (label_for_bb): Make global static, unfortunately.
3189 (cleanup_dead_labels): Also update label references for
3192 2004-06-03 Chris Demetriou <cgd@broadcom.com>
3194 * config/mips/mips.c (struct irix_section_align_entry): Fix
3197 2004-06-03 Geoffrey Keating <geoffk@apple.com>
3199 * toplev.c (check_global_declarations): Don't ask for
3200 DECL_ASSEMBLER_NAME unless the function really is declared
3201 static and not defined.
3203 2004-06-03 Matt Austern <austern@apple.com>
3206 * default.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): New name
3207 for TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, with reversed sense.
3208 * config/darwin.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Likewise.
3209 * doc/tm.texi (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Rewrite
3210 documentation to reflect the new macro name and to clarify its
3213 2004-06-03 Steven Bosscher <stevenb@suse.de>
3215 * rtl.def (VAR_LOCATION): Make RTX_EXTRA.
3217 2004-06-03 Andrew Pinski <pinskia@physics.uc.edu>
3219 * config/darwin.c (machopic_indirect_data_reference): Copy
3220 the SYMBOL_REF_DECL from the original RTX for the new
3221 non-lazy pointer RTX.
3223 2004-06-03 Mark G. Adams <mark.g.adams@sympatico.ca>
3225 * tree.h: Remove include of version.h
3226 * c-cppbuiltin.c: Include version.h
3227 * diagnostic.c: Include version.h
3228 * dwarf2out.c: Include version.h
3229 * toplev.c: Include version.h
3230 * vmsdbgout.c: Include version.h
3231 * Makefile.in: Remove dependency on version.h from TREE_H, and
3232 add dependencies to required .o targets
3234 2004-06-03 Jerry Quinn <jlquinn@optonline.net>
3236 * Makefile.in (RA_H, RESOURCE_H, SCHED_INT_H, CFGLAYOUT_H,
3237 CFGLOOP_H, DF_H, DDG_H, TREE_SSA_LIVE_H): New.
3238 (TARGET_H): Add insn-modes.h.
3239 (tree-ssa.o, tree-cfg.o, tree-ssa-loop.o, toplev.o, passes.o,
3240 loop.o, loop-doloop.o, unroll.o, cfgloop.o, cfgloopanal.o,
3241 loop-iv.o, cfgloopmanip.o, loop-init.o, loop-unswitch.o,
3242 loop-unroll.o, ddg.o, modulo-sched.o, predict.o,
3243 cfglayout.o, ifcvt.o): Replace cfgloop.h with CFGLOOP_H.
3244 (toplev.o, passes.o, cfghooks.o, cfgloopmanip.o, loop-init.o,
3245 loop-unswitch.o, loop-unroll.o, ddg.o, modulo-sched.o,
3246 bb-reorder.o, tracer.o, cfglayout.o): Replace cfglayout.h with
3248 (ra.o, ra-build.o, ra-colorize.o, ra-debug.o, ra-rewrite.o):
3249 Replace ra.h with RA_H.
3250 (resource.o, regrename.o, insn-conditions.o, insn-emit.o,
3251 insn-recog.o): Replace resource.h with RESOURCE_H.
3252 (ddg.o, modulo-sched.o, haifa-sched.o, sched-deps.o, sched-rgn.o,
3253 sched-ebb.o, sched-vis.o, out_object_file): Replace sched-int.h
3255 (web.o, lcm.o, df.o, ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
3256 ra-rewrite.o): Replace df.h with DF_H.
3257 (ddg.o, modulo-sched.o): Replace ddf.h with DDG_H.
3258 (tree-outof-ssa.o, tree-ssa-live.o, tree-ssa-copyrename.o):
3259 Replace tree-ssa-live.h with TREE_SSA_LIVE_H.
3260 (insn-conditions.o): Remove unused reload.h.
3261 * cfglayout.h: Add include guard. Include basic-block.h.
3262 * cfgloop.h: Add include guard. Include basic-block.h, rtl.h.
3263 * ddg.h: Include sbitmap.h, basic-block.h, df.h.
3264 * df.h: Add include guard. Include bitmap.h, sbitmap.h,
3266 * genconditions.c: Remove reload.h.
3267 * ra.h: Add include guard. Include bitmap.h, sbitmap.h,
3268 hard-reg-set.h, insn-modes.h.
3269 * resource.h: Add include guard. Include hard-reg-set.h.
3270 * sched-int.h: Add include guard. Include insn-attr.h,
3271 basic-block.h, rtl.h.
3272 * target.h: Add include guard. Include insn-modes.h.
3273 * tree-ssa-live.h: Include partition.h.
3275 2004-06-03 Daniel Berlin <dberlin@dberlin.org>
3276 Kenneth Zadeck <zadeck@naturalbridge.com>
3278 * tree-ssa-ccp.c (varying_ssa_edges): New worklist.
3279 (add_var_to_ssa_edges_worklist): Add value argument.
3282 (process_ssa_edge_worklist): New function.
3283 (tree_ssa_ccp): Move worklist processing core to
3284 process_ssa_edge_worklist, and just call that for the two worklists.
3286 2004-06-03 Steven Bosscher <stevenb@suse.de>
3288 * basic-block.c (tail_recursion_label_list): Don't declare.
3289 (CLEANUP_PRE_SIBCALL): Remove. Renumber the other CLEANUP_*
3291 * cfgbuild.c (find_label_refs): Remove.
3292 (find_basic_blocks_1): Don't handle CALL_PLACEHOLDER insns.
3293 * cfgcleanup.c (tail_recursion_label_p): Remove.
3294 (merge_blocks_move): Do not check for tail recursion.
3295 (try_optimize_cfg): Likewise.
3296 (cleanup_cfg): Never handle CLEANUP_PRE_SIBCALL.
3297 * cfgrtl.c (tail_recursion_label_list): Remove.
3298 * except.c (remove_unreachable_regions): Don't handle
3299 CALL_PLACEHOLDER insns.
3300 (convert_from_eh_region_ranges_1, can_throw_internal,
3301 can_throw_external): Likewise.
3302 * function.c (free_after_compilation): Don't clear
3303 x_tail_recursion_label.
3304 (fixup_var_refs_insns): Don't handle CALL_PLACEHOLDER insns.
3305 (identify_blocks_1): Don't recurse for CALL_PLACEHOLDER insns.
3306 (reorder_blocks_1): Likewise.
3307 * function.h (struct function): Remove x_tail_recursion_label
3308 member. Don't define tail_recursion_label.
3309 * jump.c (mark_all_labels): Don't handle CALL_PLACEHOLDER insns.
3310 * print-rtl.c (print_rtx): Likewise.
3311 * rtl.def (CALL_PLACEHOLDER): Remove.
3312 * rtl.h (sibcall_use_t): Remove enum.
3313 (optimize_sibling_and_tail_recursive_calls,
3314 replace_call_placeholder): Remove function prototypes.
3315 * stmt.c (tail_recursion_args): Remove.
3316 (optimize_tail_recursion): Remove.
3317 (expand_return): Don't check for possible tail recursion.
3318 * tree.h (optimize_tail_recursion): Remove prototype.
3320 2004-06-02 Jan Hubicka <jh@suse.cz>
3322 * tree-cfg.c (tree_find_edge_insert_loc): Allow inserting before
3325 2004-06-02 Jason Merrill <jason@redhat.com>
3327 * Makefile.in (TAGS): Don't mess with c-parse.[ch].
3328 Do include c-parse.in.
3330 2004-06-02 Eric Christopher <echristo@redhat.com>
3332 * c-typeck.c (common_type): Don't lose type qualifiers
3333 when creating new variants.
3335 2004-06-02 Andrew Pinski <pinskia@physics.uc.edu>
3337 PR tree-optimization/14042
3338 PR tree-optimization/14729
3339 PR tree-optimization/14736
3340 * tree-ssa.c (tree_ssa_useless_type_conversion_1):
3341 Check the type which the pointer points to
3342 instead of the pointer types.
3344 2004-06-02 Kazu Hirata <kazu@cs.umass.edu>
3346 PR tree-optimization/15738.
3347 * builtins.c (fold_builtin_strchr): Transform
3348 strrchr (s, '\0') to strchr (s, '\0').
3350 2004-06-02 Steven Bosscher <stevenb@suse.de>
3352 * i386.c (ix86_adjust_cost): Don't increase the cost for
3353 load+operation for PROCESSOR_PENTIUMPRO, it is already
3354 modelled in the DFA description
3356 2004-06-01 Jerry Quinn <jlquinn@optonline.net>
3358 * Makefile.in (EXPR_H): Add insn-config.h, function.h,
3359 $(RTL_H), flags.h, $(TREE_H), $(MACHMODE_H), $(EXPR_H).
3360 (ALIAS_H, EMIT_RTL_H): New.
3361 (cselib.o): Replace EXPR_H with EMIT_RTL_H.
3362 (cfgcleanup.o): Add EMIT_RTL_H.
3363 (alias.o): Replace EXPR_H with EMIT_RTL_H and ALIAS_H.
3364 * alias.c: Replace expr.h with emit-rtl.h and alias.h.
3365 * attribs.c, c-lex.c, c-obj-common.c, c-semantics.c: Remove expr.h.
3366 * cfgcleanup.c, cselib.c: Replace expr.h with emit-rtl.h.
3367 * expr.h: Add include guard. Include function.h, rtl.h, flags.h,
3368 tree.h, machmode.h, insn-config.h, alias.h, emit-rtl.h.
3369 (get_varargs_alias_set, get_frame_alias_set, record_base_value,
3370 record_alias_subset, new_alias_set, can_address_p): Move to alias.h.
3371 (set_mem_alias_set, set_mem_align, set_mem_expr, set_mem_offset,
3372 set_mem_size): Move to emit-rtl.h.
3376 2004-06-01 Eric Botcazou <ebotcazou@act-europe.fr>
3378 * function.c (walk_fixup_memory_subreg): New parameter 'var'.
3379 Call fixup_memory_subreg only if the MEM is equal to 'var'.
3380 Adjust recursive calls to self.
3381 (fixup_var_refs_insn): Pass 'var' to walk_fixup_memory_subreg.
3383 2004-06-01 Richard Henderson <rth@redhat.com>
3384 Andrew Pinski <pinskia@physics.uc.edu>
3386 * c-parse.in (OFFSETOF, offsetof_member_designator): New.
3387 (primary): Handle offsetof. Add error productions for faux functions.
3388 Move component_ref objc checking to build_component_ref.
3389 (reswords): Add offsetof.
3390 (rid_to_yy): Add offsetof.
3391 * c-tree.h (build_offsetof): Declare.
3392 * c-common.h (objc_is_public): Declare.
3393 * c-typeck.c (build_component_ref): Check objc_is_public.
3394 (build_offsetof): New.
3395 * stub-objc.c (objc_is_public): New.
3396 * objc/objc-act.c, objc/objc-act.h (objc_is_public): Rename
3398 * ginclude/stddef.h (offsetof): Use __builtin_offsetof.
3399 * doc/extend.texi (Offsetof): Move from C++ section to C section
3400 and rewrite for __builtin_offsetof.
3402 2004-06-01 Peter Barada <peter@the-baradas.com>
3403 Peter Jakubek <peter@laseranimation.com>
3405 * config/m68k/m68k.c(m68k_output_mi_thunk): For ColdFire, use %d0 as
3406 a scratch to perform an add to memory.
3408 2004-06-01 Bernardo Innocenti <bernie@develer.com>
3411 * config/m68k/m68k.c (m68k_align_loops_string, m68k_align_jumps_string,
3412 m68k_align_funcs_string, m68k_align_loops, m68k_align_jumps,
3413 m68k_align_funcs): Remove.
3414 (override_options): Remove code to handle -malign-* options.
3415 * config/m68k/m68k.h (TARGET_OPTIONS): Remove -malign-* options.
3416 (FUNCTION_BOUNDARY, LOOP_ALIGN, LOOP_ALIGN_AFTER_BARRIER): Remove.
3417 (m68k_align_loops_string, m68k_align_jumps_string,
3418 m68k_align_funcs_string, m68k_align_loops, m68k_align_jumps,
3419 m68k_align_funcs): Remove definitions.
3421 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
3424 * doc/install.texi (sparc-sun-solaris2*): Document messages issued
3425 by the Sun linker in conjunction with the Sun assembler.
3426 (sparc-sun-solaris2.7): Update revision info for Sun patch 106950.
3428 2004-06-01 Jeff Law <law@redhat.com>
3430 * stmt.c (expand_decl): Be more selective about calling
3433 2004-06-01 Nicola Pero <nicola@brainstorm.co.uk>
3436 * objc-act.c (is_private): Do not emit the 'instance variable %s
3437 is declared private' error.
3438 (is_public): Emit the error after calling is_private.
3439 (lookup_objc_ivar): If the instance variable is private, return 0
3440 - the instance variable is invisible here.
3442 2004-06-01 Eric Botcazou <ebotcazou@libertysurf.fr>
3444 * doc/invoke.texi (-static-libgcc): Explicitly mention
3447 2004-06-01 Bernardo Innocenti <bernie@develer.com>
3450 * doc/invoke.texi: Document stack alignment side-effect of -mshort.
3452 2004-05-31 Joseph S. Myers <jsm@polyomino.org.uk>
3455 * c-decl.c (grokdeclarator, finish_struct): Don't pedwarn for
3456 misuses of structures with flexible array members if
3459 2004-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
3462 * config/sparc/sparc.c (compare_operand): New predicate.
3463 * config/sparc/sparc.h (PREDICATE_CODES): Add it.
3464 * config/sparc/sparc.md (cmpsi expander): Use it. If the first
3465 operand is a ZERO_EXTRACT and the second operand is not zero,
3466 force the former to a register.
3467 (cmpdi expander): Likewise.
3469 2004-05-31 Geoffrey Keating <geoffk@apple.com>
3471 * gengtype-lex.l: Catch stray GTY markers in the files gengtype
3473 * alias.c (alias_invariant_size): Make alias_invariant_size
3474 static, fix GTY marker.
3476 2004-05-31 Kazu Hirata <kazu@cs.umass.edu>
3478 PR tree-optimization/15743.
3479 * builtins.c (fold_builtin_1): Fold index() and rindex().
3481 2004-05-31 Roger Sayle <roger@eyesopen.com>
3484 * fold-const.c (fold_single_bit_test): Only perform "(X & C) != 0"
3485 into "X < 0" (where C is the signbit) if X's type is a full mode.
3487 2004-05-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3489 * pa.md: Disable the peephole2 patterns that generate indexed
3490 floating-point stores when indexing is disabled.
3492 2004-05-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
3494 * c-pretty-print.c (pp_c_left_bracket): Make a function.
3495 (pp_c_right_bracket): Likewise.
3496 (pp_c_star): Likewise.
3497 (pp_c_ampersand): Define.
3498 * c-pretty-print.h (pp_c_left_bracket): Declare.
3499 (pp_c_right_bracket): Likewise.
3500 (pp_c_star): Likewise.
3501 (pp_c_ampersand): Likewise.
3503 2004-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
3505 * config/sol2.h (__enable_execute_stack): ANSIfy function
3508 2004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
3510 * c-incpath.c (add_path): Canonicalize paths to use '/' if
3511 HAVE_DOS_BASED_FILESYSTEM.
3513 2004-05-31 Steven Bosscher <stevenb@suse.de>
3515 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
3516 Only look at case labels if the immediate dominator is also
3517 the only predecessor. Don't look for more case labels if the
3518 first seen is a case range.
3520 2004-05-31 Kazu Hirata <kazu@cs.umass.edu>
3522 * builtins.c: Add a prototype for fold_builtin_strchr().
3524 2004-05-31 Paolo Bonzini <bonzini@gnu.org>
3527 2004-05-27 Paolo Bonzini <bonzini@gnu.org>
3529 * combine.c (gen_binary): Remove.
3530 (known_cond, simplify_shift_const
3531 find_split_point, combine_simplify_rtx,
3532 simplify_if_then_else, simplify_set,
3533 simplify_logical, expand_field_assignment,
3534 extract_left_shift, force_to_mode,
3535 if_then_else_cond, apply_distributive_law,
3536 simplify_and_const_int, simplify_shift_const,
3537 gen_lowpart_for_combine, simplify_comparison,
3538 reversed_comparison): Replace with
3539 simplify_gen_binary, simplify_gen_relational or
3540 distribute_and_simplify_rtx.
3541 (distribute_and_simplify_rtx): New function.
3543 2004-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3545 * pa.c (emit_move_sequence): Fix loading of non 14-bit CONST operands
3546 when generating PIC code.
3548 2004-05-30 Andrew Pinski <pinskia@physics.uc.edu>
3550 * c-decl.c (c_expand_body_1): Remove and fold back into ...
3551 (c_expand_body): here.
3552 (c_expand_decl): Move to ...
3553 * c-common.c (c_expand_decl): Here and remove check for nested
3555 * c-common.h (c_expand_decl): Add prototype.
3556 * c-tree.h (c_expand_decl): Remove.
3558 2004-05-30 Roger Sayle <roger@eyesopen.com>
3560 * fold-const.c (combine_comparisons, optimize_bit_field_compare,
3561 range_binop, fold_truthop, fold_binary_op_with_conditional_arg,
3562 fold_mathfn_compare, fold_inf_compare, fold,
3563 fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
3564 Use constant_boolean_node where appropriate. Don't bother using
3565 fold_convert on the second argument to omit_one_operand.
3567 2004-05-30 Roger Sayle <roger@eyesopen.com>
3569 * doc/c-tree.texi (Expressions): Document FLOOR_DIV_EXPR,
3570 CEIL_DIV_EXPR, ROUND_DIV_EXPR, FLOOR_MOD_EXPR, CEIL_MOD_EXPR,
3571 ROUND_MOD_EXPR, EXACT_DIV_EXPR. Improve documentation of
3572 TRUNC_DIV_EXPR, TRUNC_MOD_EXPR and comparison operations.
3573 Add missing (but documented) tree nodes to the index.
3575 2004-05-30 Steven Bosscher <stevenb@suse.de>
3577 PR tree-optimization/14819
3578 * builtins.c (fold_builtin_strchr): New.
3579 (fold_builtin_1): Handle BUILT_IN_STRCHR and BUILT_IN_STRRCHR
3580 with fold_builtin_strchr().
3582 2004-05-30 Kazu Hirata <kazu@cs.umass.edu>
3584 * bb-reorder.c, builtins.c, c-common.c, c-gimplify.c,
3585 c-incpath.c, cgraphunit.c, ddg.c, defaults.h, dwarf2out.c,
3586 expmed.c, flags.h, gcc.c, gensupport.c, gimplify.c, global.c,
3587 passes.c, reg-stack.c, target.h, toplev.c, tree-alias-ander.c,
3588 tree-alias-common.c, tree-cfg.c, tree-complex.c, tree-dfa.c,
3589 tree-eh.c, tree-mudflap.c, tree-mudflap.h, tree-outof-ssa.c,
3590 tree-phinodes.c, tree-pretty-print.c, tree-ssa-alias.c,
3591 tree-ssa-ccp.c, tree-ssa-live.c, tree-ssa-live.h,
3592 tree-ssa-pre.c, tree.h, value-prof.h, varasm.c: Fix comment
3595 2004-05-30 Steven Bosscher <stevenb@suse.de>
3597 * gimplify.c (sort_case_labels): New. Split out from...
3598 (gimplify_switch_expr): ...here. Use it.
3599 * tree-eh.c (lower_try_finally_switch): Sort the labels of
3600 the SWITCH_EXPR created here before leaving the function.
3601 * tree.c (sort_case_labels): Add prototype.
3603 2004-05-30 Andrew Pinski <pinskia@physics.uc.edu>
3605 * fold-const.c (fold) [case TRUTH_NOT_EXPR]: Make sure the type is
3608 2004-05-30 Kazu Hirata <kazu@cs.umass.edu>
3610 * c-common.c, calls.c, cfgcleanup.c, cgraph.c, cgraphunit.c,
3611 ddg.c, ddg.h, df.c, df.h, except.c, expr.c, flags.h,
3612 fold-const.c, gcc.c, gimplify.c, haifa-sched.c,
3613 modulo-sched.c, tree-inline.c, tree-into-ssa.c, tree-nested.c,
3614 tree-nrv.c, tree-ssa-ccp.c, tree-ssa-dom.c, tree-ssa-live.c,
3615 tree-ssa-loop.c, tree-ssa-pre.c, tree-tailcall.c, tree.h: Fix
3616 comment typos. Follow spelling conventions.
3618 2004-05-29 Geoffrey Keating <geoffk@apple.com>
3620 * gengtype-yacc.y: Add NESTED_PTR token.
3621 (option): Record `nested_ptr' option.
3622 * gengtype-lex.l: Handle `nested_ptr' keyword.
3623 * gengtype.c (walk_type): Process `nested_ptr' option.
3624 * gengtype.h (struct nested_ptr_data): New.
3625 * doc/gty.texi (GTY Options): Document `nested_ptr' option.
3626 * stringpool.c (struct string_pool_data): Make 'entries' point to
3627 ht_identifier instead of tree.
3628 (gt_pch_save_stringpool): Don't adjust pointers.
3629 (gt_pch_restore_stringpool): Call ht_load.
3631 2004-05-29 Jason Merrill <jason@redhat.com>
3633 * gimplify.c (gimplify_expr): Don't build a statement list
3634 if no gimplification was necessary.
3636 2004-05-29 Joseph S. Myers <jsm@polyomino.org.uk>
3638 * pretty-print.c (pp_base_format_text): Support %< instead of %`
3639 and %> as well as %'.
3640 * c-format.c: Use %< and %>.
3641 (gcc_diag_char_table, gcc_cdiag_char_table,
3642 gcc_cxxdiag_char_table): Update.
3644 2004-05-29 Joseph S. Myers <jsm@polyomino.org.uk>
3646 * c-typeck.c (common_type): Correct comment.
3648 2004-05-29 Peter Barada <peter@the-baradas.com>
3650 * config/m68k/m68k.c (CONST_METHOD): Add MVZ, MVS.
3651 * config/m68k/m68k.c (const_method): Likewise.
3652 * config/m68k/m68k.c (const_int_cost): Likewise.
3653 * config/m68k/m68k.c (const_int_cost): Likewise.
3654 * config/m68k/m68k.c (output_move_const_into_data_reg): Likewise.
3656 2004-05-29 Peter Barada <peter@the-baradas.com>
3658 * config/m68k/m68k.h (EXTRA_CONSTRAINT): add 'U' for register offset
3660 * config/m68k/m68k.md: Add 'U,U' alternative to ColdFire variants of
3661 movsi,movhi,movqi insn patterns.
3663 2004-05-28 Andrew Pinski <pinskia@physics.uc.edu>
3665 * c-semantics.c (emit_local_var): Remove code for DECL_INITIAL.
3668 * config/darwin.c (machopic_indirect_call_target): Copy
3669 the SYMBOL_REF_DECL from the original RTX for the new
3672 2004-05-28 DJ Delorie <dj@redhat.com>
3674 * stor-layout.c (place_field): Revert erroneous commit.
3676 2004-05-28 Ziemowit Laski <zlaski@apple.com>
3678 * config/rs6000/altivec.h (vec_ctf, vec_vcfsx, vec_vcfux, vec_cts,
3679 vec_ctu, vec_dss, vec_dst, vec_dstst, vec_dststt, vec_dstt, vec_ld,
3680 vec_ldl, vec_lvsl, vec_lvsr, vec_sld, vec_splat, vec_vspltw,
3681 vec_vsplth, vec_vspltb, vec_splat_s8, vec_splat_s16, vec_splat_s32,
3682 vec_splat_u8, vec_splat_u16, vec_splat_u32, vec_st, vec_stl,
3683 vec_ste): Remove type checks for integral parameters and literals
3684 from '..._args_eq' macros.
3686 2004-05-28 Aldy Hernandez <aldyh@redhat.com>
3688 * c-common.c (fname_as_string): Fix xcalloc to xmalloc.
3690 2004-05-28 Aldy Hernandez <aldyh@redhat.com>
3692 * testsuite/g++.dg/charset/function.cc: New.
3694 * testsuite/gcc.dg/charset/function.c: New.
3696 * c-decl.c (c_make_fname_decl): Free return value from
3699 * cp/decl.c (cp_make_fname_decl): Free return value from
3702 * c-common.c (fname_as_string): Translate if necessary.
3704 2004-05-28 Geoffrey Keating <geoffk@apple.com>
3706 * stringpool.c: Add comments to PCH saving/restoring routines.
3708 2004-05-28 Andrew Pinski <pinskia@physics.uc.edu>
3710 * c-common.c (c_estimate_num_insns_1): Kill.
3711 (c_estimate_num_insns): Kill.
3712 * c-common.h (c_estimate_num_insns): Kill.
3714 * gthr-posix.h: Check for _POSIX_PRIORITY_SCHEDULING
3715 when checking for _POSIX_THREAD_PRIORITY_SCHEDULING.
3716 Remove comment about not checking for
3717 _POSIX_PRIORITY_SCHEDULING.
3718 * gthr-posix.c: Likewise.
3720 2004-05-28 Paolo Bonzini <bonzini@gnu.org>
3721 Roger Sayle <roger@eyesopen.com>
3723 PR rtl-optimization/15649
3724 Add LTGT_EXPR and improve pretty-printing of unordered
3726 * c-common.c (c_common_truthvalue_conversion):
3728 * c-typeck.c (build_binary_op): Likewise.
3729 * dojump.c (do_jump): Likewise.
3730 * expr.c (expand_expr_real_1, do_store_flag): Likewise.
3731 * predict.c (tree_predict_by_opcode): Likewise.
3732 * real.c (real_compare): Likewise.
3733 * tree-cfg.c (verify_expr): Likewise.
3734 * tree-inline.c (estimate_num_insns_1): Likewise.
3735 * tree-pretty-print.c (dump_generic_node): Likewise.
3736 Handle ORDERED_EXPR, UNORDERED_EXPR.
3737 (op_symbol): Print unordered comparisons differently
3739 * tree.def (LTGT_EXPR): New '<' tree code.
3740 * doc/c-tree.texi (Expressions): Document floating-point
3743 Fold comparisons between floating point values.
3744 * fold-const.c (enum comparison_code): New, from
3745 #define'd constants. Define compcodes for unordered
3746 comparisons and for invalid transformations.
3747 (invert_tree_comparison): Add "honor_nans" parameter.
3748 (fold_truthop): Revamp to work on floating-point types too.
3749 (comparison_to_compcode): Support unordered comparisons.
3750 Use new enum comparison_code.
3751 (compcode_to_comparison): Likewise.
3752 (combine_compcodes): New function.
3753 (invert_truthvalue): Let invert_tree_comparison decide
3754 whether it is valid to fold the comparison. Fold ORDERED
3755 and UNORDERED even if flag_unsafe_math_optimizations is off,
3756 and the remaining even if flag_unsafe_math_optimizations
3757 is off but we are under -fno-trapping-math.
3758 (fold_relational_const): Integer modes do not honor NaNs.
3760 2004-05-28 Paul Brook <paul@codesourcery.com>
3762 * config/arm/arm.c (arm_output_epilogue): Remove redundant code.
3764 2004-05-28 Paul Brook <paul@codesourcery.com>
3766 * config/arm/arm.c (thumb_force_lr_save): New function.
3767 (arm_get_frame_offsets, thumb_unexpanded_epilogue,
3768 thumb_output_function_prologue): Use it.
3769 (thumb_expand_prologue): Set lr_save_eliminated.
3771 2004-05-28 Richard Sandiford <rsandifo@redhat.com>
3773 * config/mips/mips.md (extendsidi2): Tie the source and destination
3774 of the register alternative. Split it into nothing.
3776 2004-05-28 Richard Sandiford <rsandifo@redhat.com>
3778 * rtl.h (skip_consecutive_labels): Declare.
3779 * emit-rtl.c (skip_consecutive_labels): New function.
3780 * reorg.c (relax_delay_slots, dbr_schedule): Use it.
3781 * jump.c (follow_jumps): Say what null return values mean.
3783 2004-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
3786 * config/sh/sh.md (rotlsi3): Use emit_move_insn.
3788 2004-05-27 Kaz Kojima <kkojima@gcc.gnu.org>
3790 * config/sh/t-linux (SHLIB_MAPFILES): Use sh specific
3792 * config/sh/libgcc-std.ver: New file.
3794 2004-05-27 Bryce McKinlay <mckinlay@redhat.com>
3796 * except.c: Revert change of 2004-05-26.
3797 * config/i386/i386.md: Revert change of 2004-05-27.
3799 2004-05-27 Bryce McKinlay <mckinlay@redhat.com>
3801 * configure.ac: Remove --enable-tree-browser option.
3802 Define TREEBROWSER when ac_tree_checking is defined.
3803 * configure: Rebuilt.
3805 2004-05-27 Olivier Hainque <hainque@act-europe.fr>
3807 * expr.c (store_constructor): Restore sanity check on
3808 the size of the type before clearing.
3810 2004-05-27 Jan Hubicka <jh@suse.cz>
3812 * cfgbuild.c (control_flow_insn_p): Notice noreturn call
3814 2004-05-27 Paolo Bonzini <bonzini@gnu.org>
3816 * combine.c (gen_binary): Remove.
3817 (known_cond, simplify_shift_const
3818 find_split_point, combine_simplify_rtx,
3819 simplify_if_then_else, simplify_set,
3820 simplify_logical, expand_field_assignment,
3821 extract_left_shift, force_to_mode,
3822 if_then_else_cond, apply_distributive_law,
3823 simplify_and_const_int, simplify_shift_const,
3824 gen_lowpart_for_combine, simplify_comparison,
3825 reversed_comparison): Replace with
3826 simplify_gen_binary, simplify_gen_relational or
3827 distribute_and_simplify_rtx.
3828 (distribute_and_simplify_rtx): New function.
3829 * simplify-rtx.c (simplify_binary_operation):
3830 Use nonzero_bits to simplify ANDs where we are
3831 turning off bits already known to be off in OP0.
3833 2004-05-27 Alan Modra <amodra@bigpond.net.au>
3836 * config/rs6000/rs6000.c (reg_or_neg_short_operand): Don't allow zero.
3838 2004-05-27 Josef Zlomek <zlomekj@suse.cz>
3841 * emit-rtl.c (gen_rtx_REG_offset): Adjust the offset according
3844 2004-05-26 Aldy Hernandez <aldyh@redhat.com>
3847 * config/rs6000/rs6000.c (spe_expand_stv_builtin): New.
3849 2004-05-26 Roger Sayle <roger@eyesopen.com>
3851 * tree.h: Fix comment typo.
3853 2004-05-27 Steven Bosscher <stevenb@suse.de>
3855 * gimplify.c (compare_case_labels): New function.
3856 (gimplify_switch_expr): Sort case labels, and make sure the
3857 last label in the label vector is the default case.
3858 * tree-cfg.c (group_case_labels): New function.
3859 (build_tree_cfg): Cleanup redundant labels and group case labels
3860 before creating edges.
3861 (cleanup_dead_labels): Handle GOTO_EXPRs.
3862 (find_case_label_for_value): Use a binary search to find the
3863 case label for the given value.
3864 * tree-gimple.c: Mention that labels are sorted, and that the
3865 last label must be the default.
3867 2004-05-27 Jan Hubicka <jh@suse.cz>
3869 * cfgcleanup.c (try_optimize_cfg): Do not merge across jumptables.
3871 2004-05-27 Jan Hubicka <jh@suse.cz>
3873 * i386.md (UNSPECV_EH_RETURN): Kill.
3874 (eh_return): Use jump_insn.
3875 (eh_return_si, eh_return_di): Change pattern to jump instruction.
3877 2004-05-26 Jan Hubicka <jh@suse.cz>
3879 * cfgcleanup.c (try_forward_edges): Do not check loop structure when
3880 not loop optimizing.
3882 2004-05-26 Jan Hubicka <jh@suse.cz>
3884 * except.c (can_throw_internal): Notice RESX instructions.
3886 2004-05-26 Eric Botcazou <ebotcazou@act-europe.fr>
3888 * varasm.c (output_constant) <INTEGER_TYPE>: Pass the minimum
3889 of the two sizes to assemble_integer.
3891 2004-05-25 Paul Brook <paul@codesourcery.com>
3893 * config/arm/arm.c (thumb_exit, thumb_unexpanded_epilogue): Remove
3896 2004-04-25 Paolo Bonzini <bonzini@gnu.org>
3898 * Makefile.in (top_builddir): Define to .
3900 2004-05-25 Alexandre Oliva <aoliva@redhat.com>
3902 * configure.ac (gcc_cv_ld): Prefer in-tree ld over whatever the
3903 top-level detects, except when in-tree ld is being cross-built.
3904 (gcc_cv_as): Likewise for as. Use AS_FOR_TARGET otherwise, and
3905 then AS only if target is host.
3906 * configure: Rebuilt.
3908 2004-05-25 Vladimir Makarov <vmakarov@redhat.com>
3910 * global.c (global_alloc): Call make_accurate_live_analysis.
3911 (record_one_conflict): Remove dead code.
3912 (mark_reg_clobber): Remove ATTRIBUTE_UNUSED for parameter data.
3913 (bb_info): New structure.
3914 (BB_INFO, BB_INFO_BY_INDEX): New macros.
3915 (allocate_bb_info, free_bb_info, mark_reg_change,
3916 calculate_local_reg_bb_info, set_up_bb_rts_numbers, rpost_cmp,
3917 modify_bb_reg_pav, calculate_reg_pav,
3918 make_accurate_live_analysis): New functions.
3920 2004-05-25 Devang Patel <dpatel@apple.com>
3922 * alias.c (init_alias_analysis): Use ggc_calloc instead of
3924 (end_alias_analysis): Use ggc_free instead fo free.
3926 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
3929 * config/ia64/ia64.h (ASM_OUTPUT_FDESC): Mark the DECL
3930 as needed to be outputted.
3932 2004-05-25 Jan Hubicka <jh@suse.cz>
3934 * builtins.def (__builtin_expect): Mark the function as const¬hrow.
3936 2004-05-25 Ayal Zaks <zaks@il.ibm.com>
3937 Mostafa Hagog <mustafa@il.ibm.com>
3939 * Makefile.in (modulo-sched.o, ddg.o): New.
3940 * ddg.h, ddg.c, modulo-sched.c: New files.
3941 * cfglayout.c (duplicate_insn_chain): Remove "static" and push
3942 internals to "dupicate_insn".
3943 (duplicate_insn): New function.
3944 * cfglayout.h (duplicate_insn_chain, duplicate_insn): New
3946 * common.opt (fmodulo-sched): New flag.
3947 * df.c (df_bb_regno_last_use_find, df_bb_regno_first_def_find):
3948 Remove static and forward declaration.
3949 (df_find_def, df_reg_used, df_bb_regno_last_def_find): New
3951 * df.h (df_bb_regno_last_use_find, df_bb_regno_first_def_find,
3952 df_bb_regno_last_def_find, df_find_def, df_reg_used): New
3954 * flags.h (flag_modulo_sched): New flag.
3955 * opts.c (common_handle_option): Handle modulo-sched flag.
3956 * params.def (max-sms-loop-number, sms-max-ii-factor,
3957 sms-dfa-history, sms-loop-average-count-threshold): New
3959 * params.h (MAX_SMS_LOOP_NUMBER, SMS_MAX_II_FACTOR,
3960 SMS_DFA_HISTORY, SMS_LOOP_AVERAGE_COUNT_THRESHOLD): New
3962 * passes.c ("sms", "sms-vcg"): New dumps.
3963 (rest_of_handle_sched): Call sms_schedule.
3964 * rtl.h (sms_schedule): New declaration.
3965 * timevar.def (TV_SMS): New.
3966 * toplev.c (flag_modulo_sched): Initialize.
3967 (f_options): Handle -fmodulo-sched option.
3968 * docs/invoke.texi: Document -fmodulo-sched & -dm options.
3969 * docs/passes.texi: Document new SMS pass.
3971 2004-05-25 Paolo Bonzini <bonzini@gnu.org>
3973 * Makefile.in (OBJS): Add rtlhooks.o.
3974 (rtlanal.o): Depend on function.h.
3975 (cse.o): Depend on rtlhooks-def.h.
3976 (combine.o): Depend on rtlhooks-def.h.
3977 (rtlhooks.o): New rule.
3978 * combine.c: Include rtlhooks-def.h.
3979 (nonzero_bits, cached_nonzero_bits, nonzero_bits1,
3980 num_sign_bit_copies, cached_num_sign_bit_copies,
3981 num_sign_bit_copies1): Move most of the code to rtlanal.c.
3982 (reg_nonzero_bits_for_combine,
3983 reg_num_sign_bit_copies_for_combine): New functions holding
3984 the remnants of the above.
3985 (combine_rtl_hooks): New.
3986 (combine_instructions): Set rtl_hooks instead of gen_lowpart.
3987 * cse.c: Include rtlhooks-def.h.
3988 (cse_rtl_hooks): New.
3989 (cse_main): Set rtl_hooks instead of gen_lowpart.
3990 * emit-rtl.c (gen_lowpart): Remove.
3991 (gen_lowpart_general): Move to rtlhooks.c.
3992 * rtl.h (nonzero_bits, num_sign_bit_copies,
3993 struct rtl_hooks, rtl_hooks, general_rtl_hooks): New.
3994 (gen_lowpart_general): Remove.
3995 (gen_lowpart): Temporarily redefine as a macro.
3996 * rtlanal.c: Include function.h.
3997 (nonzero_bits, cached_nonzero_bits, nonzero_bits1,
3998 num_sign_bit_copies, cached_num_sign_bit_copies,
3999 num_sign_bit_copies1): New, from combine.c.
4000 * rtlhooks.c: New file.
4001 * rtlhooks-def.h: New file.
4003 2004-05-25 Svein E. Seldal <Svein.Seldal@solidas.com>
4005 * config/avr/avr.h (LONG_LONG_TYPE_SIZE): Changed long long type
4006 to support 32-bit -mint8 mode.
4008 * doc/invoke.texi (-mint8): Added documentation for the -mint8
4009 option in the AVR architecture.
4011 2004-05-24 Mike Stump <mrs@apple.com>
4013 * doc/install.texi: Document that dejagnu 1.4.4 is required.
4015 2004-05-24 Joseph S. Myers <jsm@polyomino.org.uk>
4017 * intl.h (open_quote, close_quote): New.
4018 * intl.c (open_quote, close_quote): New.
4019 (gcc_init_libintl): Set them.
4020 * pretty-print.c: Include "intl.h".
4021 (pp_base_format_text): Support 'q' format flag and %` and %'
4022 formats. Use ' instead of ` in comments.
4023 * c-format.c (gcc_diag_flag_specs, gcc_cxxdiag_flag_specs,
4024 gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table,
4025 foramt_types_orig): Describe these new formats.
4026 (decode_format_attr, check_function_format,
4027 check_format_info_main): Use these new formats.
4028 (status_warning): Use ATTRIBUTE_GCC_DIAG.
4029 * toplev.c (ATTRIBUTE_GCC_DIAG): Increase required GCC version to
4030 check these formats to 3.5.
4032 2004-05-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4034 * Makefile.in (CPPLIBS): Renamed to CPPLIB.
4035 (BACKEND): Reflect this.
4036 (LIBDEPS): Move CPPLIB before LIBIBERTY.
4039 2004-05-24 Ulrich Weigand <uweigand@de.ibm.com>
4041 PR tree-optimization/14197
4042 * builtins.c: Include "tree-gimple.h"
4043 (readonly_data_expr): Use get_base_address. Make sure to call
4044 decl_readonly_section only on trees it can handle.
4045 * tree-gimple.c (get_base_address): Accept STRING_CST and
4046 CONSTRUCTOR expressions.
4047 * Makefile.in: Update dependencies.
4049 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
4051 Move libcpp to the toplevel.
4052 * Makefile.in: Remove references to libcpp files,
4053 use CPPLIBS instead of libcpp.a. Define SYMTAB_H
4054 and change hashtable.h to that.
4055 * aclocal.m4 (gcc_AC_HEADER_STDBOOL,
4056 gcc_AC_HEADER_STRING, gcc_AC_C__BOOL): Remove.
4057 * configure.ac (gcc_AC_C__BOOL, HAVE_UCHAR): Remove tests.
4058 * configure: Regenerate.
4059 * config.in: Regenerate.
4060 * c-ppoutput.c: Include ../libcpp/internal.h instead of cpphash.h.
4061 * cppcharset.c: Removed.
4062 * cpperror.c: Removed.
4063 * cppexp.c: Removed.
4064 * cppfiles.c: Removed.
4065 * cpphash.c: Removed.
4066 * cpphash.h: Removed.
4067 * cppinit.c: Removed.
4068 * cpplex.c: Removed.
4069 * cpplib.c: Removed.
4070 * cpplib.h: Removed.
4071 * cppmacro.c: Removed.
4072 * cpppch.c: Removed.
4073 * cpptrad.c: Removed.
4074 * cppucnid.h: Removed.
4075 * cppucnid.pl: Removed.
4076 * cppucnid.tab: Removed.
4077 * hashtable.c: Removed.
4078 * hashtable.h: Removed.
4079 * line-map.c: Removed.
4080 * line-map.h: Removed.
4081 * mkdeps.c: Removed.
4082 * mkdeps.h: Removed.
4083 * stringpool.h: Include symtab.h instead of hashtable.h.
4084 * tree.h: Include symtab.h instead of hashtable.h.
4085 * system.h (O_NONBLOCK, O_NOCTTY): Do not define.
4087 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
4089 * gcc.c (struct prefix_list): Add forward declaration.
4090 (do_spec_path): New function, extracted from...
4091 (do_spec_1) <'D'>: ... here. Drop support for
4092 SPACE_AFTER_L_OPTION.
4093 (do_spec_1) <'I'>: Use do_spec_path.
4094 (process_command): Do not store the 'include' suffix
4095 in include_prefixes.
4096 * system.h: Poison SPACE_AFTER_L_OPTION.
4098 2002-05-23 Roger Sayle <roger@eyesopen.com>
4100 * fold-const.c (non_lvalue): Explicitly list the tree codes that
4101 need to be wrapped by NON_LVALUE_EXPR, instead of those that don't.
4103 2004-05-23 Joseph S. Myers <jsm@polyomino.org.uk>
4105 * doc/gcc.texi, doc/gccint.texi, doc/include/gcc-common.texi:
4106 Update based on printed manual. Enable setting of offsets for
4107 FSFPRINT and move it to gcc-common.texi.
4108 * doc/gcc.texi: Update FSF printing details.
4109 * doc/gccint.texi: Remove FSF printing details.
4111 2004-05-23 Andrew Pinski <pinskia@physics.uc.edu>
4113 * config/rs6000/t-rs6000: Remove the disabling -Werror.
4115 2004-05-22 Roger Sayle <roger@eyesopen.com>
4117 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
4118 expand_builtin_strrchr, expand_builtin_strpbrk,
4119 expand_builtin_mempcpy, expand_builtin_memcmp,
4120 expand_builtin_strcmp, expand_builtin_strncmp,
4121 expand_builtin_strcat, std_expand_builtin_va_start,
4122 std_expand_builtin_va_arg, expand_builtin_va_copy,
4123 expand_builtin_signbit, fold_builtin_cabs,
4124 fold_builtin_logarithm, fold_builtin_mempcpy,
4125 fold_builtin_signbit, fold_builtin_isascii,
4126 fold_builtin_toascii, fold_builtin_isdigit,
4127 fold_builtin_1, build_function_call_expr,
4128 simplify_builtin_strchr, simplify_builtin_strrchr,
4129 simplify_builtin_strpbrk, simplify_builtin_strncpy,
4130 simplify_builtin_memcmp, simplify_builtin_strcmp,
4131 simplify_builtin_strncmp, simplify_builtin_strncat,
4132 simplify_builtin_strspn, simplify_builtin_strcspn,
4133 simplify_builtin_fputs, simplify_builtin_sprintf): Replace calls
4134 to build with calls to build2, build3 or omit_one_operand.
4136 2004-05-22 Richard Sandiford <rsandifo@redhat.com>
4138 * config/mips/mips.c (mips_file_start): Emit a .gcc_compiled_longXX
4139 section when generating EABI code.
4141 2004-05-22 Andrew Pinski <pinskia@physics.uc.edu>
4144 * config/i386/i386.c (output_pic_addr_const <case SYMBOL_REF>):
4145 Call mark_decl_referenced on the SYMBOL_REF_DECL.
4147 2004-05-22 Andrew Pinski <pinskia@physics.uc.edu>
4149 * c-common.c (c_common_truthvalue_conversion): Handle
4150 UNEQ_EXPR, UNLE_EXPR, UNGE_EXPR, UNLT_EXPR, UNGT_EXPR,
4151 ORDERED_EXPR, and UNORDERED_EXPR as comparison operators,
4152 i.e. set the type to truthvalue_type_node and return.
4154 2004-05-22 Zack Weinberg <zack@codesourcery.com>
4156 * tree.h (struct tree_decl): Add possibly_inlined bit.
4157 (DECL_POSSIBLY_INLINED): New accessor macro.
4158 * cgraph.h: Remove declaration of cgraph_inline_hash.
4159 * cgraph.c: Remove definition of cgraph_inline_hash.
4160 (hash_node): Revert to hashing DECL_UID.
4161 (eq_node): Take two pointers to cgraph_node structures.
4163 (cgraph_remove_node): Pass the node directly to htab_find_slot.
4164 (cgraph_varpool_hash_node): Rename hash_varpool_node;
4166 (eq_cgraph_varpool_node): Rename eq_varpool_node; take two
4167 pointers to cgraph_varpool_node structures; compare DECL_UIDs.
4168 (cgraph_node): Allocate a temporary node on the stack, fill in
4169 its DECL field, and pass that to htab_find_slot.
4170 (cgraph_varpool_node): Likewise.
4171 (cgraph_function_possibly_inlined_p): If global info is ready,
4172 return the DECL_POSSIBLY_INLINED bit.
4173 * cgraphunit.c (cgraph_mark_inline_edge): Set DECL_POSSIBLY_INLINED
4174 instead of mucking with cgraph_inline_hash.
4176 2004-05-22 Joseph S. Myers <jsm@polyomino.org.uk>
4178 * doc/contrib.texi: Add g77 contributors.
4180 2004-05-22 Richard Sandiford <rsandifo@redhat.com>
4182 * calls.c (initialize_argument_information): Forbid sibcalls if a
4183 callee-copied argument is stored in the current function's frame.
4185 2004-05-22 Eric Christopher <echristo@redhat.com>
4187 * fix-header.c (read_scan_file): Update for add_path change.
4189 2004-05-22 Ben Elliston <bje@au.ibm.com>
4191 * c.opt (Wmissing-include-dirs): New.
4192 * c-opts.c (c_common_handle_option): Pass true for user_supplied_p
4193 to add_path () for -I, but false for OPT_idirafter, OPT_iquote and
4194 OPT_isystem. Handle case OPT_Wmissing_include_dirs.
4195 * c-incpath.h (add_path): Add fourth (bool) argument.
4196 * c-incpath.c (add_env_var_paths): Pass false to add_path ().
4197 (add_standard_paths): Likewise.
4198 (remove_duplicates) [REASON_NOENT]: Warn if -Wmissing-include-dirs
4199 is used and the directory was user-supplied via -I.
4200 (add_path): Set p->user_supplied_p. Remove duplicated code by
4201 using add_cpp_dir_path ().
4202 * cpplib.h (struct cpp_options): Add warn_missing_include_dirs.
4203 (struct cpp_dir): Add user_supplied_p.
4204 * doc/invoke.texi (Warning Options): Document new option.
4206 2004-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4208 * fold-const.c (fold_read_from_constant_string): Convert result to
4211 2004-05-21 Richard Henderson <rth@redhat.com>
4213 * gimplify.c (mostly_copy_tree_r): Don't attempt to copy decls.
4214 (copy_if_shared_r): Don't copy decls, types, constants, BINDs.
4215 Don't mark VA_ARG_EXPRs volatile here.
4216 (gimplify_modify_expr): Unshare TYPE_SIZE_UNIT.
4218 2004-05-21 Richard Henderson <rth@redhat.com>
4220 * Makefile.in (tree-dump.o): Depend on tree-iterator.h.
4221 * tree-dump.c (dequeue_and_dump): Dump STATEMENT_LISTs.
4223 2004-05-21 Roger Sayle <roger@eyesopen.com>
4225 * fold-const.c (fold, fold_relational_hi_lo,
4226 nondestructive_fold_binary_to_constant,
4227 fold_read_from_constant_string): Use fold_convert instead of convert.
4228 * builtins.c (simplify_builtin, simplify_builtin_strstr,
4229 simplify_builtin_strchr, simplify_builtin_strrchr,
4230 simplify_builtin_strpbrk): Use fold_convert instead of convert.
4232 2004-05-21 Diego Novillo <dnovillo@redhat.com>
4234 * tree-flow-inline.h (num_immediate_uses): Don't abort if DF
4237 2004-05-21 Jakub Jelinek <jakub@redhat.com>
4239 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): If SPARC_BI_ARCH,
4240 override sparc.h definition.
4242 2004-05-20 Roger Sayle <roger@eyesopen.com>
4244 * tree.c (array_type_nelts, save_expr, substitute_in_expr,
4245 get_unwidened, get_narrower): Replace build with build2.
4246 * fold-const.c (negate_expr, associate_trees, size_binop,
4247 fold_convert, eval_subst, omit_one_operand, invert_truthvalue,
4248 pedantic_omit_one_operand, distribute_bit_expr,
4249 make_bit_field_ref, optimize_bit_field_compare,
4250 decode_field_reference, range_binop, make_range,
4251 build_range_check, fold_range_test, fold_truthop,
4252 optimize_minmax_comparison, extract_muldiv_1,
4253 fold_binary_op_with_conditional_arg, fold_mathfn_compare,
4254 fold_inf_compare, fold_single_bit_test, fold,
4255 fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
4256 Likewise replace build with either build2 or build3.
4258 2004-05-20 Ian Lance Taylor <ian@wasabisystems.com>
4260 * system.h: Poison NO_RECURSIVE_FUNCTION_CSE.
4261 * calls.c (prepare_call_address): Don't test
4262 NO_RECURSIVE_FUNCTION_CSE.
4263 * config/arc/arc.h (NO_RECURSIVE_FUNCTION_CSE): Don't define.
4264 * config/arm/arm.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4265 * config/avr/avr.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4266 * config/frv/frv.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4267 * config/i386/i386.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4268 * config/ip2k/ip2k.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4269 * config/iq2000/iq2000.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4270 * config/m32r/m32r.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4271 * config/m68k/m68k.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4272 * config/mcore/mcore.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4273 * config/mips/mips.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4274 * config/stormy16/stormy16.h (NO_RECURSIVE_FUNCTION_CSE):
4276 * config/xtensa/xtensa.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4277 * config/sh/sh.h: Remove NO_RECURSIVE_FUNCTION_CSE comment.
4278 * doc/tm.texi (Costs): Remove documentation for
4279 NO_RECURSIVE_FUNCTION_CSE.
4281 2004-05-20 Paul Brook <paul@codesourcery.com>
4283 * unwind-dw2-fde.c (get_cie_encoding): Handle dwarf3 CIE format.
4284 * unwind-dw2.c (extract_cie_info): Ditto.
4285 (_Unwind_FrameState): Change retaddr_column to word type.
4287 2004-05-20 Roger Sayle <roger@eyesopen.com>
4290 * fold-const.c (strip_compound_expr): Delete function.
4291 (count_cond): Delete function.
4292 (fold_binary_op_with_conditional_arg): Only perform transformations
4293 "a + (b?c:d) -> b ? a+c : a+d" and "(b?c:d) + a -> b ? c+a : d+a"
4294 when a is constant. This greatly simplifies this routine.
4296 * tree.c (saved_expr_p): Delete function.
4297 * tree.h (saved_expr_p): Delete function prototype.
4299 2004-05-20 Andrew Pinski <pinskia@physics.uc.edu>
4301 * common.opt (ftree-loop-optimize): Remove.
4303 2004-05-20 Daniel Jacobowitz <dan@debian.org>
4305 * Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET)
4306 (NM_FOR_TARGET): Use := and $(shell).
4307 (mainversion): Remove unused variable.
4309 2004-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4311 * reorg.c (delete_from_delay_slot): If we have a barrier after the
4312 sequence containing the insn to be deleted, always reemit it.
4314 2004-05-20 Richard Henderson <rth@redhat.com>
4317 * tree-nested.c (get_chain_decl): Create a PARM_DECL by hand.
4318 * function.c (expand_function_start): Expand static_chain_decl by hand.
4319 * gimplify.c (create_tmp_var_name): Export.
4320 * tree-gimple.h (create_tmp_var_name): Declare.
4322 2004-05-20 Andrew Pinski <pinskia@physics.uc.edu>
4324 * rs6000.c (print_operand) <case 'z'>: Call
4325 mark_decl_referenced before assemble_name.
4327 2004-05-20 Zack Weinberg <zack@codesourcery.com>
4329 * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
4330 (cgraph_varpool_hash_node, eq_cgraph_varpool_node)
4331 (cgraph_varpool_node): Hash on the pointer to the decl, not
4332 the DECL_UID. Fixes 64-bit bootstrap failure.
4334 2004-05-20 Richard Earnshaw <rearnsha@arm.com>
4336 * arm.md (ite_ne_zeroextractsi, ite_ne_zeroextractsi_shifted): Ensure
4337 we don't earlyclobber operands used in the second insn.
4339 2004-05-20 Steven Bosscher <stevenb@suse.de>
4341 * tree-mudflap.c: Formatting fixes.
4343 2004-05-20 J"orn Rennecke <joern.rennecke@superh.com>
4345 * Makefile.in (GTFILES): Add $(srcdir)/reload.h.
4346 * gengtype.c (open_base_files): Include reload.h in ifiles.
4347 * reload.h (reg_equiv_memory_loc_varray): Declare.
4348 * reload1.c (reg_equiv_memory_loc_varray): New variable.
4349 (init_reload): Initialize it.
4350 (reload): Instead of freeing reg_equiv_memory_loc, 'grow'
4351 reg_equiv_memory_loc_varray to size 0.
4352 * ra.c (reg_alloc): Allocate reg_equiv_memory_loc by
4353 growing reg_equiv_memory_loc_varray to the desired size.
4354 * passes.c (rest_of_handle_old_regalloc): Likewise.
4355 * reload.c: Amend comment on calling init_reload.
4357 2004-05-20 Nick Clifton <nickc@redhat.com>
4359 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Replace 'tramp'
4360 with 'TRAMP' in the body of the macro definition.
4362 2004-05-19 H.J. Lu <hongjiu.lu@intel.com>
4365 * config/ia64/ia64.c (ia64_expand_compare): Don't check
4366 TARGET_HPUX for TFmode compare. Abort if op0 is in TFmode and
4367 cmptf_libfunc isn't set.
4368 (ia64_init_libfuncs): Rename TFmode libfuncs using the HPUX
4370 (ia64_sysv4_init_libfuncs): New.
4372 * config/ia64/sysv4.h (TARGET_INIT_LIBFUNCS): New. Defined as
4373 ia64_sysv4_init_libfuncs.
4375 2004-05-20 Falk Hueffner <falk@debian.org>
4378 * libgcc2.c (__mulvsi3): Fix overflow test.
4380 2004-05-19 Andrew Pinski <pinskia@physics.uc.edu>
4383 * reg-stack.c (nan): Rename to ...
4385 (reg_to_stack): Rename nan to not_a_num.
4386 (subst_stack_regs_pat): Likewise.
4387 (convert_regs_entry): Likewise.
4388 (convert_regs_1): Likewise.
4390 * tree-cfg.c (find_case_label_for_value): Replace call to
4391 simple_cst_equal with tree_int_cst_equal.
4393 2004-05-19 Jeff Law <law@redhat.com>
4395 * tree-into-ssa.c (prepare_operand_for_rename): New argument is_use.
4396 If the operand is for a use, then strip away the SSA_NAME, do not
4397 strip away the SSA_NAME for a set. Never call release_ssa_name.
4398 (mark_def_sites): Appropriately pass additional argument to
4399 prepare_operand_for_rename. If a VDEF_RESULT is not an SSA_NAME,
4400 then set the VDEF_RESULT to the VDEF_OP.
4401 (set_def_block): Strip away any SSA_NAME to get to the real
4402 underlying variable.
4404 * tree-ssa-phiopt.c (value_replacement): Handle the case where
4405 the desired edge out of COND_BLOCK reaches OTHER_BLOCK rather than
4408 2004-05-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4411 * loop-iv.c (iv_number_of_iterations): Use trunc_int_for_mode on
4414 PR rtl-optimization/15274
4415 * loop-iv.c (determine_max_iter, shorten_into_mode,
4416 iv_number_of_iterations): Handle constants correctly.
4417 * rtl.h (get_mode_bounds): Declaration changed.
4418 * stor-layout.c (get_mode_bounds): Return a constant suitable for
4421 PR rtl-optimization/14692
4422 * loop-unswitch.c (may_unswitch_on): Try folding the result.
4423 (unswitch_single_loop): Work correctly when may_unswitch_on
4424 returns a folded constant.
4426 * loop-iv.c (implies_p): Handle A < B ==> A + 1 <= B.
4427 * simplify-rtx.c (simplify_const_relational_operation): Optimize
4428 comparisons with mode bounds.
4430 * function.c (struct temp_slot): Add new field prev.
4431 (free_after_compilation, init_temp_slots): Free new fields.
4432 (cut_slot_from_list, insert_slot_to_list,
4433 temp_slots_at_level, max_slot_level, move_slot_to_level,
4434 make_slot_available): New functions.
4435 (assign_stack_temp_for_type, combine_temp_slots,
4436 find_temp_slot_from_address, preserve_temp_slots,
4437 preserve_rtl_expr_result, free_temp_slots,
4438 free_temps_for_rtl_expr, pop_temp_slots): Work with
4439 the new structure of lists.
4440 (mark_all_temps_used): Removed.
4441 * function.h (struct function): Field x_temp_slots
4442 replaced by x_used_temp_slots and x_avail_temp_slots.
4443 (temp_slots): Replaced by ...
4444 (used_temp_slots, avail_temp_slots): New.
4445 * tree.h (mark_all_temps_used): Declaration removed.
4447 * loop-iv.c (mark_single_set, get_biv_step_1, iv_analyze,
4448 simplify_using_assignment): Take the expression out of
4449 the expr_list wrapper.
4451 * loop-iv.c (iv_number_of_iterations): Improve clasification of
4454 2004-05-19 Roger Sayle <roger@eyesopen.com>
4456 * doc/tm.texi (TARGET_RTX_COSTS): Document that instruction
4457 costs should be based on code size when optimizing for size.
4459 2004-05-19 Paolo Bonzini <bonzini@gnu.org>
4461 * fold-const.c: Remove non-printable character 160.
4463 2004-05-19 Nick Clifton <nickc@redhat.com>
4465 * doc/invoke.texi (ARM Options): Fix typo.
4466 Remove descrption of -mshort-load-bytes and
4467 -mno-short-load-bytes.
4469 * config/ip2k/ip2k.c (ip2k_composite_xexp_not_uses_reg_p): Add
4470 missing parenthesis.
4471 * config/ip2k/ip2k.c (ip2k_unary_operator): Likewise.
4472 * config/ip2k/ip2k.c (ip2k_binary_operator): Likewise.
4474 2004-05-19 Steven Bosscher <stevenb@suse.de>
4476 * expr.c (store_constructor): Build loop start and end by hand
4477 instead of via loop functions from stmt.c.
4478 (expand_expr_real_1): Abort if we see an EXIT_EXPR or a LOOP_EXPR.
4479 Remove the code to expand them.
4481 * stmt.c (loop_stack): Remove this and everything related.
4482 (struct nesting, enum nesting_desc): Update.
4483 (expand_fixup): Likewise.
4484 (expand_loop_start, expand_start_loop_continue_elsewhere,
4485 expand_start_null_loop, expand_loop_continue_here, expand_end_loop,
4486 expand_end_null_loop, expand_continue_loop, expand_exit_loop,
4487 expand_exit_loop_if_false, expand_exit_loop_top_cond,
4488 expand_exit_something): Remove.
4489 * tree.h: Remove prototypes.
4491 2004-05-18 Mike Stump <mrs@apple.com>
4492 Devang Patel <dpatel@apple.com>
4494 * doc/tm.texi (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument to indicate
4495 if this label is for eh.
4496 * config/darwin-protos.h (darwin_emit_unwind_label): Likewise.
4497 * config/darwin.c (darwin_emit_unwind_label): Likewise.
4498 * dwarf2out.c (output_call_frame_info): Likewise.
4499 * output.h (default_emit_unwind_label): Likewise.
4500 * target.h (unwind_label): Likewise.
4501 * varasm.c (default_emit_unwind_label): Likewise.
4503 * config/darwin.h (DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
4504 DEBUG_FRAME_SECTION, DEBUG_INFO_SECTION, DEBUG_ABBREV_SECTION,
4505 DEBUG_ARANGES_SECTION, DEBUG_MACINFO_SECTION, DEBUG_LINE_SECTION,
4506 DEBUG_LOC_SECTION, DEBUG_PUBNAMES_SECTION, DEBUG_STR_SECTION,
4507 DEBUG_RANGES_SECTION): Define.
4509 2004-05-18 Zack Weinberg <zack@codesourcery.com>
4511 * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
4512 (cgraph_varpool_hash_node, eq_cgraph_varpool_node)
4513 (cgraph_varpool_node):
4514 Use DECL_UID for the key, not DECL_ASSEMBLER_NAME.
4515 (cgraph_function_possibly_inlined_p): Use the decl itself for
4516 the key, not DECL_ASSEMBLER_NAME.
4517 (change_decl_assembler_name): No need to muck with the hash tables.
4518 (cgraph_node_for_identifier, cgraph_varpool_node_for_identifier):
4520 * cgraphunit.c (cgraph_mark_inline_edge): Use the decl itself
4521 for the key, not DECL_ASSEMBLER_NAME.
4522 * cgraph.h: Remove prototypes of deleted functions.
4523 * varasm.c (mark_referenced): Just set TREE_SYMBOL_REFERENCED.
4524 (mark_decl_referenced): New function.
4525 * tree.h: Prototype mark_decl_referenced.
4526 * final.c (output_addr_const) <case SYMBOL_REF>: Call
4527 mark_decl_referenced before assemble_name.
4528 * c-decl.c (finish_decl): Use mark_decl_referenced.
4530 2004-05-18 Andrew Pinski <pinskia@physics.uc.edu>
4531 Jeff Law <law@redhat.com>
4533 * tree-ssa-phiopt.c (abs_replacement): New function.
4534 (empty_block_p): New function extracted from...
4535 (candidate_bb_for_phi_optimization): Break out empty block test.
4536 (conditional_replacement): Use empty_block_p.
4537 (value_replacement): Similarly.
4539 * Makefile.in (tree-ssa-phiopt.o): Depends on flags.h.
4540 * tree-ssa-phiopt.c: Include flags.h.
4541 (conditional_replacement): Remove argument names from prototype.
4542 Minor formatting and comment fixes.
4543 (tree_ssa_phiopt): If conditional_replacement returns false, then
4544 call value_replacement.
4545 (value_replacement): New function.
4547 2004-05-18 Jeff Law <law@redhat.com>
4549 * tree-ssa-phiopt.c (replace_phi_with_stmt): New function extracted
4550 from conditional_replacement.
4551 (candidate_bb_for_phi_optimization): Similarly.
4552 (conditional_replacement): Use replace_phi_with_stmt and
4553 candidate_bb_for_phi_optimization.
4555 * tree-ssa-phiopt.c: Fix various formatting issues.
4557 2004-05-18 Steven Bosscher <stevenb@suse.de>
4559 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
4560 s390_expand_cmpmem): Do not use expand_start_loop and
4561 expand_end_loop, instead build the loop manually.
4563 2004-05-18 Alan Modra <amodra@bigpond.net.au>
4565 * config/rs6000/rs6000.md (ctrsi_internal3): Delete.
4566 (ctrsi_internal4, ctrdi_internal3, ctrdi_internal4): Delete.
4568 2004-05-17 Jeff Law <law@redhat.com>
4570 * toplev.h (flag_delete_null_pointer_checks): Move from here to...
4571 * flags.h (flag_delete_null_pointer_checks): Here.
4572 * tree-flow.h (cprop_into_successor_phis): Add argument to prototype.
4573 * tree-phinodes.c (resize_phi_node): Initialize PHI_ARG_NONZERO.
4574 (add_phi_arg, remove_phi_arg_num): Similarly.
4575 * tree-ssa-copy.c (cprop_into_successor_phis): Propagate nonzero
4576 property into PHI nodes.
4577 * tree-ssa-dom.c: Remove redundant inclusion of flags.h.
4578 (record_equivalences_from_phis): If all PHI arguments are known to be
4579 nonzero, then the result must be nonzero as well.
4580 (cprop_into_phis): Pass nonzero_vars bitmap to cprop_into_successor_phis.
4581 (record_equivalences_from_stmt): Check flag_delete_null_pointer_checks
4582 appropriately. Walk the USE-DEF chains and propagate nonzero property
4584 * tree.h (PHI_ARG_NONZERO): Define.
4585 (phi_arg_d): Add nonzero flag.
4587 2004-05-17 Zack Weinberg <zack@codesourcery.com>
4589 * f: Entire directory removed
4591 * c-common.h (CTI_G77_INTEGER_TYPE, CTI_G77_UINTEGER_TYPE)
4592 (CTI_G77_LONGINT_TYPE, CTI_G77_ULONGINT_TYPE)
4593 (g77_integer_type_node, g77_uinteger_type_node)
4594 (g77_longint_type_node, or g77_ulongint_type_node): Delete.
4595 * c-common.c (c_common_nodes_and_builtins): Do not initialize
4596 the above set of variables.
4598 * config/i386/uwin.h: No need to define WIN32_UWIN_TARGET.
4599 * doc/invoke.texi, doc/standards.texi: Remove cross-references
4602 2004-05-17 Steven Bosscher <stevenb@suse.de>
4604 PR tree-optimization/15438
4605 * tree-ssa-operands.c (get_expr_operands): Do not treat malloc
4606 attributed functions as pure or const.
4608 2004-05-17 Frank Ch. Eigler <fche@redhat.com>
4610 * tree-mudflap.c (mx_register_decls): Tolerate decl trees resulting
4611 from source code with errors.
4613 2004-05-17 Ranjit Mathew <rmathew@hotmail.com>
4615 Enable tree browser for all front ends.
4616 * Makefile.in (cc1): Moved @TREEBROWSER@ from here...
4617 (BACKEND): ...to here.
4619 2004-05-17 Jan Hubicka <jh@suse.cz>
4621 * i386.c (construct_container): Do not produce BLKmode registers.
4622 (classify_argument): Properly compute alignment of complex types.
4624 2004-05-17 H.J. Lu <hongjiu.lu@intel.com>
4627 * config/i386/i386.md (*movsi_insv_1_rex64): Changed to DImode
4628 and renamed to movdi_insv_1_rex64.
4629 (insv): Support SImode for 32bit and DImode for 64bit.
4631 2004-05-17 Richard Sandiford <rsandifo@redhat.com>
4633 * config/mips/mips.h (MASK_DEBUG_G, TARGET_DEBUG_G_MODE): Delete.
4634 (TARGET_SWITCHES): Remove debugg.
4635 * config/mips/mips.md (adddi3, ashldi3, ashrdi3, lshrdi3): Only handle
4637 (subdi3): Replace the define_expand with a define_insn, the latter
4638 renamed from subdi3_internal_3.
4639 (negdi2): Likewise negdi2_internal_2.
4640 (adddi3_internal_[12], subdi3_internal, ashldi3_internal{,2,3})
4641 (ashrdi3_internal{,2,3}, lshrdi3_internal{,2,3}): Remove patterns
4642 and associated define_splits.
4643 (adddi3_internal): Renamed from adddi3_internal_3.
4644 (ashldi3_internal): Likewise ashldi3_internal4.
4645 (ashrdi3_internal): Likewise ashrdi3_internal4.
4646 (lshrdi3_internal): Likewise lshrdi3_internal4.
4648 2004-05-17 Richard Sandiford <rsandifo@redhat.com>
4650 * optabs.c (expand_unop): Try implementing negation using subtraction
4653 2004-05-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4655 * pa.md: Fix typo from last change. Remove DFmode move to and from
4658 2004-05-16 Richard Earnshaw <rearnsha@arm.com>
4661 * arm.md (ne_zeroextractsi): Convert to insn-and-split.
4662 (ne_zeroextractsi_shifted): New pattern.
4663 (ite_ne_zeroextractsi): New pattern.
4664 (ite_ne_zeroextractsi_shifted): New pattern.
4666 2004-05-15 Steven Bosscher <stevenb@suse.de>
4668 * c-gimplify.c (c_genericize):
4669 Replace calls via (*lang_hooks.foo) with lang_hooks.foo.
4670 * c-parse.in <expr_no_commas>: Likewise.
4671 <if_prefix>: Likewise.
4672 <select_or_iter_stmt>: Likewise.
4673 * expr.c (expand_var, expand_expr_real_1): Likewise.
4674 * expr.h (expand_expr): Make it a static inline function.
4675 Move prototype for expand_expr_real up before this.
4676 * fold-const.c (fold_relational_hi_lo, fold_relational_const):
4678 * gimplify.c (gimple_boolify, gimplify_addr_expr,
4679 gimplify_asm_expr, gimplify_expr): Likewise.
4680 * tree-cfg.c (dump_tree_cfg, dump_cfg_stats, tree_cfg2vcg,
4681 dump_function_to_file): Likewise.
4682 * tree-dfa.c (dump_immediate_uses, dump_dfa_stats): Likewise.
4683 * tree-inline.c (remap_block, save_body, walk_tree): Likewise.
4684 * tree-into-ssa.c (dump_tree_ssa): Likewise.
4685 * tree-mudflap.c (mf_varname_tree, mf_file_function_line_tree):
4687 * tree-optimize.c (execute_one_pass): Likewise.
4688 * tree-pretty-print.c (dump_generic_bb_buff): Likewise.
4689 * tree-ssa-alias.c (dump_alias_stats, dump_alias_info): Likewise.
4691 * objc/objc-act.c (objc_build_try_enter_fragment,
4692 objc_build_try_epilogue, objc_build_catch_stmt,
4693 objc_build_finally_prologue): Replace calls via (*lang_hooks.foo)
4694 with lang_hooks.foo ().
4696 2004-05-15 Roger Sayle <roger@eyesopen.com>
4698 * builtins.c (simplify_builtin_strcpy): Avoid use of chainon, so
4699 that simplify_builtin doesn't destructively modify its argument.
4701 2004-05-15 Richard Earnshaw <reanrsha@arm.com>
4703 * arm/lib1funcs.asm (_lshrdi3, _ashrdi3, _ashldi3): Add ASM
4704 implementations for ARM and Thumb.
4705 * arm/t-arm-elf (LIB1ASMFUNCS): Use them.
4707 2004-05-15 Thomas Quinot <quinot@act-europe.fr>
4709 * prefix.c (update_path): Replace PREFIX with KEY only
4710 when it matches a full directory name in PATH.
4712 2004-05-15 Richard Earnshaw <reanrsha@arm.com>
4714 * arm.h (TARGET_APCS_32): Delete.
4715 (TARGET_MMU_TRAPS): Delete.
4716 (TARGET_CPU_CPP_BUILTINS): Unconditionally define __APCS_32__. Never
4718 (CPP_SPEC): Remove checking of -mapcs-{26,32}.
4719 (ARM_FLAG_APCS_32, ARM_FLAG_MMU_TRAPS): Delete.
4720 (TARGET_SWITCHES): Remove alignment_traps and apcs-{26,32} switches.
4721 (prog_mode_type): Delete.
4722 (PROMOTE_MODE): Always promote unsigned for HImode.
4723 (SECONDARY_INPUT_RELOAD_CLASS): Simplify.
4724 (MASK_RETURN_ADDR): Simplify.
4725 * arm.c (arm_prgmode): Delete.
4726 (arm_override_options, arm_gen_rotated_half_load): Simplify.
4727 (print_multi_reg, output_return_instruction): Simplify.
4728 (arm_output_epilogue, arm_final_prescan_insn): Simplify.
4729 (arm_return_addr): Simplify.
4730 * arm.md (prog_mode): Delete.
4732 (zero_extendhisi2, extendhisi2, movhi, movhi_bytes): Simplify.
4733 (rotated_loadsi, movhi_insn_littleend, movhi_insn_bigend): Delete.
4734 (loadhi_si_bigend, loadhi_preinc, loadhi_shiftpreinc): Delete.
4735 (loadhi_shiftpredec): Delete.
4736 (peephole for post-increment on HImode load): Delete.
4737 * arm/crtn.asm: (FUNC_END): Simplify.
4738 * arm/lib1funcs.asm: Remove APCS-26 return macros.
4739 * arm/aof.h, arm/coff.h arm/elf.h arm/linux-elf.h arm/netbsd-elf.h
4740 * arm/netbsd.h arm/pe.h arm/semi.h arm/semiaof.h arm/unknown-elf.h
4741 * arm/vxworks.h arm/wince-pe.h: Tidy TARGET_DEFAULTS and
4742 MULTILIB_DEFAULTS as required.
4743 * arm/t-arm-elf arm/t-linux arm/t-pe arm/t-semi arm/t-wince-pe
4744 * arm/t-xscale-coff arm/t-xscale-elf arm/uclinux-elf: Tidy MULTILIB
4745 variables as required.
4746 * doc/invoke.texi (ARM Options): Remove obsolete flags.
4748 2004-05-15 Alan Modra <amodra@bigpond.net.au>
4750 * config/rs6000/rs6000.c (rs6000_va_arg <ABI_V4>): Don't use
4751 UNITS_PER_WORD to calculate gpr size. Re-instate code to set reg
4752 count to 8 to handle n_reg > 2.
4754 2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
4756 * doc/extend.texi: Update WG14 URL.
4758 2004-05-15 Steven Bosscher <stevenb@suse.de>
4760 * basic-block.h (life_analysis, delete_noop_moves):
4762 * bt-load.c (branch_target_load_optimize): Don't take the
4763 insns stream as an argument. Update the life_analysis calls.
4764 * combine.c (combine_instructions): Update delete_noop_moves
4766 * flow.c (notice_stack_pointer_modification): Don't take the
4767 insns stream as an argument. Work on the flow graph.
4768 (life_analysis): Likewise.
4769 (delete_noop_moves): Likewise.
4770 * passes.c (rest_of_handle_stack_regs): Update reg_to_stack call.
4771 (rest_of_handle_life): Update life_analysis call.
4772 (rest_of_compilation): Likewise, and also update
4773 branch_target_load_optimize call.
4774 * ra.c (reg_alloc): Update life_analysis call.
4775 * reg-stack.c (reg_to_stack): Likewise. Also, don't take
4776 the insns stream as an argument.
4777 * regrename.c (copyprop_hardreg_forward): Update delete_noop_moves
4779 * rtl.c (branch_target_load_optimize, reg_to_stack): Update
4781 * value-profile.c (branch_prob): Update life_analysis call.
4782 * web.c (web_main): Work on the CFG, not on the insns stream.
4784 * config/ip2k/ip2k.c (ip2k_reorg): Update life_analysis calls.
4785 * config/m68hc11/m68hc11.c (m68hc11_reorg): Likewise.
4786 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
4788 2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
4791 * c-format.c (avoid_dollar_number): New function.
4792 (check_format_info_main): Call avoid_dollar_number when operand
4793 numbers might occur but has_operand_number == 0.
4795 2004-05-14 Richard Earnshaw <rearnsha@arm.com>
4797 * arm.md (all peephole2 patterns): Use predicates that validate
4798 register classes as appropriate.
4800 2004-05-14 Steven Bosscher <stevenb@suse.de>
4803 * tree-tailcall.c (process_assignment): Use STRIP_NOPS to
4804 ignore type conversions that do not inhibit tail calling.
4805 (find_tail_calls): Likewise.
4807 2004-05-14 Jeff Law <law@redhat.com>
4809 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't even
4810 bother marking bypassed virtuals for out-of-ssa. Instead merge
4811 bypassed virtuals into vars_to_rename just before into-ssa pass.
4813 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Reorganize
4814 so that it picks up more opportunities to eliminate ABS expressions
4815 or turn them into negations.
4817 2004-05-14 Steven Bosscher <stevenb@suse.de>
4819 * passes.c (rest_of_handle_null_pointer): Remove.
4820 (rest_of_handle_cse): Don't call rest_of_handle_null_pointer.
4821 (rest_of_compilation): Likewise.
4822 * rtl.h (delete_null_pointer_checks): Remove prototype.
4823 * gcse.c (rd_kill, rd_gen, reaching_defs, rd_out, ae_in, ae_out):
4824 Remove declarations.
4825 (get_bitmap_width, alloc_rd_mem, free_rd_mem, handle_rd_kill_set,
4826 compute_kill_rd, compute_rd, alloc_avail_expr_mem,
4827 free_avail_expr_mem, compute_ae_gen, expr_killed_p, compute_ae_kill,
4828 expr_reaches_here_p, computing_insn, def_reaches_here_p,
4829 can_disregard_other_sets, handle_avail_expr, classic_gcse,
4830 one_classic_gcse_pass, invalidate_nonnull_info,
4831 delete_null_pointer_checks_1, delete_null_pointer_checks,
4832 expr_reached_here_p_work): Remove.
4833 (gcse_main): Do not perform classic GCSE when optimizing for size.
4834 (alloc_pre_mem, free_pre_mem): Don't touch ae_in and ae_out, they
4837 2004-05-14 Andrew Pinski <pinskia@physics.uc.edu>
4839 PR optimization/14466
4840 * tree-complex.c (make_temp): Remove.
4841 (gimplify_val): Replace make_temp with make_rename_temp
4842 and add NULL as the second argument.
4843 (expand_complex_div_wide): Likewise.
4844 * tree-dfa.c (make_rename_temp): New function.
4845 * tree-flow.h (make_rename_temp): Declare.
4846 * tree-sra.c (make_temp): Remove.
4847 (lookup_scalar): Replace make_temp with make_rename_temp.
4848 (create_scalar_copies): Likewise.
4849 * tree-ssa-phiopt.c (conditional_replacement): When we
4850 get non gimple create a temporary variable to hold the
4853 2004-05-14 Paul Brook <paul@codesourcery.com>
4855 * stor-layout.c (update_alignment_for_field): Use
4856 targetm.align_anon_bitfield.
4857 * target-def.h (TARGET_ALIGN_ANON_BITFIELD): Define.
4858 (TARGET_INITIALIZER): Use it.
4859 * target.h (struct gcc_target): Add align_anon_bitfield.
4860 * config/arm/arm.c (arm_align_anon_bitfield): New function.
4861 (TARGET_ALIGN_ANON_BITFIELD): Define.
4862 * doc/tm.texi: Document TARGET_ALIGN_ANON_BITFIELD.
4864 2004-05-13 Zack Weinberg <zack@codesourcery.com>
4866 * tree.def (documentation): Remove mention of class 'b'.
4867 (BLOCK): Now in class 'x'.
4868 * c-common.c (verify_tree): Remove case 'b'.
4869 * c-typeck.c (same_translation_unit_p): Change 'b' to 'x'.
4870 * calls.c (calls_function_1): Control cannot get past the switch
4871 when exp is a BLOCK.
4872 * print-tree.c (print_node): Move code for class 'b' to the class
4873 'c'/'x' switch, as case BLOCK.
4874 * tree.c (tree_size, make_node_stat, tree_node_structure): Likewise.
4875 (unsafe_for_reeval, substitute_placeholder_in_expr)
4876 (stabilize_reference_1): Remove case 'b'.
4877 * tree-browser.c (browse_tree): Change all tests for TREE_CODE_CLASS
4878 of something being 'b' to tests for TREE_CODE of something being
4880 * tree-ssa-operands.c (get_expr_operands): Likewise.
4882 2004-05-13 Diego Novillo <dnovillo@redhat.com>
4884 * tree-gimple.c: Rename from tree-simple.c.
4885 * tree-gimple.h: Rename from tree-simple.h.
4886 * c-gimplify.c: Rename from c-simplify.c
4887 * Makefile.in, c-decl.c, gimple-low.c, gimplify.c,
4888 langhooks.c, tree-alias-ander.c, tree-alias-common.c,
4889 tree-complex.c, tree-dfa.c, tree-flow.h, tree-inline.c,
4890 tree-into-ssa.c, tree-iterator.c, tree-mudflap.c,
4891 tree-nested.c, tree-nomudflap.c, tree-outof-ssa.c, tree-sra.c,
4892 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-copyrename.c,
4893 tree-ssa-dce.c, tree-ssa-live.c, tree-ssa-pre.c, tree-ssa.c:
4896 2004-05-14 Ranjit Mathew <rmathew@hotmail.com>
4898 * doc/sourcebuild.texi: Mention libbanshee and libmudflap.
4900 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
4902 * tree-ssa.c (delete_tree_ssa): XFREE
4903 bitmaps allocated with BITMAP_XMALLOC.
4905 * tree-ssa-pre.c (execute_pre): Free ephi_use_pool and
4906 idfs_cache at the end of the function.
4908 * tree-ssa-live.c (calculate_live_on_entry): Free saw_def
4909 at the end of the function.
4911 * tree-ssa-dce.c (perform_tree_ssa_dce): Free
4912 el at the end of the function.
4914 * tree-into-ssa.c (insert_phi_nodes_for): XFREE
4915 bitmaps allocated with BITMAP_XMALLOC.
4917 * loop-unswitch.c (unswitch_single_loop): Free bbs at
4920 * final.c (shorten_branches): Free uid_shuid before
4923 * bb-reoder.c (connect_traces): Free cold_traces at the end.
4925 2004-05-13 Jeff Law <law@redhat.com>
4927 * tree-ssa-live.c (calculate_live_on_entry): Ignore virtual
4928 variables. Simplify slightly by using USE_OP/DEF_OP instead
4929 of USE_OP_PTR/DEF_OP_PTR and dereferencing the result.
4931 * tree-into-ssa.c (compute_global_livein): Use EXECUTE_IF_SET_IN_BITMAP
4932 rather than iterating through the blocks testing each bit in
4933 livein to initialize the worklist.
4934 (mark_def_sites): Remove useless checks of KILLS for virtual
4937 * tree-ssa-forwprop.c (record_single_argument_cond_exprs): Accept
4938 new parameters for the statement and variable worklist as well
4939 as a bitmap of interesting SSA_NAMEs. Walk over the statement
4940 worklist recording interesting variables in the variable worklist
4941 and bitmap. Handle casts between integral and boolean types.
4942 (substitute_single_use_vars): Accept new parameters for the statement
4943 and variable worklist. When a substitution is made add a new
4944 entry to the statement worklist. Handle casts between integral
4946 (tree_ssa_forward_propagate_single_use_vars): Rework to pass
4947 worklists to children. Iterate until the statement worklist
4950 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
4952 * tree-outof-ssa.c (rewrite_vars_out_of_ssa): Free map at
4953 the end of the block.
4955 * tree-into-ssa.c (def_blocks_free): XFREE bitmaps allocated
4956 with BITMAP_XMALLOC.
4958 * tree-ssa-alias.c (delete_alias_info): XFREE bitmaps allocated
4959 with BITMAP_XMALLOC.
4961 * tree-ssa-dom.c (tree_ssa_dominator_optimize):
4962 Free nonzero_vars at the end of the function.
4964 * convert.c (convert_to_integer): Make a CONVERT_EXPR when there is a
4965 need to generate code instead of a NOP_EXPR.
4967 2004-05-13 Ian Lance Taylor <ian@wasabisystems.com>
4969 * gcc.c (default_compilers): Fill out initializers for new Fortran
4972 2004-05-13 Paul Brook <paul@codesourcery.com>
4974 * config/arm/arm.h (PCC_BITFIELD_TYPE_MATTERS): Define.
4976 2004-05-13 Paul Brook <paul@codesourcery.com>
4978 * config/arm/arm.c (arm_default_short_enums): New function.
4979 (TARGET_DEFAULT_SHORT_ENUMS): Define.
4981 2004-05-13 Diego Novillo <dnovillo@redhat.com>
4983 Merge from tree-ssa-20020619-branch.
4985 * Makefile.in (reload1.o-warn): Add.
4986 (tree-alias-ander.o-warn): Add.
4989 (BANSHEELIB): Define.
4990 (BANSHEEINC): Define.
4991 (TREE_DUMP_H): Define.
4992 (TREE_SIMPLE_H): Define.
4993 (TREE_FLOW_H): Define.
4994 (LIBDEPS): Add BANSHEELIB.
4995 (INCLUDES): Add BANSHEEINC and GMPINC.
4996 (C_AND_OBJC_OBJS): Add c-simplify.o, tree-mudflap.o,
4997 c-mudflap.o and c-pretty-print.o.
4998 (C_OBJS): Remove c-pretty-print.o.
4999 (OBJS-common): Remove sibcall.o.
5000 Add tree-cfg.o, tree-dfa.o, tree-eh.o,
5001 tree-ssa.o, tree-optimize.o, tree-simple.o,
5002 tree-alias-type.o, gimplify.o, tree-pretty-print.o,
5003 tree-into-ssa.o, tree-outof-ssa.o, tree-alias-common.o,
5004 tree-ssa-ccp.o, @ANDER@, tree-ssa-dce.o, tree-ssa-copy.o,
5005 tree-nrv.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
5006 tree-ssa-live.o, tree-ssa-operands.o, tree-ssa-alias.o,
5007 tree-ssa-phiopt.o, tree-ssa-forwprop.o, tree-nested.o,
5008 tree-ssa-dse.o, tree-ssa-dom.o, domwalk.o,
5009 tree-tailcall.o, gimple-low.o, tree-iterator.o,
5010 tree-phinodes.o, tree-ssanames.o, tree-sra.o,
5011 tree-complex.o, tree-ssa-loop.o, rtl-profile.o and
5013 (OBJC-archive): Add tree-nomudflap.o.
5014 (cc1): Add dependency on @TREEBROWSER@.
5015 (c-decl.o): Add dependency on TREE_DUMP_H.
5016 (c-dump.o): Likewise.
5017 (c-common.o): Add dependency on tree-iterator.h
5018 (c-pretty-print.o): Add dependency on DIAGNOSTIC_H.
5019 (gtype-desc.o): Add dependency on TREE_FLOW_H.
5020 (tree.o): Add dependency on tree-iterator.h,
5021 BASIC_BLOCK_H and TREE_FLOW_H.
5022 (tree-dump.o): Depend on TREE_DUMP_H instead of tree-dump.h.
5023 (langhooks.o): Add dependency on TREE_SIMPLE_H.
5024 (tree-alias-type.o, tree-alias-ander.o,
5025 tree-alias-common.o, tree-ssa.o, tree-into-ssa.o,
5026 tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o,
5027 tree-ssa-phiopt.o, tree-nrv.o, tree-ssa-copy.o,
5028 tree-ssa-dom.o, tree-ssanames.o, tree-phinodes.o,
5029 domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o,
5030 tree-ssa-pre.o, tree-cfg.o, tree-tailcall.o,
5031 tree-nested.o, tree-iterator.o, tree-dfa.o,
5032 tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o,
5033 tree-ssa-alias.o, tree-optimize.o, c-simplify.o,
5034 gimplify.o, gimple-low.o, tree-browser.o, tree-simple.o,
5035 tree-mudflap.o, c-mudflap.o, tree-nomudflap.o,
5036 tree-pretty-print.o, tree-ssa-dce.o, tree-ssa-ccp.o,
5037 tree-sra.o, tree-complex.o, tree-profile.o,
5038 rtl-profile.o): New rules.
5039 (function.o): Add dependency on basic-block.h
5040 (expr.o): Add dependency on tree-iterator.h.
5041 (sibcall.o): Remove.
5042 (profile.o): Depend on TREE_FLOW_H instead of TREE_H.
5043 (cfg.o): Add dependency on TIMEVAR_H.
5044 (cfghooks.o): Add dependency on TREE_FLOW_H.
5045 (reg-stack.o): Add dependency on basic-block.h.
5046 (GTFILES): Add hwint.h, tree-mudflaph.c, tree-flow.h,
5047 c-objc-common.c, c-common.c, c-parse.in, tree-ssanames.c,
5048 tree-eh.c, tree-phinodes.c, tree-cfg.c, tree-dfa.c,
5049 tree-ssa-ccp.c, tree-iterator.c, gimplify.c,
5050 tree-alias-type.h, tree-alias-common.h,
5051 tree-alias-type.c, tree-alias-common.c,
5052 tree-ssa-operands.h, tree-ssa-operands.c, tree-profile.c,
5053 rtl-profile.c and tree-nested.c.
5054 (gt-tree-alias-common.h, gt-tree-mudflap.h,
5055 gt-tree-ssa-ccp.h, gt-tree-eh.h, gt-tree-ssanames.h,
5056 gt-tree-iterator.h, gt-gimplify.h, gt-tree-phinodes.h,
5057 gt-tree-cfg.h, gt-tree-nested.h): New rules.
5058 (TEXI_GCCINT_FILES): Add cfg.texi and tree-ssa.texi.
5059 * basic-block.h: Include predict.h
5060 (struct edge_def): Add GTY marker.
5061 Change field 'insns' to be a union of tree and rtx.
5062 (EDGE_TRUE_VALUE): Define.
5063 (EDGE_FALSE_VALUE): Define.
5064 (EDGE_EXECUTABLE): Define.
5065 (struct bb_ann_d): Forward declare.
5066 (struct basic_block_def): Add GTY marker.
5067 Remove fields head_tree and end_tree.
5068 Add fields stmt_list, rbi and tree_annotations.
5069 (struct reorder_block_def): Define.
5070 (basic_block_info): Add GTY marker.
5071 (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Change to global
5072 variables instead of macros.
5073 (flow_call_edges_add): Remove declaration.
5074 (make_eh_edge): Remove declaration.
5075 (brief_dump_cfg, find_edge, tree_predicted_by_p,
5076 rtl_predicted_by_p, tree_predict_edge, rtl_predict_edge,
5077 predict_edge_def, rtl_make_eh_edge, find_basic_blocks,
5078 cleanup_cfg, delete_unreachable_blocks, merge_seq_blocks,
5079 alloc_rbi_pool, initialize_bb_rbi, free_rbi_pool): Declare.
5080 (try_redirect_by_replacing_jump): Modfiy return type to
5081 edge instead of bool.
5082 * bb-reorder.c (copy_bb): Call duplicate_block
5083 instead of cfg_layout_duplicate_bb.
5084 (copy_bb_p): Call can_duplicate_block_p instead of
5085 cfg_layout_can_duplicate_bb_p.
5086 * bitmap.c (bitmap_first_set_bit): Abort if word
5088 (bitmap_last_set_bit): Likewise.
5089 * builtin-types.def (DEF_FUNCTION_TYPE_2): Add
5090 (DEF_FUNCTION_TYPE_3): Add.
5091 * builtins.c (c_strlen): Make extern.
5092 (builtin_save_expr): New.
5093 (expand_builtin_nonlocal_goto): New.
5094 (expand_builtin_constant_p): Remove.
5095 (expand_builtin_mathfn): Call builtin_save_expr instead
5097 (expand_builtin_mathfn_2): Likewise.
5098 (expand_builtin_strcmp): Likewise.
5099 (expand_builtin_strncmp): Likewise.
5100 (expand_builtin_strcat): Likewise.
5101 (fold_builtin_cabs): Likewise.
5102 (expand_builtin_alloca): Don't trigger if -fmudflap is
5104 (build_string_literal): Set TREE_INVARIANT on new node.
5105 (expand_builtin_profile_fun): New.
5106 (round_trampoline_addr): New.
5107 (expand_builtin_init_trampoline): New.
5108 (expand_builtin_adjust_trampoline): New.
5109 (expand_builtin) <BUILT_IN_NEXT_ARG>: Call simplify_builtin_next_arg.
5110 <BUILT_IN_CONSTANT_P>: Return const0_rtx;
5111 <BUILT_IN_STACK_ALLOC, BUILT_IN_STACK_SAVE,
5112 BUILT_IN_STACK_RESTORE, BUILT_IN_NONLOCAL_GOTO,
5113 BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT,
5114 BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE>:
5116 (fold_builtin_expect): New.
5117 (fold_builtin_isascii): Don't return non-constant results
5119 (fold_builtin_isdigit): Likewise.
5120 (fold_builtin_1): New.
5121 (fold_builtin): Call it.
5122 (build_function_call_expr): Update call to build a new
5124 (purge_builtin_constant_p): Remove.
5125 (simplify_builtin, simplify_builtin_memcmp,
5126 simplify_builtin_strcmp, simplify_builtin_strncmp,
5127 simplify_builtin_strpbrk, simplify_builtin_strstr,
5128 simplify_builtin_strchr, simplify_builtin_strrchr,
5129 simplify_builtin_strcat, simplify_builtin_strncat,
5130 simplify_builtin_strspn, simplify_builtin_strcspn,
5131 simplify_builtin_next_arg, simplify_builtin_va_start,
5132 simplify_builtin_sprintf): New.
5133 * builtins.def (BUILT_IN_STACK_ALLOC,
5134 BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE,
5135 BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE,
5136 BUILT_IN_NONLOCAL_GOTO, BUILT_IN_PROFILE_FUNC_ENTER,
5137 BUILT_IN_PROFILE_FUNC_EXIT): Define.
5138 * c-common.c: Include tree-iterator.h and hashtab.h.
5139 (lang_statement_code_p): Declare.
5140 (lang_gimplify_stmt): Declare.
5141 (fix_string_type): Set TREE_INVARIANT for value.
5142 (pointer_int_sum): Rely on build to set TREE_CONSTANT.
5144 (c_common_get_alias_set): Handle multiple type nodes
5145 referring to "the same" type, currently for C90 only.
5146 (c_add_case_label): Use create_artificial_label.
5147 (finish_label_address_expr): Don't set TREE_CONSTANT on
5149 (c_expand_expr): Don't handle STMT_EXPR.
5150 (handle_alias_attribute): Marke aliased variables to be
5152 (handle_nonnull_attribute): Initialize arg_num.
5153 (check_function_nonnull): Likewise.
5154 (c_walk_subtrees): New.
5155 (c_estimate_num_insns_1): Don't handle
5156 EXPR_WITH_FILE_LOCATION nor FILE_STMT.
5157 (c_decl_uninit_1): Remove.
5158 (c_decl_uninit): Remove.
5159 (c_warn_unused_result): New.
5160 * c-common.def (ASM_STMT): Change number of operands
5162 (FILE_STMT): Remove.
5163 * c-common.h (lang_expand_stmt, lang_expand_decl_stmt):
5165 (lang_gimplify_stmt): Add.
5166 (expand_stmt): Remove.
5167 (ASM_CV_QUAL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
5168 ASM_CLOBBERS, STMT_EXPR_WARN_UNUSED_RESULT,
5169 ASM_VOLATILE_P, FILE_STMT_FILENAME_NODE,
5170 FILE_STMT_FILENAME, STMT_LINENO, STMT_LINENO_FOR_FN_P,
5171 ASM_INPUT_P, DECL_C_HARD_REGISTER): Remove.
5172 (genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt,
5173 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
5174 genrtl_while_stmt, genrtl_do_stmt, genrtl_return_stmt,
5175 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
5176 genrtl_scope_stmt, genrtl_switch_stmt, genrtl_case_label,
5177 genrtl_compound_stmt, genrtl_asm_stmt,
5178 genrtl_cleanup_stmt, c_decl_uninit): Remove.
5179 (c_do_switch_warnings, c_gimplify_expr, c_walk_subtrees,
5180 c_tree_chain_matters_p, c_warn_unused_result,
5181 c_genericize, c_gimplify_stmt, stmt_expr_last_stmt):
5183 * c-convert.c (convert): Make convert work when
5184 converting to compatible types across translation unit.
5185 * c-decl.c: Include langhooks.h, tree-mudflap.h,
5186 tree-simple.h, diagnostic.h and tree-dump.h
5187 (merge_decls): Initialize oldtype to NULL.
5188 (finish_decl): Use DECL_HARD_REGISTER instead of
5189 DECL_C_HARD_REGISTER.
5190 (check_bitfield_type_and_width): Check for null
5191 lang_type_specific when check the precision of an enum.
5192 (grokdeclarator): Immediately layout an ARRAY_TYPE used
5193 in a pointer-to-array declarator.
5194 (finish_struct): Clear allocated struct lang_type.
5195 (finish_enum): Set enum_min and enum_max. Set
5196 TYPE_MIN/MAX_VALUE to the limits of the compatible type,
5197 not to the enumerators.
5198 (set_decl_nonlocal): New.
5199 (store_parm_decls): Use it via walk_tree.
5201 (finish_function): When !targetm.have_ctors_dtors,
5202 record static constructors and destructors here...
5203 (c_expand_body_1): ... not here.
5204 (c_expand_decl): Rename from c_expand_decl_stmt.
5205 Handle all C-specific expansion semantics.
5206 * c-dump.c (dump_stmt): Use EXPR_LOCUS instead of
5208 * c-format.c (handle_format_arg_attribute): Initialize
5210 * c-lang.c: Include tree-inline.h
5211 (LANG_HOOKS_EXPAND_DECL,
5212 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
5213 LANG_HOOKS_TREE_INLINING_WALK_SUBTREES,
5214 LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P,
5215 LANG_HOOKS_GIMPLIFY_EXPR, LANG_HOOKS_TYPES_COMPATIBLE_P): Define.
5216 (LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
5217 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): Remove.
5218 (c_types_compatible_p): New.
5219 * c-mudflap.c: New file.
5220 * c-objc-common.c: Include tree-mudflap.h
5221 (start_cdtor, finish_cdtor): Collapse
5223 (build_cdtor): ...here. Update to construct a complete tree
5224 for the function. No need to call push_scope, pop_scope, or
5225 clear_last_expr, or set current_function_cannot_inline.
5226 (c_missing_noreturn_ok_p): Change prototype to return
5228 (c_objc_common_init): Don't set lang_missing_noreturn_ok_p.
5229 * c-opts.c (c_common_handle_option): Move handling of -fdump- to
5231 (c_common_post_options): Don't ever use rtl inlining.
5232 * c-parse.in: Use EXPR_LOCUS instead of STMT_LINENO.
5233 * c-pragma.c (handle_pragma_redefine_extname): Define
5235 (init_pragma): Activate #pragma redefine_extname for mudflap.
5236 * c-pretty-print.c (pp_c_statement): Remove FILE_STMT.
5237 (pp_c_initializer): Accept any type CONSTRUCTOR.
5238 (pp_c_initializer_list): Fix code expectations for VECTOR_TYPE and
5240 (decl_name_str): New local function.
5241 (pp_c_direct_declarator): Call it.
5242 (pp_c_primary_expression): Call it.
5243 (pp_c_id_expression): Call it.
5244 (pp_c_statement): Call it.
5245 (print_c_tree): Create new pp object.
5246 * c-pretty-print.h (pp_c_tree_decl_identifier,
5247 print_c_tree): Declare.
5248 * c-semantics.c: Include langhooks.h
5249 (lang_expand_stmt, lang_expand_decl_stmt,
5250 find_reachable_label_1, find_reachable_label,
5251 expand_unreachable_if_stmt, expand_unreachable_stmt,
5252 genrtl_do_stmt_1): Remove.
5253 (begin_stmt_tree): Don't check for changed filename.
5254 Call annotate_with_locus.
5255 (finish_stmt_tree): Don't set line for end of function.
5256 (build_stmt): Don't check type nodes for
5258 (build_stmt): Set TREE_SIDE_EFFECTS.
5259 Set EXPR_LOCUS instead of STMT_LINENO.
5260 (lang_expand_stmt, lang_expand_decl_stmt,
5261 expand_cond, genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt,
5262 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
5263 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_do_stmt,
5264 genrtl_return_stmt, genrtl_for_stmt, genrtl_break_stmt,
5265 genrtl_continue_stmt, genrtl_scope_stmt, genrtl_switch_stmt,
5266 genrtl_case_label, genrtl_compound_stmt, genrtl_asm_stmt,
5267 genrtl_cleanup_stmt, expand_stmt, find_reachable_label,
5268 find_reachable_label_1, expand_unreachable_if_stmt,
5269 expand_unreachable_stmt): Remove.
5270 (prep_stmt): Use EXPR_LOCUS instead of STMT_LINENO.
5271 * c-simplify.c: New file.
5272 * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Define.
5273 (struct lang_type): Add fields enum_min and enum_max.
5274 (c_expand_decl_stmt, c_missing_noreturn_ok_p): Remove.
5275 (c_expand_decl, c_missing_noreturn_ok_p,
5276 c_types_compatible_p): Declare.
5277 * c-typeck.c (tagged_types_tu_compatible_p): Allow for
5278 compiler-generated TYPE_DECLs without a DECL_ORIGINAL_TYPE.
5279 (default_function_array_conversion): Rely on build to
5281 (parser_build_binary_op, pointer_diff): Likewise.
5282 (build_unary_op, build_binary_op): Likewise.
5284 (build_external_ref): Set TREE_INVARIANT.
5285 (build_c_cast, pop_init_level): Likewise.
5286 (process_init_element): Use ASM_VOLATILE_P.
5287 (build_asm_expr): Adapt to GENERIC/GIMPLE syntax.
5288 (c_finish_case): Call c_do_switch_warnings.
5289 * c.opt (fdump-): Remove.
5290 * calls.c (try_to_integrate): Remove.
5291 (prepare_call_address): Replace fndecl arg with a
5292 precomputed static chain value.
5293 (emit_call_1): New argument for full call expr.
5294 (flags_from_decl_or_type): Call special_function_p.
5295 (initialize_argument_information): Add argument
5297 (purge_reg_equiv_notes): New.
5298 (expand_call): Do not try to expand calls inline.
5299 (fixup_tail_calls): New.
5300 * cfg.c: Include timevar.h and ggc.h.
5301 (bb_pool, edge_pool): Remove.
5302 (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Declare.
5303 (entry_exit_blocks): Remove.
5304 (rbi_pool): Declare.
5305 (init_flow): Do not create pools.
5306 Allocate entry/exit block.
5307 (free_edge, alloc_block, expunge_block, unchecked_make_edge): Use GGC.
5308 (alloc_rbi_pool, free_rbi_pool, initialize_bb_rbi): New.
5309 (unlink_block): Clear b->prev_bb and b->next_bb.
5310 (compact_blocks): Clear all slots of BASIC_BLOCK array.
5311 (dump_flow_info): Work on trees too.
5312 (dump_cfg_bb_info): New.
5313 (brief_dump_cfg): New.
5314 * cfganal.c (need_fake_edge_p, flow_call_edges_add): Remove.
5316 * cfgbuild.c (rtl_make_eh_edge): Rename from
5317 make_eh_edge. Update all users.
5318 (find_basic_blocks): Don't call VARRAY_FREE on
5320 * cfgcleanup.c (outgoing_edges_match): Initialize newpos1
5322 (delete_unreachable_blocks): Return changed status.
5323 (merge_seq_blocks): New.
5324 * cfghooks.c: Include tree-flow.h
5325 (tree_register_cfg_hooks, ir_type): New.
5326 (redirect_edge_and_branch): Change return type to edge.
5327 (predict_edge, predicted_by_p, can_duplicate_block_p,
5328 duplicate_block, block_ends_with_call_p,
5329 block_ends_with_condjump_p, flow_call_edges_add): New.
5330 * cfghooks.h (redirect_edge_and_branch): Change return
5332 (predict_edge, predicted_by_p, can_duplicate_block_p,
5333 duplicate_block, block_ends_with_call_p,
5334 block_ends_with_condjump_p, flow_call_edges_add): Declare.
5335 (redirect_edge_and_branch): Change return type to edge.
5336 (struct cfg_hooks): Add fields block_ends_with_call_p,
5337 block_ends_with_condjump_p, flow_call_edges_add,
5338 predict_edge, predicted_by_p, can_duplicate_block_p and
5340 (tree_cfg_hooks, ir_type, tree_register_cfg_hooks): Declare.
5341 * cfglayout.c (cfg_layout_pool, cfg_layout_initialize_rbi): Removed.
5342 (fixup_reorder_chain): Use initialize_bb_rbi.
5343 (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Hookized.
5344 (cfg_layout_initialize): Use cfg.c rbi pool manipulation functions.
5345 (can_copy_bbs_p, copy_bbs): Use cfghooks for bb duplication.
5346 (insn_locators_initialize): Use new info about blocks.
5347 * cfglayout.h (typedef struct reorder_block_def): Moved to
5349 (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Declaration
5351 * cfgloop.c: Include tree.h and tree-flow.h.
5352 * cfgloop.h (create_loop_notes): Declare.
5353 * cfgloopmanip.c (create_loop_notes): New.
5354 * cfgrtl.c (cfg_layout_create_basic_block): Use initialize_bb_rbi.
5355 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Fill in can_duplicate_block_p
5356 and duplicate_block fields.
5357 (create_basic_block_structure): Don't look at
5359 (rtl_block_ends_with_call_p): New.
5360 (rtl_block_ends_with_condjump_p): New.
5361 (need_fake_edge_p): Moved from cfganal.c.
5362 (rtl_flow_call_edges_add): Moved from cfganal.c (flow_call_edges_add).
5363 (rtl_cfg_hooks): Add rtl_block_ends_with_call_p,
5364 rtl_block_ends_with_condjump_p, rtl_flow_call_edges_add.
5365 (cfg_layout_rtl_cfg_hooks): Ditto.
5366 * cgraph.c (cgraph_mark_reachable_node): Don't force nested
5367 functions to be reachable.
5368 * cgraphunit.c (decide_is_function_needed):
5369 * cgraphunit.c (decide_is_function_needed): Nested functions of extern
5370 inline functions don't need to be output.
5371 (cgraph_assemble_pending_functions): Don't do anything
5372 special for nested functions.
5373 (cgraph_mark_functions_to_output): Likewise.
5374 (cgraph_finalize_function): Don't zap DECL_STRUCT_FUNCTION.
5375 (cgraph_analyze_function): Use estimate_num_insns.
5376 (cgraph_mark_functions_to_output): Likewise.
5377 (cgraph_estimate_growth, cgraph_clone_inlined_nodes): Likewise.
5378 (cgraph_expand_function): Allow functions to not be
5380 (cgraph_remove_unreachable_nodes):
5381 (cgraph_recursive_inlining_p): Simplify.
5382 (lookup_recursive_calls,
5383 cgraph_decide_recursive_inlining): New.
5384 (cgraph_decide_inlining_*): Update calls of
5386 * combine.c (get_pos_from_mask): Always set *plen.
5387 * common.opt (fdump-, fmudflap, fmudflapth, fmudflapir,
5388 ftree-based-profiling, ftree-ccp, ftree-ch,
5389 ftree-combine-temps, ftree-copyrename, ftree-dce,
5390 ftree-dominator-opts, ftree-dse, ftree-loop-optimize,
5391 ftree-points-to, ftree-pre, ftree-sra, ftree-ter,
5393 * config.in (HAVE_LD_PIE, HAVE_BANSHEE, PREFIX_INCLUDE_DIR):
5395 * configure.ac: Add --enable-tree-browser option.
5396 Add --with-libbanshee option.
5397 Add GMPLIBS and GMPINC.
5398 * configure: Regenerate.
5399 * coverage.c (tree_ctr_tables): New.
5400 (coverage_counter_alloc): Use it.
5401 (build_ctr_info_value): Ditto.
5402 (coverage_counter_ref): Ditto. Rename to rtl_coverage_counter_ref.
5403 (tree_coverage_counter_ref): New.
5404 * coverage.h (coverage_counter_ref): Remove declaration.
5405 (rtl_coverage_counter_ref): Declare.
5406 (tree_coverage_counter_ref): Declare.
5407 * cppexp.c (append_digit): Rearrange unsignedp/overflow setting.
5408 (eval_token, num_binary_op, num_part_mul, num_div_op): Likewise.
5409 * cse.c (fold_rtx): Do not handle CONSTANT_P_RTX.
5410 (struct cse_basic_block_data): Rename enum values to not
5411 conflict with profile.h; update all uses.
5412 * dbxout.c (dbxout_symbol_location): Don't mention integrate.c
5414 * defaults.h (TRAMPOLINE_ALIGNMENT): Move from function.c.
5415 * diagnostic.h (debug_output_buffer, dump_generic_node,
5416 print_generic_stmt, print_generic_stmt_indented,
5417 print_generic_expr, print_generic_decl,
5418 debug_generic_expr, debug_generic_stmt, debug_c_tree):
5420 * dominance.c: Cache immediate dominators.
5421 * domwalk.c: New file.
5422 * domwalk.h: New file.
5423 * dwarf2out.c (is_fortran): Support DW_LANG_Fortran95.
5424 (gen_subprogram_die): Generate a DIE for a named
5426 (loc_descriptor_from_tree): Treat RESULT_DECL like VAR_DECL.
5427 (add_location_or_const_value_attribute): Likewise.
5428 (add_bound_info): Likewise.
5429 (gen_decl_die): Likewise.
5430 * emit-rtl.c (maybe_set_first_label_num): New.
5431 (copy_most_rtx): Don't copy the integrated flag.
5432 Copy the new return_val flag.
5433 * et-forest.c (MAX_NODES): Define.
5434 (record_path_before_1): Abort if len is greater than
5436 * except.c (gen_eh_region, gen_eh_region_cleanup, gen_eh_region_try,
5437 gen_eh_region_catch, gen_eh_region_allowed,
5438 gen_eh_region_must_not_throw, get_eh_region_number,
5439 get_eh_region_may_contain_throw, get_eh_region_tree_label,
5440 set_eh_region_tree_label, expand_resx_expr): New.
5441 (expand_eh_region_start, expand_start_catch): Use them.
5442 (expand_end_catch): Tidy.
5443 (note_eh_region_may_contain_throw): Take region argument.
5444 (note_current_region_may_contain_throw): New.
5445 (get_exception_filter): Export.
5446 (collect_eh_region_array): Export.
5447 (remove_unreachable_regions): Check ERT_TRY based on reachability
5448 of catches, not reachability of continue_label. Never remove
5449 ERT_MUST_NOT_THROW regions.
5450 (collect_rtl_labels_from_trees): New.
5451 (convert_from_eh_region_ranges): Use it.
5452 (connect_post_landing_pads): Handle dying cleanups.
5453 (struct reachable_info): Add callback data.
5454 (add_reachable_handler): Invoke the callback.
5455 (foreach_reachable_handler): New.
5456 (reachable_handlers): Use it.
5457 (arh_to_landing_pad, arh_to_label): New.
5458 (can_throw_internal_1): Split out from can_throw_internal.
5459 (can_throw_external_1): Similarly.
5461 * explow.c (emit_stack_save): Remove savearea mode check.
5462 (update_nonlocal_goto_save_area): New.
5463 (allocate_dynamic_stack_space): Use it.
5464 (probe_stack_range): Never emit loop notes.
5465 * expmed.c (extract_fixed_bit_field): Always propagate the
5466 target for the shift if it is a REG.
5467 * expr.c: Include tree-iterator.h
5468 (is_zeros_p): Remove.
5469 (categorize_ctor_elements_1, categorize_ctor_elements): New.
5470 (count_type_elements): New.
5471 (mostly_zeros_p): Use them.
5472 (expr_wfl_stack): Remove.
5473 (convert_move): Do nothing if to and from are the same.
5474 (emit_block_move_via_loop): Don't emit LOOP notes.
5475 (emit_move_insn): Don't handle CONSTANT_P_RTX.
5476 (emit_move_insn_1): Don't generate inline warnings.
5477 (expand_vars, expand_var): Split from ...
5478 (expand_expr_1): ... here.
5479 (expand_expr_real, expand_expr_real_1): Use new macros
5480 EXPR_LOCATION and EXPR_HAS_LOCATION.
5481 * expr.h (simplify_builtin_fputs,
5482 simplify_builtin_strcpy, simplify_builtin_strncpy,
5483 expand_var, fixup_tail_calls,
5484 update_nonlocal_goto_save_area): Declare.
5485 (lookup_static_chain, expand_inline_function,
5486 mark_seen_cases): Remove.
5487 (prepare_call_address): Change type of 2nd argument to
5489 * final.c (profile_function): Update static chain test.
5490 (final): Don't look at RTX_INTEGRATED_P.
5491 * flags.h (flag_mudflap, flag_mudflap_threads,
5492 flag_mudflap_ignore_reads, flag_tree_pre, flag_tree_ccp,
5493 flag_tree_dce, flag_tree_combine_temps,
5494 flag_tree_live_range_split, flag_tree_dom, flag_tree_ch,
5495 flag_tree_dse, flag_tree_sra, flag_tree_copyrename,
5496 flag_tree_points_to): Declare.
5497 (enum pta_type): Declare.
5498 * flow.c (lang_missing_noreturn_ok_p): Remove.
5499 (check_function_return_warnings): Remove.
5500 (update_life_info): Update comments.
5501 (free_basic_block_vars): Don't call VARRAY_FREE for
5503 (regno_uninitialized): Remove.
5504 * fold-const.c (int_const_binop): Make extern.
5505 (non_lvalue): Rely on build to set TREE_CONSTANT.
5506 (operand_equal_p): Replace only_const argument with
5507 flags. Allow pure functions if OEP_PURE_SAME.
5508 (fold): Use OEP_ONLY_CONST.
5509 (invert_truthvalue) <NOP_EXPR> Break if argument is of
5511 (fold_relational_hi_lo,
5512 nondestructive_fold_binary_to_constant,
5513 nondestructive_fold_unary_to_constant,
5514 fold_read_from_constant_string): New.
5515 * function.c (struct function): Remove calls_constant_p.
5516 (current_function_calls_constant_p): Remove.
5517 (inline_function_decl): Remove.
5518 (put_var_into_stack): Don't use it.
5519 (fix_lexical_addr): Likewise.
5520 (inline_function_decl): Remove extern declaration.
5521 (TRAMPOLINE_ALIGNMENT): Move to defaults.h.
5522 (trampolines_created): Move to varasm.c.
5523 (free_after_compilation): Update for removed fields.
5524 (allocate_struct_function): Likewise.
5525 (delete_handlers, lookup_static_chain): Remove.
5526 (fix_lexical_addr): Don't consider non-local variable refs.
5527 (trampoline_address): Remove.
5528 (round_trampoline_addr): Move to builtins.c.
5529 (adjust_trampoline_addr): Remove.
5530 (expand_function_start): Update for changes to static chain
5531 and nonlocal goto handling.
5532 (initial_trampoline): Move to varasm.c.
5533 (expand_function_end): Don't build trampolines or kill
5534 unreferenced nonlocal goto labels.
5535 (free_after_compilation): Don't set it.
5536 (expand_function_end): Likewise.
5537 (setjmp_vars_warning): Rename from
5538 uninitialized_vars_warning, remove uninitialized vars warning.
5539 (uninitialized_vars_warning): Remove old comment
5540 and check for DECL_INITIAL, replace with a check of TREE_NO_WARNING
5541 and do not call the langhook.
5542 (expand_function_start, expand_function_end): Don't do
5543 function instrumentation here.
5544 (clear_block_marks): Rename from reorder_blocks_0, export.
5545 (blocks_nreverse): Export.
5546 (uninitialized_vars_warning): Use DECL_RTL_SET_P to test for presence
5548 (reset_block_changes, record_block_change, finalize_block_changes,
5549 check_block_change, free_block_changes): New functions.
5550 (assign_parms): Setting of current_function_stdarg
5552 (allocate_struct_function): ... here.
5553 * function.h (struct function): Remove x_nonlocal_labels,
5554 x_nonlocal_goto_handler_slots, x_nonlocal_goto_stack_level,
5555 x_context_display, x_trampoline_list, needs_context.
5556 Add static_chain_decl, nonlocal_goto_save_area.
5557 (struct function): Remove x_clobber_return_insn.
5558 Add tail_call_emit field, last_label_uid,
5559 unexpanded_var_list, dont_emit_block_notes,
5560 ib_boundaries_block, function_end_locus and saved_tree/saved_args.
5561 (clear_block_marks): Declare.
5562 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Add -fmudflapth support.
5563 (mfwrap_spec, mflib_spec): Declare.
5564 (cpp_unique_options, cc1_options): Ditto.
5565 (default_compilers): Add .F and .f90.
5566 (static_specs): Add mfwrap and mflib.
5567 * gcse.c (want_to_gcse_p, gcse_constant_p): Don't handle
5569 (reg_used_on_edge, reg_killed_on_edge, bypass_block):
5570 Update to match insns field in struct edge_def.
5571 * gdbinit.in (pgs, pge): Define.
5572 * genattrtab.c (ATTR_PERMANENT_P): Use the return_val flag
5573 instead of the integrated flag.
5574 * gengtype-lex.l (IWOrD): Add HOST_WIDEST_INT
5575 * gengtype-yacc.y (bitfieldlen): Add empty action.
5576 (struct_fields): Accept unnamed bitfields.
5577 (bitfieldlen): Split from ...
5578 (bitfieldopt): ... here.
5579 * gengtype.c (ifiles): Add tree-alias-type.h and
5581 * genrecog.c (validate_pattern): Do not handle
5583 * gimple-low.c: New file.
5584 * gimplify.c: New file.
5585 * haifa-sched.c (priority): Do not handle CONSTANT_P_RTX.
5586 (restore_line_notes): Do not set RTX_INTEGRATED_P.
5587 * ifcvt.c (dead_or_predicable): Initialize local variable
5589 * input.h (expr_wfl_stack): Remove.
5590 * integrate.c (INTEGRATE_THRESHOLD): Remove.
5591 (setup_initial_hard_reg_value_integration): Likewise.
5592 (initialize_for_inline): Likewise.
5593 (note_modified_parmregs): Likewise.
5594 (integrate_parm_decls): Likewise.
5595 (process_reg_param): Likewise.
5596 (save_parm_insns): Likewise.
5597 (copy_insn_list): Likewise.
5598 (copy_insn_notes): Likewise.
5599 (compare_blocks): Likewise.
5600 (find_block): Likewise.
5601 (inlining): Likewise.
5602 (function_cannot_inline_p): Likewise.
5603 (parmdecl_map): Likewise.
5604 (in_nonparam_insns): Likewise.
5605 (save_for_inline): Likewise.
5606 (FIXED_BASE_PLUS): Likewise.
5607 (expand_inline_function): Likewise.
5608 (copy_rtx_and_substitute): Don't look at map->integrating,
5609 map->inline_target, and inlining, since we are never copying
5611 Don't abort on RTX_INTEGRATED_P.
5613 (output_inline_function): Remove.
5614 * integrate.h (struct inline_map): Remove fields integrating,
5615 block_map, leaf_reg_map, inline_target, and local_return_label.
5616 * jump.c (next_nonnote_insn_in_loop, duplicate_loop_exit_test,
5617 copy_loop_headers, never_reached_warning): Removed.
5618 (any_uncondjump_p): Reject nonlocal goto.
5619 * langhooks-def.h (lhd_types_compatible_p,
5620 lhd_expand_decl, lhd_gimplify_expr): Declare.
5621 (LANG_HOOKS_EXPAND_DECL, LANG_HOOKS_TYPES_COMPATIBLE_P,
5622 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
5623 LANG_HOOKS_FUNCTION_LEAVE_NESTED,
5624 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
5625 LANG_HOOKS_GIMPLIFY_EXPR,
5626 LANG_HOOKS_GIMPLE_BEFORE_INLINING,
5627 LANG_HOOKS_EXPAND_DECL, LANG_HOOKS_TYPES_COMPATIBLE_P,
5628 LANG_HOOKS_GIMPLIFY_EXPR,
5629 LANG_HOOKS_GIMPLE_BEFORE_INLINING): Define.
5630 (LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_START,
5631 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END,
5632 LANG_HOOKS_FUNCTION_LEAVE_NESTED,
5633 LANG_HOOKS_RTL_EXPAND_INITIALIZER,
5634 LANG_HOOKS_DECL_UNINIT,
5635 LANG_HOOKS_RTL_EXPAND_INITIALIZER): Remove.
5636 * langhooks.c: Include tree-simple.h.
5637 (lhd_expand_decl): New.
5638 (lhd_types_compatible_p): New.
5639 (lhd_decl_uninit): Remove.
5640 (lhd_gimplify_expr): New.
5641 * langhooks.h (struct lang_hooks_for_rtl_expansion):
5643 (struct lang_hooks_for_functions): Add field
5644 missing_noreturn_ok_p.
5645 (struct lang_hooks): Add field expand_decl,
5646 types_compatible_p, gimplify_expr and
5647 gimple_before_inlining.
5648 Remove fields decl_uninit and rtl_expand
5649 * opts.c (decode_options): Set flag_tree_ccp,
5650 flag_tree_dce, flag_tree_dom, flag_tree_dse,
5651 flag_tree_pre, flag_tree_ter,
5652 flag_tree_live_range_split, flag_tree_sra,
5653 flag_tree_copyrename and flag_tree_ch at -O1 and higher.
5654 (common_handle_option): Handle OPT_fdump_, OPT_fmudflap,
5655 OPT_fmudflapth, OPT_fmudflapir,
5656 OPT_ftree_based_profiling, OPT_ftree_ccp, OPT_ftree_dce,
5657 OPT_ftree_combine_temps, OPT_ftree_ter, OPT_ftree_lrs,
5658 OPT_ftree_dominator_opts, OPT_ftree_copyrename,
5659 OPT_ftree_ch, OPT_ftree_dse, OPT_ftree_sra,
5660 OPT_ftree_points_to_ and OPT_ftree_pre.
5661 * output.h (regno_uninitialized, find_basic_blocks,
5662 cleanup_cfg, delete_unreachable_blocks,
5663 check_function_return_warnings): Remove.
5664 * params.def (PARAM_MAX_INLINE_INSNS_RECURSIVE,
5665 PARAM_MAX_INLINE_INSNS_RECURSIVE_AUTO,
5666 PARAM_MAX_INLINE_RECURSIVE_DEPTH,
5667 PARAM_MAX_INLINE_RECURSIVE_DEPTH_AUTO,
5668 PARAM_GLOBAL_VAR_THRESHOLD, PARAM_MAX_ALIASED_VOPS):
5669 * params.h (GLOBAL_VAR_THRESHOLD, MAX_ALIASED_VOPS):
5671 * passes.c (rest_of_decl_compilation):
5672 (rest_of_handle_sibling_calls): Remove.
5673 (rest_of_handle_inlining): Remove.
5674 (rest_of_handle_gcse): Do not run
5675 purge_builtin_constant_p.
5676 (rest_of_compilation): Update.
5677 Do not call copy_loop_headers.
5678 Do rtl-based profiling only when
5679 !flag_tree_based_profiling. Register rtl-based profiling
5681 * predict.c: Include tree-flow.h, ggc.h, tree-dump.h
5682 (predicted_by_p): Rename to ...
5683 (rtl_predicted_by_p): .. this one; make global
5684 (tree_predicted_by_p): New.
5685 (dump_prediction): Add FILE argument.
5686 (predict_edge): Rename to ...
5687 (rtl_predict_edge): .. this one.
5688 (tree_predict_edge): New.
5689 (combine_predictions_for_insn): Update calls of predict_edge.
5690 (predict_loops): Break out from ...
5691 (estimate_probability): ... here; update comments; move updating
5692 of unknown probabilities from ...
5693 (estimate_bb_frequencies): ... here.
5694 (combine_predictions_for_bb): New.
5695 (tree_predict_by_opcode): New.
5696 (tree_estimate_probability): New.
5697 * predict.def (PRED_TREE_POINTER, PRED_TREE_OPCODE_POSITIVE,
5698 PRED_TREE_OPCODE_NONEQUAL, PRED_TREE_FPOPCODE): New predictors.
5699 * predict.h: Add include guard.
5700 (predict_edge, predict_edge_def): Move prototypes to basic_block.h
5701 * pretty-print.c (pp_write_text_to_stream): Make extern.
5702 * pretty-print.h (pp_write_text_to_stream): Declare.
5703 * print-rtl.c (print_rtx): Don't print the integrated flag.
5704 Print the return_val flag.
5705 * print-tree.c: Use TREE_FILENAME and TREE_LINENO instead
5706 of DECL_SOURCE_FILE and DECL_SOURCE_LINE respectively.
5707 Remove support for EXPR_WITH_FILE_LOCATION nodes.
5708 (print_node): Print TREE_INVARIANT and TREE_VISITED.
5709 * profile.c: Include cfghooks.h, tree-flow.h.
5710 (profile_hooks): New.
5711 (profile_dump_file): New.
5712 (instrument_edges): Use hooks instead of RTL-specific code.
5713 (instrument_values): Ditto.
5714 (get_exec_counts): Ditto.
5715 (compute_branch_probabilities): Ditto.
5716 (compute_value_histograms): Ditto.
5717 (branch_prob): Ditto.
5718 (find_spanning_tree): Ditto.
5719 (end_branch_prob): Ditto.
5720 (gen_edge_profiler): Move to rtl-profile.c (rtl_gen_edge_profiler).
5721 (gen_interval_profiler): Ditto (rtl_gen_interval_profiler).
5722 (gen_pow2_profiler): Ditto (rtl_gen_pow2_profiler).
5723 (gen_one_value_profiler): Ditto (rtl_gen_one_value_profiler).
5724 (tree_register_profile_hooks): New.
5725 (rtl_register_profile_hooks): New.
5726 * ra-rewrite.c (rewrite_program): Clear variable info.
5727 * recog.c (immediate_operand): Do not handle CONSTANT_P_RTX.
5728 * regs.h: Add include guards.
5729 * reload.c (decompose): Clear val using memset.
5730 * rtl.def (CONSTANT_P_RTX): Remove.
5731 * rtl.h (CONSTANT_P): Do not handle CONSTANT_P_RTX.
5732 (copy_loop_headers): Remove.
5733 (struct rtx_def): Replace the integrated flag with the
5735 (maybe_set_first_label_num): Declare.
5736 (init_branch_prob): Move declaration to value-prof.h.
5737 (end_branch_prob): Ditto.
5738 (branch_prob): Ditto.
5739 (never_reached_warning): Don't declare it.
5740 * rtlanal.c (get_related_value): Initialize get_jump_table_offset
5741 (hoist_insn_to_edge): Update to match field insns in
5743 * sbitmap.c (sbitmap_realloc): New.
5744 * sbitmap.h (sbitmap_realloc): Declare.
5745 * sibcall.c: Remove file.
5746 * simplify-rtx.c (simplify_rtx): Do not handle
5748 * stmt.c (parse_output_constraint): Don't warn for read-write
5750 (tail_recursion_args): Use types_compatible_p langhook.
5751 (force_label_rtx): Don't look at inline_function_decl.
5752 (label_rtx): Set LABEL_PRESERVE_P appropriately.
5753 (expand_label): Handle DECL_NONLOCAL and FORCED_LABEL.
5754 (declare_nonlocal_label): Remove.
5755 (expand_goto): Don't handle nonlocal gotos.
5756 (expand_nl_handler_label): Remove.
5757 (expand_nl_goto_receivers): Remove.
5758 (expand_end_bindings): Don't expand_nl_goto_receivers. Use
5759 update_nonlocal_goto_save_area.
5760 (expand_expr_stmt_value): Check TREE_NO_WARNING.
5761 (warn_if_unused_value): Likewise.
5762 (expand_start_loop, expand_loop_continue_here,
5763 expand_end_loop): Don't create loop notes.
5764 (all_cases_count, BITARRAY_TEST, BITARRAY_SET,
5765 mark_seen_cases, check_for_full_enumeration_handling): Remove.
5766 (expand_end_case_type): Don't do warn_switch handling.
5767 (pushcase, pushcase_range) Update add_case_node calls.
5768 (add_case_node): Add dont_expand_label argument.
5769 (same_case_target_p): Don't search rtl.
5770 (expand_start_bindings_and_block, expand_end_bindings):
5771 Don't emit block notes when dont_emit_block_notes.
5772 (using_eh_for_cleanups_p): Export.
5773 (expand_return): Allow any typed rhs.
5774 (expand_stack_alloc): New.
5775 (expand_stack_save, expand_stack_restore): New.
5776 (containing_blocks_have_cleanups_or_stack_level): New
5778 (asm_op_is_mem_input): New fn.
5779 (expand_asm_expr): New fn.
5780 (warn_if_unused_value): Check operand 0 of SAVE_EXPR
5782 * stor-layout.c (layout_type): Just return if type is
5784 (update_alignment_for_field): Export.
5785 (variable_size): We don't care about global_bindings_p if
5786 the frontend doesn't want a list of the expressions.
5787 * system.h: Poison INTEGRATE_THRESHOLD.
5788 * timevar.def (TV_TREE_GIMPLIFY, TV_TREE_EH, TV_TREE_CFG,
5789 TV_TREE_CLEANUP_CFG, TV_TREE_PTA, TV_TREE_MAY_ALIAS,
5790 TV_TREE_INSERT_PHI_NODES, TV_TREE_SSA_REWRITE_BLOCKS,
5791 TV_TREE_SSA_OTHER, TV_TREE_OPS,
5792 TV_TREE_SSA_DOMINATOR_OPTS, TV_TREE_SRA, TV_TREE_CCP,
5793 TV_TREE_SPLIT_EDGES, TV_TREE_PRE, TV_TREE_PHIOPT,
5794 TV_TREE_FORWPROP, TV_TREE_DCE, TV_TREE_CD_DCE,
5795 TV_TREE_DSE, TV_TREE_LOOP, TV_TREE_CH,
5796 TV_TREE_SSA_TO_NORMAL, TV_TREE_SSA_TO_NORMAL,
5797 TV_TREE_NRV, TV_TREE_COPY_RENAME, TV_TREE_SSA_VERIFY,
5798 TV_TREE_STMT_VERIFY, TV_DOM_FRONTIERS,
5799 TV_CONTROL_DEPENDENCES): Define.
5800 * toplev.c: Include tree-alias-common.h
5801 (current_file_decl, flag_mudflap, flag_mudflap_threads,
5802 flag_mudflap_ignore_reads, flag_tree_based_profiling,
5803 flag_tree_gvn, flag_tree_points_to, flag_tree_ccp,
5804 flag_tree_dce, flag_tree_ch, flag_tree_sra,
5805 flag_tree_combine_temps, flag_tree_ter,
5806 flag_tree_live_range_split, flag_tree_dom,
5807 flag_tree_copyrename, flag_tree_dse): Declare.
5808 (f_options): Add tree-based-profiling, tree-gvn,
5809 tree-pre, tree-ccp, tree-dce,
5810 tree-dominator-opts, tree-copyrename, tree-dse,
5811 tree-combine-temps, tree-ter, tree-lrs and tree-ch.
5812 (wrapup_global_declarations): Don't output nested inlined functions.
5813 (general_init): Call init_tree_optimization_passes.
5814 (process_options): Sorry for -ftree-based-profiling plus
5815 -ftest-coverage or -fprofile-values.
5816 * toplev.h (init_tree_optimization_passes,
5817 flag_tree_based_profiling): Declare.
5818 * tracer.c (tail_duplicate): Use cfghooks for bb duplication.
5819 * tree-alias-ander.c: New file.
5820 * tree-alias-ander.h: New file.
5821 * tree-alias-common.c: New file.
5822 * tree-alias-common.h: New file.
5823 * tree-alias-type.c: New file.
5824 * tree-alias-type.h: New file.
5825 * tree-browser.c: New file.
5826 * tree-browser.def: New file.
5827 * tree-cfg.c: New file.
5828 * tree-complex.c: New file.
5829 * tree-dfa.c: New file.
5830 * tree-dump.c (dump_enable_all): New.
5831 (dequeue_and_dump): Do not handle EXPR_WITH_FILE_LOCATION.
5832 (dump_node): Remove const from field suffix and swtch.
5833 (dump_files): Add null entry, .generic, .nested, .vcg,
5834 .xml and a match-all entry.
5835 (extra_dump_files, extra_dump_files_in_use,
5836 extra_dump_files_alloced): Declare
5837 (dump_option_value_info): Add raw, details, stats,
5838 blocks, vops, lineno, uid and all.
5839 (dump_register): New.
5840 (get_dump_file_info): New.
5841 (dump_begin): Call it.
5842 Do nothing for TDI_none.
5843 (dump_begin): Include phase number in dump filename.
5844 (dump_enable_all): New.
5845 (dump_switch_p_1): Split out from dump_switch_p.
5846 (dump_switch_p): Handle extra_dump_files.
5847 Start our scan at TDI_none + 1.
5848 If -fdump-tree-all was given, call dump_enable_all.
5849 * tree-dump.h: Include splay-tree.h.
5850 (dump_function, dump_function_to_file, dump_register):
5852 * tree-eh.c: New file.
5853 * tree-flow-inline.h: New file.
5854 * tree-flow.h: New file.
5855 * tree-inline.c: Re-write to handle inlining on GIMPLE.
5856 * tree-inline.h (walk_tree,
5857 walk_tree_without_duplicates): Move to tree.h.
5858 (estimate_num_insns): Declare.
5859 * tree-into-ssa.c: New file.
5860 * tree-iterator.c: New file.
5861 * tree-iterator.h: New file.
5862 * tree-mudflap.c: New file.
5863 * tree-mudflap.h: New file.
5864 * tree-nested.c: New file.
5865 * tree-nomudflap.c: New file.
5866 * tree-nrv.c: New file.
5867 * tree-optimize.c (dump_flags, vars_to_rename,
5868 in_gimple_form, all_passes, pass_gimple,
5869 pass_rebuild_bind, pass_all_optimizations, pass_del_cfg): Declare.
5870 (execute_gimple, execute_rebuild_bind,
5871 gate_all_optimizations, execute_del_cfg,
5872 register_one_dump_file, register_dump_files, dup_pass_1,
5873 init_tree_optimization_passes, execute_todo,
5874 execute_one_pass, execute_pass_list): New.
5875 (clear_decl_rtl): Remove.
5876 (tree_rest_of_compilation): Update to use tree
5878 * tree-outof-ssa.c: New file.
5879 * tree-pass.h: New file.
5880 * tree-phinodes.c: New file.
5881 * tree-pretty-print.c: New file.
5882 * tree-profile.c: New file.
5883 * tree-simple.c: New file.
5884 * tree-simple.h: New file.
5885 * tree-sra.c: New file.
5886 * tree-ssa-alias.c: New file.
5887 * tree-ssa-ccp.c: New file.
5888 * tree-ssa-copy.c: New file.
5889 * tree-ssa-copyrename.c: New file.
5890 * tree-ssa-dce.c: New file.
5891 * tree-ssa-dom.c: New file.
5892 * tree-ssa-dse.c: New file.
5893 * tree-ssa-forwprop.c: New file.
5894 * tree-ssa-live.c: New file.
5895 * tree-ssa-live.h: New file.
5896 * tree-ssa-loop.c: New file.
5897 * tree-ssa-operands.c: New file.
5898 * tree-ssa-operands.h: New file.
5899 * tree-ssa-phiopt.c: New file.
5900 * tree-ssa-pre.c: New file.
5901 * tree-ssa.c: New file.
5902 * tree-ssanames.c: New file.
5903 * tree-tailcall.c: New file.
5904 * tree.c: Include tree-iterator.h, basic-block.h and
5906 (tree_node_kind): Add phi_nodes and ssa names.
5907 (tree_size): Handle PHI_NODE, EPHI_NODE, SSA_NAME,
5908 EUSE_NODE, EKILL_NODE, EEXIT_NODE and STATEMENT_LIST.
5909 (make_node_stat): Handle PHI_NODE and SSA_NAME.
5910 <'c'> Set TREE_INVARIANT.
5911 (copy_node_stat): Abort if trying to copy a
5914 Clear annotation field.
5915 (build_constructor): Copy TREE_INVARIANT from vals.
5916 Don't clear TREE_CONSTANT.
5917 (expr_first, expr_last, expr_length): Remove.
5918 (staticp): Pass unknown component references to the language.
5919 (save_expr): Check TREE_INVARIANT instead of TREE_CONSTANT.
5920 (skip_simple_arithmetic): Likewise.
5921 (stabilize_reference_1): Likewise.
5922 (tree_node_structure): Handle PHI_NODE, EPHI_NODE,
5923 EUSE_NODE, EKILL_NODE, EEXIT_NODE, SSA_NAME and
5925 (lhd_unsave_expr_now): Remove.
5926 (unsafe_for_reeval): Handle LABEL_EXPR and BIND_EXPR.
5927 (recompute_tree_invarant_for_addr_expr): New.
5928 (build1_stat): Clear EXPR_LOCUS and TREE_BLOCK.
5929 Call recompute_tree_invarant_for_addr_expr.
5930 Set TREE_INVARIANT accordingly.
5931 (build2_stat): Don't handle CALL_EXPR.
5932 (build3_stat): Don't call build2_stat for CALL_EXPRs.
5933 (build_expr_wfl): Remove.
5934 (annotate_with_file_line, annotate_with_locus): New.
5935 (simple_cst_equal): Call simple_cst_list_equal to compare
5936 CONSTRUCTOR_ELTS pointers.
5937 (iterative_hash_expr): Don't hash types associated
5938 with conversions. Instead hash on the signedness of the
5939 toplevel object and the operand of the conversion.
5940 (dump_tree_statistics): Call ssanames_print_statistics
5941 and phinodes_print_statistics.
5942 (ephi_node_elt_check_failed, phi_node_elt_check_failed,
5943 add_var_to_bind_expr, build_empty_stmt, is_essa_node,
5944 needs_to_live_in_memory): New.
5945 (initializer_zerop): Handle VECTOR_CST. Don't check
5946 AGGREGATE_TYPE_P for CONSTRUCTOR.
5947 * tree.def (FILTER_EXPR, CASE_LABEL_EXPR, RESX_EXPR,
5948 SSA_NAME, EUSE_NODE, EKILL_NODE, EPHI_NODE, EEXIT_NODE,
5949 PHI_NODE, CATCH_EXPR, EH_FILTER_EXPR, STATEMENT_LIST): Define.
5950 (GOTO_SUBROUTINE_EXPR): Change type to 's'.
5951 (CALL_EXPR): Add another operand.
5952 (EXPR_WITH_FILE_LOCATION): Remove.
5953 (SWITCH_EXPR): Add another operand.
5954 * tree.h: Update various comments.
5955 (union tree_ann_d): Forward declare.
5956 (struct tree_common): Add fields nowarning_flag,
5957 invariant_flag and visited.
5958 (EREF_NODE_CHECK, EPHI_NODE_ELT_CHECK,
5959 PHI_NODE_ELT_CHECK, EREF_NODE_CHECK, PHI_NODE_ELT_CHECK,
5960 EPHI_NODE_ELT_CHECK, TREE_BLOCK,
5961 STRIP_USELESS_TYPE_CONVERSION, CALL_EXPR_TAILCALL,
5962 TREE_NO_WARNING, FORCED_LABEL, TREE_INVARIANT,
5963 IS_EMPTY_STMT, EXPR_LOCUS, SET_EXPR_LOCUS, EXPR_FILENAME,
5964 EXPR_LINENO, EXPR_LOCATION, EXPR_HAS_LOCATION,
5965 EXIT_EXPR_COND, SWITCH_COND, SWITCH_BODY, SWITCH_LABELS,
5966 CASE_LOW, CASE_HIGH, CASE_LABEL, BIND_EXPR_VARS,
5967 BIND_EXPR_BODY, BIND_EXPR_BLOCK, GOTO_DESTINATION,
5968 ASM_STRING, ASM_OUTPUTS, ASM_INPUTS, ASM_CLOBBERS,
5969 ASM_INPUT_P, ASM_VOLATILE_P, COND_EXPR_COND,
5970 COND_EXPR_THEN, COND_EXPR_ELSE, LABEL_EXPR_LABEL,
5971 CATCH_TYPES, CATCH_BODY, EH_FILTER_TYPES,
5972 EH_FILTER_FAILURE, EH_FILTER_MUST_NOT_THROW,
5973 SSA_NAME_VAR, SSA_NAME_DEF_STMT, SSA_NAME_VERSION,
5974 SSA_NAME_OCCURS_IN_ABNORMAL_PHI, SSA_NAME_IN_FREE_LIST,
5975 PHI_RESULT, PHI_REWRITTEN, PHI_NUM_ARGS,
5976 PHI_ARG_CAPACITY, PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF,
5977 EREF_PROCESSED, EREF_ID, EREF_NAME, EREF_STMT,
5978 EREF_RELOAD, EREF_SAVE, EREF_CLASS, EREF_INJURED,
5979 EREF_TEMP, EUSE_DEF, EUSE_PHIOP, EUSE_INSERTED,
5980 EUSE_LVAL, EPHI_NUM_ARGS, EPHI_ARG_CAPACITY,
5981 EPHI_ARG_ELT, EPHI_ARG_EDGE, EPHI_ARG_PRED, EPHI_ARG_DEF,
5982 EPHI_ARG_INJURED, EPHI_ARG_DELAYED_RENAME,
5983 EPHI_ARG_HAS_REAL_USE, EPHI_ARG_STOPS,
5984 EPHI_ARG_PROCESSED2, EPHI_IDENTITY, EPHI_IDENT_INJURED,
5985 EPHI_REP_OCCUR_KNOWN, EPHI_IDENTICAL_TO, EPHI_DOWNSAFE,
5986 EPHI_CANT_BE_AVAIL, EPHI_DEAD, EPHI_USES, EPHI_STOPS,
5987 TREE_VISITED, SSA_VAR_P, DECL_NUM_STMTS,
5988 DECL_HARD_REGISTER, DECL_PTA_ALIASVAR, LABEL_DECL_UID,
5989 DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL,
5990 STATEMENT_LIST_HEAD, STATEMENT_LIST_TAIL, TDF_RAW,
5991 TDF_DETAILS, TDF_STATS, TDF_BLOCKS, TDF_VOPS, TDF_LINENO,
5993 (TREE_NO_UNUSED_WARNING, EXPR_WFL_EMIT_LINE_NOTE,
5994 EXPR_WFL_NODE, EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME,
5995 EXPR_WFL_LINECOL, EXPR_WFL_LINENO, EXPR_WFL_COLNO,
5996 EXPR_WFL_SET_LINECOL): Remove.
5997 (phi_node_elt_check_failed, ephi_node_elt_check_failed,
5998 make_phi_node, init_phinodes, fini_phinodes,
5999 release_phi_node, phinodes_print_statistics,
6000 init_ssanames, fini_ssanames, make_ssa_name,
6001 release_ssa_name, ssanames_print_statistics,
6002 annotate_with_file_line, build_empty_stmt,
6003 annotate_with_locus, expr_only, categorize_ctor_elements,
6004 count_type_elements, add_var_to_bind_expr, is_essa_node,
6005 expand_stack_alloc, expand_stack_save,
6006 expand_stack_restore, add_case_node, operand_equal_p,
6007 nondestructive_fold_unary_to_constant,
6008 nondestructive_fold_binary_to_constant,
6009 fold_read_from_constant_string, int_const_binop,
6010 strip_float_extensions, simplify_builtin, c_strlen,
6011 recompute_tree_invarant_for_addr_expr,
6012 needs_to_live_in_memory, make_vector,
6013 setjmp_vars_warning, update_alignment_for_field,
6014 expand_asm_expr, asm_op_is_mem_input,
6015 containing_blocks_have_cleanups_or_stack_level,
6016 create_artificial_label, gimplify_function_tree,
6017 get_name, unshare_expr, walk_tree,
6018 walk_tree_without_duplicates, in_gimple_form): Declare.
6019 (struct tree_exp): Add fields locus and block.
6020 (struct tree_ssa_name, struct edge_def, struct
6021 tree_phi_node, struct tree_eref_common, struct
6022 tree_euse_node, struct ephi_arg_d, struct tree_ephi_node,
6023 union alias_var_def, struct tree_statement_list_node,
6024 struct tree_statement_list, enum operand_equal_flag): Declare.
6025 (enum tree_node_structure_enum): Add TS_SSA_NAME,
6026 TS_PHI_NODE, TS_EPHI_NODE, TS_EUSE_NODE, TS_EREF_NODE,
6028 (union tree_node): Add fields ssa_name, phi, eref, ephi,
6030 (function_cannot_inline_p, uninitialized_vars_warning,
6031 save_for_inline, output_inline_function, all_cases_count,
6032 check_for_full_enumeration_handling,
6033 declare_nonlocal_label): Remove.
6034 (enum tree_dump_index): Add TDI_none, TDI_tu,
6035 TDI_generic, TDI_nested, TDI_vcg, TDI_xml.
6036 * unroll.c (unroll_loop): Don't clear map->inline_target.
6037 * unwind-sjlj.c (uw_install_context): Make a proper static inline
6039 * value-prof.c (value_prof_hooks): New.
6040 (find_values_to_profile): Rename to rtl_find_values_to_profile.
6041 Move rtl-specific bits in from branch_prob.
6042 (value_profile_transformations): Rename to
6043 rtl_value_profile_transformations.
6044 (struct value_prof_hooks): New.
6045 (rtl_value_prof_hooks): New.
6046 (rtl_register_value_prof_hooks): New.
6047 (tree_find_values_to_profile): New stub.
6048 (tree_value_profile_transformations): New stub.
6049 (tree_value_prof_hooks): New stub.
6050 (tree_register_value_prof_hooks): New stub.
6051 (find_values_to_profile): New.
6052 (value_profile_transformations): New.
6053 * value-prof.h: Add multiple inclusion guard.
6054 (struct histogram_value): Change rtx fields to void *.
6055 (rtl_register_value_prof_hooks): New declaration.
6056 (tree_register_value_prof_hooks): New declaration.
6057 (find_values_to_profile): New declaration.
6058 (free_profiled_values): New declaration.
6059 (value_profile_transformations): New declaration.
6060 (struct profile_hooks): New declaration.
6061 (init_branch_prob): Declaration moved from rtl.h.
6062 (branch_prob): Declaration moved from rtl.h.
6063 (end_branch_prob): Declaration mooved from rtl.h.
6064 (tree_register_profile_hooks): New declaration.
6065 (rtl_register_profile_hooks): New declaration.
6066 (tree_profile_hooks): New declaration.
6067 (rtl_profile_hooks): New declaration.
6068 * varasm.c: Include tree-mudflap.h.
6069 (TRAMPOLINE_ALIGNMENT): Remove.
6070 (make_decl_rtl): Call mudflap_enqueue_decl.
6071 (assemble_static_space):
6072 (assemble_trampoline_template): Set and return
6073 TRAMPOLINE_ALIGNMENT.
6074 * varray.c (element): Add GENERIC_PTR_NOGC entry.
6075 Add entry for 'tree *'.
6076 Add entry for struct edge_def *.
6078 * varray.h (enum varray_data_enum): Add
6079 VARRAY_DATA_GENERIC_NOGC, VARRAY_DATA_EDGE and
6080 VARRAY_DATA_TREE_PTR.
6081 (union varray_data_tag): Corresponding changes.
6082 (VARRAY_GENERIC_PTR_NOGC_INIT, VARRAY_EDGE_INIT,
6083 VARRAY_TREE_PTR_INIT, VARRAY_GENERIC_PTR_NOGC,
6084 VARRAY_EDGE, VARRAY_TREE_PTR,
6085 VARRAY_PUSH_GENERIC_PTR_NOGC, VARRAY_PUSH_EDGE,
6086 VARRAY_PUSH_TREE_PTR, VARRAY_TOP_GENERIC_PTR_NOGC,
6087 VARRAY_TOP_EDGE, VARRAY_TOP_TREE_PTR): Define.
6089 * config/*/*: Various updates for changed macros, tree
6090 codes, etc. Check ChangeLog.tree-ssa.
6092 * doc/cfg.texi: New file.
6093 * doc/tree-ssa.texi: New file.
6094 * doc/c-tree.texi: Document new codes.
6095 * doc/gccint.texi: Include new files.
6096 * doc/install.texi: Document new features.
6097 * doc/invoke.texi: Document new switches.
6098 * doc/passes.texi: Document new passes.
6099 * doc/rtl.texi: Update changed RTL codes.
6100 * doc/sourcebuild.texi: Update build instructions.
6101 * doc/standards.texi: Document Fortran changes.
6102 * doc/tm.texi: Update.
6104 2004-05-12 Paolo Bonzini <bonzini@gnu.org>
6106 Replace several arrays with a struct of arrays.
6107 * combine.c (struct reg_stat): New.
6108 (init_reg_last_arrays): Renamed to...
6109 (init_reg_last): ...this. Callers adjusted.
6111 (combine_instructions): Allocate it and use it.
6112 (reg_last_death, reg_last_set, reg_last_set_value,
6113 reg_last_set_label, reg_last_set_table_tick,
6114 reg_last_set_invalid, reg_nonzero_bits, reg_sign_bit_copies,
6115 reg_last_set_mode, reg_last_set_nonzero_bits,
6116 reg_last_set_sign_bit_copies): Replace throughout
6117 with items of reg_stat.
6119 2004-05-11 Kaz Kojima <kkojima@gcc.gnu.org>
6121 PR optimization/15100
6122 * combine.c (distribute_notes): Don't create a dangling
6123 REG_LIBCALL/REG_RETVAL note.
6125 2004-05-11 Aldy Hernandez <aldyh@redhat.com>
6127 * config/rs6000/spe.md (spe_evneg): Rename to negv2si2.
6129 * config/rs6000/rs6000.c (bdesc_1arg): Change spe_evneg to
6132 2004-05-11 Aldy Hernandez <aldyh@redhat.com>
6134 * doc/md.texi (Standard Names): Fix typo in vec_init description.
6136 2004-05-11 Geoffrey Keating <geoffk@apple.com>
6138 * doc/gty.texi (GTY Options): Clarify example.
6140 2004-05-11 Fariborz Jahanian <fjahanian@apple.com>
6142 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
6143 Add const qualifier to altivec vector type if one is needed.
6145 2004-05-11 Paul Brook <paul@codesourcery.com>
6147 * flags.h (flag_short_enums): Update comment.
6148 * opts.c (decode_options): Set flag_short_enums to 2.
6149 * toplev.c (flag_short_enums): Update comment.
6150 (process_options): Call default_short_enums target hook.
6152 2004-05-11 Andrew Pinski <pinskia@gcc.gnu.org>
6155 * config/rs6000/altivec.md (altivec_dssall):
6156 Change to unspec_volatile.
6157 (altivec_dss): Likewise.
6159 2004-05-10 Aldy Hernandez <aldyh@redhat.com>
6161 * config/rs6000/altivec.md ("one_cmplv16qi2"): Change vnot to
6163 ("one_cmplv8hi2"): Same.
6164 ("one_cmplv4si2"): Same.
6166 2004-05-10 Kaz Kojima <kkojima@gcc.gnu.org>
6169 * config/sh/sh-protos.h (sh_expand_epilogue): Change prototype.
6170 * config/sh/sh.c (output_stack_adjust): Take the sibcall epilogue
6171 into account. Compute the correct number of general registers
6172 for the return value. Generate a special push/pop sequence when
6173 failing to get a temporary register for non SHmedia epilogue.
6174 (sh_expand_epilogue): Add an argument to show whether it's for
6175 sibcall or not. Set the 3rd argument of output_stack_adjust to
6177 (sh_need_epilogue): Call sh_expand_epilogue with 0.
6178 * config/sh/sh.md (sibcall_epilogue): Call sh_expand_epilogue
6180 (epilogue): Call sh_expand_epilogue with 0.
6182 2004-05-10 Andrew Pinski <pinskia@physics.uc.edu>
6184 * gcse.c (eliminate_partially_redundant_loads): Instead of returning early,
6185 goto a cleanup label. After the cleanup, free the allocated memory.
6187 2004-05-10 Ziemowit Laski <zlaski@apple.com>
6189 * config/rs6000/altivec.h (vec_sld): Add overloads for
6190 argument/return types of 'vector bool int', 'vector bool short'
6191 and 'vector bool char'.
6193 2004-05-10 Zack Weinberg <zack@codesourcery.com>
6195 * c-decl.c (store_parm_decls_newstyle): Correct test for a
6198 2004-05-10 Richard Sandiford <rsandifo@redhat.com>
6200 * read-rtl.c (read_rtx): Allow 's' and 'T' strings to be omitted,
6201 treating missing ones as "".
6202 * config/mips/mips.md: Remove constraints from match_operands and
6203 match_scratches if they appear in define_expands (except reload*),
6204 define_peephole2s, define_splits or attribute specifications.
6205 * config/mips/7000.md, config/mips/sb1.md: Remove match_operand
6208 2004-05-10 Alan Modra <amodra@bigpond.net.au>
6210 * config/rs6000/rs6000.c (function_arg_boundary): Always align
6212 (function_arg_advance): Pass TARGET_32BIT -mabi=no-altivec AltiVec
6213 vectors by refererence. Align the same for TARGET_64BIT to a 16
6214 byte boundary. Remove useless code. Add function comment.
6215 (function_arg): Similarly. Move gpr rs6000_mixed_function_arg
6216 call to where it belongs.
6217 (function_arg_partial_nregs): Return true for all TARGET_32BIT
6218 -mabi=no-altivec AltiVec vectors. Fix debug output.
6219 (rs6000_va_arg): Adjust for AltiVec change.
6221 2004-05-10 Paul Brook <paul@codesourcery.com>
6223 * config/arm/arm.c (arm_promote_prototypes): Use TARGET_AAPCS_BASED.
6224 * config/arm/arm.h (TARGET_AAPCS_BASED): Define.
6225 (TARGET_DOUBLEWORD_ALIGN): Use it.
6226 (WCHAR_TYPE): Define.
6227 (WCHAR_SIZE_TYPE): Define.
6228 (SIZE_TYPE): Define.
6230 2004-05-10 Alan Modra <amodra@bigpond.net.au>
6232 * config/rs6000/rs6000.c (function_arg_boundary): Align for ABI_V4
6233 when size is 8 bytes.
6234 (function_arg_advance): Account for stack space used by AltiVec
6235 args when -mabi=altivec. Simplify alignment calculations. For
6236 ABI_V4, pass AltiVec vectors by reference when -mabi=no-altivec.
6237 (function_arg): Similarly.
6238 (function_arg_pass_by_reference): True for ABI_V4 AltiVec when
6240 (rs6000_va_arg): Correct fp arg test. Adjust for AltiVec change.
6241 Correct alignment, and align before testing reg count. Remove
6242 TREE_THIS_VOLATILE from reg. Don't emit unused labels.
6243 (rs6000_complex_function_value): Check TARGET_HARD_FLOAT and
6245 (rs6000_function_value): .. not here before call.
6247 2004-05-09 Aldy Hernandez <aldyh@redhat.com>
6249 * config/rs6000/spe.md ("tstsflt_gpr"): Fix typo in unspec.
6251 2004-05-09 Zack Weinberg <zack@codesourcery.com>
6254 * c-decl.c (current_file_decl): Rename to all_translation_units,
6256 (pop_scope): If popping file_scope, construct a
6257 TRANSLATION_UNIT_DECL and make it the context of all the
6258 symbols in the scope.
6259 (push_file_scope): Don't construct a TRANSLATION_UNIT_DECL here.
6260 (pushdecl): Clarify comment. Do not set DECL_CONTEXT of
6261 anything to current_file_decl.
6262 (pushdecl_top_level): Likewise.
6263 (store_parm_decls_newstyle): Adjust check for nested function.
6264 (c_write_global_declarations): Update for renamed variable.
6266 2004-05-09 Aldy Hernandez <aldyh@redhat.com>
6268 * config/rs6000/rs6000-protos.h
6269 (rs6000_conditional_register_usage): Protoize.
6271 * config/rs6000/rs6000.c (rs6000_conditional_register_usage): New.
6273 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Call
6276 2004-05-08 Roger Sayle <roger@eyesopen.com>
6278 * fold-const.c (fold_div_compare): New function to optimize X/C1 op C2
6279 where op is a comparison operator and C1 and C2 are integer constants
6281 (fold): Call fold_div_compare.
6283 2004-05-08 Eric Botcazou <ebotcazou@libertysurf.fr>
6285 * doc/install.texi (sparc-sun-solaris2*): Document bootstrap
6286 problems with earlier versions of the GNU compiler.
6288 2004-05-07 Aldy Hernandez <aldyh@redhat.com>
6290 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_mode_ok_p):
6293 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok_p): New.
6294 (rs6000_hard_regno_mode_ok): New.
6295 (rs6000_init_hard_regno_mode_ok): New.
6296 (rs6000_override_options): Call rs6000_init_hard_regno_mode_ok.
6298 * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Use precomputed
6301 2004-05-07 Ziemowit Laski <zlaski@apple.com>
6303 * config/rs6000/altivec.h (vector, pixel, bool): Do not
6304 define as macros #ifdef __APPLE_ALTIVEC__.
6306 2004-05-07 Fariborz Jahanian <fjahanian@apple.com>
6308 * config/rs6000/rs6000.c (rs6000_mixed_function_arg):
6309 Generate appropriate parallels for vector arguments
6310 passed to vararg functions. (function_arg): make the call
6311 to rs6000_mixed_function_arg for vector args as needed.
6313 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
6315 * config/mips/mips.c (mips_va_arg): Fix calculation of osize for
6316 EABI_FLOAT_VARARGS_P.
6318 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
6320 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY): Remove TARGET_MIPS5500.
6321 * config/mips/mips.c (override_options): Disable branch likely
6322 instructions if TUNE_MIPS5500.
6324 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
6326 * config/mips/mips.c (override_options): Allow the hi and lo registers
6327 to store any integral mode, not just MODE_INTs.
6329 2004-05-07 Paul Brook <paul@codesourcery.com>
6331 * config/arm/arm.c (arm_promote_prototypes): Use TARGET_AAPCS_BASED.
6332 * config/arm/arm.h (TARGET_AAPCS_BASED): Define.
6333 (TARGET_DOUBLEWORD_ALIGN): Use it.
6334 (WCHAR_TYPE): Define.
6335 (WCHAR_SIZE_TYPE): Define.
6336 (SIZE_TYPE): Define.
6338 2004-05-07 Uros Bizjak <uros@kss-loka.si>
6340 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Use
6341 testb $4, %ah insn instead of sahf insn if !TARGET_USE_SAHF.
6343 2004-05-07 Andrew Pinski <pinskia@physics.uc.edu>
6345 * loop-doloop.c (doloop_valid_p): Make sure that body
6348 2004-05-07 Eric Botcazou <ebotcazou@act-europe.fr>
6350 * config/sparc/sparc-protos.h (sparc_skip_caller_unimp): New
6352 * config/sparc/sparc.c (SKIP_CALLERS_UNIMP_P): Delete.
6353 (sparc_skip_caller_unimp): New global variable.
6354 (sparc_function_epilogue): Set 'sparc_skip_caller_unimp'.
6355 Use it instead of SKIP_CALLERS_UNIMP_P.
6356 * config/sparc/sparc.md (call expander): Add sanity check.
6357 (call_address_struct_value_sp32): Re-sync with expander.
6358 (call_symbolic_struct_value_sp32): Likewise.
6359 (return peepholes): Use 'sparc_skip_caller_unimp' instead
6360 of custom predicate.
6362 2004-05-07 Eric Botcazou <ebotcazou@libertysurf.fr>
6365 * c-pragma.c (handle_pragma_redefine_extname): Only change
6366 the assembler name of FUNCTION_DECLs and VAR_DECLs.
6368 2004-05-07 Uros Bizjak <uros@kss-loka.si>
6370 * optabs.h (enum optab_index): Add new OTI_log1p.
6371 (log1p_optab): Define corresponding macro.
6372 * optabs.c (init_optabs): Initialize log1p_optab.
6373 * genopinit.c (optabs): Implement log1p_optab using log1p?f2
6375 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG1P{,F,L}
6377 (expand_builtin): Expand BUILT_IN_LOG1P{,F,L} using
6378 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
6380 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2XP1.
6382 * config/i386/i386.c (ix86_emit_i387_log1p): New function.
6383 * config/i386/i386-protos.h (ix86_emit_i387_log1p):
6385 * config/i386/i386.md (UNSPEC_FYL2XP1): New unspec to represent
6386 x87's fyl2xp1 instruction.
6387 (*fyl2x_xf3): Rename insn definition to fyl2x_xf3.
6388 (fyl2xp1_xf3): New pattern to implement fyl2xp1 x87 instruction.
6389 (log1psf2, log1pdf2, log1pxf2): New expanders to implement log1pf,
6390 log1p and log1pl built-ins as inline x87 intrinsics.
6392 2004-05-07 Loren James Rittle <ljrittle@acm.org>
6394 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Proper redefinition.
6395 * config/arm/freebsd.h: Likewise.
6396 * config/ia64/freebsd.h: Likewise.
6397 * config/sparc/freebsd.h: Likewise.
6399 2004-05-07 Hans-Peter Nilsson <hp@axis.com>
6401 PR optimization/15296
6402 * reorg.c (fill_simple_delay_slots): Use next_real_insn when
6403 getting last consecutive label at a branch.
6404 (relax_delay_slots): Similar, near top of loop.
6406 2004-05-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6409 * pa.md (movdi, movsi, movhi, movqi): Support move from shift amount
6410 register to general register.
6412 2004-05-07 Alan Modra <amodra@bigpond.net.au>
6414 * config/rs6000/rs6000.h (STACK_BOUNDARY): Use 128 bit for either
6415 TARGET_ALTIVEC or TARGET_ALTIVEC_ABI.
6416 * config/rs6000/sysv4.h (ABI_STACK_BOUNDARY): Likewise.
6417 (STACK_BOUNDARY): Delete.
6419 2004-05-06 Stuart Hastings <stuart@apple.com>
6421 * gcc/doc/invoke.texi: Restore -fgcse-after-reload doc from 1.421,
6422 mistakenly clobbered by 1.423.
6424 2004-05-06 Richard Sandiford <rsandifo@redhat.com>
6426 * doc/invoke.texi: Document -mvr4130-align.
6427 * config/mips/mips.h (MASK_VR4130_ALIGN, TARGET_VR4130_ALIGN)
6428 (TUNE_MIPS4120, TUNE_MIPS4130): New macros.
6429 (TUNE_MACC_CHAINS): Include TUNE_MIPS4120 and TUNE_MIPS4130.
6430 (TARGET_SWITCHES): Add -mvr4130-align and -mno-vr4130-align.
6431 * config/mips/mips.md: Include sched-int.h.
6432 (USEFUL_INSN_P, SEQ_BEGIN, SEQ_END, FOR_EACH_SUBINSN): New macros.
6433 (mips_rtx_costs): Set integer multiplication costs for TUNE_MIPS4130.
6434 (override_options): Enable -mvr4130-align at -O3 and above.
6435 (mips_sim_insn): New variable.
6436 (mips_sim): New structure.
6437 (mips_sim_reset, mips_sim_init, mips_sim_next_cycle, mips_sim_wait_reg)
6438 (mips_sim_wait_regs_2, mips_sim_wait_regs_1, mips_sim_wait_regs)
6439 (mips_sim_wait_units, mips_sim_wait_insn, mips_sim_record_set)
6440 (mips_sim_issue_insn, mips_sim_issue_nop, mips_sim_finish_insn)
6441 (vr4130_avoid_branch_rt_conflict, vr4130_align_insns): New functions.
6442 (mips_reorg): Call vr4130_align_insns.
6443 (vr4130_last_insn): New variable.
6444 (vr4130_true_reg_dependence_p_1, vr4130_true_reg_dependence_p)
6445 (vr4130_swap_insns_p, vr4130_reorder): New functions.
6446 (mips_sched_reorder, mips_variable_issue): Hook in vr4130 code.
6447 (mips_issue_rate): Return 2 for PROCESSOR_R4130.
6448 (mips_use_dfa_pipeline_interface): Return true for the same.
6449 * config/mips/4130.md: New file.
6450 * config/mips/mips.md: Include it. Add a peephole2 to convert
6451 "mult;mflo" into "mtlo;macc".
6452 (*macc, *umul_acc_di, *smul_acc_di): Use $1 rather than $0 as the
6454 (*msac_using_macc): New pattern.
6456 2004-05-06 Richard Sandiford <rsandifo@redhat.com>
6458 * config/mips/5500.md (ir_vr55_store): Set latency to 0.
6459 (ir_vr55_hilo): Split into...
6460 (ir_vr55_mfhilo, ir_vr55_mthilo): ...these new reservations.
6461 (ir_vr55_imul_si, ir_vr55_imadd): Change latency to 5.
6462 (ir_vr55_imul_di): Change latency to 9. Reserve vr55_mac for 4 cycles.
6463 Add various multiplication bypasses.
6464 * config/mips/mips.c (mips_rtx_costs): Adjust VR5500 costs for integer
6467 2004-05-06 Uros Bizjak <uros@kss-loka.si>
6469 * config/i386/i386.md (*fscalexf4): Correct insn "mode"
6472 2004-05-05 Uros Bizjak <uros@kss-loka.si>
6474 * optabs.h (enum optab_index): Add new OTI_fmod and OTI_drem.
6475 (fmod_optab, drem_optab): Define corresponding macros.
6476 * optabs.c (init_optabs): Initialize fmod_optab and drem_optab.
6477 * genopinit.c (optabs): Implement fmod_optab and drem_optab
6478 using fmod?f3 and drem?f3 patterns.
6479 * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_FMOD{,F,L}
6480 using fmod_optab and BUILT_IN_DREM{,F,L} using drem_optab.
6481 (expand_builtin): Expand BUILT_IN_FMOD{,F,L} and
6482 BUILT_IN_DREM{,F,L} using expand_builtin_mathfn_2 if
6483 flag_unsafe_math_optimizations is set.
6485 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FPREM_F,
6486 UNSPEC_FPREM_U, UNSPEC_FPREM1_F and UNSPEC_FPREM1_U.
6488 * config/i386/i386.c (ix86_emit_fp_unordered_jump): New function.
6489 * config/i386/i386-protos.h (ix86_emit_fp_unordered_jump):
6491 * config/i386/i386.md (UNSPEC_FPREM_F, UNSPEC_FPREM_U,
6492 UNSPEC_FPREM1_F, UNSPEC_FPREM1_U): New unspecs to represent x87's
6493 fprem and fprem1 instructions.
6494 (*x86_fnstsw_1): Change input parameter to (reg:CCFP 18).
6495 Rename insn definition to x86_fnstsw_1.
6496 (fpremxf4, fprem1xf4): New patterns to implement fprem and fprem1
6498 (fmodsf3, fmoddf3, fmodxf3): New expanders to implement fmodf, fmod
6499 and fmodl built-ins as inline x87 intrinsics.
6500 (dremsf3, dremdf3, dremxf3): New expanders to implement dremf, drem
6501 and dreml built-ins as inline x87 intrinsics.
6503 2004-05-05 Roger Sayle <roger@eyesopen.com>
6505 * reload1.c (inherit_piecemeal_p): Mark parameters potentially unused.
6507 2004-05-05 Ian Lance Taylor <ian@wasabisystems.com>
6510 * doc/invoke.texi (Spec Files): Remove documentation of %c.
6512 2004-05-05 Chris Demetriou <cgd@broadcom.com>
6514 * config/mips/mips.md: Update the msub define_split for new mflo/mfhi
6517 2004-05-06 Paul Brook <paul@codesourcery.com>
6519 * config/arm/arm-protots.h (vfp_mem_operand): Rename ...
6520 (arm_coproc_mem_operand): ... To this.
6521 * config/arm/arm.c (arm_legitimate_address_p): Allow ldrd modes.
6522 (arm_legitimate_index_p): Ditto.
6523 (vfp_mem_operand): Rename ...
6524 (arm_coproc_mem_operand): ... To this. Handle writeback modes.
6525 (vfp_secondary_reload_class): Use it.
6526 (output_move_double): Use doubleword load/store instructions.
6527 (arm_hard_regno_mode_ok): Only allow even reg pairs for ldrd.
6528 * config/arm/arm.h (TARGET_LDRD): Define.
6529 (EXTRA_CONSTRAINT_STR_ARM): Add 'Uy'.
6530 * config/gcc/arm/arm.md (arm_movdi): Allow all valid memory operands.
6531 New splitter for invalid doubleword loads.
6532 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Use Uy constraint.
6533 * config/arm/vfp.md (arm_movdi_vfp): Allow all valid memory operands.
6534 * doc/md.texi: Document Uy constraint.
6536 2004-05-05 Jan Hubicka <jh@suse.cz>
6539 * cgraphunit.c (cgraph_remove_unreachable_nodes): Deal properly with
6542 2004-05-05 H.J. Lu <hongjiu.lu@intel.com>
6545 * config/i386/i386.c (ix86_split_to_parts): Use real_to_target
6546 instead of REAL_VALUE_TO_TARGET_LONG_DOUBLE.
6548 2004-05-05 Mike Stump <mrs@apple.com>
6550 * config/darwin-c.c (add_framework): Copy the directory name as it
6551 can be freed later. Also, ensure we always allocate enough room
6552 for the cached framework information.
6553 (find_subframework_header): Keep track of the directory where the
6554 subframework header was found.
6555 (framework_construct_pathname): Speed up by not trying to re-add a
6557 * cppfiles.c (search_path_exhausted): Arrange for the missing
6558 header callback to be able to set the directory where the header
6561 * cpplib.h (missing_header_cb): Add a parameter.
6564 2004-05-03 Mike Stump <mrs@apple.com>
6566 * doc/invoke.texi (Directory Options): Document -iquote.
6567 * doc/cpp.texi: Likewise.
6568 * doc/cppopts.texi: Likewise.
6569 * c-opts.c (c_common_missing_argument): Add -iquote processing.
6570 (c_common_handle_option): Likewise.
6571 * c.opt (iquote): Add.
6572 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -iquote.
6573 * c-incpath.c (merge_include_chains): Update comment to use -iquote.
6575 * c-opts.c (case OPT_I): Deprecate -I- support.
6576 * doc/invoke.texi: Likewise.
6577 * doc/cpp.texi: Likewise.
6578 * doc/cppopts.texi: Likewise.
6580 2004-05-05 Steven Bosscher <stevenb@suse.de>
6582 * basic-block.h (free_basic_block_vars): Update prototype.
6583 * flow.c (free_basic_block_vars): Remove the keep_head_end_p
6585 (life_analysis): Update call.
6586 * ifcvt.c (if_convert): Likewise.
6587 * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
6588 * passes.c (rest_of_handle_final): Likewise.
6589 (rest_of_compilation): Likewise.
6590 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
6592 * emit-rtl.c (next_real_insn): Use INSN_P.
6593 (prev_real_insn): Likewise.
6595 2004-05-05 Eric Christopher <echristo@redhat.com>
6597 * config/mips/mips.md: Update the madd define_split for new mflo/mfhi
6600 2004-05-05 Paolo Bonzini <bonzini@gnu.org>
6602 * config/rs6000/rs6000.c (build_opaque_vector_type):
6604 (rs6000_init_builtins): Use it.
6606 2004-05-04 Bernard Giroud <bgiroud2@free.fr>
6608 * gcc/gcc/vmsdbgout.c (vms_func_node, vms_func_ref): New.
6609 (func_table): Change type from char ** to vms_func_ref.
6610 (write_rtnbeg): Update to reflect func_table change. Use
6611 fde->funcdef_number instead of rtnnum in output.
6612 (write_rtnend, vmxdbgout_begin_function, vmsdbgout_init): Likewise.
6614 2004-05-04 Paolo Bonzini <bonzini@gnu.org>
6615 Richard Henderson <rth@redhat.com>
6619 * c-common.c (vector_types_convertible_p): New function.
6620 * c-typeck.c (comptypes): Recurse on vector types.
6621 (convert_for_assignment): Use vector_types_convertible_p.
6622 (digest_init): Use vector_types_convertible_p to check
6623 validness of constant vector initializers; otherwise treat
6625 * tree.c (make_or_reuse_type): New.
6626 (build_common_tree_nodes): Use it.
6627 * cp/call.c (standard_conversion): Likewise.
6628 * cp/typeck.c (comptypes): Recurse on vector types.
6629 (convert_for_assignment): Use vector_types_convertible_p.
6631 2004-05-04 Chris Demetriou <cgd@broadcom.com>
6633 * config/mips/mips.c (override_options): Default to no
6634 generation of branch-likely operations when tuning for
6635 CPUs where they tend to have a negative performance impact
6638 2004-05-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6640 * expr.c (store_constructor_field): Don't call store_constructor
6641 if bitsize is not a multiple of a byte.
6643 2004-05-04 Richard Sandiford <rsandifo@redhat.com>
6645 * reload1.c (inherit_piecemeal_p): New function.
6646 (emit_reload_insns): When reloading a group of hard registers, use
6647 inherit_piecemeal_p to decide whether the values of individual hard
6648 registers can be inherited.
6650 2004-05-04 H.J. Lu <hongjiu.lu@intel.com>
6652 * config/ia64/t-ia64 (LIB2ADDEH): Remove gthr-gnat.c.
6653 * config/s390/t-tpf (LIB2ADDEHDEP): Likewise.
6654 * config/t-linux (LIB2ADDEHDEP): Likewise.
6656 2004-05-04 Paul Brook <paul@codesourcery.com>
6658 * config/arm/crti.asm: Push an even number of registers.
6659 * config/arm/crtn.asm: And restore them. Load via sp.
6661 2004-05-04 Paolo Bonzini <bonzini@gnu.org>
6663 * ggc-zone.c (ggc_alloc_zone_1): Add MEM_STAT_DECL parameter.
6664 Collect overhead information.
6665 (ggc_alloc_stat): New name of ggc_alloc. Add MEM_STAT_DECL
6666 parameter and pass it through.
6667 (ggc_alloc_typed_stat): New name of ggc_alloc_typed. Add
6668 MEM_STAT_DECL parameter and pass it through.
6669 (ggc_alloc_zone_stat): New name of ggc_alloc_zone. Add
6670 MEM_STAT_DECL parameter and pass it through.
6672 2004-05-03 Aldy Hernandez <aldyh@redhat.com>
6674 * config/rs6000/rs6000-protos.h: Protoize rs6000_hard_regno_nregs.
6676 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): New.
6678 * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Call
6679 rs6000_hard_regno_nregs.
6681 2004-05-03 Eric Christopher <echristo@redhat.com>
6683 * config/s390/s390.c (s390_emit_prologue): Call unspec tpf
6684 prologue insn instead of setting up call.
6685 (s390_emit_epilogue): Ditto.
6686 * config/s390/s390.md (prologue_tpf, epilogue_tpf): New patterns.
6687 (define_constants): Add numbers for above patterns.
6689 2004-05-03 Eric Christopher <echristo@redhat.com>
6691 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Move body...
6692 * config/s390/s390.c (s390_conditional_register_usage): ...here.
6693 * config/s390/s390-protos.h: Prototype.
6695 2004-05-03 Joe Buck <jbuck@welsh-buck.org>
6697 * cppfiles.c (pchf_adder): Eliminate use of |= in d->have_once_only
6700 2004-05-03 Eric Christopher <echristo@redhat.com>
6702 * config/mips/mips.md: Fix branch length attribute definition.
6704 2004-05-03 Aldy Hernandez <aldyh@redhat.com>
6706 * config.gcc: Remove --enable-altivec support.
6708 * config/rs6000/altivec-defs.h: Remove.
6710 2004-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6712 * fixinc/inclhack.def (svr4_profil): Don't apply on IRIX 5/6.
6713 * fixinc/fixincl.x: Regenerate.
6715 2004-05-03 Uros Bizjak <uros@kss-loka.si>
6717 * config/i386/i386.md (*fyl2x_sfxf3, *fyl2x_dfxf3): Remove insn
6719 (log?f2, log10?f2, log2?f2): Reimplement expanders with
6720 float_truncate insn.
6721 (*fxtractsf3, *fxtractdf3): Remove insn definition.
6722 (logb?f2): Reimplement expanders with float_truncate insn.
6724 2004-05-03 Graham Stott <graham.stott@btinternet.com>
6727 * dwarf2out.c (dwarf2out_imported_module_or_decl): Use
6728 force_type_die for CONST_DECL.
6730 2004-05-03 Eric Botcazou <ebotcazou@libertysurf.fr>
6731 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6733 * config.gcc (sparc64-*-solaris2*, sparcv9-*-solaris2*): Add
6734 tm-dwarf2.h to tm_file.
6735 (sparc-*-solaris2*): Add tm-dwarf2.h to tm_file for Solaris 7+.
6736 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Delete.
6737 (ASM_DEBUG_SPEC): Delete.
6739 2004-05-03 Uros Bizjak <uros@kss-loka.si>
6741 * optabs.h (enum optab_index): Add new OTI_expm1.
6742 (expm1_optab): Define corresponding macro.
6743 * optabs.c (init_optabs): Initialize expm1_optab.
6744 * genopinit.c (optabs): Implement expm1_optab using expm1?f2
6746 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXPM1{,F,L}
6748 (expand_builtin): Expand BUILT_IN_EXPM1{,F,L} using
6749 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
6751 * config/i386/i386.md (expm1df2, expm1sf2, expm1xf2): New expanders
6752 to implement expm1, expm1f and expm1l built-ins as inline x87
6755 2004-05-02 Alexandre Oliva <aoliva@redhat.com>
6757 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
6758 * config/frv/frv.md (*return_true, *return_false): New patterns.
6760 2004-05-02 Kazu Hirata <kazu@cs.umass.edu>
6762 * rtl.h (PHI_NODE_P): Remove.
6764 2004-05-02 Eric Botcazou <ebotcazou@act-europe.fr>
6767 * function.c (assign_stack_local_1): Use BITS_PER_UNIT alignment
6768 when passed -2 as 'align'.
6769 (put_var_into_stack): Use 'bool' as the type for the three local
6770 predicates. Adjust calls to put_reg_into_stack.
6771 When passed a CONCAT, instruct put_reg_into_stack to use
6772 a consecutive stack slot for the second part.
6773 (put_reg_into_stack): Remove 'promoted_mode' parameter, add
6774 'consecutive_p' parameter. Turn the three predicates into 'bool'
6775 parameters. Retrieve the register mode from 'reg'.
6776 When consecutive_p is true, instruct assign_stack_local_1 to use
6777 BITS_PER_UNIT alignment.
6778 (put_addressof_into_stack): Use 'bool' as the type for the two
6779 local predicates. Adjust call to put_reg_into_stack.
6781 2004-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6783 * fold-const.c (fold_convert_const, fold): Add missing
6784 FIX_ROUND_EXPR case.
6786 2004-05-02 Alexandre Oliva <aoliva@redhat.com>
6788 * configure.ac (FLEX, BISON): Only use tools from the build tree
6789 if build equals host.
6790 * configure: Rebuilt.
6792 * config/frv/frv-protos.h (frv_expand_epilogue,
6793 frv_expand_fdpic_call): Add bool argument.
6794 * config/frv/frv.c (frv_function_ok_for_sibcall): New.
6795 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to it.
6796 (frv_expand_epilogue): Use new argument to decide whether to emit
6797 return instruction or copy the return address to LR.
6798 (frv_expand_fdpic_call): Inline PLT entry when emitting direct
6800 (sibcall_operand): New.
6801 * config/frv/frv.h (PREDICATE_CODES): call_operand doesn't match
6802 PLUS nor LABEL_REF. Add sibcall_operand.
6803 * config/frv/frv.md (call, call_value): Pass false to
6804 frv_expand_fdpic_call.
6805 (call_fdpicdi, call_value_fdpicdi): Insert %i0 in calll.
6806 (sibcall, sibcall_internal, sibcall_fdpicdi, sibcall_value,
6807 sibcall_value_internal, sibcall_value_fdpicdi): New.
6808 (return_unsigned_true, return_unsigned_false): New.
6809 (epilogue): Adjust call to frv_expand_epilogue.
6810 (sibcall_epilogue): New.
6812 * config/frv/frv.h (ASM_SPEC): Pass -mno-fdpic as -mnopic.
6813 (CPP_SPEC, CPP_SIMPLE_SPEC): Undefine __FRV_ACC__ and __FRV_FPR__
6814 before redefining them.
6816 2004-05-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6818 * builtins.c (fold_fixed_mathfn): New function.
6819 (fold_builtin_lround, fold_builtin): Use it.
6821 2004-05-01 Jakub Jelinek <jakub@redhat.com>
6823 * config/sparc/linux64.h (TARGET_DEFAULT): Make 64-bit by default
6824 also for TARGET_CPU_DEFAULT == TARGET_CPU_ultrasparc3.
6826 2004-05-01 Kazu Hirata <kazu@cs.umass.edu>
6828 * config/cris/cris.h: Revert my "fix comment typos" patch.
6830 2004-05-01 Richard Sandiford <rsandifo@redhat.com>
6832 * config/mips/mips.h (TUNE_MACC_CHAINS): Fix comment.
6834 2004-05-01 Falk Hueffner <falk@debian.org>
6836 * config/alpha/alpha.md (builtin_insbl, builtin_inswl,
6837 builtin_insll): Disallow 0 as first input operand.
6839 2004-05-01 Falk Hueffner <falk@debian.org>
6841 * config/alpha/alpha.c (alpha_rtx_costs): Fix shiftadd costs.
6843 2004-05-01 Ulrich Weigand <uweigand@de.ibm.com>
6846 * expr.c (expand_expr_real): Do not call preserve_temp_slots
6847 on a TARGET_EXPR temp.
6848 * function.c (assign_stack_temp_for_type): Set 'keep' flag for
6849 TARGET_EXPR temp slots.
6851 2004-05-01 Paolo Bonzini <bonzini@gnu.org>
6853 * simplify-rtx.c (simplify_ternary_operation): When
6854 converting an IF_THEN_ELSE to a relational op, return
6857 2004-04-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6859 * builtins.c (fold_builtin_round): Fix comment typo.
6860 (fold_builtin_lround): New function.
6861 (fold_builtin): Use it.
6863 2004-04-20 Andrew Pinski <pinskia@physics.uc.edu>
6866 * config/sh/elf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Update and make it
6867 more like the one in config/dbxelf.h.
6869 2004-04-30 Zack Weinberg <zack@codesourcery.com>
6871 * tree.h (SET_ARRAY_OR_VECTOR_CHECK): Rename to SET_OR_ARRAY_CHECK
6872 and adjust definition accordingly.
6873 (TYPE_DOMAIN): Allow only SET_TYPE and ARRAY_TYPE.
6874 (TYPE_DEBUG_REPRESENTATION_TYPE): Allow only VECTOR_TYPE.
6875 * expr.c (store_constructor): Do not access TYPE_DOMAIN of a
6878 2004-04-30 Jason Merrill <jason@redhat.com>
6881 * config/i386/winnt.c (associated_type): Look for attributes on
6882 the TYPE_MAIN_VARIANT of *this.
6883 * attribs.c (decl_attributes): If ATTR_FLAG_TYPE_IN_PLACE, also
6884 apply the attributes to the variants.
6886 2004-04-30 Paul Brook <paul@codesourcery.com>
6888 * config.gcc: Simplify arm --with-{cpu,tune} test.
6889 * config/arm/arm-cores.def: Document whitespace restrictions.
6891 2004-04-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6894 * config/alpha/osf.h (SWITCHES_NEED_SPACES): Define.
6896 2004-04-30 Brian Ford <ford@vss.fsi.com>
6897 DJ Delorie <dj@redhat.com>
6899 * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
6900 (DWARF2_DEBUGGING_INFO): Define to enable.
6901 (DBX_REGISTER_NUMBER): Define to use the svr4 register map for
6903 * configure.ac (Target-specific assembler checks)
6904 <i[34567]86-*-[cygwin*|pe|mingw32*]>: New test for .secrel32
6906 * configure: Regenerate.
6907 * config.in: Likewise.
6909 * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
6910 (ASM_OUPUT_DWARF_OFFSET): Define.
6912 2004-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
6914 * config/s390/s390-protos.h (s390_emit_epilogue): Parameter added.
6915 (s390_emit_call): New function prototype added.
6916 (s390_tls_get_offset): Function removed.
6917 * config/s390/s390.c (s390_function_ok_for_sibcall,
6918 s390_call_saved_register_used_p): New functions.
6919 (TARGET_FUNCTION_OK_FOR_SIBCALL): Definition of target macro added.
6920 (s390_tls_get_offset): Function merged into s390_emit_tls_call_insn.
6921 (s390_emit_tls_call_insn): New function.
6922 (legitimize_tls_address): Call s390_emit_tls_call_insn instead of
6924 (s390_emit_prologue): Use s390_emit_call instead of emit_call_insn.
6925 (s390_emit_epilogue): Like s390_emit_prologue. Parameter for sibcalls
6927 * config/s390/s390.h (SIBCALL_REGNUM): New macro representing the
6928 register number used to hold the target address for sibcalls.
6929 * config/s390/s390.md ("sibcall", "sibcall_value", "sibcall_epilogue"):
6931 ("*sibcall_br", "*sibcall_brc", "*sibcall_brcl", "*sibcall_value_br",
6932 "*sibcall_value_brc", "*sibcall_value_brcl"): New insns.
6933 ("call_exp", "call_value_exp", "call_value_tls", "call_value_tls_exp"):
6935 ("call", "call_value"): Call s390_emit_call to emit the call patterns.
6936 ("*bras", "*brasl", "*bras_r", "*brasl_r", "*bras_tls", "*brasl_tls",
6937 "*basr", "*basr_r", "*basr_tls"): Added constraint: !SIBLING_CALL_P.
6938 ("epilogue"): Changed the call to s390_emit_epilogue to use the
6941 2004-04-30 Kazu Hirata <kazu@cs.umass.edu>
6943 * bb-reorder.c, c-opts.c, cfglayout.c, cgraph.c, cgraphunit.c,
6944 cppfiles.c, fold-const.c, ggc-zone.c, loop-doloop.c, optabs.c,
6945 reg-stack.c, varasm.c, config/alpha/ev4.md,
6946 config/alpha/ev5.md, config/alpha/ev6.md, config/arm/arm.c,
6947 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.c,
6948 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
6949 config/frv/frv.h, config/frv/frv.md, config/h8300/h8300.c,
6950 config/i386/i386.c, config/i386/i386.md, config/i386/winnt.c,
6951 config/ia64/itanium2.md, config/ip2k/ip2k.c,
6952 config/mips/mips.c, config/mips/mips.h, config/mips/sr71k.md,
6953 config/pa/pa.c, config/s390/s390.c, config/sh/sh.c: Fix
6956 2004-04-30 Paul Brook <paul@codesourcery.com>
6958 * config.gcc: Default ep9312 to hard-float.
6959 * config/arm/arm-cores.def: Add ARCH field.
6960 * config/arm/arm.c (FL_FOR_ARCH*): Define.
6961 (arm_arch_cirrus): New variable.
6962 (all_cores): Set and use arch.
6963 (all_architectures): Ditto.
6964 (arm_arch_name): New variable.
6965 (arm_override_options): Set it. Use [SUB]TARGET_CPU_DEFAULT.
6966 Set and use arm_arch_cirrus.
6967 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set arch defines.
6968 (enum processor_type): Update ARM_CORE define.
6969 (enum target_cpus): Add. Replaces TARGET_CPU_* defines.
6970 (CPP_SPEC): Remove %(cpp_cpu_arch).
6971 (CPP_ARCH_DEFAULT_SPEC): Remove.
6972 (CPP_CPU_ARCH_SPEC): Remove.
6973 (EXTRA_SPECS): Don't use CPP_*ARCH*_SPEC.
6974 (FPUTYPE_DEFAULT): Don't define here.
6976 2004-04-30 J"orn Rennecke <joern.rennecke@superh.com>
6978 * flow.c (propagate_one_insn): Call mark_set_regs for stack pointer
6981 2004-04-30 Paul Brook <paul@codesourcery.com>
6983 * arm.c (arm_needs_doubleword_align): Use mode alignment.
6985 2004-04-30 Paolo Bonzini <bonzini@gnu.org>
6987 * config/altivec/altivec.h [__cplusplus] (vec_subsubs): Rename to
6989 [__cplusplus] (vec_subsuhs): Rename to vec_subuhs, without
6992 2004-04-30 Uros Bizjak <uros@kss-loka.si>
6994 * config/i386/i386.md (atansf2, atandf2, atanxf2): Move near
6997 2004-04-29 Nick Clifton <nickc@redhat.com>
7000 * config/sh/sh-protos.h (sh_promote_prototypes): Declare.
7001 * config/sh/sh.c (sh_promote_prototypes): Remove declaration.
7002 Delete static from definition.
7003 * config/sh/sh.h (FUNCTION_VALUE): Add sh_promote_prototypes call.
7005 2004-04-30 Uros Bizjak <uros@kss-loka.si>
7007 * reg-stack.c (subst_stack_regs_pat): <UNSPEC_SIN, UNSPEC_COS,
7008 UNSPEC_FRNDINT, UNSPEC_F2XM1>: abort() if src1 dies.
7009 <UNSPEC_SINCOS_COS, UNSPEC_TAN_ONE, UNSPEC_XTRACT_FRACT>: Same.
7010 <UNSPEC_SINCOS_SIN, UNSPEC_TAN_TAN, UNSPEC_XTRACT_EXP>: Same.
7012 2004-04-29 Richard Guenther <richard.guenther@uni-tuebingen.de>
7014 * commom.opt (Wfatal-errors): Add it.
7015 * diagnostic.c (flag_fatal_errors): Define it.
7016 (diagnostic_action_after_output): Check for flag_fatal_errors.
7017 * flags.h (flag_fatal_errors): Declare it.
7018 * opts.c (common_handle_option): Add OPT_Wfatal_errors.
7019 * doc/invoke.texi (Warning Options): Document -Wfatal-errors.
7021 2004-04-30 Josef Zlomek <zlomekj@suse.cz>
7023 * gcse.c (remove_reachable_equiv_notes): Delete notes also in
7024 blocks which have kill flag set.
7026 2004-04-29 Ben Elliston <bje@au.ibm.com>
7028 * configure.ac (--with-as): Abort if user-supplied assembler
7030 (--with-ld): Likewise for the linker.
7031 * configure: Regenerate.
7033 2004-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7035 * convert.c (convert_to_integer): Ensure `long_integer_type_node'
7036 isn't NULL before using it.
7038 2004-04-29 Richard Sandiford <rsandifo@redhat.com>
7041 * config/mips/mips.md (load_df_low): Use default length.
7042 (load_df_high, store_df_high): Likewise.
7044 2004-04-29 Kazu Hirata <kazu@cs.umass.edu>
7046 * config/mips/mips.md, config/mips/sb1.md,
7047 config/rs6000/rs6000.c: Fix comment typos.
7049 2004-04-29 Kazu Hirata <kazu@cs.umass.edu>
7051 * builtins.c, cgraph.c, cgraphunit.c, final.c, fold-const.c:
7054 2004-04-29 Douglas B Rupp <rupp@gnat.com>
7056 * gcc.c (DELETE_IF_ORDINARY): New macro default definition.
7057 (delete_if_ordinary): Use above macro.
7058 * config/alpha/xm-vms.h (DELETE_IF_ORDINARY): New macro VMS definition.
7060 * doc/hostconfig.texi (DELETE_IF_ORDINARY): Document new macro.
7062 2004-04-29 Richard Earnshaw <rearnsha@arm.com>
7064 * c-decl.c (get_parm_info): Use the correct tag keywords when
7065 warning about type declarations in prototypes.
7067 2004-04-29 Paul Brook <paul@codesourcery.com>
7069 * config.gcc: Pull list of cores from arm-cores.def.
7071 2004-04-29 Paolo Bonzini <bonzini@gnu.org>
7073 * combine.c (combine_simplify_rtx): Adjust call to use
7074 simplify_relational_operation. Do not use SELECT_CC_MODE
7075 when a comparison already has a MODE_CC mode.
7077 2004-04-29 Paolo Bonzini <bonzini@gnu.org>
7079 (simplify_set): simplify_relational_operation may now
7080 return another relational expression.
7081 * cse.c (fold_rtx): simplify_relational_operation now
7082 takes of computing the comparison mode.
7083 * dojump.c (compare_from_rtx): Use simplify_relational_operation,
7085 (do_compare_rtx_and_jump): Likewise.
7086 * integrate.c (subst_constants): simplify_relational_operation
7087 may now return another relational expression.
7088 * simplify-rtx.c (simplify_gen_relational): Move most code to
7089 the new simplify_relational_operation and
7090 simplify_relational_operation_1 functions.
7091 (simplify_relational_operation): Rewritten.
7092 (simplify_relational_operation_1): New function.
7093 (simplify_ternary_operation): simplify_relational_operation
7094 may now return another relational expression.
7095 (simplify_rtx): Remove unnecessary temp variable.
7097 2004-04-29 Uros Bizjak <uros@kss-loka.si>
7099 * reg-stack.c (swap_to_top): New function.
7100 (subst_stack_regs_pat): UNSPEC_FPATAN, UNSPEC_FYL2X: Use
7102 (subst_stack_regs_pat): UNSPEC_FSCALE: Remove.
7103 (subst_stack_regs_pat): Handle UNSPEC_FSCALE_FRACT and
7106 * config/i386/i386.md (UNSPEC_FSCALE): Remove.
7107 (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): Remove insn pattern.
7108 (UNSPEC_FSCALE_FRACT, UNSPEC_FSCALE_EXP): New unspecs to represent
7110 (*fscalexf4: Define new insn pattern to implement x87 fscale insn.
7111 (exp?f2, exp10?f2, exp2?f2): Use *fscalexf4 and float_truncate
7114 2004-04-28 Serge Belyshev <1319@bot.ru>
7117 * coverage.c (read_counts_file): Fix usage of warning () call.
7118 * pretty-print.c (pp_base_format_text): Fix typo in the comment.
7120 2004-04-28 Ben Elliston <bje@au.ibm.com>
7122 * doc/invoke.texi (Objective-C Dialect Options): Don't prefix
7123 options with "-" in the option index.
7124 (SPARC Options): Likewise.
7125 (M32R/D Options): Likewise.
7127 2004-04-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7129 * convert.c (convert_to_integer): Convert (long)round -> lround,
7132 2004-04-28 Andrew Pinski <pinskia@physics.uc.edu>
7134 * config/rs6000/rs6000.c (registers_ok_for_quad_peep):
7135 Return false if we do not have fp register.
7136 (addrs_ok_for_quad_peep): Rename to ...
7137 (mems_ok_for_quad_peep): this.
7138 Add check for volatile memory.
7139 * config/rs6000/rs6000-protos.h (addrs_ok_for_quad_peep):
7141 (mems_ok_for_quad_peep): this.
7142 * config/rs6000/rs6000.md: Change peephole's for lfq/stq
7144 (lfq_power2): New instruction.
7145 (stfq_power2): Likewise.
7147 2004-04-28 Jan Hubicka <jh@suse.cz>
7150 * function.c (do_warn_unused_parameter): Break out form ...
7151 (expand_function_end): ... here; warn only when not using cgraphunit.
7152 * function.h (do_warn_unused_parameter): Declare.
7153 * cgraphunit.c: Include function.h.
7154 (cgraph_finalize_function): Do unused parameter warning.
7155 * Makefile.in (cgraphunit.o): Depend on function.h
7157 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
7159 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Don't condition
7160 calling install-info on $(DESTDIR)$(infodir)/dir already being
7163 2004-04-28 Paul Brook <paul@codesourcery.com>
7165 * dwarf2out.c (mem_loc_descriptor): Handle shifts.
7167 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7169 * gcse.c (find_moveable_store): Do not accept store insns with
7172 2004-04-28 Paul Brook <paul@codesourcery.com>
7174 * calls.c (precompute_arguments): Remove PROMOTE_FOR_CALL_ONLY.
7175 * function.c (assign_temp): Ditto.
7176 * system.h (PROMOTE_FOR_CALL_ONLY): Poison.
7178 2004-04-28 Paul Brook <paul@codesourcery.com>
7180 * config/arm/lib1funcs.asm: Recognize armv5tej and armv6.
7182 2004-04-28 Josef Zlomek <zlomekj@suse.cz>
7184 * var-tracking.c (variable_different_p): Add a parameter
7185 compare_current_location, compare current location of variable parts
7187 (dataflow_set_different_1): Pass compare_current_location == false.
7188 (dataflow_set_different_2): Pass compare_current_location == false.
7189 (emit_notes_for_differences_1): Pass compare_current_location == true.
7191 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7193 * config/s390/s390.md ("casesi"): Mark jump table access as
7194 non-trapping and unchanging.
7196 2004-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7199 * dwarf2out.c (reg_number): Rename to dbx_reg_number. Adjust all
7201 (multiple_reg_loc_descriptor, reg_loc_descriptor): Use gcc register
7202 number for indexing hard_regno_nregs array.
7204 2004-04-27 Geoffrey Keating <geoffk@apple.com>
7206 * config/darwin.h (STARTFILE_SPEC): Use %s to find crt2.o.
7207 * config/darwin-crt2.c: Only have contents on __ppc__.
7209 2004-04-27 Bob Wilson <bob.wilson@acm.org>
7211 * config/xtensa/xtensa.c (call_insn_operand): Check
7212 SYMBOL_REF_EXTERNAL_P in addition to SYMBOL_REF_LOCAL_P.
7213 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND): Likewise.
7214 * config/xtensa/xtensa.md (call, call_value): Likewise.
7216 2004-04-27 Wu Yongwei <adah@sh163.net>
7218 * gthr-win32.h (__gthread_mutex_t): Change typedef to new structure.
7219 (__GTHREAD_MUTEX_INIT_DEFAULT): Adjust.
7220 (__gthread_mutex_init_function): Replace CreateMutex with
7221 initialization of custom mutex using CreateSemaphore.
7222 (__gthread_mutex_lock): Use InterlockedIncrement.
7223 (__gthread_mutex_trylock): Use InterlockedCompareExchange.
7224 (__gthread_mutex_unlock): Use InterlockedDecrement and
7225 ReleaseSemaphore to unlock
7226 * config/i386/gthr-win32.c (__gthread_mutex_init_function,
7227 __gthread_mutex_lock, __gthread_mutex_trylock,
7228 __gthread_mutex_unlock): Adjust to match inline versions in
7231 2004-04-27 Paul Brook <paul@codesourcery.com>
7233 * config/arm/arm.c (arm_promote_prototypes): New function.
7234 (TARGET_PROMOTE_PROTOTYPES): Use it.
7236 2004-04-27 Paul Brook <paul@codesourcery.com>
7238 * config/arm/arm.c (arm_expand_epilogue): Count blocks of 4 regs.
7240 2004-04-26 Bernard Giroud <bgiroud@free.fr>
7242 * config/alpha.c (alpha_end_function): For OpenVMS gas,
7243 correctly output .pdesc directive before .end.
7245 2004-04-26 James E Wilson <wilson@specifixinc.com>
7248 * config/ia64/ia64.md (movxf): New local op0. Handle case where
7249 operands[0] is a SUBREG. Handle case where operands[1] is a GR reg.
7251 2004-04-26 Zack Weinberg <zack@codesourcery.com>
7253 * config/ia64/hpux.h: Predefine __STDCPP__ when compiling C++.
7254 * config/pa/pa-hpux10.h: Likewise.
7255 * config/pa/pa-hpux11.h: Likewise.
7257 2004-04-26 Geoffrey Keating <geoffk@apple.com>
7259 * doc/invoke.texi (Overall Options): Document default for -o
7262 2004-04-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7264 * builtins.c (expand_builtin_update_setjmp_buf): New function.
7265 (expand_builtin, case BUILT_IN_UPDATE_SETJMP_BUF): New case.
7266 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): New code.
7268 2004-04-26 Paul Brook <paul@codesourcery.com>
7270 * config/arm/arm.c (arm_legitimate_index_p): Correct iwmmxt offsets.
7272 2004-04-26 Paul Brook <paul@codesourcery.com>
7274 * config/arm/arm.c (arm_legitimate_index_p): Correct maverick offsets.
7276 2004-04-25 Roger Sayle <roger@eyesopen.com>
7278 * fold-const.c (fold): Prefer fold_convert (negate_expr (...)) to
7279 fold (build1 (NEGATE_EXPR, ...)). Optimize X / -1 as -X and
7282 2004-04-26 Hans-Peter Nilsson <hp@bitrange.com>
7285 * except.c (connect_post_landing_pads): Delete insns after the
7286 barrier when generating a unwind_resume_libfunc call.
7288 2004-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7291 * tree.c (substitute_placeholder_in_expr, case 4): New case,
7294 2004-04-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7296 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
7297 __gcov_execv, __gcov_execvp, __gcov_execve): Do not declare when
7298 inhibit_libc is defined.
7300 2004-04-25 Richard Sandiford <rsandifo@redhat.com>
7302 * config/mips/mips-protos.h (mips_linked_macc_p): Declare.
7303 * config/mips/mips.h (TUNE_MACC_CHAINS): New macro.
7304 * config/mips/mips.c (TARGET_SCHED_REORDER): Define.
7305 (TARGET_SCHED_VARIABLE_ISSUE): Define.
7306 (mips_adjust_cost): Move later in file, next to other sched hooks.
7307 (mips_macc_chains_last_hilo): New variable.
7308 (mips_linked_madd_p, mips_macc_chains_record, mips_macc_chains_reorder)
7309 (mips_promote_ready, mips_sched_reorder, mips_variable_issue): New.
7310 * config/mips/mips.md (may_clobber_hilo): New attribute.
7312 2004-04-24 Roger Sayle <roger@eyesopen.com>
7313 Bruce Korb <bkorb@gnu.org>
7315 * fixinc/inclhack.def (aix_syswait_2): New fix.
7316 * fixinc/fixincl.x: Regenerate.
7317 * fixinc/tests/base/sys/wait.h: Update for new test.
7319 2004-04-24 Alan Modra <amodra@bigpond.net.au>
7322 * config/rs6000/rs6000.c (rs6000_stack_info): Rename total_raw_size
7323 to non_fixed_size, and leave out fixed_size from the sum.
7324 (generate_set_vrsave): Correct clobbers.
7325 (rs6000_emit_epilogue): Test TARGET_ALTIVEC with TARGET_ALTIVEC_SAVE.
7326 (rs6000_function_value): Test TARGET_ALTIVEC and TARGET_ALTIVEC_ABI.
7327 (rs6000_libcall_value): Likewise.
7328 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Likewise.
7329 (FUNCTION_ARG_REGNO_P): Likewise.
7331 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
7333 * expmed.c (expand_mult_highpart_adjust): Do not assume OP1
7335 (expand_mult_highpart_optab): Call expand_mult_highpart_adjust
7336 with NARROW_OP1 instead of OP1.
7338 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
7340 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __s390__
7341 and __s390x__ hosts.
7343 2004-03-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7345 * Makefile.in (LIBGCOV): Add _gcov_fork, _gcov_execl, _gcov_execlp,
7346 _gcov_execle, _gcov_execv, _gcov_execvp, _gcov_execve.
7347 * builtin-types.def (BT_PID, BT_PTR_CONST_STRING, BT_FN_PID,
7348 BT_FN_INT_CONST_STRING_PTR_CONST_STRING,
7349 BT_FN_INT_CONST_STRING_PTR_CONST_STRING_PTR_CONST_STRING): New.
7350 * builtins.c (expand_builtin_fork_or_exec): New.
7351 (expand_builtin): Call it.
7352 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP,BUILT_IN_EXECLE,
7353 BUILT_IN_EXECV, BUILT_IN_EXECVP, BUILT_IN_EXECVE, BUILT_IN_FORK): New.
7354 * c-common.c (PID_TYPE): New macro.
7355 (c_common_nodes_and_builtins): Initialize pid_type_node.
7356 * calls.c (special_function_p): Do not handle fork and exec.
7357 (expand_call): Do not handle ECF_FORK_OR_EXEC.
7358 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
7359 __gcov_execv, __gcov_execvp, __gcov_execve): Declare.
7360 * libgcov.c (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
7361 __gcov_execv, __gcov_execvp, __gcov_execve): New.
7362 * tree.h (enum tree_index): Add TI_PID_TYPE.
7363 (pid_type_node): New macro.
7364 (ECF_FORK_OR_EXEC): Removed.
7366 2004-04-23 Eric Botcazou <ebotcazou@libertysurf.fr>
7368 PR optimization/13985
7369 * cfgloopmanip.c (fix_loop_placements): New prototype.
7370 Call fix_bb_placements on the preheader of loops that have
7372 (remove_path): Adjust call to fix_loop_placements.
7374 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
7376 * config/darwin7.h: New file.
7377 * config.gcc (*-*-darwin*): Add darwin7.h if the
7378 version is greater than 6.
7379 * config/darwin.h (TARGET_C99_FUNCTIONS): Define.
7380 (MATH_LIBRARY): Wrap in ifdefs.
7382 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
7384 * config/arm/arm.c (arm_output_epilogue): Reverse the order of
7385 loading iWMMXt registers with a frame pointer. Use post-increment
7386 without a frame pointer.
7387 (arm_expand_prologue): Reverse the order of saving iWMMXt registers.
7389 2004-04-23 Paolo Bonzini <bonzini@gnu.org>
7391 * doc/invoke.texi (Optimize Options): Refer to "unit-at-a-time
7392 mode" rather than "-funit-at-a-time" since -O2 enables it
7393 without requiring -f* options. Refer to -fprofile-generate and
7394 -fprofile-use correctly. Move -funit-at-a-time among options
7395 enabled by -O. Add information about unit-at-a-time caveats.
7397 2004-04-22 Per Bothner <per@bothner.com>
7399 * line-map.h (struct line_maps): New field highest_line.
7400 (linemap_position_for_column): Make non-inline function.
7401 (LINEMAP_POSITION_FOR_COLUMN): New macro.
7402 * line-map.c (linemap_init): Clear highest_line field.
7403 (linemap_add): Set highest_line field.
7404 (linemap_line_start): Minor optimization - use highest_line field.
7405 Reduce maximum column hint to 10000. Update highest_line field.
7406 (linemap_position_for_column): Moved from line-map.h. Optimize a bit.
7407 * cpphash.h (struct cpp_reader): Remove line field - instead use
7408 line_table->highest_line.
7409 (saved_line): Remove unused field.
7410 (CPP_INCREMENT_FILE): Don't do linemap_lookup - just use newest map.
7411 Use line_table's highest_line field instead of cpp_reader's line.
7412 * cpplib.c (start_directive): Likewise use highest_line field.
7413 (do_line, do_linemarker): Likewise just use newest map.
7414 (_cpp_do_file_change): Don't need to set cpp_reader's line field.
7415 * cpperror.c (cpp_error): Likewise use highest_line field.
7416 * cppfiles.c (open_file_failed: Likewise.
7417 (cpp_make_system_header): Likewise use newest map and highest_line.
7418 * cppinit.c (cpp_create_reader): Don't initialize removed field.
7419 * cpplex.c (_cpp_process_line_notes, _cpp_skip_block_comment,
7420 skip_line_comment, skip_whitespace, _cpp_get_fresh_line,
7421 _cpp_lex_direct): Likewise use highest_line.
7422 (_cpp_lex_direct): Use new LINEMAP_POSITION_FOR_COLUMN macro.
7423 * cppmacro.c (_cpp_builtin_macro_text): Likewise use highest_line,
7425 * cpppch.c (cpp_read_state): Don't save+restore cpp_reader's line.
7426 * cpptrad.c (_cpp_overlay_buffer): Don't save cpp_reader's line.
7427 (copy_comment, _cpp_scan_out_logical_line): Likewise use highest_line.
7429 2004-04-23 Alan Modra <amodra@bigpond.net.au>
7432 * gcc.c (init_gcc_specs): Test USE_LD_AS_NEEDED, not HAVE_LD_AS_NEEDED.
7433 * config/linux.h (USE_LD_AS_NEEDED): Define.
7434 * gcc/config/alpha/linux.h (USE_LD_AS_NEEDED): Define.
7435 * gcc/config/arm/linux-elf.h (USE_LD_AS_NEEDED): Define.
7436 * gcc/config/rs6000/linux.h (USE_LD_AS_NEEDED): Define.
7437 * gcc/config/rs6000/linux64.h (USE_LD_AS_NEEDED): Define.
7438 * gcc/config/sh/linux.h (USE_LD_AS_NEEDED): Define.
7439 * gcc/config/sparc/linux.h (USE_LD_AS_NEEDED): Define.
7440 * gcc/config/sparc/linux64.h (USE_LD_AS_NEEDED): Define.
7442 2004-04-22 Per Bothner <per@bothner.com>
7444 * cppinit.c (cpp_read_main_file): Return NULL rather than false.
7445 Fixes PR preprocessor/15067.
7447 2004-04-23 Andreas Schwab <schwab@suse.de>
7449 * config/ia64/ia64intrin.h: Add intermediate cast to void * to
7450 avoid aliasing warning.
7452 2004-04-22 Jan Hubicka <jh@suse.cz>
7453 Mostafa Hagog <mustafa@il.ibm.com>
7455 * cfgloopmanip.c (scale_bbs_frequencies): Use RDIV macro
7456 * cfgloopanal.c (expected_loop_iterations): Change the return value
7458 2004-04-22 Jakub Jelinek <jakub@redhat.com>
7460 * cselib.h (struct elt_loc_list): Remove canon_loc field.
7461 * cselib.c (new_elt_loc_list): Remove canon_loc initialization.
7462 (cselib_invalidate_mem): Remove all canon_loc and canon_x
7465 2004-04-22 Josef Zlomek <zlomekj@suse.cz>
7468 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
7470 * var-tracking.c (variable_part_different_p): Variable parts
7471 differ when the most recent locations differ.
7473 2004-04-22 Richard Sandiford <rsandifo@redhat.com>
7475 * doc/invoke.texi: Remove the MIPS -membedded-pic option.
7476 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): Delete.
7477 (embedded_pic_offset): Delete.
7478 * config/mips/mips.h (MASK_EMBEDDED_PIC): Delete. Shuffle other
7480 (TARGET_EMBEDDED_PIC): Delete.
7481 (TARGET_SWITCHES): Remove -m{no-,}embedded-pic.
7482 (ASM_SPEC): Remove -membedded-pic.
7483 (ASM_OUTPUT_ADDR_DIFF_ELT): Remove embedded-pic handling.
7484 (ASM_OUTPUT_CASE_LABEL): Likewise.
7485 * config/mips/vxworks.h (ASM_SPEC): Remove -membedded-pic.
7486 * config/mips/windiss.h (ASM_SPEC): Likewise.
7487 * config/mips/mips.c (struct machine_function): Remove
7488 embedded_pic_fnaddr_rtx.
7489 (TARGET_ENCODE_SECTION_INFO): Remove override.
7490 (embedded_pic_fnaddr_reg, embedded_pic_offset): Delete.
7491 (override_options): Remove -membedded-pic handling.
7492 (print_operand): Remove handling of '%S'.
7493 (mips_select_section: Remove -membedded-pic handling.
7494 (mips_encode_section_info): Delete.
7495 (mips_output_conditional_branch): Remove mention of -membedded-pic.
7496 * config/mips/mips.md (define_attr length, movsi, movdi, jump): Remove
7497 -membedded-pic handling.
7498 (casesi, casesi_internal, casesi_internal_di, get_fnaddr): Delete.
7500 2004-04-22 Alan Modra <amodra@bigpond.net.au>
7502 * var-tracking.c (frame_base_decl): Remove useless GTY.
7504 2004-04-21 Aldy Hernandez <aldyh@redhat.com>
7506 * config/rs6000/rs6000.c (rs6000_override_options): Error when
7507 user wants altivec and e500 instructions.
7509 2004-04-21 H.J. Lu <hongjiu.lu@intel.com>
7512 * config/ia64/crtend.asm: Move pointer to __do_global_ctors_aux
7513 in .init_array section to ...
7514 * config/ia64/crtbegin.asm: Here.
7516 * config/ia64/crtend.asm: Mark __do_global_ctors_aux global
7517 and hidden if HAVE_INITFINI_ARRAY is defined.
7519 2004-04-21 James E Wilson <wilson@specifixinc.com>
7521 * config/mips/mips-protos.h (fp_register_operand, lo_operand): Declare.
7522 * config/mips/mips.c (mips_multipass_dfa_lookahead): Declare.
7523 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): New.
7524 (fp_register_operand, lo_operand): New.
7525 (mips_rtx_costs): Add TUNE_SB1 support.
7526 (mips_issue_rate): Add comment. Add PROCESSOR_SB1 support.
7527 (mips_use_dfa_pipeline_interface): Add PROCESSOR_SB1 support.
7528 (mips_multipass_dfa_lookahead): New.
7529 * config/mips/mips.h (MASK_FP_EXCEPTIONS, TARGET_FP_EXCEPTIONS,
7531 (TARGET_SWITCHES): Add -mfp-exceptions support.
7532 (TARGET_FP_EXCEPTIONS_DEFAULT): New.
7533 (BRANCH_COST): Fix whitespace.
7534 * config/mips/mips.md: Include sb1.md.
7535 * config/mips/sb1.md: New file.
7536 * doc/invoke.texi: Document -mfp-exceptions.
7538 * Makefile.in (fixinc.sh): Don't set or export WARN_CFLAGS. Fix
7540 * fixinc/Makefile.in (FL_LIST): Don't mention WARN_CFLAGS.
7541 (fixincl.o-warn): Delete.
7543 2004-04-21 Andrew Pinski <pinskia@physics.uc.edu>
7545 * config/rs6000/rs6000 (print_operand) ['z']:
7546 Change ifdef of TARGET_MACHO to if TARGET_MACHO.
7548 2004-04-21 Daniel Jacobowitz <drow@mvista.com>
7550 * config.gcc: Support --with-arch=iwmmxt for ARM.
7552 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7554 * expmed.c (expand_mult_highpart_optab): Use narrower version of OP1
7555 in two more places; remove unneeded force_reg
7557 2004-04-21 Andrew Pinski <pinskia@physics.uc.edu>
7559 * config/rs6000/rs6000.c (symbol_ref_operand): Remove hack
7561 (print_operand): For TARGET_MACHO check to see if we need a stub
7562 and output one if we need it.
7565 * dwarf2out.c (rtl_for_decl_location): Check for NULL
7568 2004-04-20 James E Wilson <wilson@specifixinc.com>
7570 * config/ia64/ia64.md (call_value_nogp): Add constraints for op0.
7571 (vall_value_gp): Likewise.
7573 2004-04-20 DJ Delorie <dj@redhat.com>
7575 * dwarf2out.c (rtl_for_decl_location): Adjust rtl for byte
7576 variables stored in word registers, then in memory.
7578 2004-04-20 Eric Christopher <echristo@redhat.com>
7580 * cp/parser.c (cp_parser_declaration): Move translate
7581 up before tokens are lexed.
7583 2004-04-20 Uros Bizjak <uros@kss-loka.si>
7585 * optabs.h (enum optab_index): Add new OTI_asin and OTI_acos.
7586 (asin_optab, acos_optab): Define corresponding macros.
7587 * optabs.c (init_optabs): Initialize asin_optab and acos_optab.
7588 * genopinit.c (optabs): Implement asin_optab and acos_optab
7589 using asin?f2 and acos?f2 patterns.
7590 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_ASIN{,F,L}
7591 using asin_optab, and BUILT_IN_ACOS{,F,L} using acos_optab.
7592 (expand_builtin): Expand BUILT_IN_ASIN{,F,L} and BUILT_IN_ACOS{,F,L}
7593 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
7595 * config/i386/i386.md (asindf2, asinsf2, asinxf2, acosdf2,
7596 acossf2, acosxf2): New expanders to implement asin, asinf, asinl,
7597 acos, acosf and acosl built-ins as inline x87 intrinsics.
7599 2004-04-20 Paul Brook <paul@codesourcery.com>
7601 * config/arm/arm.c (arm_legitimate_address_p): Use rtx_equal_p.
7603 2004-04-20 Paul Brook <paul@codesourcery.com>
7605 * config/arm/arm.c (arm_expand_prologue): Fix size calculation.
7607 2004-04-20 Paolo Bonzini <bonzini@gnu.org>
7609 Revert part of 2004-04-17 change that moved -frename-registers
7610 to -O1. -frename-registers is buggy.
7612 * toplev.c (flag_rename_registers): Initialize to 0.
7613 * doc/invoke.texi (Optimize options): Move -frename-registers
7614 to "Not triggered by any -O level" section. Adjust commentary
7617 2004-04-20 Anil Paranjpe <anilp1@kpitcummins.com>
7619 * toplev.c (compile_file): Move targetm.asm_out.file_end call to end.
7621 2004-04-20 Richard Sandiford <rsandifo@redhat.com>
7623 * config/mips/mips.c (mips_legitimize_move): Generate special patterns
7624 for mflo and mfhi instructions.
7625 (mips_output_move): Remove mflo and mfhi handling.
7626 * config/mips/mips.md (UNSPEC_MFHILO): New unspec.
7627 (*mulsidi3_64bit): Update for new mfhi/mflo representation.
7628 Likewise various define_peephole2s.
7629 (*movdi_32bit, *movdi_64bit, *movsi_internal): Merge x<-J and x<-d
7631 (*movdi_64bit, *movdi_64bit_mips16, *mov[shq]i_internal)
7632 (*mov[shq]i_mips16): Remove mflo and mfhi alternatives.
7633 (mfhilo_di, mfhilo_si): New patterns.
7635 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
7637 * function.c (assign_parms): Force
7638 MEM_EXPR (DECL_INCOMING_RTL (parm)) == parm.
7640 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
7642 * var-tracking.c (variable_part_different_p): Variable parts differ
7643 when the most recent locations differ.
7645 2004-04-19 James E Wilson <wilson@specifixinc.com>
7647 * rtl.h (reg_set_last): Delete declaration.
7648 * rtlanal.c (reg_set_last): Delete.
7650 2004-04-19 Roger Sayle <roger@eyesopen.com>
7652 * fold-const.c (fold_convert): Make function extern/public.
7653 * tree.h (fold_convert): Prototype here.
7654 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
7655 expand_builtin_strrchr, expand_builtin_strpbrk,
7656 expand_builtin_mempcpy, expand_builtin_bcopy,
7657 expand_builtin_bzero, expand_builtin_memcmp,
7658 expand_builtin_strcmp, expand_builtin_strncmp,
7659 stabilize_va_list, expand_builtin_sprintf,
7660 fold_trunc_transparent_mathfn, fold_builtin_logarithm,
7661 fold_builtin_exponent, fold_builtin_mempcpy,
7662 fold_builtin_strcpy, fold_builtin_strcmp, fold_builtin_strncmp,
7663 fold_builtin_signbit, fold_builtin_isdigit, fold_builtin): Prefer
7664 fold_convert to "convert" or "fold (build1 (NOP_EXPR, ...))".
7666 2004-04-19 Aldy Hernandez <aldyh@redhat.com>
7668 * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): New constant.
7669 (move_from_CR_gt_bit): New.
7670 (cceq_ior_compare): Name previously unnamed pattern. Disable for
7672 (cceq_rev_compare): Name previously unnamed pattern. Allow for
7675 * config/rs6000/spe.md (cmpsfeq_gpr): Rewrite as unspec.
7676 (tstsfeq_gpr): Same.
7677 (cmpsfgt_gpr): Same.
7678 (tstsfgt_gpr): Same.
7679 (cmpsflt_gpr): Same.
7680 (tstsflt_gpr): Same.
7681 (e500_cceq_ior_compare): New.
7682 (e500_flip_gt_bit): New.
7684 * config/rs6000/rs6000.c (ccr_bit): Remove E500 specific code.
7685 (print_operand): Add 'c' and 'D'.
7686 (rs6000_generate_compare): Rewrite to generate correct rtl.
7687 (rs6000_emit_sCOND): Handle E500.
7688 (output_cbranch): Adjust for changes in rs6000_generate_compare.
7689 (output_e500_flip_gt_bit): New.
7691 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit):
7694 2004-04-19 Eric Christopher <echristo@redhat.com>
7696 * config/mips/mips.h (DWARF2_ADDR_SIZE): New.
7698 2004-04-19 David Edelsohn <edelsohn@gnu.org>
7700 * doc/install.texi (*-ibm-aix*): Add AIX 5.1 assembler and archiver
7703 2004-04-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7705 * doc/install.texi (Specific, mips-sgi-irix5): Fix IRIX 5.3 IDO
7708 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
7710 * stor-layout.c (layout_decl): Check DECL_PACKED before calling
7711 ADJUST_FIELD_ALIGN. Check maximum_field_alignment after.
7713 2004-04-19 Andrew PInski <pinskia@physics.uc.edu>
7715 * builtins.c (fold_builtin_cabs): Remove fndecl parameter.
7716 (fold_builtin): Update caller to match.
7719 * bb-reorder.c (fix_up_fall_thru_edges): Init cond_jump.
7722 * builtins.c (fold_builtin_cabs): Mark fndecl as unused.
7724 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7726 * varasm.c (compare_constant, case VIEW_CONVERT_EXPR): Add case.
7728 * expmed.c (expand_mult_highpart_adjust): Make OP1 valid for MODE.
7729 (expand_mult_highpart_optab): Likewise.
7730 (expand_mult_highpart): Make OP1 valid for WIDER_MODE, not MODE.
7732 2004-04-19 Paul Brook <paul@codesourcery.com>
7734 * config/arm/arm.md (fixuns_truncsfsi2, fixuns_truncdfsi2,
7735 floatunssisf2, floatunssidf2): New patterns.
7737 2004-04-18 Mark Mitchell <mark@codesourcery.com>
7740 * doc/invoke.texi (-fprofile-generate): Document requirement to
7741 use -fprofile-generate when linking.
7743 * doc/extend.texi (Strong Using): Warn users against using this
7746 2004-04-18 Richard Sandiford <rsandifo@redhat.com>
7748 * config/mips/mips-protos.h (m16_usym8_4, m16_usym5_4): Delete.
7749 * config/mips/mips.h (mips_entry, mips_string_length): Delete.
7750 (CONSTANT_POOL_BEFORE_FUNCTION, ASM_OUTPUT_POOL_EPILOGUE): Undefine.
7751 * config/mips/mips.c (struct mips16_constant): Renamed from struct
7752 constant. Propogate change throughout file.
7753 (struct machine_function): Remove insns_len.
7754 (mips_string_length, mips16_strings, string_constants): Delete.
7755 (mips_classify_symbol): Return SYMBOL_CONSTANT_POOL for LABEL_REFs
7756 when generating mips16 code. Remove special mips16 treatment of
7758 (mips_symbolic_constant_p): Allow mips16 constant pool accesses
7759 to have the form LABEL+CONSTANT.
7760 (mips_symbolic_address_p): Fix comment.
7761 (m16_usym8_4, m16_usym5_4): Delete.
7762 (mips_output_function_epilogue): Remove mips16 string handling.
7763 (mips_output_mi_thunk): Call mips16_lay_out_constants.
7764 (mips_select_section, mips_encode_section_info): Remove mips16
7766 (struct mips16_constant_pool): New.
7767 (add_constant): Take a mips16_constant_pool structure. Keep pool
7768 sorted into order of ascending mode size. Keep track of the highest
7769 possible start address, taking padding and the masking of the base PC
7771 (dump_constants_1): New function, split out from dump_constants.
7772 Handle vector constants. Use gen_consttable_{int,float} rather than
7773 separate functions for each mode.
7774 (dump_constants): Simplify. Use GET_MODE_ALIGNMENT. Use gen_align
7775 rather than separate functions for each alignment.
7776 (mips_find_symbol): Delete.
7777 (mips16_insn_length): New function, split out from
7778 mips16_lay_out_constants.
7779 (mips16_rewrite_pool_refs): New function.
7780 (mips16_lay_out_constants): Rework. Remove string handling.
7781 Always create an inline constant pool.
7782 * config/mips/mips.md (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT)
7783 (UNSPEC_ALIGN): New constants.
7784 (UNSPEC_CONSTTABLE_[QHSD]I, UNSPEC_CONSTTABLE_[SD]F): Delete.
7785 (UNSPEC_ALIGN_[248]): Delete.
7786 (consttable_int, consttable_float, align): New patterns.
7787 (consttable_[qhsd]i, consttable_[sd]f, align_[248]): Delete.
7789 2004-04-17 Aldy Hernandez <aldyh@redhat.com>
7791 * config/rs6000/altivec.h (vec_any_numeric): Correct typo in
7794 2004-04-17 Alan Modra <amodra@bigpond.net.au>
7797 * config/rs6000/rs6000.c (rs6000_stack_info): Make parm_size agree
7798 with STARTING_FRAME_OFFSET.
7800 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
7802 * config/mips/mips.h (PREDICATE_CODES): Add macc_msac_operand.
7803 * config/mips/mips.c (macc_msac_operand): New function.
7804 * config/mips/mips.md (*msac): Move after *macc.
7805 (*msac2): New. Generalize macc-related peepholes so that they apply
7808 2004-04-17 Paolo Bonzini <bonzini@gnu.org>
7810 * opts.c (decode_options): Do not enable flag_rename_registers
7811 and flag_web at -O3.
7812 * toplev.c (flag_rename_registers): Initialize
7813 flag_rename_registers and flag_web to
7814 AUTODETECT_FLAG_VAR_TRACKING.
7815 (default_debug_hooks): New global.
7816 (process_options): Initialize default_debug_hooks. Warn if
7817 -fvar-tracking specified but not supported by the current
7818 debug format. Do not run var tracking at -O0 or if not
7819 supported by the current debug format, even if
7820 -fvar-tracking was given. If -fno-rename-registers
7821 is not specified, always run register renaming if var
7822 tracking is supported by the default debugging information
7823 format for the target, and we are at -O1 or higher; similarly
7824 for -fweb, but only at -O2 or higher.
7825 * doc/invoke.texi (Optimize Options): Document this.
7827 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
7829 * configure.ac (gcc_cv_ld_as_needed): Use AC_CACHE_CHECK.
7830 * configure: Regenerate.
7832 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
7834 * gcc.c (used_arg): Check whether an option has been removed.
7836 2004-04-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7838 * config.gcc (i[34567]86-*-solaris2*): Default to DWARF-2
7839 debugging on Solaris 7 and up.
7841 2004-04-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7843 * doc/install.texi (Specific, mips-sgi-irix5): Reflect working
7845 Remove -save-temps workaround, handled automatically.
7846 Require GNU binutils 2.15 for debugging.
7847 Remove SGI make warnings since GNU make is now required.
7848 (Specific, mips-sgi-irix6): Some markup fixes.
7849 Describe MIPSpro C problems and workarounds.
7850 Mention working O32 ABI support.
7851 Recommend GNU as 2.15 for O32 with debugging.
7852 Remove description of fixed structure pass/return bug.
7854 2004-04-16 DJ Delorie <dj@redhat.com>
7856 * sdbout.c (sdbout_one_type): Use TYPE_VALUES for enums, not
7858 (sdbout_finish): Don't free deferred_global_decls; it's GC'd.
7860 2004-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7862 * pa.md: Remove unnecessary declarations for asm_out_file.
7864 * pa64-regs.h (DBX_REGISTER_NUMBER): Simplify and correct mapping of
7865 SAR register. Fix comment.
7866 (ADDITIONAL_REGISTER_NAMES): Correct register number of SAR register
7869 * pa64-hpux.h (LIB_SPEC): Fix library specification used with GNU ld.
7871 2004-04-16 Nick Clifton <nickc@redhat.com>
7873 * config/arm/arm.c (arm_override_options): Revert previous patch.
7874 * config/arm/t-xscale-elf: Disable iwmmxt multilibs until they can
7877 2004-04-16 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7879 * config/m32r/m32r.h (BIG_ENDIAN_BIT): Deleted to fix endian
7881 (TARGET_LITTLE_ENDIAN, TARGET_BIG_ENDIAN,
7882 TARGET_DEFAULT): Changed. Ditto.
7883 (LITTLE_ENDIAN_BIT, TARGET_CPU_DEFAULT,
7884 TARGET_ENDIAN_DEFAULT): Added. Ditto.
7885 * config/m32r/little.h (TARGET_LITTLE_ENDIAN): Deleted.
7886 (TARGET_ENDIAN_DEFAULT): Added.
7888 2004-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7890 * builtins.def (BUILT_IN_ISDIGIT, BUILT_IN_ISXDIGIT): Mark with
7891 ATTR_CONST_NOTHROW_LIST.
7893 2004-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7896 * builtins.c (expand_builtin_signbit): Test BYTES_BIG_ENDIAN, not
7899 2004-04-15 Pat Haugen <pthaugen@us.ibm.com>
7901 * ra-debug.c (ra_print_rtx): Add break's to case legs.
7903 2004-04-14 James E Wilson <wilson@specifixinc.com>
7905 * Makefile.in (fixinc.sh): Set WARN_CFLAGS to empty string.
7907 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
7909 * libada-mk.in: New file.
7910 * configure.ac: Create libada-mk from libada-mk.in.
7911 * configure: Regenerate.
7913 2004-04-14 Uros Bizjak <uros@kss-loka.si>
7915 * optabs.h (enum optab_index): Add new OTI_logb and OTI_ilogb.
7916 (logb_optab, ilogb_optab): Define corresponding macros.
7917 * optabs.c (init_optabs): Initialize logb_optab and ilogb_optab.
7918 * genopinit.c (optabs): Implement logb_optab and ilogb_optab
7919 using logb?f2 and ilogb?i2 patterns.
7920 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOGB{,F,L}
7921 using logb_optab, and BUILT_IN_ILOGB{,F,L} using ilogb_optab.
7922 (expand_builtin): Expand BUILT_IN_LOGB{,F,L} and BUILT_IN_ILOGB{,F,L}
7923 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
7925 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_XTRACT_FRACT
7926 and UNSPEC_XTRACT_EXP.
7928 * config/i386/i386.md (*fxtractdf3, *fxtractsf3, *fxtractxf3): New
7929 patterns to implement fxtract x87 instruction.
7930 (logbdf2, logbsf2, logbxf2, ilogbsi2): New expanders to implement
7931 logb, logbf, logbl, ilogb, ilogbf and ilogbl built-ins as inline x87
7933 (UNSPEC_XTRACT_FRACT, UNSPEC_XTRACT_EXP): New unspecs to represent
7936 2004-04-14 Eric Christopher <echristo@redhat.com>
7938 * config/mips/t-elf: Enable multilibs by default.
7940 2004-04-14 Andreas Tobler <a.tobler@schweiz.ch>
7942 * bb-reorder.c (fix_crossing_conditional_branches): Adjust the
7943 previous fix to check HAVE_return at runtime too.
7945 2004-04-14 Nick Clifton <nickc@redhat.com>
7947 * config/arm/arm.c (arm_override_options): If the user has not
7948 specified an ABI, then default to AAPCS for the iWMMXt processor.
7949 * config/arm/t-xscale-elf: Remove redundant multilib specifications.
7950 * config/arm/t-xscale-coff: Likewise.
7952 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7954 * builtins.c (fold_builtin_isdigit): New.
7955 (fold_builtin): Handle BUILT_IN_ISDIGIT.
7956 * defaults.h: Add TARGET_DIGIT0 and sort.
7957 * doc/tm.texi: Add TARGET_BS and TARGET_DIGIT0.
7959 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7961 * builtins.c (fold_builtin_cabs, fold_builtin): Use
7962 `mathfn_built_in' to determine the new builtin.
7963 * fold-const.c (fold): Likewise.
7965 2004-04-14 Richard Sandiford <rsandifo@redhat.com>
7967 * doc/invoke.texi: Rename MIPS's -mfix-vr4122-bugs to -mfix-vr4120.
7968 * config/mips/mips.h (MASK_FIX_VR4120): Renamed from MASK_FIX_VR4122.
7969 (TARGET_FIX_VR4120): Likewise TARGET_FIX_VR4122.
7970 (TARGET_SWITCHES): Replace -mfix-vr4122-bugs with -mfix-vr4120.
7971 (ASM_SPEC): Update accordingly.
7972 * config/mips/mips.c: Update after above renaming.
7973 * config/mips/mips.md, config/mips/t-vr, config/mips/vr.h: Likewise.
7974 * config/mips/vr4120-div.S: Renamed from vr4122-div.S.
7976 2004-04-13 James E Wilson <wilson@specifixinc.com>
7978 * c-opt.c (c_common_post_options): If this_input_filename is NULL,
7979 increment errorcount and return false instead of true.
7981 2004-04-13 Uros Bizjak <uros@kss-loka.si>:
7983 * optabs.c (expand_twoval_unop): Reorder function arguments.
7984 * builtins.c (expand_builtin_mathfn_3): Update calls to
7987 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_TAN_ONE
7988 and UNSPEC_TAN_TAN. Add missing comment.
7990 * config/i386/i386.md (*tandf3_1, *tansf3_1, *tanxf3_1): New
7991 patterns to implement fptan x87 instruction.
7992 (tandf2, tansf2, tanxf2): New expanders to implement tan, tanf
7993 and tanl built-ins as inline x87 intrinsics. Define corresponding
7994 peephole2 optimizers for 'fptan; fstp %st(0); fld1' sequence.
7995 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): New unspecs to represent
7998 2004-03-13 Richard Henderson <rth@redhat.com>
8000 * bb-reorder.c (fix_crossing_unconditional_branches): Use Pmode
8003 * defaults.h (HOT_TEXT_SECTION_NAME): Add leading dot.
8004 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Likewise.
8005 * doc/invoke.texi: Update to match.
8007 * varasm.c (unlikely_text_section): Use assemble_align instead of
8008 ASM_OUTPUT_ALIGN. Use it in the correct place with an approximately
8009 correct alignment argument.
8011 2004-04-13 Ulrich Weigand <uweigand@de.ibm.com>
8013 * reload1.c (emit_reload_insns): Set reg_has_output_reload to one
8014 after setting reg_last_reload_reg for optional output reloads.
8016 2004-04-12 Fariborz Jahanian <fjahanian@apple.com>
8018 * config/rs6000/altivec.h (vec_mergeh, vec_mergel):
8019 Definition of these two macros are corrected by adding
8020 matchine right paren.
8022 2004-04-12 Jonathan Larmour <jifl@eCosCentric.com>
8024 * fix-header.c: kill(), putenv() and tzset() are POSIX not ANSI.
8026 2004-04-12 Roger Sayle <roger@eyesopen.com>
8028 * config/i386/i386.c (output_387_reg_move): New function.
8029 * config/i386/i386-protos.h (output_387_reg_move): Prototype here.
8030 * config/i386/i386.md (*movsf_1, *movsf1_nointerunit,
8031 *movdf_nointeger, *movdf_integer, *movxf_nointeger, *movxf_integer,
8032 *extendsfdf2_1, *extendsfxf2_1, *extenddfxf2_1, truncdfsf2_noop,
8033 truncxfsf2_noop, truncxfdf2_noop): Call output_387_reg_move.
8035 2004-04-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8037 * c-decl.c (finish_decl): Make a decl_stmt for a variable-sized
8039 * c-semantics.c (genrtl_decl_stmt): Handle TYPE_DECL.
8040 * stmt.c (expand_decl): Remove redundant expansion of TYPE_DOMAIN.
8041 * stor-layout.c (variable_size): Don't check for MINUS_EXPR.
8042 Use skip_simple_arithmetic to find SAVE_EXPR.
8043 (force_type_save_exprs, force_type_save_exprs_1): New functions.
8044 * tree-inline.c (remap_type, case POINTER_TYPE, case REFERENCE_TYPE):
8045 Properly chain multiple pointers.
8046 (copy_tree_r): Copy a TYPE_DECL.
8047 * tree.c (variably_modified_type_p): Add some missing tests and
8048 make some other minor changes.
8049 * tree.h (force_type_save_exprs): New declaration.
8051 2004-04-12 Roger Sayle <roger@eyesopen.com>
8053 * simplify-rtx.c (simplify_binary_operation) <UDIV, DIV, UMOD, MOD>:
8054 Remove fall throughs. Convert 0/x and 0%x into x&0 when x has
8055 side-effects. Don't convert x/1.0 into x if we honor signaling NaNs.
8056 Convert x/-1.0 into -x if we don't honor signaling NaNs. Convert
8057 x/-1 into -x. Optimize x%1 into x&0 if x has side-effects. Optimize
8058 x%-1 into 0 (or x&0 if x has side-effects).
8060 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
8062 * config/rs6000/rs6000.md: Document why a pattern is not
8065 * config/rs6000/rs6000.c (rs6000_emit_cmove): Disable comparisons
8066 of floats on the E500.
8067 (branch_positive_comparison_operator): Do not allow NE even on the
8070 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
8072 * config/rs6000/rs6000.c (rs6000_assemble_integer): Change
8073 in_text_unlikely_section to in_unlikely_text_section.
8075 2004-04-11 Roger Sayle <roger@eyesopen.com>
8077 * fold-const.c (fold_binary_op_with_conditional_arg): Tweak
8078 calling convention to allow a NULL_TREE to be returned. Factor
8079 sanity checks from callers, return NULL_TREE when appropriate.
8080 (fold): Handle COMPOUND_EXPR operands of binary expressions
8081 before COND_EXPR operands. Use reorder_operands_p(a,b) to check
8082 whether a op (b,c) can be rewritten as (b, a op c). Simplify
8083 calls to fold_binary_op_with_conditional_arg.
8085 2004-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8087 * config/mips/iris5.h (current_section_flags): Add
8088 in_unlikely_executed_text and default case.
8090 2004-04-11 Andreas Tobler <a.tobler@schweiz.ch>
8092 * bb-reorder.c (fix_crossing_conditional_branches): Fix bootstrap
8093 failure on solaris. Place ifdef HAVE_return around gen_ret call.
8094 * cfgrtl.c (force_nonfallthru_and_redirect): Remove ifdef
8095 HAVE_return and place it around the place where it is needed.
8097 2004-04-11 Andrew Pinski <pinskia@physics.uc.edu>
8099 * varasm.c (text_section): Use TEXT_SECTION_ASM_OP and
8100 ASM_OUTPUT_ALIGN instead of SECTION_FORMAT_STRING
8101 and NORMAL_TEXT_SECTION_NAME.
8102 (unlikely_text_section): Check targetm.have_named_sections
8103 instead of TARGET_ASM_NAMED_SECTION and use TEXT_SECTION_ASM_OP
8104 instead of SECTION_FORMAT_STRING.
8105 * config/mips/iris5.h (current_section_name): Add
8106 in_unlikely_executed_text case and move the abort into the switch.
8107 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME): Remove.
8108 (NORMAL_TEXT_SECTION_NAME): Remove.
8109 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
8110 (SECTION_FORMAT_STRING): Remove.
8111 * defaults.h (SECTION_FORMAT_STRING): Remove.
8112 * tm.texi (NORMAL_TEXT_SECTION_NAME): Remove.
8113 (SECTION_FORMAT_STRING): Remove.
8115 2004-04-10 Joseph S. Myers <jsm@polyomino.org.uk>
8117 * c-typeck.c (common_type): Prefer long long to long when same
8120 2004-04-09 Zack Weinberg <zack@codesourcery.com>
8123 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Look only at
8125 * config/ia64/ia64.c (ia64_hpux_file_end): Check
8126 TREE_SYMBOL_REFERENCED on DECL_ASSEMBLER_NAME, not DECL_NAME.
8128 2004-04-09 Roger Sayle <roger@eyesopen.com>
8130 * simplify-rtx.c (mode_signbit_p): New function to check whether
8131 an RTX is an immediate constant that represents the most significant
8132 bit of a given machine mode.
8133 (simplify_unary_operation) <NOT>: Optimize ~(X+C) as X ^ ~C, where
8135 (simplify_binary_operation) <PLUS>: Optimize (X^C1) + C2 as X^(C1^C2)
8136 when C2 is the sign bit.
8137 (simplify_binary_operation) <XOR>: Canonicalize X^C as X+C when C
8138 is the sign bit. Optimize (X+C1) ^ C2 as X^(C1^C2) when C1 is the
8141 2004-04-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8143 * builtins.c (mathfn_built_in): Check TYPE_MAIN_VARIANT, not
8146 2004-04-09 Andrew Pinski <pinskia@physics.uc.edu>
8148 * c-common.c (handle_noreturn_attribute): Use TYPE_READONLY instead
8149 of TREE_READONLY for types.
8151 2004-04-09 Caroline Tice <ctice@apple.com>
8153 * basic-block.h (struct edge_def): Add new field, crossing_edge.
8154 (struct basic_block_def): Add new field, partition.
8155 (UNPARTITIONED, HOT_PARTITION, COLD_PARTITION): New constant macro
8157 (partition_hot_cold_basic_blocks): Add extern function
8159 * bb-reorder.c (function.h, obstack.h, expr.h, regs.h): Add four new
8161 (N_ROUNDS): Increase the maximum number of rounds by 1.
8162 (branch_threshold): Add array value for new round.
8163 (exec_threshold): Add array value for new round.
8164 (push_to_next_round_p): New function.
8165 (add_unlikely_executed_notes): New function.
8166 (find_rarely_executed_basic_blocks_and_crossing_edges): New function.
8167 (mark_bb_for_unlikely_executed_section): New function.
8168 (add_labels_and_missing_jumps): New function.
8169 (add_reg_crossing_jump_notes): New function.
8170 (fix_up_fall_thru_edges): New function.
8171 (find_jump_block): New function.
8172 (fix_crossing_conditional_branches): New function.
8173 (fix_crossing_unconditional_branches): New function.
8174 (fix_edges_for_rarely_executed_code): New function.
8175 (partition_hot_cold_basic_blocks): New function.
8176 (find_traces): Add an extra round for partitioning hot/cold
8178 (find_traces_1_round): Add a parameter. Modify to push all cold blocks,
8179 and only cold blocks, into the last (extra) round of collecting traces.
8180 (better_edge_p): Add a parameter. Modify to favor non-crossing edges
8181 over crossing edges.
8182 (bb_to_key): Add code to correctly identify cold blocks when
8184 (connect_traces): Modify to connect all the non-cold traces first, then
8185 go back and connect up all the cold traces.
8186 (reorder_basic_blocks): Add call to add_unlikely_executed_notes.
8187 * cfg.c (entry_exit_blocks): Add initialization for partition field in
8188 entry and exit blocks.
8189 * cfgbuild.c (make_edges): Update current_function_has_computed_jump
8190 if we are doing hot/cold partitioning.
8191 * cfgcleanup.c (cfglayout.h): Add new include statement.
8192 (try_simplify_condjump): Modify to not attempt on blocks with jumps
8193 that cross section boundaries.
8194 (try_forward_edges): Likewise.
8195 (merge_blocks_move_predecessor_nojumps): Likewise.
8196 (merge_blocks_move_successor_nojumps): Likewise.
8197 (merge_blocks_move): Likewise.
8198 (try_crossjump_to_edge): Modify to not attempt after we have done
8199 the block partitioning.
8200 (try_crossjump_bb): Modify to not attempt on blocks with jumps that
8201 cross section boundaries.
8202 (try_optimize_cfg): Likewise.
8203 * cfghooks.c (tidy_fallthru_edges): Modify to not remove indirect
8204 jumps that cross section boundaries.
8205 * cfglayout.c (flags.h): Add new include statement.
8206 (update_unlikely_executed_notes): New function.
8207 (fixup_reorder_chain): Add code so when a new jumping basic block is
8208 added, it's UNLIKELY_EXECUTED_CODE and REG_CROSSING_JUMP notes are
8209 updated appropriately.
8210 (duplicate_insn_chain): Add code to duplicate the new NOTE insn
8211 introduced by this optimization.
8212 * cfglayout.h (scan_ahead_for_unlikely_executed_note): Add new
8213 extern function declaration.
8214 * cfgrtl.c (can_delete_note_p): Add NOTE_INSN_UNLIKELY_EXECUTED_CODE to
8215 list of notes that can be deleted.
8216 (create_basic_block_structure): Add initialization for partition field.
8217 (rtl_can_merge_blocks): Modify to test blocks for jumps that cross
8219 (try_redirect_by_replacing_jump): Modify to not attempt on jumps that
8220 cross section boundaries.
8221 (commit_one_edge_insertion): Add code so newly created basic block
8222 ends up in correct (hot or cold) section. Modify to disallow
8223 insertions before NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
8224 (rtl_verify_flow_info_1): Add code to verify that no fall_thru edge
8225 crosses section boundaries.
8226 (cfg_layout_can_merge_blocks_p): Modify to test blocks for jumps that
8227 cross section boundaries.
8228 (force_nonfallthru_and_redirect): Modify to make sure new basic block
8229 ends up in correct section, with correct notes attached.
8230 * common.opt (freorder-blocks-and-partition): Add new flag for this
8232 * dbxout.c (dbx_function_end): Add code to make sure scope labels at
8233 the end of functions are written into the correct (hot or cold)
8235 (dbx_source_file): Add code so writing debug file information
8236 doesn't incorrectly change sections.
8237 * defaults.h (NORMAL_TEXT_SECTION_NAME): New constant macro, for use
8238 in partitioning hot/cold basic blocks into separate sections.
8239 (SECTION_FORMAT_STRING): New constant macro, for linux/i386 hot/cold
8240 section partitioning.
8241 (HAS_LONG_COND_BRANCH): New constant macro, indicating whether or not
8242 conditional branches can span all of memory.
8243 (HAS_LONG_UNCOND_BRANCH): New constant macro, indicationg whether or not
8244 unconditional branches can span all of memory.
8245 * final.c (scan_ahead_for_unlikely_executed_note): New function.
8246 (final_scan_insn): Add code to check for NOTE instruction indicating
8247 whether basic block belongs in hot or cold section, and to make sure
8248 the current basic block is being written to the appropriate section.
8249 Also added code to ensure that jump table basic blocks end up in the
8251 * flags.h (flag_reorder_blocks_and_partition): New flag.
8252 * ifcvt.c (find_if_case_1): Modify to not attempt if conversion if
8253 one of the branches has a jump that crosses between sections.
8254 (find_if_case_2): Likewise.
8255 (ifcvt): Modify to not attempt to mark loop exit edges after
8256 hot/cold partitioning has occurred.
8257 * opts.c (decode_options): Code to handle new flag,
8258 flag_reorder_blocks_and_partition; also to turn it off if
8259 flag_exceptions is on.
8260 (common_handle_option): Code to handle new flag,
8261 flag_reorder_blocks_and_partition.
8262 * output.h (unlikely_text_section): New extern function declaration.
8263 (in_unlikely_text_section): New extern function declaration.
8264 * passes.c (rest_of_handle_stack_regs): Add
8265 flag_reorder_blocks_and_partition as an 'or' condition for calling
8266 reorder_basic_blocks.
8267 (rest_of_handle_reorder_blocks): Add flag_reorder_blocks_and_partition
8268 as an 'or' condition for calling reorder_basic_blocks.
8269 (rest_of_compilation): Add call to partition_hot_cold_basic_blocks.
8270 * print-rtl.c (print_rtx): Add code for handling new note,
8271 NOTE_INSN_UNLIKELY_EXECUTED_CODE
8272 * rtl.c (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note insn (see below).
8273 (REG_CROSSING_JUMP): New kind of reg_note, to mark jumps that
8274 cross between section boundaries.
8275 * rtl.h (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note instruction,
8276 indicating the basic block containing it belongs in the cold section.
8277 (REG_CROSSING_JUMP): New type of reg_note, to mark jumps that cross
8278 between hot and cold sections.
8279 * toplev.c (flag_reorder_blocks_and_partition): Add code to
8280 initialize this flag, and to tie it to the command-line option
8281 freorder-blocks-and-partition.
8282 * varasm.c (cfglayout.h): Add new include statement.
8283 (unlikely_section_label_printed): New global variable, used for
8284 determining when to output section name labels for cold sections.
8285 (in_section): Add in_unlikely_executed_text to enum data structure.
8286 (text_section): Modify code to use SECTION_FORMAT_STRING and
8287 NORMAL_TEXT_SECTION_NAME macros.
8288 (unlikely_text_section): New function.
8289 (in_unlikely_text_section): New function.
8290 (function_section): Add code to make sure beginning of function is
8291 written into correct section (hot or cold).
8292 (assemble_start_function): Add code to make sure stuff is written to
8293 the correct section.
8294 (assemble_zeros): Add in_unlikely_text_section as an 'or' condition
8295 to an if statement that was checking 'in_text_section'.
8296 (assemble_variable): Add 'in_unlikely_text_section' as an 'or'
8297 condition to an if statement that was checking 'in_text_section'.
8298 (default_section_type_flags_1): Add check: if in cold section
8299 flags = SECTION_CODE.
8300 * config/darwin.c (darwin_asm_named_section): Modify to use
8301 SECTION_FORMAT_STRING if we are partitioning hot/cold blocks.
8302 * config/i386/i386.h (HAS_LONG_COND_BRANCH): Defined this macro
8303 specifically for the i386.
8304 (HAS_LONG_UNCOND_BRANCH): Defined this macro specifically for the i386.
8305 * config/rs6000/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Change
8306 text string to something more informative.
8307 (NORMAL_TEXT_SECTION_NAME): Add new definition.
8308 (SECTION_FORMAT_STRING): Add new definition.
8309 * config/rs6000/rs6000.c (rs6000_assemble_integer): Add
8310 '!in_unlikely_text_section' as an 'and' condition to an if statement
8311 that was already checking '!in_text_section'.
8312 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME,NORMAL_TEXT_SECTION_NAME,
8313 UNLIKELY_EXECUTED_TEXT_SECTION_NAME,SECTION_FORMAT_STRING): Make
8314 sure these are properly defined for linux on ppc.
8315 * doc/invoke.texi (freorder-blocks-and-partition): Add documentation
8317 * doc/rtl.texi (REG_CROSSING_JUMP): Add documentation for new
8319 * doc/tm.texi (NORMAL_TEXT_SECTION_NAME, SECTION_FORMAT_STRING,
8320 HAS_LONG_COND_BRANCH, HAS_LONG_UNCOND_BRANCH): Add documentation for
8323 2004-04-08 Roger Sayle <roger@eyesopen.com>
8325 * function.c (gen_mem_addressof): When changing the RTX from a REG
8326 to a MEM, clear MEM_VOLATILE_P which was formerly REG_USERVAR_P.
8328 2004-04-08 Roger Sayle <roger@eyesopen.com>
8331 * config/i386/i386.md (truncdfsf2_noop, truncxfsf2_noop,
8332 truncxfdf2_noop): Provide dummy "fmov" implementations.
8334 2004-04-08 Ian Lance Taylor <ian@wasabisystems.com>
8336 * gcc.c (default_compilers): Add missing initializers.
8338 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
8339 Return 1 if file was successfully mapped.
8341 2004-04-08 Geoffrey Keating <geoffk@apple.com>
8346 * doc/invoke.texi (Precompiled Headers): Suggest -o
8347 to put an output file in a particular place. Be more detailed
8348 about which options affect PCH validity and which options
8350 * c-pch.c (pch_matching): New.
8352 (struct c_pch_validity): New field 'match'.
8353 (pch_init): Handle pch_matching.
8354 (c_common_valid_pch): Check pch_matching.
8356 * explow.c: Fix typo defining default of PROMOTE_FUNCTION_MODE.
8358 2004-04-08 Mark Mitchell <mark@codesourcery.com>
8360 * doc/invoke.texi (Precompiled Headers): Warn about known
8363 2004-04-08 Danny Smith <dannysmith@users.sourceforge.net>
8366 * defaults.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): New macro. Default
8367 to 1 if ASM_OUTPUT_DEF is defined.
8368 * doc/tm.texi (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document.
8369 * config/i386/cygming.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): Define.
8370 Set to non-zero iff not a one_only decl.
8372 2004-04-08 Paul Brook <paul@codesourcery.com>
8374 * arm.h (CLASS_LIKELY_SPILLED_P): Define.
8376 2004-04-08 Paul Brook <paul@codesourcery.com>
8378 * explow.c (promote_mode): Use PROMOTE_FUNCTION_MODE instead of
8379 PROMOTE_FOR_CALL_ONLY.
8380 * config/arm/arm-protos.h (arm_function_value): Declare.
8381 * config/arm/arm.h (TARGET_PROMOTE_FUNCTION_ARGS): Define.
8382 (TARGET_PROMOTE_PROTOTYPES): Return false.
8383 (arm_function_value): New function.
8384 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Define.
8385 (FUNCTION_VALUE): Call arm_function_value.
8386 * config/cris/cris.h (PROMOTE_MODE): Rename ...
8387 (PROMOTE_FUNCTION_MODE): ... to this.
8388 (PROMOTE_FOR_CALL_ONLY): Remove.
8389 * config/mmix/mmix.h: Likewise.
8390 * config/s390/s390.h: Likewise.
8391 * config/sparc/sparc.h: Likewise.
8392 * config/sparc/sparc.c: Update comments about PROMOTE_MODE.
8393 * doc/tm.texi (PROMOTE_FUNCTION_MODE): Document.
8394 (TARGET_PROMOTE_FUNCTION_MODE, TARGET_PROMOTE_FUNCTION_RETURN): Update.
8395 (PROMOTE_FOR_CALL_ONLY): Remove.
8397 2004-04-08 Joel Sherrill <joel@oarcorp.com>
8400 * ada/5rosinte.adb: Remove fake mprotect() body.
8401 * ada/5rosinte.ads: Add SA_SIGINFO.
8402 * ada/5rtpopsp.adb: Rewrite to use new interface.
8403 * ada/init.c: Reorder so the simple single OS conditional __rtems__
8404 is tested before more complex ones which mix UNIX and embedded
8405 systems in the conditional.
8407 2004-04-08 Joel Sherrill <joel@oarcorp.com>
8410 * ada/osint.adb (Find_Program_Name): Rework to properly handle
8411 filenames which end in .exe or have versioning suffixes like VMS.
8413 2004-04-08 Andrew Pinski <pinskia@physics.uc.edu>
8416 * config/darwin.c (darwin_encode_section_info): When the decl has
8417 a DECL_INITIAL, it is only defined also when it is not a common.
8419 2004-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8421 * builtins.c (fold_builtin_isascii, fold_builtin_toascii): New.
8422 (fold_builtin): Handle BUILT_IN_ISASCII and BUILT_IN_TOASCII.
8424 2004-04-07 H.J. Lu <hongjiu.lu@intel.com>
8426 * config/ia64/ia64.c (ia64_encode_section_info): Don't prod
8427 global register variables.
8429 2004-04-07 Joseph S. Myers <jsm@polyomino.org.uk>
8431 * fixinc/inclhack.def (rpc_xdr_lvalue_cast_a,
8432 rpc_xdr_lvalue_cast_b): New fixes.
8433 * fixinc/fixincl.x: Regenerate.
8434 * fixinc/tests/base/rpc/xdr.h: Add new tests.
8436 2004-04-07 David Edelsohn <edelsohn@gnu.org>
8438 * config/rs6000/rs6000.c (processor_target_table): Add MASK_MFCRF
8439 to power4 and power5 entries.
8441 2004-04-06 Geoffrey Keating <geoffk@apple.com>
8443 * c-common.h (pending_lang_change): Mark for PCH.
8445 2004-04-07 Caroline Tice <ctice@apple.com>
8447 * gcc.c (main): Move 'break' in main loops (on an error)
8448 to wait until error processing has occurred.
8450 2004-04-06 Nathanael Nerode <neroden@gcc.gnu.org>
8452 * config.gcc: Stop changing enable_threads midstream.
8453 Replace uses of enable_threads_flag with enable_threads.
8454 * configure.ac: Replace uses of enable_threads_flag with
8455 enable_threads. Improve autoconf quotation in one place.
8456 * configure: Regenerate.
8458 2004-04-06 Uros Bizjak <uros@kss-loka.si>
8460 * builtins.c: Implement support for sincos function.
8461 (expand_builtin_mathfn): Remove BUILT_IN_SIN{,F,L} and
8463 (expand_builtin_mathfn_3): New function.
8464 (expand_builtin): Expand BUILT_IN_SIN{,F,L} and
8465 BUILT_IN_COS{,F,L} using expand_builtin_mathfn_3 if
8466 flag_unsafe_math_optimization is set.
8468 * optabs.h (enum optab_index): Add new OTI_sincos.
8469 (sincos_optab): Define corresponding macro.
8471 * optabs.c (init_optabs): Initialize sincos_optab.
8472 (expand_twoval_unop): New function.
8474 * genopinit.c (optabs): Implement sincos_optab using sincos?f3
8477 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_SINCOS_COS
8478 and UNSPEC_SINCOS_SIN.
8480 * config/i386/i386.md (sincosdf3, sincossf3, *sincosextendsfdf3,
8481 sincosxf3): New patterns to implement sincos, sincosf and sincosl
8482 built-ins as inline x87 intrinsics. Define splits for
8483 sindf2, sinsf2, *sinextendsfdf2, sinxf2, cosdf2,
8484 cossf2, *cosextendsfdf2 and cosxf2 patterns from corresponding
8486 (sindf2, sinsf2, sinxf2): Rename to *sindf2, *sinsf2, *sinxf2.
8487 (cosdf2, cossf2, cosxf2): Rename to *cosdf2, *cossf2, *cosxf2.
8489 (UNSPEC_SINCOS_SIN, UNSPEC_SINCOS_COS): New unspecs to represent
8492 2004-04-06 Devang Patel <dpatel@apple.com>
8495 * config/darwin.h (LINK_COMMAND_SPEC): Use c++filt instead of c++filt3.
8497 2004-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8499 * doc/install.texi: Update HP-UX 11 installation procedure.
8501 2004-04-06 Paul Brook <paul@codesourcery.com>
8503 * doc/sourcebuild.texi: Remove obsolete contraint on testcases.
8505 2004-04-05 Kaz Kojima <kkojima@gcc.gnu.org>
8507 * config/sh/sh.c (prepare_move_operands): Use emit_call_insn
8508 when the TLS address is generated by a function call.
8509 * config/sh/sh.md (tls_global_dynamic): Use a call expression.
8510 (tls_local_dynamic): Likewise.
8512 2004-04-05 Andrew Pinski <pinskia@physics.uc.edu>
8514 * tree.c (reconstruct_complex_type): Use TYPE_READONLY
8517 2004-04-05 Caroline Tice <ctice@apple.com>
8519 * gcc.c (combine_flag): New global variable, for new driver option.
8520 (struct compiler): Add two new fields, to be used when
8521 combining multiple input files in a single pass (IMA).
8522 (default_compilers): Add values for the new fields to all
8523 compiler entries. Modify the "@c" compiler entry for doing IMA
8524 properly with "-save-temps" and the "combine" flag.
8525 (option_map): Add new driver option, "--combine", to tell driver
8526 to pass multiple input files to compiler at one time.
8527 (have_o_argbuf_index): New global variable.
8528 (store_arg): Modify to assign value to have_o_argbuf_index.
8529 (struct infile): Add three new fields, to help with IMA.
8530 (display_help): Add help for new "combine" option.
8531 (process_command): Remove local variable have_o; add code to check
8532 for new "combine" option; remove assignment to combine_inputs.
8533 (do_spec_1): Modify to deal with IMA better.
8534 (main): Make variable 'lang_n_infiles' local to entire function
8535 rather than to a single block. Use flag combine_flag to
8536 determine whether to do IMA or not; Modify loop initializing
8537 infiles to deal properly with linker files.
8538 Add code for doing preprocessing in presence of
8539 IMA with "-save-temps" flag. Modify "main" loop to handle
8540 multiple input files, in multiple languages, with or without
8541 preprocessing, gracefully.
8542 * toplev.c (set_src_pwd): Modify to not complain if attempting to
8543 re-set it to same directory it's previously been set to (avoid
8544 irritating, meaningless warning messages when doing IMA with
8546 * doc/invoke.texi: Add "-combine" to list of Overall Options;
8547 remove documentation about IMA that is no longer accurate; Add
8548 documentation explaining what "-combine" does.
8549 * ada/lang-specs.h: Add initialization values for new fields in
8551 * cp/lang-specs.h: Likewise.
8552 * f/lang-specs.h: Likewise.
8553 * java/lang-specs.h: Likewise.
8554 * objc/lang-specs.h: Likewise.
8555 * treelang/lang-specs.h: Likewise.
8557 2004-04-05 David Edelsohn
8559 * config/rs6000/rs6000.c (VTABLE_NAME_P): Add _ZTI to special
8562 2004-04-05 Jakub Jelinek <jakub@redhat.com>
8563 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8565 PR optimization/13424 (hppa), bootstrap/14462, c/14828
8566 * pa.md: Use replace_equiv_address to retain the attributes of the
8567 memory operands used in the split and peephole2 patterns for optimizing
8568 the pre-reload movstrsi, movstrdi, clrstrsi and clrstrdi patterns.
8570 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8572 * c-decl.c (build_compound_literal): Use TYPE_READONLY.
8573 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
8574 * objc/objc-act.c (adorn_decl, gen_declspecs): Likewise.
8575 * c-typeck.c (decl_constant_value): Don't access DECL_INITIAL of a
8577 * calls.c (flags_from_decl_or_type): Use TYPE_READONLY and do so only
8579 * print-tree.c (print_node): Properly handle side-effects, readonly,
8581 * tree.c (build1_stat, build_expr_wfl): Only look at TREE_SIDE_EFFECTS
8582 and TREE_CONSTANT if not a type.
8583 * tree.h (IS_NON_TYPE_CODE_CLASS): New macro.
8584 (IS_EXPR_CODE_CLASS): Write 'E', not 'e'.
8585 (NON_TYPE_CHECK): New macro.
8586 (TREE_SIDE_EFFECT, TREE_READONLY, TREE_CONSTANT: Add check.
8588 2004-04-05 Eric Botcazou <ebotcazou@libertysurf.fr>
8590 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Set
8591 to DWARF2_DEBUG unconditionally.
8592 (ASM_DEBUG_SPEC): Set the default to --gdwarf2 unconditionally.
8594 2004-04-04 Ian Lance Taylor <ian@wasabisystems.com>
8595 Nathanael Nerode <neroden@gcc.gnu.org>
8598 * config.host: Set the shell variable host_can_use_collect2.
8599 Set it to yes by default, and to no for alpha*-dec-*vms*,
8600 i[34567]86-*-mingw32*, and powerpc-*-beos*.
8601 * configure.ac: Set and substitute the shell variable collect2.
8602 Give an error if use_collect2 is yes and host_can_use_collect2 is
8604 * Makefile.in (COLLECT2): Rename from USE_COLLECT2. Change all
8605 uses. Initialize to @collect2@.
8606 (STAGESTUFF): Remove $(USE_COLLECT2).
8607 * config/alpha/x-vms (USE_COLLECT2): Don't set.
8608 * config/i386/t-mingw32 (USE_COLLECT2): Likewise.
8609 * config/rs6000/t-beos (USE_COLLECT2): Likewise.
8610 * config/pa/t-pa64: Remove commented out USE_COLLECT2.
8611 * configure: Regenerate.
8613 2004-04-04 Roger Sayle <roger@eyesopen.com>
8615 * simplify-rtx.c (simplify_binary_operation): Constant fold
8616 DIV, MOD, UDIV and UMOD using div_and_round_double.
8618 2004-04-04 Mark Mitchell <mark@codesourcery.com>
8621 * varasm.c (initializer_constant_valid_p): Allow NOP_EXPRs to
8624 2004-04-04 Mark Mitchell <mark@codesourcery.com>
8626 * doc/invoke.texi (-mabi=o64): Create link to O64 ABI
8629 2004-04-04 Roger Sayle <roger@eyesopen.com>
8631 * cse.c (cse_insn): Correct usage of simplify_replace_rtx when
8632 updating the REG_EQUAL note on an insn's libcall_insn.
8634 2004-04-04 Roger Sayle <roger@eyesopen.com>
8636 * df.h: Tidy up whitespace in the definitions of the DF_ flags.
8638 2004-04-03 Roger Sayle <roger@eyesopen.com>
8640 * fold-const.c (fold) <PLUS_EXPR>: Guard (-A)+B -> B-A transformation
8641 with reorder_operands_p.
8643 2004-04-03 Jan Hubicka <jh@suse.cz>
8645 * md.texi (vec_set, vec_extract, vec_init): Document.
8647 2004-04-02 Gabor Loki <loki@inf.u-szeged.hu>
8649 * opts.c (decode_options): Do function inlining with very small
8650 max-inline-insns-* parameters when optimizing for size.
8652 2004-04-02 Vladimir Makarov <vmakarov@redhat.com>
8654 * config/i386/i386.h (TARGET_NOCONA): New macro.
8655 (TARGET_CPU_CPP_BUILTINS): Add code for Nocona.
8656 (processor_type): Add PROCESSOR_NOCONA.
8658 * config/i386/i386.md (cpu): Add nocona to the attribute values.
8660 * config/i386/i386.c (nocona_cost): New variable.
8661 (m_NOCONA): New macro.
8662 (x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
8663 x86_branch_hints, x86_use_sahf, x86_single_stringop,
8664 x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8,
8665 x86_integer_DFmode_moves, x86_partial_reg_dependency,
8666 x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
8667 x86_decompose_lea, x86_arch_always_fancy_math_387,
8668 x86_sse_partial_reg_dependency, x86_sse_load0_by_pxor,
8669 x86_ext_80387_constants, x86_four_jump_limit):
8670 (override_options): Add nocona_cost to processor_target_table.
8671 Set up PROCESSOR_NOCONA for Nocona entry in processor_alias_table.
8672 (incdec_operand): Prevent inc/dec generation for Nocona too.
8673 (ix86_issue_rate): Add PROCESSOR_NOCONA.
8675 2004-04-01 Andrew Pinski <pinskia@physics.uc.edu>
8677 * rtlanal.c (find_reg_note): Manually
8680 2004-04-01 Mark Mitchell <mark@codesourcery.com>
8682 * genemit.c (gen_split): Change prototype of generated code.
8683 * genrecog.c (write_action): Adjust prototype for and calls to
8685 * gensupport.c (struct queue_elem): Add split field.
8686 (queue_pattern): Return a value. Clear the split field.
8687 (process_rtx): Maintain an association between an insn and the
8688 split generated from it for a define_insn_and_split.
8689 (process_one_cond_exec): Generate a new split for a
8690 define_insn_and_split.
8691 * config/arm/arm-protos.h (arm_split_constant): Add insn
8693 (emit_constant_insn): New function.
8694 (arm_gen_constant): Use it.
8695 * config/arm/arm.md: Adjust calls to arm_split_constant.
8697 2004-04-02 Jan Hubicka <jh@suse.cz>
8699 * cgraph.c: Add overall comment.
8700 (cgraph_inline_hash): New global variable.
8701 (cgraph_create_node): Break out from ...
8702 (cgraph_node): ... here.
8703 (cgraph_edge): New function.
8704 (cgraph_create_edge): New CALL_EXPR argument; some sanity checking.
8705 (cgraph_remove_edge): Accept edge, intead of source and destination.
8706 (cgraph_redirect_edge_callee): New.
8707 (cgraph_remove_node): Update all new datastructures.
8708 (cgraph_record_call, cgraph_remove_call): Kill.
8709 (dump_cgraph_node): Break out from ... ; dump new datastructures.
8710 (dump_cgraph): ... here.
8711 (cgraph_function_possibly_inlined_p): Use new hashtable.
8712 (cgraph_clone_edge, cgraph_clone_node): New.
8713 * cgraph.h: Include hashtab.h
8714 (struct cgraph_global_info): Kill cloned_times, inline_once, will_be_output
8715 fields, add inlined_to pointer.
8716 (cgraph_node): Add pointer to next_clone.
8717 (cgraph_remove_edge, cgraph_create_edge): Update prototype.
8718 (cgraph_remove_call, cgraph_record_call): Kill.
8719 (cgraph_inline_hash): Declare.
8720 (dump_cgraph_node, cgraph_edge, cg4raph_clone_edge, cgraph_clone_node,
8721 cgraph_redirect_edge_callee): Declare.
8722 (cgraph_create_edges, cgraph_inline_p): Update prorotype.
8723 (cgraph_preserve_function_body_p, verify_cgraph, verify_cgraph_node,
8724 cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Declare.
8725 * cgraphunit.c: Add overall comment.
8726 (cgraph_optimize_function): Kill.
8727 (cgraph_assemble_pending_functions): Do not assemble inline clones.
8728 (cgraph_finalize_function): Update call of cgraph_remove_node
8729 (record_call_1): Record call sites.
8730 (cgraph_create_edges): Accept node instead of decl argument.
8731 (error_found): New static variable.
8732 (verify_cgraph_node_1, verify_cgraph_node, verify_cgraph): New functions.
8733 (cgraph_analyze_function): Update for new datastructures.
8734 (cgraph_finalize_compilation_unit): Plug memory leak.
8735 (cgraph_optimize_function): Kill.
8736 (cgraph_expand_function): Do not use cgraph_optimize_function.
8737 (INLINED_TIMES, SET_INLINED_TIMES, cgraph_inlined_into,
8738 cgraph_inlined_callees): Kill.
8739 (cgraph_remove_unreachable_nodes): Verify cgraph; update handling of
8741 (estimate_growth): Simplify.
8742 (cgraph_clone_inlined_nodes): New function.
8743 (cgraph_mark_inline_edge): Re-implement.
8744 (cgraph_mark_inline): Likewise.
8745 (cgraph_check_inline_limits): Simplify.
8746 (cgraph_recursive_inlining_p): New.
8747 (update_callee_keys): Break out from ...
8748 (cgraph_decide_inlining_of_small_functions): ... here; simplify.
8749 (cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
8751 (cgraph_expand_all_functions): Remove inline clones from the ordered
8753 (cgraph_preserve_function_body_p): New predicate.
8754 (cgraph_optimize): Verify cgraph.
8755 * function.h (struct function): Add fields saved_tree/saved_args.
8756 * timevar.def (TV_CGRAPH_VERIFY): Use verifier.
8757 * toplev.c (rest_of_compilation): Do not free cfun.
8758 * tree-inline.c: Include function.h
8759 (struct inline_data): Add saving_p field; replace decl/current_decl by
8761 (insert_decl_map): New function.
8762 (copy_body_r): Handle saving; update cgraph datastructure.
8763 (copy_body): Handle recursive inlining.
8764 (initialize_inlined_parameters): Likewise.
8765 (expand_call_inline): Propagate node attributes; update cgraph.
8766 (optimize_inline_calls): Verify that datastructure still match.
8767 (save_body): New function.
8768 * tree-inline.h (save_body): New.
8769 * tree-optimize.c (tree_rest_of_compilation): preserve function body; do inlining.
8770 * langhooks-def.c (LANG_HOOKS_UPDATE_DECL_AFTER_SAVING): New.
8771 * langhooks.c (lang_hooks): Add update_decl_after_saving.
8773 2004-04-01 Serge Belyshev <1319@bot.ru>
8776 * config/i386/i386.md: fix source operand constraints in
8777 mmx_pshufw, sse2_pshufd, sse2_pshuflw, sse2_pshufhw
8779 2004-04-01 Waldek Hebisch <hebisch@math.uni.wroc.pl>
8781 * fold-const.c (folda): Preserve types of comparisons.
8783 2004-04-01 Richard Henderson <rth@redhat.com>
8785 * toplev.c (backend_init): Move init_optimization_passes call ...
8786 (lang_dependent_init): ... here.
8788 2004-04-01 Alan Modra <amodra@bigpond.net.au>
8789 Jakub Jelinek <jakub@redhat.com>
8791 * gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
8792 -lgcc --as-needed -lgcc_s --no-as-needed by default.
8793 * configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
8794 * configure: Rebuilt.
8795 * config.in: Rebuilt.
8796 * Makefile.in (stage1-start): Copy also libgcc_s*$(SHLIB_EXT).
8797 (stage2-start, stage3-start, stage4-start): Likewise.
8798 (stageprofile-start, stagefeedback-start): Likewise.
8800 2004-04-01 Jakub Jelinek <jakub@redhat.com>
8802 * config/sparc/sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.
8803 * config/sparc/linux.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
8804 * config/sparc/linux64.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
8805 * config/sparc/sol2.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
8806 (SOLARIS_CONVERSION_LIBFUNCS): Rename to SUN_CONVERSION_LIBFUNCS.
8807 * config/sparc/sparc.c (sparc_init_libfuncs): Initialize optabs
8808 with _Q_qtoll, _Q_qtoull and _Q_lltoq if DITF_CONVERSION_LIBFUNCS.
8809 * config.gcc (sparc-*-linux*): Revert 2004-03-23 change.
8810 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Likewise.
8811 * config/sparc/t-linux: Removed.
8813 2004-04-01 Jakub Jelinek <jakub@redhat.com>
8816 * fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in
8817 "bitfld++ == const" to "++bitfld == const + incr" transformations.
8819 2004-04-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8821 * expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED.
8822 * stor-layout.c (layout_decl): Likewise.
8823 * tree.c (get_narrower): Likewise and also use BIT_FIELD_REF_UNSIGNED.
8824 * fold-const.c (make_bit_field_ref): Use BIT_FIELD_REF_UNSIGNED.
8825 * print-tree.c (print_node): Handle various used of unsigned_flag.
8826 * tree.def (BIT_FIELD_REF): Update comment.
8827 * tree.h (TREE_UNSIGNED): Deleted.
8828 (DECL_UNSIGNED, BIT_FIELD_REF_UNSIGNED): New macros.
8830 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8832 * builtins.c, c-aux-info.c, c-common.c, c-cppbuiltin.c, c-decl.c:
8833 Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED.
8834 * c-format.c, c-opts.c, c-pretty-print.c, c-typeck.c: Likewise.
8835 * calls.c, convert.c, dbxout.c, dojump.c, dwarf2out.c: Likewise.
8836 * expmed.c, expr.c, fold-const.c, function.c, integrate.c: Likewise.
8837 * optabs.c, sdbout.c, stmt.c, stor-layout.c, tree-dump.c: Likewise.
8838 * tree.c, config/iq2000/iq2000.c, config/m32r/m32r.c: Likewise.
8839 * config/mips/mips.c, config/rs6000/rs6000.c: Likewise.
8840 * config/s390/s390.c, config/sparc/sparc.c, objc/objc-act.c: Likewise.
8841 * stor-layout.c (layout_type, case COMPLEX_TYPE): Test for
8842 REAL_TYPE, not INTEGER_TYPE.
8843 (layout_type, case VECTOR_TYPE): Simplify code.
8844 * tree.c (build_vector_type_for_mode): Remove dup unsigned setting.
8845 * tree.h: Update comments.
8846 (STRIP_NOPS): Use TYPE_UNSIGNED.
8847 (TYPE_UNSIGNED): New macro.
8848 (TYPE_TRAP_SIGNED): Remove now redundant check.
8849 (SAVE_EXPR_NOPLACEHOLDER): Don't use TREE_UNSIGNED.
8851 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8853 * function.c (put_var_into_stack): Properly set orig_reg for indirect.
8855 2004-03-31 Andrew Pinski <pinskia@physics.uc.edu>
8857 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
8858 Add darwin-fpsave.asm, darwin-vecsave.asm,
8859 and darwin-world.asm.
8860 (TARGET_LIBGCC2_CFLAGS): Add -Wa,-force_cpusubtype_ALL
8861 as the asm files contain altivec instructions.
8862 * config/rs6000/darwin-fpsave.asm: New file.
8863 * config/rs6000/darwin-vecsave.asm: New file.
8864 * config/rs6000/darwin-world.asm: New file.
8866 2004-03-31 Zack Weinberg <zack@codesourcery.com>
8868 * gengtype-yacc.y (option, stringseq): Add missing
8869 terminating semicolon.
8871 2004-03-30 David Edelsohn <edelsohn@gnu.org>
8873 * config/rs6000/rs6000.md (tls_gd_32, tls_gd_64,
8874 tls_ld_32, tls_ld_64, tls_dtprel_32, tls_dtprel_64,
8875 tls_dtprel_ha_32, tls_dtprel_ha_64,
8876 tls_dtprel_lo_32, tls_dtprel_lo_64,
8877 tls_got_dtprel_64, tls_tprel_32, tls_tprel_64,
8878 tls_tprel_ha_32, tls_tprel_ha_64,
8879 tls_tprel_lo_32, tls_tprel_lo_64,
8880 tls_got_tprel_32, tls_got_tprel_64,
8881 tls_tls_32, tls_tls_64): Replace register_operand with
8884 2004-03-30 Mostafa Hagog <mustafa@il.ibm.com>
8886 * config/rs6000/rs6000.md (*ctrsi_internal1, *ctrsi_internal2,
8887 *ctrdi_internal1, *ctrdi_internal2, *ctrsi_internal3,
8888 *ctrsi_internal4, *ctrdi_internal3, *ctrdi_internal4,
8889 *ctrsi_internal5, *ctrsi_internal6, *ctrdi_internal5,
8890 *ctrdi_internal6): Replace register_operand with
8891 nonimmediate_operand.
8893 2004-03-29 Fariborz Jahanian <fjahanian@apple.com>
8895 * fold-const.c (fold): Reassociate multiply expression
8896 with an adjacent non-multiply expression to use
8897 architecture's multiply-add instruction.
8899 2004-03-30 Zack Weinberg <zack@codesourcery.com>
8901 * gengtype.c (create_option): New function.
8902 * gengtype.h: Prototype it.
8903 * gengtype-yacc.y (stringseq): New rule.
8904 (option): Use create_option. Add new bare ID production. Use
8905 stringseq, not STRING directly.
8907 * alias.c, bitmap.c, c-decl.c, cgraph.h, cpplib.h, cselib.h
8908 * dwarf2out.c, emit-rtl.c, function.h, lists.c, tree.h
8909 * varray.h, config/alpha/alpha.c:
8910 Use new shorter form of GTY markers.
8912 * doc/gty.texi: Rewrite.
8914 2004-03-30 Andrew Pinski <pinskia@physics.uc.edu>
8916 * config/darwin.c (machopic_function_base_name):
8917 Remove current_name and getting the name of the
8920 2004-03-30 Nick Clifton <nickc@redhat.com>
8922 * config/arm/arm.md (thumb_jump): Reduce the backward branch
8923 range, and increase the forward branch range, to allow for
8924 the fact that the PC will be off by 4.
8926 2004-03-30 Alan Modra <amodra@bigpond.net.au>
8928 * .cvsignore: Add GPATH, GRTAGS, GSYMS and GTAGS (GNU GLOBAL)
8930 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
8932 * config/rs6000/rs6000.c (output_vec_const_move):
8933 Find all cases of EASY_VECTOR_15_ADD_SELF.
8934 (easy_vector_constant_add_self): Accept
8935 all vector constant loadable by vsplt* and vadd*.
8936 (easy_vector_same): Use easy_vector_splat_const.
8937 (easy_vector_const): Use easy_vector_splat_const.
8938 (easy_vector_splat_const): New function.
8939 (gen_easy_vector_constant_add_self): New function.
8941 * config/rs6000/rs6000-protos.c (gen_easy_vector_constant_add_self):
8944 * config/rs6000/altivec.md (movv4si splitter): Change to
8945 emit move insn with halfed vector constant.
8946 (*movv8hi splitter): Likewise.
8947 (*movv16qi splitter): Likewise.
8949 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
8952 * config/rs6000/rs6000.c (rs6000_legitimate_address):
8953 Allow any offset to argument pointer in no-strict case.
8955 2004-03-30 Jan Hubicka <jh@suse.cz>
8957 * toplev.c (backend_init): Add missing call to inint_optimization_passes.
8958 * passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
8959 dump file in non-unit-at-a-time mode.
8961 2004-03-29 Hans-Peter Nilsson <hp@axis.com>
8963 * config/cris/cris.h: Correct #ifdef to test for
8964 HAVE_AS_NO_MUL_BUG_ABORT_OPTION, not
8965 HAVE_AS_MUL_BUG_ABORT_OPTION.
8967 2004-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8969 * function.c (put_var_into_stack): If old RTL was ADDRESSOF, update
8970 the address inside the old RTL.
8972 2004-03-28 Zack Weinberg <zack@codesourcery.com>
8974 * c-decl.c: Verify that C_SIZEOF_STRUCT_LANG_IDENTIFIER is correct.
8975 (struct c_binding, struct c_scope): Add chain_next
8976 attributes to GTY markers.
8977 (struct lang_identifier, struct lang_tree_node): Define
8979 * c-tree.h: ... not here. No longer need to declare struct
8980 c_binding either. Do define C_SIZEOF_STRUCT_LANG_IDENTIFIER.
8981 * c-lang.c, objc/objc-lang.c: Set LANG_HOOKS_IDENTIFIER_SIZE
8982 to C_SIZEOF_STRUCT_LANG_IDENTIFIER.
8985 * c-decl.c (get_parm_info): If error_mark_node is encountered
8986 in the bindings chain, unbind and discard it; don't abort.
8988 2004-03-28 Olga Golovonevsky <olga@il.ibm.com>
8989 Dorit Naishlos <dorit@il.ibm.com>
8991 * config/rs6000/altivec.md: (andvv16qi3, andv8hi3, one_cmplv16qi2,
8992 one_cmplv8hi2, one_cmplv4si2, iorv16qi3, iorv8hi3,): New modelling.
8994 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8996 * config/m68hc11/m68hc11-protos.h (m68hc11_page0_symbol_p): Declare.
8998 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute): New.
8999 (m68hc11_attribute_table): New attribute "page0" to mark a global
9000 variable as being allocated from within page0 section.
9001 (m68hc11_encode_label): New function.
9002 (m68hc11_strip_name_encoding): New function.
9003 (m68hc11_page0_symbol_p): New function.
9004 (m68hc11_indirect_p): Accept global variables marked in page0.
9005 (m68hc11_encode_section_info): Lookup "page0" attribute.
9007 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): 'R' constraint also
9008 represents access to page0 variables.
9010 * config/m68hc11/m68hc11.md ("*logicalsi3_zexthi"): Use gen_rtx_REG.
9011 ("*logicalsi3_silshl16_zext"): Likewise.
9012 ("*ashldi3_const32"): Likewise.
9013 (peephole2 ashift): Likewise.
9015 2004-03-28 Joseph S. Myers <jsm@polyomino.org.uk>
9017 * c-tree.h (C_DECL_REGISTER): New.
9018 * c-aux-info.c (gen_decl), c-decl.c (objc_mark_locals_volatile,
9019 finish_decl, grokdeclarator, get_parm_info), c-typeck.c
9020 (build_array_ref, c_mark_addressable): Set and use it.
9021 * c-decl.c (grokdeclarator), c-typeck.c (c_mark_addressable):
9022 Allow structures with volatile fields to be declared register.
9023 Don't check TREE_ADDRESSABLE before warning about taking address
9025 * c-decl.c (finish_decl): Don't allow structures with volatile
9026 fields to be placed in named register.
9027 * doc/trouble.texi: Remove reference to structures with volatile
9028 fields in registers.
9030 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
9032 * function.c (thread_prologue_and_epilogue): Move
9033 NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
9034 before the epilogue.
9036 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
9038 * expr.c (store_constructor): Use gen_int_mode to correctly
9039 sign-extend CONST_INT value.
9041 2004-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9043 * builtin-types.def (BT_WINT, BT_FN_INT_WINT, BT_FN_WINT_WINT): New.
9044 * builtins.def (DEF_C94_BUILTIN): New. Add wctype builtins.
9045 * doc/extend.texi: Likewise.
9047 2004-03-26 Diego Novillo <dnovillo@redhat.com>
9049 * c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
9050 with TYPE_ORIG_SIZE_TYPE.
9052 2004-03-25 Aldy Hernandez <aldyh@redhat.com>
9055 * c-typeck.c (build_binary_op): Do not allow comparisons of
9058 2004-03-26 James A. Morrison <ja2morri@uwaterloo.ca>
9060 * config.gcc: Remove sparc-tti-*.
9061 * config/sparc/pbd.h: Delete.
9063 * config/sparc/sol2.h: Remove note about Sun OS 4.x.
9064 * config/sparc/aout.h: Likewise.
9066 * config/sparc/sparc.h: Remove if 0'd code.
9067 * config/sparc/sparc.md (call): Remove if 0'd code.
9068 (call_value): Likewise.
9069 (nonlocal_goto): Likewise.
9070 (unimp_insn): Delete.
9072 2004-03-25 Roger Sayle <roger@eyesopen.com>
9074 * fold-const.c (tree_expr_nonnegative_p): Handle BIT_XOR_EXPR like
9075 BIT_IOR_EXPR; A^B is nonnegative when A and B are nonnegative.
9077 2004-03-25 Richard Henderson <rth@redhat.com>
9080 * c-typeck.c (pop_init_level): Emit pending init elements earlier
9083 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9085 * builtins.c (fold_builtin): Fix error in last change.
9087 2004-03-25 Richard Sandiford <rsandifo@redhat.com>
9089 * config/mips/mips.h: Formatting fix.
9091 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9093 * builtins.def: Add ctype builtins.
9094 * doc/extend.texi: Likewise.
9096 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9098 * builtins.c (fold_builtin): Add new builtin optimizations for
9100 * fold-const.c (fold): Likewise.
9102 2004-03-25 David Edelsohn <edelsohn@gnu.org>
9104 * config/rs6000/rs6000.c (rs6000_always_hint): New variable.
9105 (rs6000_sched_groups): New variable.
9106 (processor_target_table): Add power5.
9107 (rs6000_override_options): Set rs6000_sched_insert_nops,
9108 rs6000_sched_costly_dep and rs6000_sched_restricted_insns_priority
9109 from rs6000_sched_groups.
9110 (output_cbranch): Use rs6000_always_hint.
9111 (rs6000_variable_issue): Use rs6000_sched_groups.
9112 (rs6000_adjust_cost): Add CPU_POWER5.
9113 (is_microcoded_insn): Use rs6000_sched_groups.
9114 (is_dispatch_slot_restricted): Use rs6000_sched_groups.
9115 Return 2 for POWER5 cracked instructions.
9116 (is_cracked_insn): Use rs6000_sched_groups.
9117 (is_branch_slot_insn): Use rs6000_sched_groups.
9118 (rs6000_issue_rate): Add CPU_POWER5.
9119 (rs6000_sched_finish): Use rs6000_sched_groups.
9120 (rs6000_rtx_costs): Add PROCESSOR_POWER5.
9121 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER5.
9122 (DEFAULT_SCHED_COSTLY_DEP): Delete.
9123 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Delete.
9124 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Delete.
9125 * config/rs6000/rs6000.md (define_attr "cpu"): Add power5.
9126 * config/rs6000/power5.md: New file.
9127 * doc/invoke.texi: Add power5 option.
9129 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
9131 * cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
9132 config/arm/arm.c, objc/objc-act.c: Fix comment typos.
9133 * doc/invoke.texi: Fix a typo.
9135 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
9137 PR optimization/9707.
9138 * stmt.c (emit_case_nodes): Emit equality comparisons instead
9139 of recursing if both children are single-valued cases with no
9142 2004-03-25 Paul Brook <paul@codesourcery.com>
9144 * config/arm/arm.c (vfp_print_multi): Remove.
9145 (arm_output_fldmx): New function.
9146 (vfp_emit_fstmx): Return block size, not insn. Add ARM10 VFPr1 bugfix.
9147 (arm_expand_prologue): Update to match.
9148 (arm_get_vfp_saved_size): New Function.
9149 (arm_get_frame_offsets): Use it.
9150 (arm_output_epilogue): Use new functions.
9152 2004-03-24 Richard Henderson <rth@redhat.com>
9154 * alias.c (alias_invariant, alias_invariant_size): Mark GTY.
9155 (reg_known_value, reg_known_value_size): Likewise; make static.
9156 (reg_known_equiv_p): Make static.
9157 (clear_reg_alias_info): Update for new indexing.
9158 (get_reg_known_value, set_reg_known_value): New.
9159 (get_reg_known_equiv_p, set_reg_known_equiv_p): New.
9160 (canon_rtx): Use them.
9161 (init_alias_analysis): Likewise. Allocate reg_known_value with gc.
9162 Don't play queer offsetting games with reg_known_value and
9164 (end_alias_analysis): Free reg_known_value with gc.
9165 * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare.
9166 * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove.
9167 (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new
9170 2004-03-24 Kazu Hirata <kazu@cs.umass.edu>
9172 * dwarf2asm.c, loop.h, pretty-print.c, pretty-print.h,
9173 config/i386/mmintrin.h: Update copyright.
9175 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
9177 * configure.ac: Add --enable-werror-always (for top level bootstrap
9179 * configure: Regenerate.
9181 2004-03-24 Ziemowit Laski <zlaski@apple.com>
9183 * objc/objc-act.c (objc_comptypes): Treat comparisons
9184 between 'Class' and '<class> *' as explicitly invalid.
9186 2004-03-24 David Edelsohn <edelsohn@gnu.org>
9188 * doc/invoke.texi (-frename-registers): Add enabled at -O3.
9189 (-fprofile-values): Add enabled with profile-{generate,use}.
9191 (-ftracer): Add enabled with profile-use.
9192 (-funit-at-a-time): Add enabled at -O2,-O3.
9193 (-funroll-loops): Add enabled with profile-use.
9194 (-funswitch-loops): Add enabled with profile-use. Remove duplicates.
9195 (max-gcse-passes): Mention default.
9196 (max-cse-path-length): Mention default.
9198 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
9200 * Makefile.in (STRICT2_WARN): Reorder.
9201 * configure.ac: Check for -Wold-style-definition, and use it
9202 in strict1_warn if it's available.
9203 * configure: Regnerate.
9205 2004-03-24 Paul Brook <paul@nowt.org>
9207 * config.gcc <arm>: Add --with-abi=
9208 * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
9209 thumb_far_jump_used): Remove prototypes.
9210 (arm_needs_doubleword_align): Add prototype.
9211 (thumb_compute_initial_elimination_offset): Ditto.
9212 * config/arm/arm.c (arm_get_frame_offsets): New function.
9213 (use_return_insn, output_return_instruction, arm_output_epilogue,
9214 arm_output_function_epilogue, arm_compute_initial_elimination_offset,
9215 arm_expand_prologue, thumb_expand_epilogue): Use it.
9216 (arm_abi, target_abi_name, all_arm_abis): New variables.
9217 (arm_override_options): Set them. Set structure padding for AAPCS.
9218 (arm_return_in_memory): Update ABI check.
9219 (arm_init_cumulative_args): Initialize can_split.
9220 (arm_needs_doubleword_align): New function.
9221 (arm_function_arg): Don't split args after pushing to stack. Handle
9222 doubleword/even reg alignment.
9223 (arm_va_arg): Handle all doubleword aligned args.
9224 (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
9226 (arm_compute_save_reg0_reg12_mask): Fix comment.
9227 (thumb_get_frame_size, thumb_get_frame_size): Remove.
9228 (thumb_jump_far_used_p): Remove superfluous argument. Return save
9229 value for alignment.
9230 (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
9232 (thumb_compute_initial_elimination_offset): New function.
9233 (thumb_expand_prologue): Use arm_get_frame_offsets. Remove
9234 unneccessary rounding.
9235 * config/arm/arm.h (target_abi_name): Declare.
9236 (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
9237 arm_abi_type, ARM_DEFAULT_ABI): Define.
9238 (ARM_FLAG_ATPCS): Remove.
9239 (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
9240 (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
9241 (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
9242 TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
9243 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
9244 Contitionalize on ABI, not CPU.
9245 (struct arm_stack_offsets): Define.
9246 (struct machine_function): Add stack_offsets. Remove frame_size.
9247 (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
9249 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
9250 doubleword alignment.
9251 (THUMB_INITIAL_ELIMINATION_OFFSET,
9252 ARM_INITIAL_ELIMINATION_OFFSET): Remove.
9253 (INITIAL_ELIMINATION_OFFSET): Call functions directly.
9254 * config/arm/arm.md (align_8): Enable for all targets.
9255 * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
9256 (ARM_DEFAULT_ABI): Define.
9257 * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
9258 -mstructure-size-boundary.
9260 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
9262 * configure.ac: Check for -Wno-variadic-macros; don't use
9263 -pedantic (in stage 1 or a simple 'make all') unless it's available,
9264 and if it's available, use it. Also, clean up check for
9266 * configure: Regenerate.
9268 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
9270 * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
9271 * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
9272 (MULTILIB_DEFAULTS): Use it.
9273 (MIPS_CPU_STRING_DEFAULT): Remove.
9274 (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
9275 (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120. Make
9276 EABI64 -mlong32 the default ABI. Enforce the default architecture.
9277 * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
9278 march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
9279 (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
9280 (MULTILIB_EXCEPTIONS): Change choice of multilibs. Update comments
9283 2004-03-24 DJ Delorie <dj@redhat.com>
9284 Richard Sandiford <rsandifo@redhat.com>
9286 * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
9287 (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
9288 (ASM_SPEC): Pass down -mfix-vr4122-bugs.
9289 * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
9290 in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
9291 (mips_init_libfuncs): Use special functions for divsi3 and modsi3
9292 if TARGET_FIX_VR4122.
9293 * config/mips/mips.md (define_attr length): Account for nops inserted
9294 after macc and dmult when using -mfix-vr4122-bugs.
9295 (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
9296 * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
9297 LIB2FUNCS_EXTRA. Add config/mips/vr4122-div.S.
9298 * config/mips/vr4122-div.S: New file.
9299 * doc/invoke.texi: Document -mfix-vr4122-bugs.
9301 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
9303 * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
9304 (TARGET_MIPS4130): New macro.
9305 (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
9306 * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
9307 (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
9308 with PROCESSOR_R4130.
9309 * config/mips/mips.md (define_attr cpu): Add r4130.
9310 * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
9312 2004-03-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
9313 Richard Sandiford <rsandifo@redhat.com>
9315 * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
9317 2004-03-24 Alexandre Oliva <aoliva@redhat.com>
9319 PR preprocessor/14438
9320 * cpplib.c (do_pragma): Remove line_change call after pragma
9323 2004-03-23 Ian Lance Taylor <ian@wasabisystems.com>
9325 * doc/extend.texi (ARM Built-in Functions): Replace with correct
9328 2004-03-23 Roger Sayle <roger@eyesopen.com>
9330 * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
9331 if flag_unsafe_math_optimizations.
9332 * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
9333 and TARGET_80387 expand using truncdfsf2_noop pattern.
9334 (truncxfsf2): Likewise using truncxfsf2_noop.
9335 (truncxfdf2): Likewise using truncxfdf2_noop.
9336 (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
9338 2004-03-23 Ziemowit Laski <zlaski@apple.com>
9340 * hooks.c (hook_constcharptr_tree_null): New hook.
9341 * hooks.h (hook_constcharptr_tree_null): New prototype.
9342 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
9343 * target.h (mangle_fundamental_type): New target hook.
9344 * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
9345 target hook at rs6000_mangle_fundamental_type.
9346 (rs6000_mangle_fundamental_type): New function.
9347 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
9349 2004-03-23 Zack Weinberg <zack@codesourcery.com>
9351 PR 12267, 12391, 12560, 13129, 14114, 14133
9352 * c-tree.h: Forward declare struct c_binding. Declare
9353 c_override_bindings_to_false. Update prototypes.
9354 (struct lang_identifier): Update comments. Change fields to be
9356 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
9357 (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
9358 (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
9359 (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
9360 * c-common.h: Update prototypes.
9361 * c-decl.c (struct c_scope): Update commentary. Remove names,
9362 names_last, parms, parms_last, tags, and shadowed fields. Add
9363 bindings and depth fields.
9364 (scope_freelist): Move to more appropriate location.
9365 (c_print_identifier): Update for changes to struct lang_identifier.
9366 (objc_mark_locals_volatile): Update for new bindings structures.
9367 (global_bindings_p): Honor c_override_global_bindings_to_false.
9368 (pushlevel): Rename to push_scope; take no arguments; use the
9369 scope_freelist; initialize scope->depth and check for overflow.
9370 (poplevel): Rename to pop_scope; totally rewritten for new bindings
9372 (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
9373 C_DECL_INVISIBLE, for certain decisions. Adjust some diagnostics.
9374 Improve some commentary. Adjust handling of forward parm decls.
9375 (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
9376 Preserve C_DECL_IN_EXTERNAL_SCOPE.
9377 (warn_if_shadowing): Correct indentation. Improve diagnostics.
9378 (pushdecl): Remove unnecessary assertion. Short-circuit anonymous
9379 decls. Rewrite for new bindings structures. Improve commentary.
9380 Eliminate the copy_node call.
9381 (implicit_decl_warning): Use the "diag" idiom (as seen in
9382 locate_old_decl) to reduce code duplication; call locate_old_decl
9383 if appropriate. Relocate to remove need for forward declaration.
9384 (implicitly_declare): Adjust for new bindings structures. Kludge
9385 around Objective-C not-really-builtin functions.
9386 (undeclared_variable): Improve diagnostics. If current_function_decl
9387 is nonnull but current_function_scope is null, use current_scope.
9389 (lookup_tag): Adjust for new bindings structures. Kludge around
9390 Objective-C's tag declarations that wind up in the external scope.
9391 (lookup_name): Adjust for new bindings structures. Kludge around
9392 c-common.c's pseudo-typedefs that wind up in the external scope.
9393 (lookup_name_current_level): Rename lookup_name_in_scope; take a
9394 second argument indicating the scope to examine; rewrite for
9395 new bindings structures.
9396 (c_init_decl_processing): Adjust for renamed functions. Do not
9397 initialize current_file_decl, first_builtin_decl, last_builtin_decl.
9398 First scope pushed is the external scope, not the global scope.
9399 (builtin_function): Use bind, not pushdecl. Adjust other bits
9400 for new data structures. Keep track of builtins that should be
9401 made visible automatically.
9402 (start_decl): Adjust diagnostics. Remove unnecessary call to
9404 (grokparms): Return 0 if arg_types is error_mark_node.
9405 (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
9406 reversed sense. Rewrite for new bindings structures. Do not
9407 leave any decls in the scope, to prevent pop_scope from doing
9408 contradictory things with them.
9409 (finish_struct, finish_enum): Remove redundant diagnostics.
9410 (build_enumerator): Don't cascade diagnostics for error_mark_node.
9411 Mark location where -pedantic changes the meaning of the program.
9412 (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
9413 parameter decls into the function's scope structure using bind.
9414 Warn here about function definitions in the wrong style.
9416 (store_parm_decls): Correct the determination of whether a
9417 function was defined with a prototype.
9418 (c_write_global_declarations): Operate on all file decls and on
9419 the external scope. Split body of the loop to...
9420 (c_write_global_declarations_1): ... this new function, to avoid
9422 (truly_local_externals, first_builtin_decl, last_builtin_decl)
9423 (make_scope, pop_scope, in_parm_level_p, set_block)
9424 (any_external_decl, record_external_decl, bind_label, getdecls)
9425 (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
9426 (c_reset_state): Delete.
9427 (visible_builtins, c_override_global_bindings_to_false)
9428 (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
9429 (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
9430 (external_scope, binding_freelist, bind, free_binding_and_advance)
9431 (push_file_scope, pop_file_scope): New.
9432 (pushtag, pushdecl_top_level, lookup_label, declare_label)
9433 (define_label, c_make_fname_decl, finish_decl)
9434 (mark_forward_parm_decls, build_compound_literal)
9435 (grokdeclarator, start_function, check_for_loop_decls)
9436 (identifier_global_value, record_builtin_type): Minor adjustments
9437 for new bindings structures. Improve diagnostics and commentary.
9438 * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
9439 pushlevel/poplevel respectively.
9440 (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
9441 * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
9442 Warn about YYDEBUG not being defined only if -dy. Remove no-longer-
9443 correct loop over multiple translation units; call fatal_error if
9444 requested to compile more than one file at once. (This disables
9445 IMA temporarily - an up-front error being preferable to a crash.)
9446 * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
9447 (all actions): Adjust calls to pushlevel/poplevel.
9448 (parsing_iso_function_signature): Delete.
9449 (extdef_1): Fold into extdef.
9450 (old_style_parm_decls_1): Fold into old_style_parm_decls. Don't
9451 warn here about function definitions in the wrong style.
9452 (after_tyle_declarator, parm_declarator_starttypename)
9453 (parm_declarator_nostarttypename, notype_declarator): Remove
9454 commented-out productions.
9455 (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
9456 an empty TREE_LIST node. Adjust calls to get_parm_info.
9457 (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
9458 to suppress -Wold-style-definition after this error.
9459 (c_parse_file): Don't clear the binding stack or call
9460 finish_fname_decls here. Correct comment.
9461 * c-typeck.c (same_translation_unit_p): Export.
9462 (common_type): Use c_override_global_bindings_to_false, not
9463 pushlevel/poplevel/declare_parm_level.
9464 * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
9465 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
9466 and LANG_HOOKS_GETDECLS with do-nothing stubs.
9467 * objc/objc-lang.c: Likewise.
9468 * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
9470 (OBJC_VOID_AT_END): Delete; replace all uses
9471 with void_list_node.
9472 (generate_forward_declaration_to_string_table): Delete.
9473 * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
9475 * coverage.c (create_coverage): Don't pushdecl anything.
9476 * langhooks.c (lhd_clear_binding_stack): Call
9477 lang_hooks.decls.poplevel, not poplevel.
9478 * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
9479 circular list rather than going into an infinite loop.
9481 2004-03-23 Olivier Hainque <hainque@act-europe.fr>
9483 * optabs.c (expand_binop): When synthesizing double word rotates
9484 from single word shifts, use a new register target if the provided
9485 target is not a REG already.
9487 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9489 * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
9490 * c-common.c (handle_mode_attribute): Add extra arg to
9491 build_pointer_type_for_mode and build_reference_type_for_mode.
9492 * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
9494 * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
9495 Chain pointers via TYPE_NEXT_PTR_TO.
9496 (build_reference_type_for_mode): Similarly.
9497 (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
9498 and build_reference_type_for_mode.
9499 (tree_check4_failed): New function.
9500 * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
9501 (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
9502 (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
9505 2004-03-23 Roger Sayle <roger@eyesopen.com>
9507 * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
9508 A is nonnegative or B is nonnegative. Similarly A|B is nonnegative
9509 when both A and B are nonnegative.
9510 (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
9513 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
9515 * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
9516 VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
9518 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
9520 PR optimization/14669
9521 * fold-const.c (fold): Only unwiden integer comparisons for equality
9522 and inequality operators, or when the signedness doesn't change.
9524 2004-03-23 Jakub Jelinek <jakub@redhat.com>
9526 * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
9527 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
9528 * config/sparc/t-linux: New file.
9530 2004-03-23 Richard Sandiford <rsandifo@redhat.com>
9532 * gcse.c (can_assign_to_reg_p): New function, split out from...
9533 (want_to_gcse_p): ...here.
9534 (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
9537 2004-03-22 Diego Novillo <dnovillo@redhat.com>
9539 * c-typeck.c (same_translation_unit_p): Fix pasto.
9541 2004-03-22 David Edelsohn <edelsohn@gnu.org>
9543 * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
9544 (PARAM_MAX_SCHED_REGION_INSNS): New.
9545 * sched-rgn.c: Include params.h
9546 (MAX_RGN_BLOCKS): Delete.
9547 (MAX_RGN_INSNS): Delete.
9548 (too_large): Return bool. Convert to PARAM_VALUE.
9549 * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
9550 * doc/invoke.texi (param): Document max-sched-region-blocks and
9551 max-sched-region-insns.
9553 2004-03-22 Joel Brobecker <brobecker@gnat.com>
9555 * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
9558 2004-03-22 Joel Brobecker <brobecker@gnat.com>
9560 * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
9563 2004-03-22 Jakub Jelinek <jakub@redhat.com>
9566 * c-decl.c (finish_struct): Change type of incorrect flexible array
9567 field into error_mark_node.
9569 2004-03-22 Andrew Pinski <pinskia@physics.uc.edu>
9572 * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
9573 who are not local for Darwin PIC.
9575 2004-03-22 Ulrich Weigand <uweigand@de.ibm.com>
9577 * regrename.c (regrename_optimize): Set regs_ever_live for all
9578 registers introduced as replacement.
9580 2004-03-22 Eric Botcazou <ebotcazou@libertysurf.fr>
9583 * expr.c (mark_queue): New function.
9584 (emit_insns_enqueued_after_mark): New function replacing
9585 emit_queue. Clear the body of emitted queued insns.
9586 (emit_queue): Call emit_insns_enqueued_after_mark.
9587 (store_expr): Mark the increment queue on entry. Emit
9588 only the incrementations queued when expanding the source.
9590 2004-03-22 Nathanael Nerode <neroden@gcc.gnu.org>
9592 * configure.ac: Allow --disable-coverage-flags (for the future benefit
9593 of top level bootstrap, and consistency). Reindent.
9594 * configure: Regenerate.
9596 2004-03-21 Kazu Hirata <kazu@cs.umass.edu>
9598 * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
9599 ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
9602 2004-03-22 Danny Smith <dannysmith@users.sourceforge.net>
9605 * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
9608 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
9610 * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
9611 to nonimmediate_operand.
9612 ("*doloop_di"): Likewise.
9614 2004-03-21 Alexandre Oliva <aoliva@redhat.com>
9616 * real.h (struct real_value): Use the same type for all
9617 bitfields. Rename exp to uexp.
9618 (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
9619 Adjust all uses of exp...
9620 * builtins.c: ... here, ...
9621 * emit-rtl.c: ... here, and ...
9622 * real.c: ... and here.
9624 2004-03-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
9626 * pretty-print.c (pp_base_maybe_space): New function.
9627 * pretty-print.h (pp_base_maybe_space): Declare.
9628 (pp_maybe_space): New macro.
9630 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
9632 * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
9634 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
9636 * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
9637 of using register multiplication cost.
9638 (expand_mult): Adapt choose_mult_variant call.
9639 (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
9640 of MODE; pass appropriate cost bound. Adjust result when
9641 performing signed multiplication by a negative constant.
9642 Don't use intermediate modes larger than word_mode.
9644 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9646 * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
9647 * emit-rtl.c (component_ref_for_mem_expr): Likewise.
9648 (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
9649 * explow.c (expr_size): Likewise.
9650 * expr.h (placeholder_list, find_placeholder): Deleted.
9651 * expr.c (store_constructor): Likewise.
9652 (get_inner_reference): Likewise. Also don't call find_placeholder.
9653 (placeholder_list, find_placeholder): Deleted.
9654 (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
9655 (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
9656 (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
9657 * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
9658 * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
9660 * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
9661 (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
9662 * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
9663 (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
9664 Clean up by using first_rtl_op.
9665 (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
9666 (substitute_placeholder_in_expr): New function.
9667 * tree.def (WITH_RECORD_EXPR): Deleted.
9668 * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
9669 (substitute_placeholder_in_expr): New.
9671 2004-03-21 Andrew Pinski <pinskia@gcc.gnu.org>
9673 * dojump.c (prefer_and_bit_test): Fix which part of
9674 the and_test is replaced.
9676 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
9678 * frontends.texi: Add missing line.
9680 2004-03-21 Zack Weinberg <zack@codesourcery.com>
9681 Chris Devers <cdevers@pobox.com>
9682 Joseph S. Myers <jsm@polyomino.org.uk>
9684 * doc/frontends.texi: Rewrite.
9685 * doc/gcc.texi: Update last modification date.
9687 2004-03-21 Josef Zlomek <zlomekj@suse.cz>
9689 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
9690 message before redirecting the edge.
9692 2004-03-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9694 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
9696 * explow.c (force_not_mem): Set REG_POINTER flag according to
9698 * rtl.h (MEM_POINTER): New macro.
9699 (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
9702 2004-03-20 Roger Sayle <roger@eyesopen.com>
9705 * cse.c (fold_rtx): Avoid substituting constants into unary
9706 conversion operations.
9708 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9710 * fold-const.c (fold): Replace "expr" with "t".
9712 2004-03-20 Ian Lance Taylor <ian@wasabisystems.com>
9715 * c-typeck.c (tagged_types_tu_compatible_p): Don't use
9716 DECL_ORIGINAL_TYPE if there isn't one.
9718 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9720 * fold-const.c (fold): Replace "final_type" with "type".
9721 Remove variable "final_type".
9723 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9725 * fold-const.c (fold): Constify "type".
9726 Replace "TREE_TYPE (t)" with "type".
9728 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9730 * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
9731 dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
9732 via (*targetm.foo) () with targetm.foo ().
9734 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
9737 * doc/install.texi: Add info directory category and entry.
9739 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9741 * fold-const.c (fold): Replace "t" with "tem" where it is used
9742 as a temporary variable. Remove "orig_t" and all of its uses.
9744 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9746 * fold-const.c (fold): Remove variable "invert".
9747 Move the handling of relational expressions that can be folded
9749 (fold_relational_const): ... here.
9750 (tree_expr_nonzero_p): New.
9752 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
9755 * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
9758 2004-03-20 Richard Sandiford <rsandifo@redhat.com>
9760 * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
9761 (GTFILES): Add $(srcdir)/dojump.h.
9762 (gt-dojump.h): New dependency.
9763 * dojump.c (and_reg, and_test, shift_test): New static variables.
9764 (prefer_and_bit_test): New function.
9765 (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
9767 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9769 * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
9770 expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
9771 reorg.c, tree.h: Fix comment typos.
9773 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
9775 * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
9776 c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
9777 cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
9778 haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
9779 sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
9780 vmsdbgout.c: Replace calls via (*targetm.foo) () with
9783 2004-03-19 Ziemowit Laski <zlaski@apple.com>
9785 * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
9786 vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
9787 always_inline attribute.
9788 * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
9789 Treat expansion as completed even if literal argument is
9790 invalid (so that other expansions are not tried in vain).
9792 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
9794 * loop-doloop.c (add_test): Replace GEN_INT (0) with
9797 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
9799 * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
9801 (fold_abs_const): ... here.
9803 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9805 * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
9807 2004-03-19 Denis Chertykov <denisc@overta.ru>
9810 * config/avr/avr.md ("call_insn"): Handle explicit integer
9812 (call_value_insn): Likewise.
9814 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9816 * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
9818 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
9820 * fold-const.c (negate_expr): Move the handling of constants
9822 (fold_negate_const): ... here.
9824 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9826 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
9827 * langhooks.h (struct lang_hooks_for_types): New field hash_types.
9828 * tree.c (debug_no_type_hash): Deleted.
9829 (type_hash_canon): Abort if passed a variant.
9830 Check lang_hooks.types.hash_types.
9831 (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
9832 (build_array_type): Remove unnecessary allocation of pointer type.
9833 (build_complex_type): Properly qualify resulting type.
9835 2004-03-19 Paolo Bonzini <bonzini@gnu.org>
9837 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
9839 2004-03-19 Richard Sandiford <rsandifo@redhat.com>
9841 * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
9842 (expand_mult): ...here.
9843 (extract_high_half): New, split out from expand_mult_highpart.
9844 (expand_highpart_optab): Likewise. Don't clobber target prematurely.
9845 (expand_highpart): Evaluate the cost of a shift/add sequence,
9846 then see if any of the specialized optabs are cheaper.
9848 2004-03-18 Ian Lance Taylor <ian@wasabisystems.com>
9850 * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
9852 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9854 * convert.c (convert_to_real): Add more math builtins.
9856 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9858 * convert.c (convert_to_real): Reformat using switch stmt.
9860 2004-03-18 Mark Mitchell <mark@codesourcery.com>
9862 * c-common.c (pointer_int_sum): Do not complain about using
9863 pointers to pointers-to-members.
9865 2004-03-18 Kazu Hirata <kazu@cs.umass.edu>
9867 * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
9868 have moved to the target hooks structure".
9870 2004-03-18 James E Wilson <wilson@specifixinc.com>
9872 * config/mips/mips.md (type): Split move into arith and fmove. Split
9873 hilo into mthilo and mfhilo. Add trap. Delete icmp. Fix all uses.
9874 * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
9876 * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
9878 * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
9879 rm7_fp_quick): Likewise.
9880 * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
9881 rm9k_fquick): Likewise.
9882 * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
9884 (ir_sr70_icmp): Delete.
9886 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9888 * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
9889 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
9890 (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
9891 (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
9892 (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
9893 Protect with proper check.
9894 (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
9895 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
9896 * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
9897 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
9898 * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
9899 * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
9901 * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
9903 2004-03-18 Mostafa Hagog <mustafa@il.ibm.com>
9905 * gcse.c (eliminate_partially_redundant_loads): Reject change if
9906 dest is set between beginning and current insn.
9908 2004-03-18 Mark Mitchell <mark@codesourcery.com>
9910 * c-decl.c (grokdeclarator): Do not complain about redeclaring
9911 visible "static" identifiers "extern" in a local scope.
9912 * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
9913 post-increments/decrements.
9915 2004-03-18 Bob Wilson <bob.wilson@acm.org>
9917 * config/xtensa/xtensa.c (current_function_arg_words): Delete.
9918 (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
9919 (xtensa_va_start): Remove assignment to current_function_arg_words.
9921 2004-03-18 Richard Sandiford <rsandifo@redhat.com>
9923 * alias.c (record_set): Detect the case where a register is assigned
9924 a new value that has the same base term as the old one.
9926 2004-03-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9928 * doloop.c: Removed.
9929 * loop-doloop.c: New file.
9930 * Makefile.in (doloop.o): Remove.
9931 (loop-doloop.o): New.
9932 * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
9933 * cfgloopanal.c (get_loop_level): New function.
9934 * loop-iv.c (iv_number_of_iterations): Handle case when loop
9935 is leaved immediatelly.
9936 * loop.c (strength_reduce): Do not call doloop optimization.
9937 * loop.h (LOOP_BCT): Removed.
9938 * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
9939 (rest_of_handle_loop2): Call doloop_optimize_loops.
9940 (rest_of_compilation): Test for optimizations moved to
9941 rest_of_handle_loop2.
9943 2004-03-17 Fariborz Jahanian <fjahanian@apple.com>
9945 * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
9947 (rs6000_emit_prologue): Ditto.
9948 (rs6000_emit_epilogue): Ditto.
9949 * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
9950 macro for mixed mode.
9952 2004-03-18 Jan Hubicka <jh@suse.cz>
9954 * predict.c (propagate_freq): Compute correctly frequency of
9957 2004-03-17 Eric Christopher <echristo@redhat.com>
9959 * builtins.c (apply_args_size): Use reg_raw_mode.
9960 (apply_result_size): Ditto.
9962 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
9965 * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
9967 2004-03-17 Jakub Jelinek <jakub@redhat.com>
9969 * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
9970 32-bit builds when defaulting to 32-bit.
9972 2004-03-17 Jan Hubicka <jh@suse.cz>
9974 * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
9977 2004-03-17 James E Wilson <wilson@specifixinc.com>
9979 * config/mips/mips.md (zero_extendsidi2): Add length attribute.
9980 (hazard_nop): Change type to nop.
9981 (type): Split arith into arith, shift, slt, clz. Delete darith.
9982 Fix all uses. Change arith to multi if more than one insn emitted.
9983 * config/mips/5400.md (ir_vr54_arith): Likewise.
9984 * config/mips/5500.md (ir_vr55_arith): Likewise.
9985 * config/mips/7000.md (rm7_int_other): Likewise.
9986 * config/mips/9000.md (rm9k_int): Likewise.
9987 * config/mips/sr71k.md (ir_sr70_arith): Likewise.
9989 2004-03-17 Joel Brobecker <brobecker@gnat.com>
9991 * dwarf2out.c (subrange_type_die): Define new variable "subtype"
9992 to hold the subtype tree instead of recomputing it several times.
9994 2004-03-17 Kazu Hirata <kazu@cs.umass.edu>
9996 * config/mn10300/mn10300.c (notice_update_cc): Don't handle
9998 * config/mn10300/mn10300.md (cc): Remove "invert".
10000 2004-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10002 * builtins.c (integer_valued_real_p): Add builtin rint.
10003 (fold_builtin): Likewise.
10004 * convert.c (convert_to_real): Likewise.
10006 * convert.c (convert_to_real): Fix typos in `long double'
10009 2004-03-16 Mark Mitchell <mark@codesourcery.com>
10012 * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
10013 generated COMPOUND_EXPRs.
10015 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
10017 * config/h8300/t-rtems (h8300-*-rtems*): New.
10019 2004-03-16 Eric Christopher <echristo@redhat.com>
10021 * doc/cppopts.texi(fwide-exec-charset): Fix typo.
10023 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
10025 * config/i386/i386-protos.h: Add a prototype for
10026 ix86_reverse_condition.
10027 * config/i386/i386.c (ix86_reverse_condition): New.
10028 * config/i386/i386.h (REVERSE_CONDITION): Use
10029 ix86_reverse_condition.
10030 * config/i386/i386.md: Use ix86_reverse_condition instead of
10033 2004-03-16 J. Brobecker <brobecker@gnat.com>
10035 * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
10037 2004-03-16 Nathanael Nerode <neroden@gcc.gnu.org>
10040 * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
10042 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
10044 * c-common.c (c_common_type_for_mode): Build vector types on
10046 (handle_mode_attribute): Deprecate using the mode attribute
10047 to create vector types. Fix indentation.
10048 (vector_type_node_list): Remove.
10049 (handle_vector_size_attribute): Create vector types on demand.
10050 Strip a NON_LVALUE_EXPR from the attribute if there is one.
10051 * c-typeck.c (comptypes): Make vector types compatible if they
10052 have the same underlying mode.
10053 (convert_for_assignment): Use comptypes to convert between
10055 * tree.c (build_common_tree_nodes_2): Do not create vector types.
10056 * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
10058 * tree.h: Remove vector types.
10059 * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
10060 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
10061 (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
10062 V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
10063 * doc/extend.texi (Vector Types): Document how to use the
10064 vector_size attribute to create vectors, rather than mode.
10066 * config/arm/mmintrin.h: Use vector_size attribute, not mode.
10067 * config/i386/emmintrin.h: Likewise.
10068 * config/i386/mmintrin.h: Likewise.
10069 * config/i386/xmmintrin.h: Likewise.
10070 * config/sh/ushmedia.h: Likewise.
10072 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
10074 * config/freebsd-spec.h, config/arc/arc-protos.h,
10075 config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
10076 config/arm/linux-gas.h, config/arm/semi.h,
10077 config/cris/cris-protos.h, config/i386/xm-djgpp.h,
10078 config/ia64/freebsd.h, config/mips/7000.md,
10079 config/mips/9000.md, config/ns32k/ns32k-protos.h,
10080 config/sparc/pbd.h: Update copyright.
10082 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
10085 * config.gcc: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff.
10087 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
10089 * combine.c (combine_simplify_rtx): Remove the "last"
10090 parameter and its documentation. Adjust recursive calls.
10091 (simplify_logical): Always perform the only simplification
10092 controlled by "last", if the simplified expression is
10093 actually different.
10094 (try_combine): Do not pass the "last" parameter to
10095 combine_simplify_rtx.
10097 2004-03-16 Richard Sandiford <rsandifo@redhat.com>
10100 * config/mips/mips.md (UNSPEC_GP): New constant.
10101 * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
10102 an UNSPEC instead of (reg $gp).
10103 (mips16_gp_pseudo_reg): Change accordingly.
10104 (print_operand): Print $gp directly when handling CONST_GP_P.
10106 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
10108 * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
10109 * longlong.h: Make code 68060 clean when compiling for m68060.
10111 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
10113 * config/m68k/m68k.md: Fix constraints for bitfield instructions.
10114 * doc/md.texi: Clarify description of "i" constraint.
10116 2004-03-15 James E Wilson <wilson@specifixinc.com>
10118 * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
10119 Split store into store, fpstore, fpidxstore. Fix all uses.
10120 * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
10122 * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
10123 * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
10124 * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
10125 * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
10126 ir_sr70_fstore): Likewise.
10128 2004-03-15 Richard Henderson <rth@redhat.com>
10130 PR middle-end/14535
10131 * except.c (collect_one_action_chain): Record action for cleanup
10132 outer of exception spec.
10134 2004-03-15 Ian Lance Taylor <ian@wasabisystems.com>
10136 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
10137 Fix the check for abort and only do the mmap if we can.
10139 2004-03-15 Eric Botcazou <ebotcazou@act-europe.fr>
10141 * config/sparc/sparc.h: Rework comments about the code model
10142 in 64-bit environment and the mode 'Pmode'.
10143 * doc/invoke.texi (SPARC options): Rework description of the
10144 different code models supported in 64-bit environment.
10146 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
10148 * defaults.h (REVERSIBLE_CC_MODE): Define.
10149 * jump.c (reversed_comparison_code_parts): Don't check if
10150 REVERSIBLE_CC_MODE is defined.
10152 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
10154 * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
10155 et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
10156 hosthooks.h, params.h, ra-colorize.c, web.c,
10157 config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
10158 config/avr/avr-protos.h, config/avr/avr.md,
10159 config/fr30/fr30-protos.h, config/fr30/fr30.md,
10160 config/h8300/fixunssfsi.c, config/i386/darwin.h,
10161 config/i386/freebsd.h, config/i386/freebsd64.h,
10162 config/ia64/hpux.h, config/ia64/unwind-ia64.c,
10163 config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
10164 config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
10165 config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
10166 config/pa/pa64-regs.h, config/rs6000/aix41.h,
10167 config/rs6000/aix43.h, config/rs6000/host-darwin.c,
10168 config/sparc/aout.h, config/sparc/freebsd.h,
10169 config/sparc/litecoff.h, config/vax/vax-protos.h,
10170 doc/hostconfig.texi, doc/include/gcc-common.texi: Update
10173 2004-03-15 Paul Brook <paul@codesourcery.com>
10175 * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
10177 2004-03-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
10179 * c-pretty-print.c (pp_c_semicolon): Fix formatting.
10180 (pp_c_cv_qualifier): Document.
10181 (pp_c_space_for_pointer_operator): Likewise.
10182 (pp_c_integer_constant): Likewise.
10183 (pp_c_identifier): Likewise.
10184 (pp_c_init_declarator): Don't print function body.
10186 2004-03-14 Joseph S. Myers <jsm@polyomino.org.uk>
10188 * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
10189 doc/install.texi, doc/invoke.texi, doc/makefile.texi,
10190 doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
10191 "gcc", "g++" and "g77" or mark up with appropriate markup. Adjust
10192 wording and grammar.
10194 2004-03-14 Roger Sayle <roger@eyesopen.com>
10196 * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
10197 with lang_hooks.foo ().
10198 * builtins.c (expand_builtin_va_arg): Likewise.
10199 * c-common.c (fname_as_string, c_common_truthvalue_conversion,
10200 c_common_type_for_mode, c_common_nodes_and_builtins,
10201 handle_mode_attribute, handle_vector_size_attribute): Likewise.
10202 * c-convert.c (convert): Likewise.
10203 * c-format.c (check_format_types): Likewise.
10204 * c-objc-common.c (c_tree_printer): Likewise.
10205 * c-typeck.c (build_unary_op, build_conditional_expr,
10206 build_binary_op): Likewise.
10207 * calls.c (try_to_integrate, expand_call,
10208 emit_library_call_value_1): Likewise.
10209 * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
10211 * cgraphunit.c (record_call_1, cgraph_analyze_function,
10212 cgraph_expand_function): Likewise.
10213 * convert.c (convert_to_pointer, convert_to_integer): Likewise.
10214 * coverage.c (build_fn_info_type, build_ctr_info_type,
10215 build_gcov_info, create_coverage): Likewise.
10216 * dbxout.c (dbxout_init): Likewise.
10217 * diagnostic.c (diagnostic_report_current_function): Likewise.
10218 * dojump.c (do_jump): Likewise.
10219 * dwarf2out.c (dwarf2_name): Likewise.
10220 * except.c (init_eh): Likewise.
10221 * explow.c (expr_size, int_expr_size): Likewise.
10222 * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
10224 * expr.c (store_expr, store_constructor, safe_from_p,
10225 expand_expr_real, do_store_flag, try_casesi): Likewise.
10226 * function.c (push_function_context_to, pop_function_context_from,
10227 free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
10228 put_var_into_stack, allocate_struct_function, current_function_name):
10230 * integrate.c (copy_decl_for_inlining, expand_inline_function):
10232 * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
10233 lhd_print_error_function): Likewise.
10234 * opts.c (handle_option, decode_options): Likewise.
10235 * passes.c (open_dump_file): Likewise.
10236 * print-tree.c (print_node): Likewise.
10237 * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
10238 expand_decl_cleanup, emit_case_nodes): Likewise.
10239 * stor-layout.c (variable_size): Likewise.
10240 * toplev.c (announce_function, wrapup_global_declarations,
10241 check_global_declarations, compile_file, default_tree_printer,
10242 process_options, lang_dependent_init, finalize): Likewise.
10243 * tree-dump.c (dequeue_and_dump): Likewise.
10244 * tree-inline.c (remap_decl, remap_block, copy_body_r,
10245 initialize_inlined_parameters, declare_return_variable,
10246 inlinable_function_p, expand_call_inline, optimize_inline_calls,
10247 walk_tree, copy_tree_r): Likewise.
10248 * tree-optimize.c (tree_rest_of_compilation): Likewise.
10249 * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
10250 unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
10251 variably_modified_type_p, dump_tree_statistics): Likewise.
10252 * varasm.c (assemble_variable, compare_constant, copy_constant,
10253 force_const_mem, compute_reloc_for_constant, output_constant,
10254 output_addressed_constants, initializer_constant_valid_p): Likewise.
10256 2004-03-14 Kelley Cook <kcook@gcc.gnu.org>
10258 * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
10260 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
10262 * doc/install.texi: Reflect autoconf and automake version for
10263 libffi. Update autoconf version to 2.59.
10265 2004-03-13 Roger Sayle <roger@eyesopen.com>
10267 * fold-const.c (negate_expr, operand_equal_for_comparison_p,
10268 optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
10269 make_range, build_range_check, fold_range_test, unextend,
10270 constant_boolean_node, fold_binary_op_with_conditional_arg,
10271 fold_truthop, fold_mathfn_compare, fold_inf_compare,
10272 fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
10273 with lang_hooks.foo ().
10275 2004-03-14 Richard Earnshaw <rearnsha@arm.com>
10277 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
10279 2004-03-13 Dara Hazeghi <dhazeghi@yahoo.com>
10281 * doc/install.texi: Note status of -fnew-ra.
10283 2004-03-13 Eric Botcazou <ebotcazou@libertysurf.fr>
10285 PR middle-end/14470
10286 * expr.c (store_expr): Call emit_queue before generating the move
10287 from the temporary to the original target. Protect the temporary
10290 2004-03-13 Jakub Jelinek <jakub@redhat.com>
10293 * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
10294 other than UNSPEC_GOTOFF.
10296 2004-03-13 Richard Earnshaw <rearnsha@arm.com>
10298 * arm.c (arm_legitimate_address_p): New argument, OUTER. Pass through
10299 to arm_legitimate_index_p. Update all callers with SET as default
10301 (arm_legitimate_index_p): New argument, OUTER. Restrict the index
10302 range if OUTER is a sign-extend operation on QImode. Correctly
10303 reject shift operations on sign-extended QImode addresses.
10304 (bad_signed_byte_operand): Delete.
10305 (arm_extendqisi_mem_op): New function.
10306 * arm.h (EXTRA_CONSTRAINT_ARM): Delete. Replace with...
10307 (EXTRA_CONSTRAINT_STR_ARM): ... this. Handle extended address
10309 (CONSTRAINT_LEN): New.
10310 (EXTRA_CONSTRAINT): Delete. Replace with...
10311 (EXTRA_CONSTRAINT_STR): ... this.
10312 (PREDICATE_CODES): Remove bad_signed_byte_operand.
10313 * arm.md (extendqihi_insn): Use new constraint Uq. Rework. Length
10314 is now always default.
10315 (define_splits for bad sign-extend loads): Delete.
10316 (arm_extendqisi, arm_extendqisi_v5): Likewise.
10317 * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
10318 Rework 'U' constraint to 'Uv'.
10319 * arm-protos.h: Remove bad_signed_byte_operand. Add
10320 arm_extendqisi_mem_op.
10321 * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
10324 2004-03-13 Alan Modra <amodra@bigpond.net.au>
10326 * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
10327 with targetm version.
10330 * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
10331 (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
10332 * config/rs6000/rs6000.c (rs6000_arg_size): New function.
10333 Update all users of RS6000_ARG_SIZE.
10334 (function_arg_advance): Count fregno using mode size.
10335 (function_arg): Handle long double split over regs and memory.
10336 (function_arg_partial_nregs): Likewise.
10337 (rs6000_va_arg): Repackage complex args.
10339 2004-03-13 Dean Ferreyra <dferreyra@igc.org>
10342 * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
10343 (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
10344 * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
10346 2004-03-12 Jakub Jelinek <jakub@redhat.com>
10348 * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
10350 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
10351 * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
10353 2004-03-12 Andrew Pinski <apinski@apple.com>
10355 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
10356 Use ret instead of result. Use addr instead of base.
10358 2004-03-12 David Edelsohn <edelsohn@gnu.org>
10360 * doc/install.texi (*-ibm-aix*): Document assembler and achiver
10361 fixes required by libstdc++ and update installation instructions
10364 2004-03-12 Danny Smith <dannysmith@users.sourceforge.net>
10366 * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
10367 leading '@' on fastcall symbols before stripping suffix.
10369 2004-03-12 Roger Sayle <roger@eyesopen.com>
10371 * combine.c (unmentioned_reg_p): New function to check whether an
10372 expression is a "specialization" of another, i.e. that there are
10373 no registers or memory references mentioned in the first that don't
10374 appear in the second.
10375 (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
10376 (combine_instructions): Also try combining instructions using the
10377 REG_EQUAL note from a preceding log-linked instruction.
10379 2004-03-12 Roger Sayle <roger@eyesopen.com>
10381 * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
10383 2004-03-12 Matt Austern <austern@apple.com>
10385 * target.h (struct gcc_target): New target hook, unwind_label.
10386 * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
10387 * output.h (default_emit_unwind_label): New function.
10388 * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
10389 (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
10390 (TARGET_SUPPORTS_HIDDEN): New target macro.
10391 * dwarf2out.c (struct dw_fde_struct): Add field for function decl
10392 that corresponds to this FDE.
10393 (FRAME_BEGIN_LABEL): Allow target to override default label.
10394 (output_call_frame_info): If FDEs are linknonce, then use extra
10395 indirection for FDE encoding, output a label for each FDE, and
10396 output an empty label for each function without an FDE.
10397 (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
10398 * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
10399 decls with DECL_ONE_ONLY set, if that macro is defined.
10400 (make_decl_one_only): Don't use DECL_COMMON if we're compiling
10401 for a SUPPORTS_ONE_ONLY target.
10402 * config/darwin-protos.h (darwin_unique_section): Declare.
10403 (darwin_asm_named_section): Likewise.
10404 (darwin_section_type_flags): Likewise.
10405 (darwin_non_lazy_pcrel): Likewise.
10406 (darwin_emit_unwind_label): Likewise.
10407 (darwin_make_decl_one_only): Likewise.
10408 * config/darwin.c (machopic_finish): Get rid of tweak that
10409 eliminate stubs for symbols that are defined.
10410 (darwin_encode_section_info): Don't treat weak functions as defined.
10411 (darwin_make_decl_one_only): Define.
10412 (darwin_asm_named_section): Likewise.
10413 (darwin_section_type_flags): Likewise.
10414 (darwin_unique_section): Likewise.
10415 (darwin_emit_unwind_label): Likewise.
10416 (darwin_non_lazy_pcrel): Likewise.
10417 (darwin_asm_output_dwarf_delta): Difference between two labels is
10418 local only if both labels are local.
10419 * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
10420 (ASM_MAKE_LABEL_LINKONCE): Likewise.
10421 (TARGET_SUPPORTS_HIDDEN): Likewise.
10422 (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
10423 (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
10424 (FRAME_BEGIN_LABEL): Likewise.
10425 (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
10426 (ASM_DECLARE_FUNCTION_NAME): Likewise.
10427 (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
10428 (TARGET_ASM_UNIQUE_SECTION): Define.
10429 (EH_FRAME_SECTION_NAME): Define.
10430 (EH_FRAME_SECTION_ATTR): Likewise.
10431 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
10432 (TARGET_ASM_NAMED_SECTION): Likewise.
10433 (TARGET_SECTION_TYPE_FLAGS): Likewise.
10434 * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
10435 TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
10436 TARGET_ASM_EMIT_UNWIND_LABEL.
10438 2004-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10440 * builtins.c (expand_builtin_mathfn): Add pow10* to the
10441 existing exp10* case.
10442 (expand_builtin): Likewise.
10444 2004-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
10446 * doc/tm.texi (registers) <Values in Registers>: Add
10447 entry for REGMODE_NATURAL_SIZE.
10449 2004-03-12 Richard Henderson <rth@redhat.com>
10452 * target.h (struct gcc_target): Move calls substructure before
10453 booleans. Add split_complex_arg.
10454 * function.c (assign_parms, split_complex_args): Use it.
10455 * calls.c (expand_call): Likewise.
10456 (split_complex_values): Likewise. Check for splittable types
10457 before allocating memory.
10458 (split_complex_types): Likewise.
10459 * system.h (SPLIT_COMPLEX_ARGS): Poison.
10460 * expr.h (SPLIT_COMPLEX_ARGS): Remove.
10461 * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
10462 * config/alpha/alpha.c (alpha_split_complex_arg): New.
10463 (TARGET_SPLIT_COMPLEX_ARG): New.
10464 * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
10465 * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
10466 (rs6000_override_options): Zap it for non-AIX.
10467 (rs6000_function_value): Use targetm.calls.split_complex_arg.
10468 * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
10469 * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
10470 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
10471 * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
10472 SPLIT_COMPLEX_ARGS entry.
10474 2004-03-11 Richard Henderson <rth@redhat.com>
10476 * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
10477 (alpha_lookup_xfloating_lib_func): Use them, return rtx.
10478 (alpha_emit_xfloating_arith): Update to match.
10479 (alpha_emit_xfloating_compare): Likewise.
10480 (alpha_emit_xfloating_cvt): Likewise.
10481 (alpha_emit_xfloating_libcall): Take already built symbol,
10483 * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
10486 2004-03-11 Richard Henderson <rth@redhat.com>
10489 * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
10491 * simplify-rtx.c (simplify_relational_operation): Fix typo.
10493 2004-03-11 Richard Henderson <rth@redhat.com>
10495 PR middle-end/14477
10496 * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
10498 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
10501 * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
10502 defined, pass small BLKmode values in registers in the low-order part.
10504 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
10506 * combine.c (if_then_else_cond): Check for NULL return value of
10507 simplify_gen_subreg.
10509 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
10512 * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
10513 TARGET_SINGLE_FLOAT.
10515 2004-03-11 Steve Ellcey <sje@cup.hp.com>
10517 * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
10518 * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
10519 * config/ia64/ia64.c (ia64_init_libfuncs): New.
10520 (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
10522 2004-03-11 Roger Sayle <roger@eyesopen.com>
10524 * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
10525 -((int)X>>C) where C is an integer constant one bit less than the
10526 size of X into (unsigned)X>>C. Similarly for unsigned->signed.
10527 (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
10529 * simplify-rtx.c (simplify_unary_operation): Also implement the
10530 above transformations at the RTL level.
10532 2004-03-11 Alan Modra <amodra@bigpond.net.au>
10534 * real.c (encode_ibm_extended): Do round low word.
10536 2004-03-11 Ben Elliston <bje@wasabisystems.com>
10538 * config/arm/arm.md (is_xscale): Comment this attribute and move
10539 it a bit further up in the file, closer to related attributes.
10541 2004-03-11 Eric Botcazou <ebotcazou@libertysurf.fr>
10543 * config/host-solaris.c (sol_gt_pch_use_address): Add
10544 missing terminating marker to comment.
10546 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
10548 * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
10549 (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
10550 (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
10551 (*movsf_mips16, *movdf_mips16): Name unnamed patterns. Use
10552 move_operand as source predicate in all cases.
10553 (*movdi_32bit): Renamed from movdi_internal. Remove 'F' constraint.
10554 Test reg_or_0_operand. Use move_operand as source predicate.
10555 (*movdi_64bit): Renamed from movdi_internal2. Test reg_or_0_operand.
10556 (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
10557 (*movsi_internal): Renamed from movsi_internal. Test reg_or_0_operand.
10558 (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
10559 (*movhi_internal): Renamed from movhi_internal. Test reg_or_0_operand.
10560 Use move_operand as source predicate. Remove 'K' constraint.
10561 (*movqi_internal): Likewise movqi_internal.
10562 (*movsf_hardfloat): Renamed from movsf_internal1. Test
10563 reg_or_0_operand. Use move_operand as source predicate.
10564 (*movsf_softfloat): Likewise movsf_internal2.
10565 (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
10566 (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
10567 (*movdf_softfloat): Likewise movdf_internal2.
10568 * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
10569 for DImode if !TARGET_64BIT.
10570 (mips_legitimize_move): Simplify accordingly.
10572 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
10575 * var-tracking.c (struct variable_def): Added field refcount.
10576 (variable_htab_free): Decrease the refcount and delete variable
10577 only if there are no more references.
10578 (unshare_variable): New function.
10579 (vars_copy_1): Increase refcount instead of copying the variable.
10580 (variable_union): Share the variables where possible, unshare
10581 the variables if needed.
10582 (variable_different_p): Return false if var1 and var2 are
10583 the same structure.
10584 (variable_was_changed): Init the refcount of new variable.
10585 (set_frame_base_location): Unshare variable if needed.
10586 (set_variable_part): Init the refcount of new variable.
10587 Unshare the variables if needed.
10588 (delete_variable_part): Unshare the variables if needed.
10589 (emit_notes_for_differences_1): Init the refcount of new variable.
10590 (vt_add_function_parameters): Do not add function parameters to
10591 IN set of ENTRY_BLOCK_PTR because it is unused anyway.
10592 (vt_initialize): Do not add frame_base_decl to IN set of
10593 ENTRY_BLOCK_PTR because it is unused anyway.
10595 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
10597 * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
10598 (vars_copy): Likewise.
10599 (variable_union): Likewise.
10600 (set_variable_part): Likewise.
10601 (delete_variable_part): Likewise.
10603 2004-03-11 Kazu Hirata <kazu@cs.umass.edu>
10605 * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
10606 ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
10607 config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
10608 config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
10609 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
10610 config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
10611 config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
10612 config/pdp11/pdp11.h, config/rs6000/rs6000.c,
10613 config/stormy16/stormy16.c: Fix comment typos and formatting.
10615 2004-03-11 Nathanael Nerode <neroden@gcc.gnu.org>
10617 * configure: Regenerate, since I forgot to while committing Paolo's
10620 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
10623 Move language detection to the top level.
10624 * configure.ac: Remove code to detect languages,
10625 it now lives exclusively in the top level.
10626 * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
10627 top level, renamed to ACX_PROG_GNAT.
10629 2004-03-10 Richard Henderson <rth@redhat.com>
10631 * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
10633 * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
10634 and host_xmake_file fragments.
10635 * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
10636 (gt_pch_restore): Similarly for gt_pch_use_address.
10637 (default_gt_pch_get_address): New.
10638 (mmap_gt_pch_get_address): Split out of gt_pch_save.
10639 (default_gt_pch_use_address): Split out of gt_pch_restore.
10640 (mmap_gt_pch_use_address): Likewise.
10641 * hooks.c (hook_voidp_size_t_null): Remove.
10642 (hook_bool_voidp_size_t_false): Remove.
10643 * hooks.h: Likewise.
10644 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
10645 default_ or mmap_ definitions.
10646 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
10647 * hosthooks.h (struct host_hooks): Update gt_pch_get_address
10648 and gt_pch_use_address.
10649 * config/host-linux.c, config/host-solaris.c: New files.
10650 * config/x-linux, config/x-solaris: New files.
10651 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
10652 Update for changed definition.
10653 (darwin_rs6000_gt_pch_use_address): Likewise.
10654 * doc/hostconfig.texi: Update docs.
10656 2004-03-10 Richard Henderson <rth@redhat.com>
10659 * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
10660 except for pedantic c90 mode.
10662 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
10664 * configure.ac: Bump AC_PREREQ to 2.59.
10665 * configure: Regenerate.
10667 2004-03-10 Uros Bizjak <uros@kss-loka.si>
10669 * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
10670 (exp10_optab, exp2_optab): Define corresponding macros.
10671 * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
10672 * genopinit.c (optabs): Implement exp10_optab and exp2_optab
10673 using exp10?f2 and exp2?f2 patterns.
10674 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
10675 using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
10676 (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
10677 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
10679 * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
10680 exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
10681 exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
10683 2004-03-10 Anthony Green <green@redhat.com>
10685 * doc/invoke.texi (ARM Options): Fix -mpfu typo.
10687 2004-03-10 David Edelsohn <edelsohn@gnu.org>
10689 * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
10690 (TARGET_OS_AIX_CPP_BUILTINS): this. Conditionally define
10692 * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
10693 TARGET_OS_AIX_CPP_BUILTINS.
10694 * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
10695 * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
10696 * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
10697 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
10700 2004-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10702 * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
10704 2004-03-10 David Edelsohn <edelsohn@gnu.org>
10706 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
10707 __LONGDOUBLE128 on AIX.
10709 2004-03-10 Andrew Haley <aph@redhat.com>
10711 PR optimization/14381
10712 * function.c (expand_function_end): Emit a blockage insn before
10713 the epilogue when -fnon-call-exceptions is used.
10715 * except.c (expand_start_all_catch): Make comment more accurate.
10717 2004-03-08 Joel Sherrill <joel@oarcorp.com>
10720 * config/rs6000/t-rtems: Add missing file on branch.
10722 2004-03-10 Ulrich Weigand <uweigand@de.ibm.com>
10724 * dbxout.c (dbxout_symbol_location): Do not output references
10725 to optimized-out constant pool symbols.
10727 2004-03-10 Andreas Schwab <schwab@suse.de>
10729 * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
10732 2004-03-09 James E Wilson <wilson@specifixinc.com>
10734 * alias.c (alias_sets_might_conflict_p): New.
10735 * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
10736 * common.opt (Wstrict-aliasing=): New.
10737 * flags.h (warn_strict_aliasing): Change type to int.
10738 * opts.c (warn_strict_aliasing): Change type to int.
10739 (common_handle_option): Handle OPT_Wstrict_aliasing_.
10740 * tree.h (alias_sets_might_conflict_p): Declare it.
10741 * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
10743 2004-03-10 Roman Zippel <zippel@linux-m68k.org>
10746 * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
10747 (CALL_USED_REGISTERS): Likewise.
10748 (REG_CLASS_CONTENTS): Likewise.
10749 (REG_ALLOC_ORDER): New.
10750 (REGNO_REG_CLASS): Use regno_reg_class.
10751 * config/m68k/m68k.c: Add regno_reg_class array.
10753 2004-03-09 Steve Ellcey <sje@cup.hp.com>
10755 * config/ia64/ia64.md (divsi3): Fix algorithm.
10757 (setf_exp_xf): Remove '*' from name.
10758 * testsuite/gcc.dg/20040309-1.c: New test.
10760 2004-03-09 Ian Lance Taylor <ian@wasabisystems.com>
10762 * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
10763 * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
10764 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
10765 * config/sparc/sparc.c (sparc_aout_select_section): Remove.
10766 (sparc_aout_select_rtx_section): Don't check
10767 SUNOS4_SHARED_LIBRARIES.
10768 * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
10770 2004-03-10 Hans-Peter Nilsson <hp@axis.com>
10773 * doc/md.texi (Pattern Ordering, Dependent Patterns)
10774 (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
10777 2004-03-09 Zack Weinberg <zack@codesourcery.com>
10779 * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
10780 (LIBGCC_SPEC): Update to match.
10782 2004-03-09 Zack Weinberg <zack@codesourcery.com>
10784 * c-decl.c (last_function_parms, last_function_parm_tags)
10785 (last_function_parm_others, current_function_parms)
10786 (current_function_parm_tags, current_function_parm_others):
10788 (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
10790 (grokdeclarator): For function definitions, save the arg-info
10791 block from the declarator in DECL_ARGUMENTS.
10792 (grokparms): Do not write to last_function_parm*. Use ARG_INFO_*
10793 macros to operate on arg-info block. Can assume ARG_INFO_PARMS
10794 contains only PARM_DECLs. Improve diagnostics.
10795 (get_parm_info): Use ARG_INFO_* macros. Improve comments and
10796 diagnostics. Disable some expensive checks if not ENABLE_CHECKING.
10797 (store_parm_decls_newstyle): Take the function to operate on,
10798 and an arg-info block, as arguments; don't get anything from
10799 current_function_* globals.
10800 (store_parm_decls_oldstyle): Likewise.
10801 (store_parm_decls): Pass fndecl and its arg-info block down to
10802 store_parm_decls_newstyle/oldstyle. Send functions with empty
10803 argument lists through store_parm_decls_newstyle to reduce
10805 (pushdecl): Comment on the problems with the call to copy_node.
10806 Clear DECL_ARGUMENTS of the old node after copying it, if it
10807 is an arg-info block instead of a chain of decls.
10808 (start_function): Do not manipulate current_function_parm* or
10809 last_function_parm*.
10811 2004-03-09 Roger Sayle <roger@eyesopen.com>
10812 Andrew Pinski <pinskia@physics.uc.edu>
10814 * ifcvt.c (noce_try_sign_mask): New function to transform
10815 "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
10816 (noce_process_if_block): Call noce_try_sign_mask.
10818 2004-03-09 Andrew Pinski <apinski@apple.com>
10820 * c-typeck.c (tagged_types_tu_compatible_p):
10823 2004-03-09 Roger Sayle <roger@eyesopen.com>
10825 * simplify-rtx.c (simplify_const_relational_operation): New function
10826 renamed from simplify_relational_operation.
10827 (simplify_relational_operation): Change prototype to accept an
10828 additional mode argument. Call simplify_const_relational_operation.
10829 (simplify_gen_relational): Update simplify_relational_operation call.
10830 (simplify_ternary_operation): Update simplify_relational_operation
10831 subroutine call to use simplify_const_relational_operation instead.
10833 * rtl.h (simplify_const_relational_operation): Prototype here.
10834 (simplify_relational_operation): Add addtional mode argument.
10836 * combine.c (combine_simplify_rtx): Update calls to
10837 simplify_relational_operation.
10838 (simplify_set): Likewise.
10839 (gen_binary): Likewise.
10840 * cse.c (fold_rtx): Likewise.
10841 * dojump.c (compare_from_rtx): Likewise.
10842 (do_compare_rtx_and_jump): Likewise.
10843 * integrate.c (subst_constants): Likewise.
10844 * unroll.c (simplify_cmp_and_jump_insns): Likewise.
10846 2004-03-09 Kazu Hirata <kazu@cs.umass.edu>
10848 * config/m32r/m32r.md: Remove all define_peephole's.
10850 2004-03-09 Alan Modra <amodra@bigpond.net.au>
10852 * config/rs6000/rs6000.md: Remove trailing whitespace.
10854 2004-03-08 Eric Christopher <echristo@redhat.com>
10856 * Makefile.in (site.exp): Add libiconv variable definition.
10858 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
10860 * configure: Regenerate for config/accross.m4 correction.
10862 2004-03-08 Joel Sherrill <joel@oarcorp.com>
10865 * config/rs6000/t-rtems: Add missing file on branch.
10867 2004-03-08 Roger Sayle <roger@eyesopen.com>
10869 PR middle-end/14289
10870 * c-typeck.c (c_mark_addressable): A register variable should
10871 be considered global if its not automatic, i.e. TREE_PUBLIC,
10872 TREE_STATIC or DECL_EXTERNAL.
10873 * function.c (put_var_into_stack): Call abort when placing a
10874 hard register into the stack, if x_parm_reg_stack_loc is NULL.
10876 2004-03-08 Ulrich Weigand <uweigand@de.ibm.com>
10878 * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
10879 ("*extendqisi2_short_displ"): Likewise.
10881 2004-03-08 Kazu Hirata <kazu@cs.umass.edu>
10883 * config/pdp11/pdp11.c (comparison_operator_index): Remove.
10884 (comp_operator): Likewise.
10885 * config/pdp11/pdp11-protos.h: Remove corresponding
10888 2004-03-08 Eric Botcazou <ebotcazou@act-europe.fr>
10890 * expr.c (highest_pow2_factor_for_type): Rename into
10891 highest_pow2_factor_for_target. Use DECL_ALIGN instead of
10892 TYPE_ALIGN when the target is a COMPONENT_REF.
10893 (expand_assignment): Ajust call to highest_pow2_factor_for_type.
10895 2004-03-08 Alan Modra <amodra@bigpond.net.au>
10897 * config/rs6000/rs6000.c: Formatting fix.
10898 (legitimate_offset_address_p): Correct offset range check.
10900 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
10901 -msoft-float by -mcpu. Consolidate similar code for MASK_MULTIPLE
10904 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
10906 * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
10908 ("ashrdi3_no_power"): Disable for little endian.
10911 2004-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10913 * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
10916 2004-03-08 Hans-Peter Nilsson <hp@axis.com>
10919 * configure.ac (Target-specific assembler checks) <cris-*-*>: New
10920 case, checking for -no-mul-bug-abort option.
10921 * configure, config.in: Regenerate.
10922 * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
10923 and -mno-mul-bug-workaround.
10924 * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
10925 ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
10926 ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
10927 Ditto. Make attribute "slottable" dependent on TARGET_MUL_BUG.
10928 * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
10929 sure mulu.d is not last on cache-line.
10930 * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
10931 into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
10932 (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
10933 (TARGET_SWITCHES): New options -mmul-bug-workaround and
10934 -mno-mul-bug-workaround.
10935 (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
10936 (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
10937 * config/cris/cris.c (cris_operand_extend_operator): Clarify
10938 relation to MULT in head comment.
10939 (cris_op_str): Abort for MULT.
10940 (cris_print_operand) <case '!'>: New case.
10942 2004-03-08 Alan Modra <amodra@bigpond.net.au>
10945 * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
10946 dw_val_class_vec. Replace use throughout file.
10947 (dw_float_const): Delete.
10948 (dw_vec_const): New.
10949 (dw_val_struct_union): Rename val_float to val_vec. Replace use
10951 (add_AT_vec): Rename from add_AT_float. Add elt_size param.
10952 (same_dw_val_p): Adjust vec comparison. Use memcmp.
10953 (size_of_die): Adjust dw_val_class_vec sizing.
10954 (output_die): Output dw_val_class_vec.
10955 (insert_int, extract_int, insert_float): New functions.
10956 (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
10957 Handle CONST_VECTOR.
10958 (add_location_or_const_value_attribute): Handle CONST_VECTOR.
10960 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
10962 * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
10963 AltiVec abi cannot co-exist.
10965 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
10967 2004-03-07 Jan Hubicka <jh@suse.cz>
10969 * except.c (emit_to_new_bb_before): Break fallthru edges.
10971 2004-03-07 Stephane Carrez <stcarrez@nerim.fr>
10973 * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
10974 ("*lshrsi3"): Also accept an immediate for 68HC12.
10975 ("*ashrsi3_const"): Likewise.
10976 ("*ashrsi3"): Likewise.
10977 ("*ashlsi3_const"): Likewise.
10978 ("*ashlsi3"): Likewise.
10979 ("cmphi_1_hc12"): Compare two hard register by pushing them and
10980 comparing with a pop; don't use a split for that.
10981 ("cmphi split"): Disable compare split for 68HC12.
10983 * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
10984 the status operands if they have side effects.
10986 2004-03-07 Kazu Hirata <kazu@cs.umass.edu>
10988 * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
10990 * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
10991 config/h8300/h8300.h, config/ia64/ia64.h,
10992 config/mcore/mcore.h, config/mmix/mmix.h,
10993 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
10994 config/stormy16/stormy16.h, config/v850/v850.h,
10995 config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
10996 * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
10999 2004-03-07 Roger Sayle <roger@eyesopen.com>
11001 * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
11002 <XOR_EXPR>: Fold x ^ x as zero.
11003 <AND_EXPR>: Fold x & x as x.
11005 2004-03-07 Roger Sayle <roger@eyesopen.com>
11007 * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
11008 "foo++ == const" into "++foo == const+incr".
11010 2004-03-07 Richard Sandiford <rsandifo@redhat.com>
11012 * config/mips/mips.c (mips_in_small_data_p): Return false if
11015 2004-03-06 Stephane Carrez <stcarrez@nerim.fr>
11017 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
11018 the stack register.
11019 (expand_prologue): Don't make an interrupt or a trap handler a far
11021 (m68hc11_initial_elimination_offset): Likewise.
11023 2004-03-06 Richard Henderson <rth@redhat.com>
11025 * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
11027 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
11029 * config/ns32k/ns32k-protos.h: Add a prototype for
11030 ns32k_notice_update_cc.
11031 * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
11032 * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
11033 ns32k_notice_update_cc.
11035 2004-03-06 Ulrich Weigand <uweigand@de.ibm.com>
11037 * config/s390/s390.md ("load_multiple", "*load_multiple_di",
11038 "*load_multiple_si"): Allow only if reload_completed.
11039 ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
11042 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
11044 * config/vax/vax-protos.h: Add a prototype for
11045 vax_notice_update_cc.
11046 * config/vax/vax.c (vax_notice_update_cc): New.
11047 * config/vax/vax.h (NOTICE_UPDATE_CC): Call
11048 vax_notice_update_cc.
11050 2004-03-06 David Edelsohn <edelsohn@gnu.org>
11052 * collect2.c (main): Only export initfunc and finifunc if
11053 LD_INIT_SWITCH not defined.
11054 (scan_prog_file): Only export constructors and destructors if
11055 LD_INIT_SWITCH not defined. Only export symbols not found in
11058 2004-03-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11060 * pa.md (icacheflush): Reorder operands to make match_scratch operand
11062 * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
11063 from calls to gen_icacheflush.
11065 2004-03-06 Richard Henderson <rth@redhat.com>
11067 * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
11068 (TARGET_LONG_DOUBLE_128): New.
11069 (TARGET_SWITCHES): Add long-double-{128,64}.
11070 (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
11071 (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
11072 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
11073 (WIDEST_HARDWARE_FP_SIZE): New.
11074 (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
11075 * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
11076 if TARGET_VAX_FLOAT.
11077 * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
11078 (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
11080 2004-03-06 Richard Henderson <rth@redhat.com>
11082 * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
11083 botched rtx class conversion.
11085 2004-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11087 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
11088 BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
11090 * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
11092 * fold-const.c (fold_mathfn_compare, fold): Likewise.
11094 2004-03-06 Eric Botcazou <ebotcazou@libertysurf.fr>
11097 * config/i386/i386.md (movv2di_internal): Conditionalize on
11098 TARGET_SSE, not TARGET_SSE2.
11100 2004-03-05 Chris Demetriou <cgd@broadcom.com>
11102 * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
11105 2004-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11107 * builtins.c: Consistently use logN not log* in comments.
11109 2004-03-05 Andreas Krebbel <krebbel1@de.ibm.com>
11111 * rtl.h (mem_expr_equal_p): Function prototype added.
11112 * cfgcleanup.c (merge_memattrs): New function.
11113 (flow_find_cross_jump): Call merge_memattrs for matching insns.
11114 * emit-rtl.c (mem_expr_equal_p): New function.
11116 2004-03-05 Ziemowit Laski <zlaski@apple.com>
11118 * objc/objc-act.c (synth_module_prologue): Const-qualify
11119 objc_selector type if using the GNU runtime; fix generated
11120 signatures for objc_msg_lookup and objc_msg_lookup_super
11121 to match what GNU ObjC headers provide; reformat and clean up.
11122 (synth_self_and_ucmd_args): Use previously constructed (and
11123 hence possibly const-qualified) objc_selector type.
11125 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
11127 * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
11129 2004-03-05 Jason Merrill <jason@redhat.com>
11131 * tree.h (TYPE_HASH): Use TYPE_UID.
11132 (TREE_HASH): New macro with old definition of TYPE_HASH.
11133 * tree.c (build_type_attribute_variant): Use iterative_hash_object.
11134 (build_array_type, build_function_type): Likewise.
11135 (build_method_type_directly): Likewise.
11136 (build_offset_type, build_complex_type): Likewise.
11137 (type_hash_list, attribute_hash_list): Likewise. Now static.
11138 * except.c: s/TYPE_HASH/TREE_HASH/.
11140 2004-03-05 Bob Wilson <bob.wilson@acm.org>
11142 * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
11143 (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32). Adjust
11144 __va_ndx by 2 words when referencing an argument on the stack.
11145 (xtensa_va_arg): Handle 16-byte aligned args. Adjust __va_ndx by 2
11146 words when an arg on the stack is first seen.
11148 2004-03-05 Paul Brook <paul@codesourcery.com>
11150 * arm.h (ARM_FLAG_VFP): Remove.
11151 (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
11152 * netbsd-elf.h (ARM_FLAG_VFP): Remove.
11154 2004-03-05 Paul Brook <paul@codesourcery.com>
11156 * function.c (assign_parms): Include pretend alignment offset.
11158 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11160 * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
11161 FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
11163 2004-03-05 Ian Lance Taylor <ian@wasabisystems.com>
11165 * configure.ac: When passing --enable-languages to subdir
11166 configure when host != build, make sure we don't pass an empty
11168 * configure: Regenerate.
11170 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
11173 * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
11176 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
11178 * simplify-rtx.c (simplify_relational_operation): If
11179 flag_wrapv is set, do not move terms between the two
11180 side of a relational operator.
11182 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
11184 * rtlanal.c: Include target.h and output.h
11185 (rtx_cost, address_cost, default_address_cost): Move from...
11186 * cse.c (rtx_cost, address_cost, default_address_cost):
11188 * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
11189 * Makefile.in: Adjust dependencies.
11191 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
11193 * cse.c (cse_end_of_basic_block): Make static.
11194 * local-alloc.c (function_invariant_p): Move to
11196 * loop.c (libcall_other_reg, record_excess_regs):
11198 * reload1.c (function_invariant_p): Moved here
11199 from local-alloc.c, made static.
11200 * rtl.h (cse_end_of_basic_block, function_invariant_p,
11201 libcall_other_reg, record_excess_regs): Remove
11204 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
11206 * config/m32r/m32r.c (signed_comparison_operator): Add a
11207 missing parenthesis.
11209 2004-03-04 Ian Lance Taylor <ian@wasabisystems.com>
11211 * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
11212 going to call mmap again. Read the file into the right place.
11213 Give a fatal error if we have to relocate.
11215 2004-03-04 Bob Wilson <bob.wilson@acm.org>
11217 * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
11218 (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
11220 2004-03-05 Hans-Peter Nilsson <hp@axis.com>
11223 * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
11224 round the same. When rounding, clear bits that would cause a
11225 second rounding in pack_d.
11226 (_fpmul_parts): Ditto. Remove #if 0:d code.
11228 2004-03-04 Ziemowit Laski <zlaski@apple.com>
11230 PR c++/14425, c++/14426
11231 * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
11232 vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
11233 Change C++ definitions to accept a 'const int' argument;
11234 the prototypes already do.
11235 * config/rs6000/rs6000.c (rs6000_common_init_builtins):
11236 Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
11237 v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
11238 v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
11239 v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
11240 v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
11241 end in ..._int; change them to accept an int instead of a char
11242 as the last parameter.
11244 2004-03-04 Phil Edwards <phil@codesourcery.com>
11246 * genmultilib: Change '=' to '-' when translating option names
11247 to directory names.
11249 2004-03-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11251 * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
11252 stack slot for temp used for result of BLKmode but in integral mode.
11254 2004-03-04 Jan Hubicka <jh@suse.cz>
11256 * reload.c (find_reloads): Reorganize if seqeunce to switch.
11258 * cfgrtl.c (rtl_redirect_edge_and_branch): Set the source BB as dirty.
11259 (cfglayout_redirect_edge_and_branch): Set the source BB as dirty.
11261 2004-03-04 Steve Ellcey <sje@cup.hp.com>
11263 * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
11264 * testsuite/gcc.dg/20040303-1.c: New test.
11266 2004-03-04 Steven Bosscher <stevenb@suse.de>
11268 * ppro.md: Rewrite as a DFA pipeline description.
11269 * i386.md: Remove all uses of the ppro_uops attribute.
11270 * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
11271 ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
11272 ix86_sched_reorder, ix86_variable_issue,
11273 struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
11274 TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
11275 (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
11276 (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
11277 * athlon.md (athlon_ssecmp_load): Fix comment
11279 2004-03-04 Stuart Hastings <stuart@apple.com>
11281 * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
11283 2004-03-04 Stuart Hastings <stuart@apple.com>
11285 * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
11286 686, tell Darwin assembler to allow prefetch insns, non-empty def
11287 of SUBTARGET_OPTION_TRANSLATE_TABLE.
11289 2004-03-04 DJ Delorie <dj@redhat.com>
11291 PR optimization/14282
11292 * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
11293 between a call and the assignment of its return value.
11295 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
11297 * config/h8300/h8300.c: Put a comment for every function.
11299 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
11301 * config/h8300/h8300.md: Add comments about peephole2's.
11303 2004-03-04 Steven Bosscher <stevenb@suse.de>
11305 * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
11307 2004-03-04 Jan Hubicka <jh@suse.cz>
11309 * cfgcleanup.c (thread_jump): Update call of cselib_init.
11310 * cselib.c (cselib_record_memory): New static variable.
11311 (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
11312 Give up on memories when asked for.
11313 (cselib_init): Accept new argument.
11314 * cselib.h (cselib_init): Update prototype.
11315 * gcse.c (local_cprop_pass): Update call of cselib_init.
11316 * loop.c (load_mems): Update call of cselib_init.
11317 * postreload.c (reload_cse_regs_1): Update call of cselib_init.
11318 * sched-deps.c (sched_analyze): Update call of cselib_init.
11320 2004-03-04 David Edelsohn <edelsohn@gnu.org>
11323 * config/rs6000/rs6000.c (output_function_profiler): Append @plt
11324 when compiling PIC.
11326 2004-03-04 Josef Zlomek <zlomekj@suse.cz>
11329 * var-tracking.c (track_expr_p): Do not track variables which
11330 should be ignored for debugging purposes.
11332 2004-03-04 Alan Modra <amodra@bigpond.net.au>
11334 * real.c (encode_ibm_extended): Don't bother rounding low double.
11335 * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
11336 when fmt->pnan < fmt->p.
11338 2004-03-04 Eric Christopher <echristo@redhat.com>
11340 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
11341 only range of valid arg registers and fixed_regs.
11343 2004-03-04 Alan Modra <amodra@bigpond.net.au>
11346 * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
11347 (abstf2, abstf2_internal): New define_expand.
11349 2004-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
11351 PR optimization/14235
11352 * expr.c (convert_move): Copy the source to a new pseudo
11353 when converting from a sub-word source to a larger-than-word
11354 register which conflicts with the source.
11356 2004-03-03 Zack Weinberg <zack@codesourcery.com>
11359 * c-decl.c (diagnose_mismatched_decls): Issue an error for two
11360 parameters with the same name, unless one is a forward decl.
11361 Do not issue a redundant-redeclaration warning for forward
11362 decls of parameters.
11364 2004-03-04 David Edelsohn <edelsohn@gnu.org>
11366 * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
11369 2004-03-03 Ian Lance Taylor <ian@wasabisystems.com>
11371 * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
11373 2004-03-04 Alan Modra <amodra@bigpond.net.au>
11375 * target-def.h (TARGET_OPTF): Delete.
11376 * c-opts.c (TARGET_OPTF): Define.
11378 2004-03-04 Jan Hubicka <jh@suse.cz>
11380 * cselib.c (cselib_finish): Fix another miss-application of my previous
11383 2004-03-03 Mike Stump <mrs@apple.com>
11385 Add framework support for darwin.
11387 * c-incpath.c: Include target.h and machmode.h.
11388 (add_path): Use a consistent style for cpp_dir. Initialize
11390 (add_cpp_dir_path): New.
11391 (register_include_chains): Add use of extra_includes callback.
11392 (hook_void_int): Add.
11393 (target_c_incpath): Add.
11394 * c-incpath.h (add_cpp_dir_path): New.
11395 (target_c_incpath_s): Add.
11396 (target_c_incpath): Add.
11397 (C_INCPATH_INIT): Add.
11398 * c-opts.c (c_common_missing_argument,
11399 c_common_handle_option): Add -F argument processing.
11400 * c.opt: Add -F argument processing.
11401 * gcc.c (trad_capable_cpp): Add -F argument processing.
11402 * cppfiles.c (find_file_in_dir): Update to use construct
11404 (search_path_exhausted, cpp_get_path, cpp_get_buffer,
11405 cpp_get_prev): New.
11406 (_cpp_find_file): Use search_path_exhausted.
11407 (make_cpp_dir): Initialize construct to 0.
11408 * cpplib.h (missing_header_cb
11409 cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
11410 (cpp_callbacks): Add missing_header
11411 (cpp_dir): Add construct.
11412 * target-def.h: (TARGET_OPTF): New.
11413 * hooks.c (hook_void_int, hook_void_charptr): Add.
11414 * hooks.h (hook_void_int, hook_void_charptr): Add.
11415 * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
11416 $(MACHMODE_H) dependencies.
11417 * doc/invoke.texi (Darwin Options): Document -F.
11418 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
11419 (TARGET_OPTF): Add.
11420 * fix-header.c (target_c_incpath): Add.
11422 * config/darwin-c.c: Add c-incpath.h include.
11423 (using_frameworks, find_subframework_file,
11424 find_subframework_header, add_system_framework_path,
11425 frameworks_in_use, num_frameworks, max_frameworks,
11426 add_framework, find_framework, struct framework_header,
11427 framework_header_dirs, framework_construct_pathname,
11428 find_subframework_file, add_system_framework_path,
11429 add_framework_path, framework_defaults,
11430 darwin_register_frameworks, find_subframework_header): Add.
11431 * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
11432 (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
11433 (CPP_SPEC): Add __APPLE_CC__ support.
11434 * t-darwin (darwin-c.o): Add c-incpath.h dependency.
11436 2004-03-04 Jan Hubicka <jh@suse.cz>
11438 * cselib.c (cselib_finish): Fix miss-application of my previous
11441 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
11443 * hooks.c (hook_tree_tree_identity): New.
11444 * hooks.h: Add a prototype for hook_tree_tree_identity.
11445 * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
11446 instead of MD_ASM_CLOBBERS.
11447 * system.h (MD_ASM_CLOBBERS): Poison.
11448 * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
11449 (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
11450 * target.h (gcc_target): Add md_asm_clobbers.
11451 * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
11452 (ix86_md_asm_clobbers): New.
11453 * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
11454 * doc/tm.texi (MD_ASM_CLOBBERS): Change to
11455 TARGET_MD_ASM_CLOBBERS.
11457 2004-03-03 Stuart Hastings <stuart@apple.com>
11459 * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
11461 2004-03-03 Eric Botcazou <ebotcazou@libertysurf.fr>
11463 * config/sparc/sparc.c (noov_compare64_op): Fix typo.
11465 * config/sparc/sparc.h (ASM_FLOAT): Delete.
11466 (ASM_DOUBLE): Likewise.
11467 (ASM_LONGDOUBLE): Likewise.
11468 * config/sparc/pbd.h (ASM_INT_OP): Delete.
11470 2004-03-03 Richard Henderson <rth@redhat.com>
11473 * cselib.c (cselib_record_sets): Don't record multiple sets in
11476 2004-03-03 Mostafa Hagog <mustafa@il.ibm.com>
11478 * common.opt: Add description of the new -fgcse-after-reload flag.
11480 * flags.h (flag_gcse_after_reload): Declaration of global variable.
11482 * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
11483 reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
11484 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
11485 get_bb_avail_insn, hash_scan_set_after_reload,
11486 compute_hash_table_after_reload, eliminate_partially_redundant_loads,
11487 gcse_after_reload, get_bb_avail_insn): New functions to implement
11489 (gcse_after_reload_main): New function, the main entry point to
11492 * rtl.h (gcse_after_reload_main): Declaration of the new function.
11494 * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
11496 * toplev.c (flag_gcse_after_reload): Initialization.
11498 * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
11500 * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
11501 PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
11502 the gcse after reload optimization.
11504 * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
11505 GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
11508 * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
11510 2004-03-03 Nicolas Pitre <nico@cam.org>
11512 * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
11513 small negative values.
11515 2004-03-03 Jan Hubicka <jh@suse.cz>
11517 * cselib.c (hash_table): Remove GTY marker.
11518 (reg_values): Turn into array.
11519 (used_regs): Likewise.
11520 (n_used_regs): New static variable.
11521 (reg_values_old): Kill.
11522 (clear_table): Update uses of arrays.
11523 (cselib_lookup): Likewise.
11524 (cselib_record_set): Likewise.
11525 (cselib_init): Likewise.
11526 (cselib_finish): Likewise.
11527 (cselib_udpate_varray_sizes): Kill.
11528 * cselib.h (cselib_update_varray_sizes): Kill.
11530 2004-03-03 Paul Brook <paul@codesourcery.com>
11532 * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
11534 2004-03-03 Jan Hubicka <jh@suse.cz>
11536 * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
11537 Rename from ...; make statistics transparent.
11538 (ggc_alloc_cleared, ggc_realloc_stat): ... these.
11539 (loc_descriptor): New structure.
11540 (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
11542 New static function.
11543 (ggc_record_overhead, dump_statistics): New global function.
11544 * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
11545 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
11546 from ...; accept locations
11547 (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
11548 ggc_realloc, ggc_alloc_typed): ... this one.
11549 from ...; accept locations
11550 * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
11551 ggc_alloc_stat): Rename from ... ; pass locations
11552 * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
11554 (ggc_alloc_stat): Record overehead.
11555 * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
11556 ggc_realloc, ggc_alloc_typed): Turn to macros
11557 (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
11558 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
11559 (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
11560 * langhooks.h (lhd_make_node): Declare.
11561 (LANG_HOOKS_MAKE_TYPE): Default to new function,
11562 * langhooks.c (lhd_make_node): New.
11563 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
11565 (rtx_alloc, swallow_copy_rtx): ... this one.
11566 * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
11567 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
11568 * toplpev.c (finalize): Dump stats.
11569 * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
11570 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
11571 Rename from ... ; pass locators.
11572 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
11573 build?, build_decl): Declare.
11574 * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
11575 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
11577 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
11578 build?, build_decl): New macros.
11579 * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
11580 * statistics.h: New file.
11582 2004-03-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
11583 Richard Sandiford <rsandifo@redhat.com>
11585 * config/mips/mips.h (MASK_FIX_SB1): Bump.
11586 (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
11587 (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
11588 * config/mips/mips.c (mips_output_division): Fill the branch delay
11589 slot with a nop if TARGET_FIX_R4000. Extend R4000 workarounds to
11591 (mips_output_division): Adjust accordingly.
11592 (override_options): Make -march=r4400 imply -mfix-r4400 by default.
11593 * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
11595 2004-03-03 Paolo Bonzini <bonzini@gnu.org>
11597 * alias.c (rtx_equal_for_memref_p): Use predicates
11598 to test rtx classes and new rtx class codes, possibly
11599 splitting conditionals that tested against '<' and 'o'.
11600 * caller-save.c (save_call_clobbered_regs): Likewise.
11601 * combine.c (contains_muldiv, find_split_point, subst,
11602 combine_simplify_rtx, simplify_if_then_else,
11603 simplify_set, simplify_logical, expand_compound_operation,
11604 make_compound_operation, if_then_else_cond, known_cond,
11605 apply_distributive_law, cached_nonzero_bits,
11606 cached_num_sign_bit_copies, simplify_shift_const,
11607 gen_binary, simplify_comparison, update_table_tick,
11608 record_value_for_reg, get_lsat_value_validate): Likewise.
11609 * cse.c (mention_regs, find_best_addr, find_comparison_args,
11610 fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
11612 * emit-rtl.c (copy_insn_1): Likewise.
11613 * expr.c (force_operand): Likewise.
11614 * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
11615 * flow.c (notice_stack_pointer_modification_1,
11616 invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
11617 and_reg_cond, elim_reg_cond): Likewise.
11618 * function.c (update_epilogue_consts): Likewise.
11619 * genattrtab.c (attr_rtx_1): Likewise.
11620 * genopinit.c (gen_insn): Likewise.
11621 * integrate.c (subst_constants): Likewise.
11622 * jump.c (reversed_comparison_code_parts,
11623 reversed_comparison_code, delete_related_insns,
11624 rtx_renumbered_equal_p): Likewise.
11625 * local-alloc.c (block_alloc): Likewise.
11626 * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
11627 canonicalize_condition): Likewise.
11628 * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
11630 * optabs.c (add_equal_node, expand_binop): Likewise.
11631 * predict.c (estimate_probability): Likewise.
11632 * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
11633 * recog.c (validate_replace_rtx_1, comparison_operator,
11634 offsettable_address_p, constrain_operands): Likewise.
11635 * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
11637 * regclass.c (scan_one_insn): Likewise.
11638 * regmove.c (stable_and_no_regs_but_for_p): Likewise.
11639 * regrename.c (kill_autoinc_value): Likewise.
11640 * reload.c (find_reusable_reload, find_reloads,
11641 reg_overlap_mentioned_for_reload_p): Likewise.
11642 * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
11643 * rtl.c (copy_rtx): Likewise.
11644 * rtl.h (CONSTANT_P, INSN_P): Likewise.
11645 * rtlanal.c (commutative_operand_precedence): Likewise.
11646 * sched-deps.c (conditions_mutex_p): Likewise.
11647 * sched-rgn.c (is_cfg_nonregular): Likewise.
11648 * simplify-rtx.c (simplify_gen_binary,
11649 simplify_gen_relational, simplify_replace_rtx,
11650 simplify_unary_operation, simplify_binary_operation,
11651 simplify_ternary_operation, simplify_rtx): Likewise.
11652 * unroll.c (reg_dead_after_loop): Likewise.
11653 * config/alpha/alpha.c (alpha_swapped_comparison_operator,
11654 print_operand): Likewise.
11655 * config/arc/arc.c (proper_comparison_operator): Likewise.
11656 * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
11658 * config/avr/avr.c (_reg_unused_after): Likewise.
11659 * config/frv/frv.c (frv_ifcvt_modify_tests,
11660 frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
11661 * config/i386/i386.c (ix86_comparison_operator,
11662 ix86_carry_flag_operator, fcmov_comparison_operator,
11663 arith_or_logical_operator, print_operand,
11664 ix86_expand_binary_operator, ix86_binary_operator_ok):
11666 * config/i386/i386.md: Likewise.
11667 * config/ia64/ia64.c (not_postinc_memory_operand,
11668 ia64_print_operand, update_set_flags, errata_emit_nops):
11670 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
11671 CONSTRAINT_OK_FOR_S): Likewise.
11672 * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
11673 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
11674 ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
11675 ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
11677 * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
11678 eqne_comparison_operator, signed_comparison_operator):
11680 * config/mips/mips.c (cmp_op, symbolic_expression_p):
11682 * config/mmix/mmix (mmix_foldable_comparison_operator,
11683 mmix_comparison_operator): Likewise.
11684 * config/pa/pa.c (hppa_legitimize_address): Likewise.
11685 * config/rs6000/rs6000.c (stmw_operation,
11686 branch_comparison_operator, trap_comparison_operator,
11687 ccr_bit): Likewise.
11688 * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
11689 * config/s390/s390.c (s390_alc_comparison,
11690 s390_slb_comparison):L Likewise.
11691 * config/sh/sh.c (gen_block_redirect, reg_unused_after):
11693 * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
11694 noov_compare_op, noov_compare64_op, v9_regcmp_op,
11695 emit_hard_tfmode_operation, reg_unused_after)
11696 * doc/md.texi, doc/rtl.texi: Likewise.
11698 * ra-debug.c: Add 2004 to list of copyright years.
11699 * unroll.c: Likewise.
11701 * combine.c (simplify_logical): Remove dummy test,
11702 (apply_distributive_law): Fix typo in comment.
11703 GET_CODE (x) == AND so x is a commutative binary op.
11704 * jump.c (delete_related_insns): simplify loop
11705 condition, move testing of RTX codes inside the loop.
11706 (rtx_renumbered_equal_p): do not use RTX_CODE.
11707 * rtl.c (rtx_class): Declare as enum rtx_class.
11708 * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
11709 Move to RTX_COMM_COMPARE class.
11710 (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
11711 Move to RTX_CONST_OBJ class.
11712 * rtl.h (enum rtx_class): New declaration,
11713 (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
11714 RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
11715 RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
11716 RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
11717 RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
11718 ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
11719 SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
11720 OBJECT_P): New macros.
11721 * config/sparc/sparc.c (noov_compare_op): Remove register
11724 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
11726 * target.h: Remove texi jargons in comments.
11728 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11730 * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
11734 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
11735 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
11737 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
11738 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
11740 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11742 * doc/md.texi (cbranchmode4): New.
11744 2004-03-02 Eric Christopher <echristo@redhat.com>
11746 * config/mips/mips16.S: Change fixsfsi and fixdfsi to
11748 * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
11749 * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
11750 * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
11751 * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
11753 2004-03-02 Richard Henderson <rth@redhat.com>
11755 PR middle-end/11767
11756 * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
11757 * optabs.c (prepare_cmp_insn): Force trapping memories to registers
11758 before the compare, if flag_non_call_exceptions.
11760 2004-03-02 Richard Henderson <rth@redhat.com>
11762 PR middle-end/14327
11763 * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
11764 emitting the label, not after.
11766 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11768 * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
11769 (m68hc11_mov_addr_mode): Likewise.
11770 (m68hc11_override_options): Initialize them based on target.
11771 (register_indirect_p): Allow a MEM for indirect addressing modes and
11772 use flags to control what is allowed.
11773 (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
11774 supported addressing modes.
11775 (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
11776 (go_if_legitimate_address_internal): Likewise.
11777 (m68hc11_indirect_p): Likewise and check the mode.
11778 (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
11780 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11782 * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
11783 (expand_builtin_setjmp_setup): Use
11784 targetm.builtin_setjmp_frame_value instead of
11785 BUILTIN_SETJMP_FRAME_VALUE.
11786 * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
11787 * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
11788 (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
11789 * target.h (gcc_target): Add builtin_setjmp_frame_value.
11790 * targhooks.c (default_builtin_setjmp_frame_value): New.
11791 * targhooks.h: Add a prototype for
11792 default_builtin_setjmp_frame_value.
11793 * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
11794 TARGET_BUILTIN_SETJMP_FRAME_VALUE.
11796 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11798 * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
11799 sequences of moves.
11800 (add peepholes): New peepholes to optimize sequences adding small
11802 (bset peepholes): New peepholes to transform an OR in a bset form
11803 (bclr peepholes): Likewise for bclr form.
11804 (cmp peepholes): New peepholes to avoid register copies when comparing.
11806 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11808 * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
11809 to separate push from moves.
11810 ("*pushdf_internal"): Likewise.
11811 ("*pushsf_internal"): Likewise.
11812 ("*pushsi_internal"): Likewise.
11813 ("movdi_internal"): Use define_insn_and_split; non push operand.
11814 ("movdf_internal"): Likewise.
11815 ("movsf_internal"): Likewise.
11816 ("movsi_internal"): Likewise.
11817 ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
11818 ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
11819 ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
11821 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11823 * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
11824 ("cmphi_z_used", "cmpqi_z_used"): Likewise.
11825 ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
11826 ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
11827 ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
11828 ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
11829 ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
11830 ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
11831 ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
11832 ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
11833 ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
11835 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11837 * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
11838 (SOFT_XY_REGNUM): Define.
11839 (cmp split): Use the above instead of hard coded numbers.
11840 (8-bit op split): No need to check the mode; allow Q_REG.
11841 (ashift split): Adjust the first operand if it uses the SP and we
11842 are pushing the shifted value.
11843 (plus shift split): Fix when a source is in register D+X.
11844 ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
11846 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11848 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
11849 comparing with Z register.
11851 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11853 * cfgloop.h (struct loop_desc): Removed.
11854 (struct loop): Fields simple, desc and has_desc removed.
11855 (simple_loop_p, count_loop_iterations): Declaration removed.
11856 * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
11857 (unmark_altered, blocks_invariant_registers, unmark_altered_insn
11858 blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
11859 invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
11860 simple_loop_exit_p, variable_initial_value, variable_initial_values,
11861 simple_condition_p, simple_increment, count_strange_loop_iterations,
11862 inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
11864 * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
11866 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11868 * genattrtab.c: Don't handle MATCH_INSN.
11869 * genrecog.c: Likewise.
11870 * gensupport.c: Likewise.
11871 * rtl.def (match_insn): Remove.
11872 * doc/md.texi (match_insn, match_insn2): Remove.
11874 2004-03-02 Mark Mitchell <mark@codesourcery.com>
11876 * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
11877 macro results in memory allocation.
11879 2004-03-02 David O'Brien <obrien@FreeBSD.org>
11881 * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
11882 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
11883 %(fbsd_dynamic_linker),
11884 (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
11885 config/i386/freebsd.h
11886 * config/arm/freebsd.h: Ditto.
11887 * config/i386/freebsd.h: Ditto.
11888 * config/i386/freebsd64.h: Ditto.
11889 * config/ia64/freebsd.h: Ditto.
11890 * config/rs6000/sysv4.h: Ditto.
11891 * config/sparc/freebsd.h: Ditto.
11893 2004-03-02 Loren James Rittle <ljrittle@acm.org>
11895 * gcc/doc/install.texi (*-*-freebsd*): Update target information.
11897 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11899 * rtl.def (define_combine): Remove.
11901 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11903 * config/h8300/h8300.md: Tweak formatting.
11905 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11907 * config/h8300/h8300.md (*cmphi_h8300): Rename to
11909 (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
11911 2004-03-01 Mark Mitchell <mark@codesourcery.com>
11914 * gcc.c (process_command): Remove const-qualification from argv.
11917 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11919 * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
11920 pushqi1_h8300hs_advanced. Adjust its caller.
11921 (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
11924 2004-03-02 Nicolas Roche <roche@act-europe.fr>
11926 * Makefile.in (install-libgcc, install-multilib): Pass
11927 mkinstalldirs var to libgcc.mk.
11929 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
11931 * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
11932 * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
11934 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
11936 * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
11937 * config/h8300/h8300.md: Split several peephole2's, each into
11940 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11942 * dominance.c (recount_dominator): Handle postdominators.
11944 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
11946 * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
11947 (NUM_SYMBOL_TYPES): Likewise.
11948 (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
11949 (mips_unspec_address): Declare.
11950 (mips_gotoff_page, mips_gotoff_global): Delete.
11951 * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
11952 * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
11953 (mips_symbolic_constant_p, mips_symbolic_address_p)
11954 (mips_symbol_insns): Handle new symbol types.
11955 (general_symbolic_operand): New predicate.
11956 (mips_unspec_address): Make extern.
11957 (mips_gotoff_page, mips_gotoff_global): Delete.
11958 (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
11959 Handle new symbol types.
11960 * config/mips/mips.md (*lea_high64, *lea64): New patterns.
11961 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
11962 mips_unspec_address directly.
11963 * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
11964 the documentation of -mexplicit-relocs.
11966 2004-03-01 Jeff Law <law@redhat.com>
11968 * fold-const.c (fold): An equality comparison of a non-weak object
11969 against zero has a known result. Similarly an equality comparison
11970 of the address of two non-weak, unaliased symbols has a known result.
11972 * ggc-page.c (struct page_entry): New field PREV.
11973 (ggc_alloc): Update PREV field appropriately.
11974 (sweep_pages): Likewise.
11975 (ggc_free): Likewise. Use PREV field rather than loop to
11976 improve ggc_free performance.
11978 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
11980 * config/mips/mips.c (mips_output_division): Use the division
11981 instruction to fill the delay slot of a zero check.
11982 (mips_idiv_insns): Adjust accordingly.
11984 2004-03-01 Nathanael Nerode <neroden@gcc.gnu.org>
11986 * config.gcc: Create a default tmake_file for linux, and use
11987 it in all but two linux clauses. Comment those two.
11989 2004-03-01 Paolo Bonzini <bonzini@gnu.org>
11991 * combine.c (try_combine): Do not refer to is_replaced.
11992 (gen_lowpart_for_combine): Perverse subregs now have a
11993 more politically correct name.
11994 * cse.c (cse_insn): Likewise.
11995 * jump.c: Fix bogus reference to delete_insn.
11997 2004-02-29 Mark Mitchell <mark@codesourcery.com>
12000 * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
12001 constants as signed values.
12003 PR middle-end/13448
12004 * c-tree.h (readonly_warning): Rename to ...
12005 (readonly_error): ... this.
12006 * c-typeck.c (build_unary_op): Adjust accordingly.
12007 (readonly_warning): Rename to ...
12008 (readonly_error): ... this and issue errors, not warnings.
12009 (build_modify_expr): Call readonly_error, not readonly_warning.
12010 (c_expand_asm_operands): Likewise.
12011 * tree-inline.c (optimize_inline_calls): Do not inline functions
12012 after errors have occurred.
12014 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
12016 * configure.ac: Rearrange some threading code for clarity;
12017 add section comment.
12018 * configure: Regenerate.
12020 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
12022 * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
12024 * doc/cppopts.texi: Fix a typo.
12026 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
12028 * config/i386/i386.md: Fix formatting.
12030 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
12032 * configure.ac: Add some comments delineating sections of code.
12034 * doc/install.texi: Note that libada uses autoconf 2.57 also.
12036 * doc/install.texi: Fix idiot typo in previous commit.
12038 * doc/install.texi: Update for conversion of intl to autoconf 2.57.
12040 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
12042 * config/h8300/h8300.md: Add comments about peephole2's.
12044 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
12046 * config/h8300/h8300.md: Tweak operand numbers of some
12049 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
12051 * config/h8300/h8300.md: Tweak comments about peephole2's.
12053 2004-02-29 Waldek Hebisch <hebisch@math.uni.wroc.pl>
12055 PR middle-end/14203
12056 * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
12057 instead of testing whether DECL_RTL is not NULL.
12059 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
12061 * config/sh/sh.c: Fix formatting.
12063 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
12065 * config/sh/sh.c: Convert to ISO-C.
12067 2004-02-28 Andrew Pinski <pinskia@physics.uc.edu>
12069 * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
12072 * config/darwin.h (machopic_finish): Output stub even if the
12073 symbol is already defined.
12075 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12077 * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
12079 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
12081 * genattr.c (main): Don't define
12082 TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
12083 * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
12084 (DFA_PIPELINE_INTERFACE): Likewise.
12085 * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
12086 (DFA_PIPELINE_INTERFACE): Likewise.
12088 2004-02-28 Richard Sandiford <rsandifo@redhat.com>
12090 * config/mips/mips.md (tstsi, tstdi): Delete.
12092 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12094 * config/mips/mips.c (override_options): Remove an obsolete
12095 duplicate definition of the "e" constraint.
12096 * config/mips/mips.h: Update a comment accordingly.
12098 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12100 * config/mips/mips.md: Complete the unfinished R4000
12101 multiply/shift errata workaround. Improve documentation.
12102 (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
12104 (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
12105 (muldi3, muldi3_internal): Likewise.
12106 (muldi3_internal2): Remove, replacing with...
12107 (muldi3_mult3, muldi3_r4000): ...these new patterns.
12108 (mulsidi3): Take the errata into account.
12109 (mulsidi3_32bit): Remove, replacing with...
12110 (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
12111 (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
12112 (umulsidi3): Take the errata into account.
12113 (umulsidi3_32bit): Remove, replacing with..
12114 (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
12115 (umulsi3_highpart, umulsi3_highpart_internal): Disable if
12117 (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
12118 (smuldi3_highpart, umuldi3_highpart): Likewise.
12119 * doc/invoke.texi: Document the errata workaround.
12121 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12123 * config/mips/mips-protos.h (mips_idiv_insns): Declare.
12124 * config/mips/mips.h (MASK_FIX_SB1): Bump.
12125 (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
12126 (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
12127 * config/mips/mips.c (mips_idiv_insns): New function.
12128 (override_options): Make -march=r4000 imply -mfix-r4000 by default.
12129 (mips_output_division): Add a workaround for the R4000 divide/shift
12131 * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
12132 the length of an "idiv" instruction.
12133 * doc/invoke.texi: Document the new switches.
12135 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
12137 * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
12138 TARGET_SCHED_IS_COSTLY_DEPENDENCE.
12140 2004-02-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12142 PR optimization/14229
12143 * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
12145 2004-02-28 Eric Botcazou <ebotcazou@act-europe.fr>
12147 * fold-const.c (fold): Strip NOPs that change the signedness
12148 for RSHIFT too. Expand comment.
12150 2004-02-27 Ian Lance Taylor <ian@wasabisystems.com>
12152 PR optimization/7871
12153 * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
12154 from or to call insns.
12156 2004-02-27 Eric Botcazou <ebotcazou@libertysurf.fr>
12158 PR optimization/7871
12159 * flow.c (propagate_one_insn): Interpret calls as setting global
12160 registers, not merely clobbering them.
12162 2004-02-27 Dale Johannesen <dalej@apple.com>
12164 * config/darwin.c (machopic_output_possible_stub_label): Remove.
12165 config/darwin-protos.h: Ditto.
12166 config/darwin.h: Remove call to it.
12167 * combine.c (distribute_notes): Do not place a REG_DEAD note
12168 when value is both set and used.
12170 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
12172 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
12174 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
12175 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
12177 2004-02-27 Andrew Pinski <apinski@apple.com>
12179 * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
12180 Speedup common case of the type values being in the same order.
12182 2004-02-27 Steve Ellcey <sje@cup.hp.com>
12184 * config/ia64/ia64.h (no-inline-float-divide): New option.
12185 * config/ia64/ia64.h (no-inline-int-divide): New option.
12186 * config/ia64/ia64.h (no-inline-sqrt): New option.
12187 (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
12188 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
12189 * config/ia64/ia64.c (ia64_override_options): Modify error
12190 checking for inlined division/sqrt.
12192 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
12194 * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
12195 ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
12196 value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
12197 config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
12200 2004-02-27 Paul Brook <paul@codesourcery.com>
12202 * function.c (assign_parms): Don't count pretend args for alignment.
12204 2004-02-27 Richard Henderson <rth@redhat.com>
12206 * passes.c: New file.
12207 * Makefile.in (OBJS-common): Add it.
12208 * diagnostic.c (rtl_dump_and_exit): Move decl ...
12209 * flags.h (rtl_dump_and_exit): ... here.
12210 * output.h (size_directive_output, last_assemble_variable_decl):
12211 Move from toplev.c.
12212 * rtl.h (reg_alloc): Move from toplev.c.
12213 * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
12214 struct dump_file_info, enum dump_file_index, dump_file_tbl,
12215 open_dump_file, close_dump_file, rest_of_decl_compilation,
12216 rest_of_type_compilation, rest_of_handle_final,
12217 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
12218 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
12219 rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
12220 rest_of_handle_regrename, rest_of_handle_reorder_blocks,
12221 rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
12222 rest_of_handle_tracer, rest_of_handle_if_conversion,
12223 rest_of_handle_if_after_combine, rest_of_handle_web,
12224 rest_of_handle_branch_prob,
12225 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
12226 rest_of_handle_addressof, rest_of_handle_sibling_calls,
12227 rest_of_handle_jump_bypass, rest_of_handle_inlining,
12228 rest_of_handle_null_pointer, rest_of_handle_combine,
12229 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
12230 rest_of_handle_gcse, rest_of_handle_loop_optimize,
12231 rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
12232 (decode_d_option): Use enable_rtl_dump_file.
12233 (compile_file, finalize, do_compile): Move profile+combine+graph
12234 cleanup to finish_optimization_passes.
12235 * toplev.h (init_optimization_passes, finish_optimization_passes,
12236 enable_rtl_dump_file): Declare.
12238 2004-02-27 Eric Botcazou <ebotcazou@act-europe.fr>
12239 Roger Sayle <roger@eyesopen.com>
12241 * fold-const.c (fold): Revert 2004-02-25 change. Use the original
12242 operands to build a tree with swapped operands.
12243 * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
12244 'unsignedp' predicate to specify the signedness.
12246 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
12248 * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
12249 expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
12250 params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
12251 comment typos and formatting. Follow spelling conventions.
12253 2004-02-26 Aldy Hernandez <aldyh@redhat.com>
12255 * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
12258 * config/rs6000/spe.md: Delete spe_efsctuiz.
12259 Add spe_fixuns_truncsfsi2.
12260 Add spe_fix_truncsfsi2.
12262 2004-02-26 Eric Christopher <echristo@redhat.com>
12264 * c-lex.c (c_lex_string_translate): New variable.
12265 (lex_string): Use to determine string translation.
12266 * c-pragma.h: Prototype.
12267 * c-parse.in (start_string_translation): New. Set above.
12268 (stop_string_translation): Ditto.
12269 (attribute, attribute_list, asm_def, asm_stmt,
12270 asm_operand): Use above functions.
12271 * cp/parser.c (cp_parser_declaration): Translate strings
12272 unless token is RID_EXTERN. Set c_lex_string_translate
12274 (cp_parser_asm_definition): Only translate argument strings
12276 (cp_parser_asm_operand_list): Ditto.
12277 (cp_parser_attribute_list): Do not translate attribute strings.
12279 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
12281 * stmt.c (expand_start_case_dummy): Remove.
12282 * tree.h: Remove the corresponding prototype.
12284 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
12286 * builtins.c (apply_args_register_offset): Remove.
12287 * tree.h: Remove the corresponding prototype.
12289 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
12291 * stor-layout.c (is_pending_size): Remove.
12292 * tree.h: Remove the corresponding prototype.
12294 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
12296 * recog.c (validate_replace_src): Remove.
12297 * recog.h: Remove the corresponding prototype.
12299 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
12301 * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
12302 MAYBE_REG_PARM_STACK_SPACE.
12303 * function.c: Likewise.
12304 * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
12305 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
12306 * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
12307 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
12309 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
12311 * c-decl.c (c_expand_deferred_function): Remove.
12312 * c-tree.h: Remove the corresponding prototype.
12314 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
12316 * postreload.c (reload_cse_move2add): Generate just a PLUS
12317 instead of an entire SET.
12319 2004-02-26 Jan Hubicka <jh@suse.cz>
12321 * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
12323 * i386.c (override_options): Add support for new CPUs.
12324 * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
12325 (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
12327 * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
12329 2004-02-26 Bob Wilson <bob.wilson@acm.org>
12331 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
12333 2004-02-26 Eric Botcazou <ebotcazou@act-europe.fr>
12335 * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
12336 (sparc_emit_fixunsdi): New prototype.
12337 * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
12338 (sparc_emit_fixunsdi): New function.
12339 * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
12340 operand 1. Pass SFmode to sparc_emit_floatunsdi.
12341 (floatunsdidf2): Use 'general_operand' for operand 1. Pass DFmode
12342 to sparc_emit_floatunsdi.
12343 (fixuns_truncsfdi2): New expander.
12344 (fixuns_truncdfdi2): Likewise.
12346 2004-02-26 Alan Modra <amodra@bigpond.net.au>
12348 * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
12351 2004-02-25 Richard Henderson <rth@redhat.com>
12353 * explow.c (force_reg): Call mark_reg_pointer as appropriate.
12354 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
12355 use (op0-op1) == 0 if op0 is a pointer.
12356 * config/alpha/alpha.md (cmpdi): Use some_operand.
12357 (three comparison combine splits): Remove.
12359 2004-02-25 Richard Henderson <rth@redhat.com>
12362 * c-common.c (handle_alias_attribute): Reject the attribute if
12363 current_function_decl is set.
12365 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
12367 * config.gcc: Add comment describing extra_gcc_objs.
12368 i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
12369 * configure.ac (extra_gcc_objs): New substitution variable.
12370 (host_extra_gcc_objs): Don't substitute.
12371 * configure: Regenerate.
12372 * Makefile.in: Use extra_gcc_objs.
12374 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
12376 * doc/contrib.texi: Add an entry for myself.
12378 2004-02-25 Jan Hubicka <jh@suse.cz>
12380 * basic-block.h (make_eh_edge, break_superblocks): Declare.
12381 * cfgbuild.c (make_eh_edge): Make global.
12382 * cfglayout.c (break_superblocks): Likewise; fix memory leak.
12383 * except.c (build_post_landing_pads, connect_post_landing_pads,
12384 dw2_build_landing_pads, sjlj_emit_function_enter,
12385 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
12386 sjlj_build_landing_pads): Update CFG.
12387 (emit_to_new_bb_before): New function.
12388 (finish_eh_generation): Do not rebuild the CFG.
12390 2004-02-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12392 * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
12393 target_cpu_default defines.
12394 * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
12395 * pa.h (TARGET_DEFAULT): Likewise.
12397 2004-02-25 Eric Botcazou <ebotcazou@act-europe.fr>
12399 * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
12400 comparisons with regard to signedness.
12402 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
12404 * arm.c (thumb_legitimize_address): New function.
12405 * arm-protos.h: Prototype it.
12406 * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
12407 (LEGITIMIZE_ADDRESS): Use it.
12409 2004-02-25 J"orn Rennecke <joern.rennecke@superh.com>
12411 * reload1.c (reload): Only spill eliminable register with multiple
12412 adjacent elimination alternatives if all alternatives fail.
12414 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
12416 * arm.c (arm_legitimate_index_p): For QImode the range of an offset
12417 is -4095...+4095 inclusive.
12419 2004-02-25 Eric Botcazou <ebotcazou@libertysurf.fr>
12421 * doc/install.texi (sparc-sun-solaris2* specific notes): Document
12422 the bootstrap failure with Sun CC 5.4 and 5.5.
12424 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
12426 * cse.c (cse_change_cc_mode_insns): Stop at any instruction
12427 which modifies NEWREG.
12428 (cse_condition_code_reg): Update the mode of CC_REG in
12429 CC_SRC_INSN on our own.
12431 2004-02-24 Michael Matz <matz@suse.de>
12433 * config/i386/i386.c (ix86_comp_type_attributes): Check for
12434 regparm attributes.
12436 2004-02-24 Richard Henderson <rth@redhat.com>
12438 * toplev.c (dump_file_tbl): Rename from dump_file.
12439 * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
12440 cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
12441 config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
12442 config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
12443 loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
12444 ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
12445 toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
12446 s/rtl_dump_file/dump_file/g.
12448 2004-02-24 Aldy Hernandez <aldyh@redhat.com>
12450 * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
12451 (spe_fixuns_truncsfsi2): Delete.
12453 * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
12454 (fixuns_truncsfsi2): Delete.
12456 2004-02-24 Josef Zlomek <zlomekj@suse.cz>
12459 * rtlanal.c (replace_label): Fix replacing labels in constant pool.
12461 2004-02-24 Geoffrey Keating <geoffk@apple.com>
12463 * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
12465 2004-02-24 Jason Merrill <jason@redhat.com>
12467 * tree.c (check_qualified_type): New fn.
12468 (get_qualified_type): Use it. If type already has the desired
12469 quals, just return it.
12470 * tree.h: Declare it.
12472 2004-02-24 Sanjiv Kumar Gupta <sanjivg@noida.hcltech.com>
12474 * target-def.h (TARGET_SCHED_INIT_GLOBAL,
12475 TARGET_SCHED_FINISH_GLOBAL): New macros.
12477 * target.h (md_init_global, md_finish_global): Function
12478 declarations corresponding to new target macros.
12480 * haifa-sched.c (sched_init, sched_finish): Allow target to
12481 call the new schedular hooks.
12483 * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
12484 call to update_life_info.
12486 * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
12487 flag_schedule_insns for SH4.
12489 * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
12490 find_set_regmode_weight, find_insn_regmode_weight,
12491 find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
12492 sh_variable_issue, high_pressure, ready_reorder,
12493 rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
12494 functions used to throttle the insn movement in first
12495 scheduling pass for SH.
12497 * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
12498 TARGET_SCHED_FINISH_GLOBAL.
12500 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
12502 Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
12503 2004-02-05 Alexandre Oliva <aoliva@redhat.com>
12504 * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
12505 symbols in sections named by the user.
12506 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
12507 * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
12508 2004-01-27 Alexandre Oliva <aoliva@redhat.com>
12509 * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
12510 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
12512 2004-01-20 Alexandre Oliva <aoliva@redhat.com>
12513 * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
12514 one more pseudo to further improve code generation.
12515 2004-01-19 Alexandre Oliva <aoliva@redhat.com>
12516 * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
12518 2004-01-16 Alexandre Oliva <aoliva@redhat.com>
12519 * config/frv/frv.c (frv_legitimate_address_p): Added
12520 allow_double_reg_p argument. Adjust all callers. Use it to
12521 decide whether to enable double-register indirect addressing.
12522 (frv_funcdesc_alias_set): Remove.
12523 (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
12524 register. Emit movdi_ldd.
12525 (ldd_address_operand): New.
12526 * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
12527 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12528 (PREDICATE_CODES): Add ldd_address_operand.
12529 * config/frv/frv.md (movdi_ldd): New.
12530 (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
12531 intermediate computations if possible.
12532 (symGOTOFF2reg_i): Fix harmless typo.
12533 2003-12-18 Alexandre Oliva <aoliva@redhat.com>
12534 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
12535 relocated p_vaddr to vaddr type.
12536 * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
12537 * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
12538 (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
12539 MEM, or use a funcdesc alias set. Use regular move instead of
12541 (dbl_memory_one_insn_operand): Recognize function descriptors by
12542 type or by alias set, and don't split them.
12543 * config/frv/frv.md (call, call_value): Never use call_internal
12545 (call_internal, call_value_internal): Never match for FDPIC.
12546 (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
12547 call_value_fdpicsi): Require FDPIC.
12549 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
12550 * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
12551 * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
12552 (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
12553 FDPIC. Compute data base address.
12554 * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
12555 before the other self-specs are processed.
12556 * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
12558 2003-12-15 Alexandre Oliva <aoliva@redhat.com>
12559 * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
12560 inhibit_libc is defined.
12561 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
12562 * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
12564 (__RELOC_POINTER): Define.
12565 (_Unwind_IteratePhdrCallback): Use it.
12566 * config/frv/frv.h (Twrite): Define.
12567 (TRANSFER_FROM_TRAMPOLINE): Use it.
12568 * config/frv/linux.h (INVOKE__main): Undefine.
12569 (Twrite): Override.
12570 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
12571 * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
12572 (-mlibrary-pic): Emphasize that this option generates EABI code.
12573 (-mcpu): Add fr550.
12575 2003-11-30 Alexandre Oliva <aoliva@redhat.com>
12576 * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
12577 and CONSTs in FDPIC mode.
12578 * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
12579 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
12580 * config/frv/frv.c (move_source_operand): Don't accept symbolic
12582 * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
12583 rather than 'i' constraint for the 2-instruction alternative.
12584 (*movsi_2word): New, incorporating existing int_2word_operand splitter.
12585 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
12586 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
12587 EXTRA_CONSTRAINT_FOR_Y.
12588 (EXTRA_CONSTRAINT): Remove handling of 'Y'.
12589 * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
12590 (addsi3): Change 'Y' constraint to 'Q'.
12591 2003-11-27 Richard Sandiford <rsandifo@redhat.com>
12592 * reload.c (CONST_POOL_OK_P): New macro.
12593 (find_reloads): Use it to decide whether a constant can be forced
12595 * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
12596 constant satisfies got12_operand.
12597 (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
12598 (frv_legitimate_address_p): Check for valid unspec offsets using
12599 got12_operand rather than frv_legitimate_fdpic_operand_p.
12600 (frv_legitimate_fdpic_operand_p): Delete.
12601 (frv_emit_movsi): Abort if we try to use the FDPIC register during
12603 (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
12605 * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
12606 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
12607 * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
12608 (frv_fdpic_fptr_operand): Don't declare here.
12609 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
12610 rather than fdpic_got12_operand.
12611 (PREDICATE_CODES): Remove symbolic_operand entry. Add entries for
12612 got12_operand and const_unspec_operand.
12613 * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
12614 (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
12615 (symbolic_operand): Remove.
12616 (const_unspec_operand): New predicate.
12617 * config/frv/frv.md (*movsi_got): Use got12_operand.
12618 (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
12619 2003-11-18 Richard Sandiford <rsandifo@redhat.com>
12620 * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
12621 * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
12622 * config/frv/frv.c (frv_unspec): New structure.
12623 (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
12624 (frv_print_operand_memory_reference): Use frv_const_unspec_p to
12625 validate CONST indices. Use frv_output_const_unspec to print them.
12626 (frv_print_operand): Update call to unspec_got_name. Use
12627 frv_output_const_unspec to print constant unspecs.
12628 (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
12629 Reject UNSPECs otherwise.
12630 (unspec_got_name): Take the relocation number as argument, not an
12632 (frv_output_addr_const_extra): Remove, replacing with...
12633 (frv_output_const_unspec): ...this new function.
12634 (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
12635 (gpr_or_int12_operand): Use fdpic_got12_operand.
12636 (dbl_memory_one_insn_operand): Likewise.
12637 (fdpic_got12_operand): Use frv_const_unspec_p.
12638 (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
12639 are already legitimate. Use frv_small_data_reloc_p when deciding
12640 whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
12641 2003-11-18 Alexandre Oliva <aoliva@redhat.com>
12642 * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
12643 * config/frv/libgcc-frv.ver: ... frv-specific symbols. New file.
12644 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
12645 label, for real this time.
12646 * config/frv/frv.c (frv_local_funcdesc_p): Update to new
12647 representation of visibility.
12648 (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
12650 2003-11-17 Richard Sandiford <rsandifo@redhat.com>
12651 * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
12652 (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
12653 * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
12654 it was explicitly disabled.
12655 (frv_stack_info): There is no need to save the link register in every
12656 frame unless TARGET_LINKED_FP is true.
12657 (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
12658 frame pointer if the stack pointer might change value.
12659 (frv_return_addr_rtx): Check and process "count" argument.
12660 2003-11-14 Richard Sandiford <rsandifo@redhat.com>
12661 * config/frv/frv-protos.h (frv_legitimize_address): Remove.
12662 (frv_find_base_term): Declare.
12663 * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
12664 (FIND_BASE_TERM): Define.
12665 (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
12666 small_data_register_operand, small_data_symbolic_operand. Add
12668 * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
12669 (frv_print_operand_memory_reference, output_move_single): Remove
12670 special handling for unlegitimized sdata addresses.
12671 (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
12672 and symbolic addresses.
12673 (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
12674 (frv_find_base_term): New function.
12675 (int_2word_operand): Check specifically for symbolic address constants.
12676 (pic_register_operand, pic_symbolic_operand): Delete.
12677 (small_data_register_operand, small_data_symbolic_operand): Delete.
12678 (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
12679 Allow UNSPEC_GOT constants if !TARGET_FDPIC.
12680 (move_source_operand): Only accept CONSTs if they're a two-insn
12682 (fdpic_got12_operand): Don't require TARGET_FDPIC.
12683 (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
12684 using gen_symGOTOFF2reg*.
12685 (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
12686 (frv_rtx_costs): Give all MEM addresses a cost of 0. Give MEMs
12687 themselves a cost of 3 insns.
12688 * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
12689 Change predicate to symbolic_operand.
12690 (*movsi_high_got, *movsi_lo_sum_got): Likewise.
12691 (*movsi_lda_sdata): Delete.
12692 (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
12693 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
12694 * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
12696 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
12698 * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
12699 -multilib-library-pic.
12700 (LINK_SPEC): Add -z text for -mfdpic.
12701 * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
12702 * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
12703 * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
12705 (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
12706 FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
12707 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
12708 crtstuff-generated files.
12709 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
12710 * config.gcc: Add frv-*-*linux*.
12711 * config/frv/linux.h, config/frv/t-linux: New.
12712 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
12713 * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
12714 when -mfdpic even if a linker script is explicitly listed.
12715 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
12716 * config/frv/frv.c (frv_override_options): Clear asm_out
12717 unaligned_op for SImode on FDPIC.
12718 (frv_emit_movsi): Use compute_reloc_for_constant to compute the
12719 argument passed to decl_readonly_section.
12720 (frv_assemble_integer): Revert 2003-09-30's change, but make the
12721 whole block run with FDPIC even with -fno-PIC.
12722 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
12723 * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
12724 symbol or label plus offset to memory.
12725 (frv_emit_movsi): Emit GPREL only if -mgprel-ro. Emit 32-bit
12726 GOTOFF and GPREL for LABEL_REF.
12727 * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
12728 -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
12729 (MASK_GPREL_RO, TARGET_GPREL_RO): New.
12730 (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
12731 * doc/invoke.texi: Document them.
12732 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
12733 * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
12734 (frv_splittable_got_operand): Removed.
12735 * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
12736 LO_SUM. Add comments.
12737 (frv_override_options): Moved enabling of FDPIC to
12738 DRIVER_SELF_SPECS. Don't enable MASK_DWORD.
12739 (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
12740 (frv_legitimize_fdpic_address): Don't duplicate logic in
12742 (frv_gen_GPsym2reg): New.
12743 (unspec_got_name): Added gprel.
12744 (frv_expand_fdpic_call): Add support for inlining PLTs.
12745 (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
12746 (gpr_or_int12_operand): Added GPREL12.
12747 (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
12748 (small_data_symbolic_operand): Fail if FDPIC.
12749 (fdpic_splittable_got_operand): Removed.
12750 (fdpic_got12_operand): Added GPREL12.
12751 (frv_emit_movsi): Reorganize to avoid duplication. Emit GPREL
12752 when appropriate. Fix sdata GOTOFF.
12753 (frv_legitimate_constant_p): Require legitimate PIC operand for
12754 FDPIC with pic, but only a legitimate fdpic operand for non-pic.
12755 (frv_assemble_integer): Move FDPIC funcdesc handling out of
12757 (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
12758 frv_assemble_integer fails.
12759 * config/frv/frv.h (DRIVER_SELF_SPECS): New.
12760 (SUBTARGET_DRIVER_SELF_SPECS): New.
12761 (ASM_SPEC): Don't pass -mno-fdpic.
12762 (LINK_SPEC): Pass -melf32frvfd for FDPIC.
12763 (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
12764 (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
12765 -multilib-library-pic.
12766 (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
12767 condexec_si_media_operator, condexec_sf_add_operator and
12768 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
12769 and condexec_sf_unary_operator.
12770 * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
12772 (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
12773 movsi_internal. Give them internal names. movsi_got has type
12775 (fdpic got splitters): Remove.
12776 (symGPREL2reg, symGPREL2reg_hilo): New.
12777 * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
12778 to -mlibrary-pic. Map -multilib-library-pic to it.
12779 * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
12781 2003-09-28 Alexandre Oliva <aoliva@redhat.com>
12782 * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
12783 (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
12784 (frv_cannot_force_const_mem): New function.
12785 (const_small_data_p, plus_small_data_p): Update comments on sdata
12787 (frv_override_options): Set flag_pie for FDPIC too.
12788 (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
12789 call-saved registers on FDPIC.
12790 (frv_stack_info): Don't preserve the PIC register on FDPIC, and
12791 don't force LR to be preserved.
12792 (frv_expand_prologue): Likewise.
12793 (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
12794 (frv_frame_pointer_required): Don't force it just because the
12795 FDPIC register is used.
12796 (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
12797 operand only if !condexec_p.
12798 (frv_legitimize_address): Return the FDPIC-legitimized address.
12799 Don't match small data here on FDPIC.
12800 (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
12801 symbols. Use TRUE/FALSE instead of 1/0.
12802 (frv_local_funcdesc_p): New.
12803 (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
12804 immediates when possible.
12805 (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
12806 (dbl_memory_one_insn_operand): Accept addresses that add a REG and
12808 (frv_emit_movsi): Handle FDPIC before small data. Use GOTOFF and
12809 12-bit immediates when possible.
12810 (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
12811 are not legitimate pic operands.
12812 (frv_in_small_data_p): Re-enable for FDPIC.
12813 * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
12814 (FRV_GLOBAL_P): Removed.
12815 * config/frv/frv.md: Add modes to CONSTs.
12817 (movsi_lo_sum_got): Use separate matches instead of match_dup.
12818 (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
12819 (fdpic splittable operations): Match on flag_pic != 1.
12820 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
12821 * config/frv/frv.c (frv_asm_out_constructor,
12822 frv_asm_out_destructor): Pass to frv_assemble_integer the size in
12824 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
12825 * config/frv/frv.c (frv_assemble_integer): Reject complex
12826 expressions referencing function SYMBOL_REFs.
12827 * config/frv/frv.c (frv_function_symbol_referenced_p): New.
12828 (move_source_operand): Reject CONSTs that reference function
12829 SYMBOL_REFs on FDPIC.
12830 (frv_emit_movsi): If we get such a CONST, break it up.
12831 * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
12832 (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
12833 * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
12835 (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
12836 (frv_trampoline_size): Increase for FDPIC.
12837 * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
12838 (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
12839 * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
12840 Disable use of GOTOFF for now.
12841 (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
12842 Disable use of small data in FDPIC for now.
12843 (frv_asm_output_mi_thunk): Implement for FDPIC.
12844 * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
12845 * config/frv/frv.c (frv_asm_out_constructor): Use
12846 frv_assemble_integer for FDPIC pointers.
12847 (frv_asm_out_destructor): Likewise.
12848 * config/frv/frv.md (ldd): Fix order of operands. Use
12849 address_operand for input.
12850 2003-09-18 DJ Delorie <dj@redhat.com>
12851 * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
12852 (unspec_got_name): Correct typo.
12853 (frv_emit_movsi): Pre-expand splittable GOTs.
12854 (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
12855 * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
12856 (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
12857 * config/frv/t-frv: Add -mfdpic multilibs.
12858 * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
12859 (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
12860 * config/frv/frv.c (frv_override_options): -mfdpic assumes
12861 flag_pic, default to 32-bit pics, require DWORD ops.
12862 (frv_override_options): Add W and Z constraints.
12863 (frv_expand_prologue): No pic prologue for -mfdpic.
12864 (frv_asm_output_mi_thunk): Support -mfdpic (soon).
12865 (frv_print_operand_memory_reference): Handle GOT constants.
12866 (frv_legitimate_address_p): Allow GOT constants.
12867 (frv_legitimize_address): Handle GOT addresses too.
12868 (frv_legitimate_fdpic_operand_p): New.
12869 (frv_legitimize_fdpic_address): New.
12870 (unspec_got_name): New.
12871 (frv_output_addr_const_extra): New.
12872 (frv_expand_fdpic_call): New.
12873 (frv_fdpic_fptr_operand): New.
12874 (gpr_or_int12_operand): Handle GOT operands.
12875 (int_2word_operand): Handle GOT operands.
12876 (fdpic_operand): New.
12877 (fdpic_splittable_got_operand): New.
12878 (fdpic_got12_operand): New.
12879 (frv_emit_movsi): Handle GOT operands.
12880 (frv_assemble_integer): -mfdpic doesn't use rofixups.
12881 (frv_print_operand): Support 'g' code for GOT operands.
12882 * config/frv/frv-protos.h: Add prototypes as needed.
12883 * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
12884 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
12885 R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
12886 R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
12887 R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
12888 R_FRV_GOTOFFLO): New.
12889 (movsi_high_got, movsi_lo_sum_got): New.
12890 (*movsi_pic): Don't use this splitter for -mfdpic.
12891 (addsi3): Allow GOT references also.
12892 (call, call_value): Handle -mfdpic separately.
12893 (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
12894 call_value_fdpicsi): New.
12895 (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
12896 symGOTOFF2reg_i): New.
12897 * config/frv/frv.h (MASK_FDPIC): New.
12898 (TARGET_FDPIC): New.
12899 (TARGET_SWITCHES): Add -mfdpic.
12900 (FDPIC_FPTR_REGNO): New.
12901 (FDPIC_REGNO): New.
12902 (OUR_FDPIC_REG): New.
12903 (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
12905 (REG_CLASS_NAMES): Likewise.
12906 (REG_CLASS_CONTENTS): Likewise.
12907 (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
12908 (EXTRA_CONSTRAINT): Add it here.
12909 (FRV_GLOBAL_P): New.
12910 (OUTPUT_ADDR_CONST_EXTRA): New.
12912 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
12914 * config/sparc/sparc.h: Remove commented-out definitions of
12915 TARGET_EDOM and GEN_ERRNO_RTX.
12917 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
12919 * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
12920 df_analyse with df_analyze.
12922 2004-02-24 Alan Modra <amodra@bigpond.net.au>
12924 * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
12925 beginning of block.
12927 2004-02-23 James E Wilson <wilson@specifixinc.com>
12929 * calls.c (precompute_arguments): Update comment.
12931 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
12933 * et-forest.c: Replace et_occurences with et_occurrences.
12935 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
12937 * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
12940 2004-02-23 Kelley Cook <kcook@gcc.gnu.org>
12942 * config/i386/i386.c: Rename pni to sse3.
12943 * config/i386/i386.h: Likewise.
12944 * config/i386/i386.md: Likewise.
12945 * config/i386/pmmintrin.h: Likewise.
12946 * doc/extend.texi: Likewise.
12947 * doc/invoke.texi: Likewise.
12949 2004-02-23 Zack Weinberg <zack@codesourcery.com>
12950 Kazu Hirata <kazu@cs.umass.edu>
12952 Remove -fwritable-strings.
12953 * c-common.c (fix_string_type): Don't check
12954 flag_writable_strings.
12955 (fix_string_type): Likewise.
12956 * c-opts.c (set_std_c89): Don't initialize
12957 flag_writable_strings.
12958 (set_std_c99): Likewise.
12959 * common.opt (fwritable-strings): Remove.
12960 * flags.h: Remove the external declaration of
12961 flag_writable_strings.
12962 * opts.c (common_handle_option) <OPT_fwritable_strings>:
12964 * toplev.c (flag_writable_strings): Remove.
12965 (f_options): Remove an entry for writable-strings.
12966 * varasm.c (const_hash_1) <STRING_CST>: Don't check
12967 flag_writable_strings.
12968 (compare_constant) <STRING_CST>: Likewise.
12969 (build_constant_desc): Likewise.
12970 * config/darwin.c (machopic_select_section): Likewise.
12971 * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
12972 * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
12973 * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
12974 * config/mips/mips.c (mips_select_section): Likewise.
12975 (mips_encode_section_info): Likewise.
12976 * config/pa/pa.c (pa_select_section): Likewise.
12977 * config/pa/pa.h (TEXT_SPACE_P): Likewise.
12978 * config/v850/v850.c (v850_select_section): Likewise.
12979 * doc/invoke.texi (-fwritable-strings): Remove.
12980 (-fno-const-strings): Don't mention -fwritable-strings.
12981 * doc/trouble.texi: Don't mention -fwritable-strings.
12983 2004-02-23 Nathanael Nerode <neroden@gcc.gnu.org>
12985 * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
12987 2004-02-23 Dale Johannesen <dalej@apple.com>
12989 * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
12990 (movdf_hardfloat64): Ditto.
12991 (movdf_softfloat64): Ditto.
12993 2004-02-23 Fariborz Jahanian <fjahanian@apple.com>
12994 * config/rs6000/rs6000.c (function_arg): call to
12995 rs6000_mixed_function_arg for DFmode moved to allow
12996 normal DFmode incoming register assignment.
12998 2004-02-23 Dale Johannesen <dalej@apple.com>
13000 * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
13001 (movdf_hardfloat64): Ditto.
13003 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
13005 * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
13006 config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
13009 2004-02-23 Andrew Pinski <pinskia@physics.uc.edu>
13012 * c-typeck.c (c_expand_return): Change check for VAR_DECL
13013 to use DECL_P instead.
13015 * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
13016 * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
13018 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
13020 * Makefile.in (opts.o): Depend on target.h.
13021 * opts.c (decode_options): Use targetm.default_short_enums
13022 instead of DEFAULT_SHORT_ENUMS.
13023 * system.h (DEFAULT_SHORT_ENUMS): Poison.
13024 * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
13025 (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
13026 * target.h (gcc_target): Add default_short_enums.
13027 * config/cris/cris.h: Remove a comment about
13028 DEFAULT_SHORT_ENUMS.
13029 * config/ip2k/ip2k.h: Likewise.
13030 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
13031 TARGET_DEFAULT_SHORT_ENUMS. Update the description.
13033 2004-02-23 Eric Botcazou <ebotcazou@libertysurf.fr>
13034 Falk Hueffner <falk@debian.org>
13037 * builtins.c (expand_builtin_va_arg): Emit an informative message
13038 if a trap is generated.
13039 * c-typeck.c (build_function_call): Likewise.
13041 2004-02-22 Jakub Jelinek <jakub@redhat.com>
13043 * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
13045 * libgcov.c: Include sys/stat.h.
13046 * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
13047 * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
13048 * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
13049 * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
13051 2004-02-22 Kazu Hirata <kazu@cs.umass.edu>
13053 * reorg.c: Remove comments about dead ports.
13055 2004-02-22 Christopher Faylor <cgf@redhat.com>
13057 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
13058 extra host object file when targetting cygwin rather than generic
13061 2004-02-22 Josef Zlomek <zlomekj@suse.cz>
13063 Merge from tree-ssa:
13064 2003-11-20 Richard Henderson <rth@redhat.com>
13066 * tree-inline.c (insert_decl_map): New.
13067 (remap_decl, remap_type, remap_block, copy_body_r,
13068 initialize_inlined_parameters, declare_return_variable,
13069 remap_save_expr): Use it.
13071 * function.c (copy_body_r): Add mapping from id->ret_label to
13072 id->ret_label. Revert test for ret_label.
13074 2004-02-22 Jakub Jelinek <jakub@redhat.com>
13076 * genoutput.c (process_template): Strip trailing whitespace in @
13077 templates and issue a warning if there was any.
13079 2004-02-21 Christopher Faylor <cgf@redhat.com>
13081 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
13082 object file when targetting cygwin.
13083 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
13084 overridden by top-level Makefile.
13086 2004-02-21 Roger Sayle <roger@eyesopen.com>
13088 * config/i386/i386.c (standard_80387_constant_p): Also prefer
13089 the x87's load constant instructions when optimizing for size.
13091 2004-02-21 Kazu Hirata <kazu@cs.umass.edu>
13093 * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
13094 * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
13095 * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
13096 * fold-const.c: Likewise.
13097 * simplify-rtx.c: Likewise.
13099 2004-02-21 Alan Modra <amodra@bigpond.net.au>
13101 * combine.c (can_combine_p): Don't ignore SETs marked with
13102 REG_EH_REGION notes.
13103 (try_combine): When attemting to fix unrecognized insns, don't
13104 split a PARALLEL that contains the original i2.
13106 2004-02-21 Ziemowit Laski <zlaski@apple.com>
13108 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
13109 SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
13110 * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
13111 * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
13112 (vector, pixel, bool): #define to __vector, __pixel and __bool.
13113 (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
13115 (__altivec_link_error_invalid_argument): Remove prototype; will use
13116 __builtin_altivec_compiletime_error("vec_*") instead.
13117 (vec_*): Fix/complete set of available operation overloads given the
13118 existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
13119 cv-correctness of pointer arguments; in C, always check for correct
13120 argument types before macro expansion.
13121 * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
13122 defining Darwin/PowerPC-specific '-f[no-]altivec' and
13123 '-W[no-]altivec-long-deprecated' switches.
13124 * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
13125 '__vector', '__pixel' and '__bool' macros using
13126 '__attribute__((altivec(...)))' types.
13127 * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
13128 bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
13129 bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
13131 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
13132 handling '-W[no-]altivec-long-deprecated'.
13133 (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
13134 (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
13135 altivec_expand_dst_builtin): Remove casts from integer literals.
13136 (altivec_expand_builtin): Likewise; handle expansion of new
13137 '__builtin_altivec_compiletime_error' function.
13138 (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
13139 types, and make them distinct from other vector types; register
13140 '__builtin_altivec_compiletime_error' function.
13141 (print_operand): For 'P', print a full target register name instead of
13143 (rs6000_attribute_table): Add "altivec" attribute.
13144 (rs6000_handle_altivec_attribute): New function.
13145 * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
13146 '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
13148 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
13150 (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
13152 2004-02-20 James E Wilson <wilson@specifixinc.com>
13154 * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
13156 (shift_mix4left+2): Delete redundant pattern.
13158 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
13160 * alias.c (OUTGOING_REGNO): Don't define the default.
13161 * builtins.c (OUTGOING_REGNO): Likewise.
13162 (INCOMING_REGNO): Likewise.
13163 (apply_args_register_offset): Always use OUTGOING_REGNO.
13164 * combine.c (OUTGOING_REGNO): Likewise.
13165 * sibcall.c (OUTGOING_REGNO): Likewise.
13166 * defaults.h (INCOMING_REGNO): Provide the default.
13167 (OUTGOING_REGNO): Likewise.
13169 2004-02-21 Jan Hubicka <jh@suse.cz>
13171 * params.def (max-peeled-insns, max-completely-peeled-insns,
13172 max-once-peeled-insns): Set to 400.
13174 2004-02-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13177 * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
13178 are set for parameters before outputing debugging information.
13180 2004-02-20 Falk Hueffner <falk@debian.org>
13183 * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
13186 2004-02-20 Per Bothner <per@bothner.com>
13188 * input.h: Don't #include line-map.h. It may cause link problems
13189 with undefined linemap_line_start when line-map.h is included but
13190 line-map.o is not linked, as currently happens with gengtype on
13191 compilers that don't support inline.
13192 * toplev.c: So we do have to explicitly #include line-map.h here.
13194 2004-02-20 Richard Henderson <rth@redhat.com>
13196 * doc/invoke.texi: Add -Wvariadic-macros.
13198 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
13200 * haifa-sched.c (sched_emit_insn): Remove.
13201 * sched-int.h: Remove the corresponding prototype.
13203 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
13206 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
13207 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
13208 * system.h (DEFAULT_SHORT_ENUMS): Poison.
13209 * config/cris/cris.h: Remove a comment about
13210 DEFAULT_SHORT_ENUMS.
13211 * config/ip2k/ip2k.h: Likewise.
13212 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
13214 2004-02-20 Mohan Embar <gnustuff@thisiscool.com>
13215 Tom Tromey <tromey@redhat.com>
13217 * doc/install.texi: Moved --disable-libgcj and
13218 --with-system-zlib documentation to new section for
13219 Java-specific options.
13220 Added explicit Cross-Compiler-Specific Options subheading.
13221 Added section for Java-specific options.
13223 2004-02-20 Matt Kraai <kraai@alumni.cmu.edu>
13225 * doc/install.texi (Building the Ada compiler): Remove
13228 2004-02-20 James E Wilson <wilson@specifixinc.com>
13230 * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
13232 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
13234 * gcc.c (process_command): Allow translation of the copyright
13235 symbol but not the rest of the copyright message.
13236 * gcov.c (print_version): Likewise. Allow translation of the
13237 message about warranty.
13239 2004-02-20 Hans-Peter Nilsson <hp@axis.com>
13241 * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
13243 ("*andsi_clear"): Tweak constraints to not match postincrement.
13244 Adjust the predicate to exclude a volatile memory reference.
13245 ("*andhi_clear"): Ditto. Rename from "*andhi_clear_signed".
13246 ("*andhi_clear_unsigned"): Remove, non-matching pattern.
13248 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
13250 * move-if-change: Remove.
13251 * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
13252 (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
13253 (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
13254 (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
13255 (s-gtyp-gen, s-iov): Use the top level move-if-change.
13256 * objc/Make-lang.in (objc/objc-parse.y): Likewise.
13258 2004-02-19 James E Wilson <wilson@specifixinc.com>
13260 * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
13261 for operand2. Add condition that requires register_operand operand2
13264 2004-02-19 Richard Sandiford <rsandifo@redhat.com>
13265 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
13267 * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
13268 * config/mips/mips.md: Expand comment above unaligned loads and stores.
13270 2004-02-19 Richard Henderson <rth@redhat.com>
13272 * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
13273 * tree.c (build0, build1, build2, build3, build4): Split out from...
13274 (build): ... here. Call them.
13275 * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
13277 * convert.c (convert_to_integer): Remove extra build argument.
13278 * tree-inline.c (expand_call_inline): Likewise.
13280 2004-02-19 Richard Henderson <rth@redhat.com>
13282 * c-opts.c (warn_variadic_macros): New.
13283 (c_common_handle_option): Set it.
13284 (sanitize_cpp_opts): Copy it to cpp_opts.
13285 * c.opt (Wvariadic-macros): New.
13286 * cpplib.h (struct cpp_options): Add warn_variadic_macros.
13287 * cppinit.c (cpp_create_reader): Initialize it.
13288 * cppmacro.c (parse_params): Check it.
13290 2004-02-19 David Daney <ddaney@avtrex.com>
13292 PR preprocessor/14198
13293 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
13294 builtin_assert ("machine=mips")
13296 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
13298 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
13299 * system.h (DEFAULT_SHORT_ENUMS): Poison.
13300 * config/cris/cris.h: Remove a comment about
13301 DEFAULT_SHORT_ENUMS.
13302 * config/ip2k/ip2k.h: Likewise.
13303 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
13305 2004-02-19 Zack Weinberg <zack@codesourcery.com>
13307 * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
13308 when passing single SFmode quantities in general registers,
13309 put them in the high half.
13311 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
13313 * doc/md.texi (Standard Names): Document additional dependency on
13316 * optabs.c (ftruncify): Remove.
13317 (expand_fix): Manually inline ftruncify above.
13318 (can_fix_p): Add FIXME note.
13320 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
13322 * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
13323 spe_fixuns_truncsfsi2.
13325 * config/rs6000/rs6000.md (fixunssfsi2): Rename to
13328 2004-02-19 Steve Ellcey <sje@cup.hp.com>
13330 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
13331 * testsuite/gcc.dg/20040219-1.c: New test.
13333 2004-02-19 Ulrich Weigand <uweigand@de.ibm.com>
13335 * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
13336 "*subsf3_cconly"): Subtraction is not commutative.
13338 2004-02-19 Zack Weinberg <zack@codesourcery.com>
13340 * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
13341 (sdbout_symbol): If called before sdbout_init, queue DECL for
13343 (sdbout_init): Set sdbout_initialized true, process decls
13344 queued earlier by sdbout_symbol.
13345 (sdbout_finish): Use size_t for index variable.
13347 2004-02-19 Jeff Law <law@redhat.com>
13349 * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
13350 for unordered comparison codes.
13352 2004-02-19 Ian Lance Taylor <ian@wasabisystems.com>
13354 * reload1.c (reload): Correct comment.
13355 (scan_paradoxical_subregs): Remove #if 0 and old comment.
13356 * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
13357 register variables are not used by reload.
13359 2004-02-19 Hans-Peter Nilsson <hp@axis.com>
13362 * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
13363 constraints to not match postincrement. Adjust the predicate to
13364 exclude a volatile memory reference.
13366 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
13368 * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
13370 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
13372 * hooks.c (hook_void_tree_int): Remove.
13373 (hook_void_constcharptr): Likewise.
13374 (hook_int_void_0): Likewise.
13375 * hooks.h: Remove the prototypes for the above three
13377 * targhooks.c (hook_bool_machine_mode_true): Remove.
13378 * targhooks.h: Remove the prototype for
13379 hook_bool_machine_mode_true.
13381 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
13383 * emit-rtl.c (subreg_realpart_p): Remove.
13384 (reorder_insns_with_line_notes): Likewise.
13385 (end_full_sequence): Likewise.
13386 * rtl.h: Remove the prototype for the above functions.
13388 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
13390 * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
13391 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
13392 config/iq2000/iq2000.h, config/m32r/m32r.h,
13393 config/pdp11/pdp11.h, config/sparc/sparc.h,
13394 config/xtensa/xtensa.h: Remove commented-out or useless
13395 definitions of CASE_VECTOR_PC_RELATIVE.
13397 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
13399 * loop.c (all_sets_invariant_p): Remove.
13401 2004-02-19 Eric Botcazou <ebotcazou@libertysurf.fr>
13404 * config/sparc/sparc.h (NPARM_REGS): Delete.
13405 (BASE_RETURN_VALUE_REG): Likewise.
13406 (BASE_OUTGOING_VALUE_REG): Likewise.
13407 (BASE_PASSING_ARG_REG): Likewise.
13408 (BASE_INCOMING_ARG_REG): Likewise.
13409 * config/sparc/sparc.c (sparc_strict_argument_naming): Test
13410 TARGET_ARCH64, not TARGET_V9.
13411 (function_arg_slotno): Dispatch based on the mode class.
13412 Handle vector modes like floating-point modes.
13413 (function_arg_record_value_1): Handle vector types like
13414 floating-point types.
13415 (function_arg_record_value_2): Likewise.
13416 Calculate regno after mode transformation.
13417 (function_arg): Handle vector modes like floating-point modes.
13418 (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
13419 If ARCH64, do not recheck alignment.
13420 (function_arg_pass_by_reference): Reorder the conditions.
13421 (sparc_return_in_memory): Move after function_arg_padding.
13422 Implement calling conventions for vector modes.
13423 (sparc_struct_value_rtx): Move after sparc_return_in_memory.
13424 (function_value): Move scope of 'regbase'.
13425 Implement calling conventions for vector modes.
13426 (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
13427 and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
13428 (sparc_va_arg): Use function_arg_pass_by_reference to test whether
13429 the argument is passed by reference.
13430 (sparc_type_code): Handle vector types.
13432 2004-02-19 Alan Modra <amodra@bigpond.net.au>
13434 * function.c (assign_parms): When building decl_rtl for
13435 SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
13437 2004-02-19 Olivier Hainque <hainque@act-europe.fr>
13439 * expr.c (is_aligning_offset): Check if we are aligning the
13440 expressions's address over BIGGEST_ALIGNMENT in bytes, not
13443 2004-02-18 Matt Austern <austern@apple.com>
13445 * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
13446 LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
13447 (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
13448 defined. Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
13450 * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
13452 2004-02-18 Zack Weinberg <zack@codesourcery.com>
13454 * dwarf2out.c (loclabel_num): Move outside #ifdef
13455 DWARF2_DEBUGGING_INFO and mark with GTY(()).
13456 * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
13458 (ia64_hpux_add_extern_decl): Save the decl, not the name string.
13459 Allocate memory with ggc_alloc. No need to copy anything.
13460 (ia64_hpux_file_end): Update to match.
13462 2004-02-18 Jakub Jelinek <jakub@redhat.com>
13464 * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
13467 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
13469 * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
13470 ("divmodtisi3"): Likewise.
13471 ("udivmoddi4", "udivmodtidi3"): Likewise.
13472 ("divmodsi4", "divmoddisi3"): Likewise.
13473 ("udivmodsi4", "udivmoddisi3"): Likewise.
13474 ("udivsi3", "umodsi3"): Likewise.
13476 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
13478 * config/s390/s390.c (s390_mainpool_start): Delete the main pool
13479 placeholder insn when chunkifying the pool.
13481 2004-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13483 * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
13484 generating PIC code.
13486 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13488 * config/h8300/h8300-protos.h: Add a prototype for
13489 h8300_expand_branch.
13490 * config/h8300/h8300.c (h8300_expand_branch): New.
13491 * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
13492 bgtu, beq, bne): Call h8300_expand_branch().
13494 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13496 * config/h8300/h8300-protos.h: Add prototypes for
13497 h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
13498 * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
13499 (h8300_hard_regno_mode_ok): Likewise.
13500 * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
13501 h8300_hard_regno_nregs().
13502 (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
13504 2004-02-18 Per Bothner <per@bothner.com>
13506 * cpphash.h (struct cpp_buffer): Restore return_at_eof field. This
13507 partly reverts my 2003-10-01 change, because we're back to logically
13508 including <command line> inside the main line.
13509 * cpplex.c (_cpp_get_fresh_line): Check return_at_eof field.
13510 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof of current buffer.
13511 Fixes PR preprocessor/14103.
13513 * cppfiles.c (_cpp_stack_include): When appropriate decrement
13514 line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
13515 (cpp_push_include): Don't need to increment pfile's line field.
13516 * line-map.h (LAST_SOURCE_LINE_LOCATION): Only decrement by 1.
13518 * c-ppoutput.c (print struct): New first_time field.
13519 (init_pp_output): Set print.first_time.
13520 (pp_file_change): Use print.first_time, rather than MAIN_FILE_P,
13521 which is set also for (say) <command line>. Clear print.first_time.
13523 * cppfiles.c (struct _cpp_file): Comment and type for pch field
13524 does not match the code, so fix both.
13525 (should_stack_file): Inline include_pch_p function.
13526 (include_pch_p): Remove pointless function.
13528 * cpphash.h (struct cpp_buffer): Remove unused search_cached field.
13530 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13532 * config/h8300/h8300.md (four define_peephole2's): Use
13533 h8300_regs_ok_for_stm().
13535 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13537 * config/h8300/h8300-protos.h: Update the prototype for
13539 * config/h8300/h8300.c (expand_a_rotate): Remove the first
13541 * config/h8300/h8300.md: Update all callers.
13543 2004-02-18 Jan Hubicka <jh@suse.cz>
13545 * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
13547 (simplify_binary_operation): Deal with logicals on floats.
13549 * i386.md (SSE fabs splitters): Emit new patterns.
13550 (SSE cmov splitters): Likewise.
13551 (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
13552 (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
13554 (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
13555 (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
13557 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13559 * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
13561 (output_a_rotate): Tweak a comment.
13562 * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
13563 (*rotlhi3_1): Change to rotlhi3_1.
13564 (*rotlsi3_1): Change to rotlsi3_1.
13566 2004-02-18 Richard Earnshaw <rearnsha@arm.com>
13569 * arm.c (load_multiple_operation): Don't insist that the source reg
13570 of a post-increment component is the same as the destination.
13571 (store_multiple_operation): Likewise.
13573 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13575 * config/h8300/h8300.md: Move movsf patterns into one section
13578 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13580 * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
13581 loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
13582 xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
13583 config/mips/linux64.h, config/pa/pa-64.h,
13584 config/rs6000/aix51.h, config/rs6000/aix52.h,
13585 config/rs6000/spe.md, config/sparc/linux.h,
13586 config/sparc/linux64.h: Update copyright.
13588 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13590 * config/h8300/h8300.md: Move push patterns into one
13591 section of the file.
13593 2004-02-18 Mark Mitchell <mark@codesourcery.com>
13596 * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
13599 2004-02-18 Paul Brook <paul@codesourcery.com>
13601 * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
13603 2004-02-18 Paul Brook <paul@codesourcery.com>
13606 * dwarf2out.c (loc_descriptor_from_tree): Handle
13607 EXPR_WITH_FILE_LOCATION.
13609 2004-02-18 Jakub Jelinek <jakub@redhat.com>
13611 * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
13612 testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
13613 trailing whitespace from instructions.
13615 2004-02-17 Geoffrey Keating <geoffk@apple.com>
13617 * configure.ac: When generating auto-build.h, pass
13618 --enable-languages to the sub-configure.
13619 Put quotes around ${program_transform_name} when generating
13620 name of as, ld, nm, objdump.
13621 * configure: Regenerate.
13623 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
13625 * Makefile.in (s-check, s-config, s-conditions, s-flags)
13626 (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
13627 (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
13628 (s-preds, s-iov): Do not depend on move-if-change.
13630 2004-02-17 James E Wilson <wilson@specifixinc.com>
13632 * caller-save.c (insert_restore): Pass mem through copy_rtx.
13633 (insert_save): Likewise.
13635 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13637 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
13640 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13642 * config/h8300/h8300.md (*one_complsi2_h8300): Change to
13643 *one_cmplsi2_h8300.
13644 (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
13646 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13648 * config/h8300/h8300-protos.h: Update the prototype of
13650 * config/h8300/h8300.c (fix_bit_operand): Remove the second
13652 * config/h8300/h8300.md: Update all callers.
13654 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13656 * config/h8300/h8300.c (fix_bit_operand): Change the name of
13657 the last argument to "code" from "type".
13659 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13661 * config/h8300/h8300.c: Remove an extern declaration of
13662 rtx_equal_function_value_matters.
13664 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13666 * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
13668 * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
13669 (*iorqi3_1): Change to iorqi3_1.
13670 (*xorqi3_1): Change to xorqi3_1.
13672 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13674 * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
13677 2004-02-17 Jan Hubicka <jh@suse.cz>
13679 * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
13681 2004-02-18 Alan Modra <amodra@bigpond.net.au>
13683 PR optimization/14119
13684 * combine.c (try_combine): When attemting to fix unrecognized insns,
13685 don't delete SETs marked with REG_EH_REGION notes.
13687 2004-02-17 Ulrich Weigand <uweigand@de.ibm.com>
13689 * combine.c (simplify_if_then_else): Do not replace
13690 (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
13693 2004-02017 Steven Bosscher <stevenb@suse.de>
13695 * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
13696 function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
13697 tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
13698 * ada/utils.c: Likewise.
13699 * cp/decl.c: Likewise.
13700 * f/com.c: Likewise.
13701 * java/class.c: Likewise.
13703 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13705 * config/h8300/h8300.md: Fix comment typos.
13707 2004-02-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13709 * config/mips/t-iris6gld: Renamed to ...
13710 * config/mips/t-irix-gld: ... this.
13711 * config.gcc (mips-sgi-irix6*): Reflect this
13712 (mips-sgi-irix5*): Use it with GNU ld.
13714 * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
13716 * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
13717 * config/mips/t-irix-gld: Reflect this.
13718 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
13720 * config/mips/iris5gld.h: New file.
13721 * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
13722 Only use collect2 without gas.
13724 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
13725 Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
13726 (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
13727 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
13729 * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
13730 * config/mips/iris5.h: ... here.
13732 * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
13733 IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
13734 (STARTFILE_SPEC, ENDFILE_SPEC): Define.
13736 * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
13737 using irix_startfile_spec, irix_endfile_spec.
13739 2004-02-16 Gunther Nikl <gni@gecko.de>
13741 * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
13743 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13745 * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
13748 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13750 * cfghooks.c (split_edge): Speed up updating of dominators.
13752 2004-02-17 Mark Mitchell <mark@codesourcery.com>
13755 * c-common.c (flag_abi_version): Remove.
13756 * c-common.h (flag_abi_version): Likewise.
13757 * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
13758 * c.opt (fabi-version): Remove.
13759 * calls.c (expand_call): Always pass a function type to
13760 struct_value_rtx. Use convert_memory_address.
13761 * common.opt (fabi-version): Add it.
13762 * flags.h (flag_abi_version): Likewise.
13763 (abi_version_at_least): New macro.
13764 * opts.c (common_handle_option): Add OPT_fabi_version.
13765 * toplev.c (flag_abi_version): Define it.
13766 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
13768 (ia64_output_mi_thunk): Use it.
13769 (ia64_struct_value_rtx): Likewise.
13771 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13773 * config/h8300/h8300.c (h8300_emit_stack_adjustment):
13774 Don't generate insns by hand.
13776 2004-02-17 Andrew Pinski <pinskia@physics.uc.edu>
13779 * doc/invoke.texi (fabi-version): The default is 2 now.
13781 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13783 * loop-iv.c: New file.
13784 * Makefile.in (loop-iv.o): New.
13785 * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
13786 * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
13787 num_loop_branches): New functions.
13788 * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
13789 iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
13790 find_simple_exit, iv_number_of_iterations, iv_analysis_done,
13791 get_simple_loop_desc, free_simple_loop_desc): Declare.
13792 (simple_loop_desc): New inline function.
13793 (struct rtx_iv, struct niter_desc): New.
13794 * cfgloopmanip.c (loopify): Specify semantics more precisely.
13795 * expr.c (force_operand): Handle subregs of expressions created by
13797 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
13798 parts of the initialization to toplev.c
13799 * loop-unroll.c (loop_exit_at_end_p): New.
13800 (unroll_and_peel_loops): Call iv_analysis_done.
13801 (decide_peel_once_rolling, decide_peel_completely,
13802 decide_unroll_stupid, decide_unroll_constant_iterations,
13803 decide_unroll_runtime_iterations, decide_peel_simple,
13804 peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
13805 unroll_loop_runtime_iterations): Use new simple loop analysis.
13806 * loop-unswitch.c (compare_and_jump_seq): New.
13807 (may_unswitch_on_p): Renamed to ...
13808 (may_unswitch_on): Use new iv analysis.
13809 (reversed_condition): Export.
13810 (unswitch_single_loop, unswitch_loop): Use new iv analysis.
13811 * predict.c (estimate_probability): Use new simple loop analysis.
13812 * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
13813 canon_condition, simplify_using_condition): Declare.
13814 * stor-layout.c (get_mode_bounds): New.
13815 * toplev.c (rest_of_handle_loop2): Some parts of
13816 initialization/finalization moved here from loop-init.c.
13818 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13820 * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
13822 (CALL_USED_REGISTERS): Likewise.
13823 (REG_ALLOC_ORDER): Likewise.
13824 (REG_CLASS) <GENERAL_REGS>: Likewise.
13826 2004-02-16 Geoffrey Keating <geoffk@apple.com>
13828 * doc/md.texi (Insn Canonicalizations): Document left-chaining
13829 in associative operators.
13830 * rtlanal.c (commutative_operand_precedence): Create some new
13831 variables. Prefer a commutative operand on the left, then
13832 binary expressions, then NEG and NOT.
13834 2004-02-16 Matthias Klose <doko@debian.org>
13836 * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
13837 in terms of SHLIB_SOVERSION.
13838 * config/m68k/t-slibgcc-elf-ver: New file.
13839 * config/pa/t-slibgcc-elf-ver: New file.
13840 * config.gcc (m68k-linux, parisc-linux): Use them when not
13841 sjlj exceptions are not configured.
13843 2004-02-16 Eric Botcazou <ebotcazou@libertysurf.fr>
13845 * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
13847 2004-02-16 Zack Weinberg <zack@codesourcery.com>
13849 * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
13851 2004-02-16 Joseph S. Myers <jsm@polyomino.org.uk>
13853 * doc/sourcebuild.texi: Mention backends.html.
13855 2004-02-16 Kazu Hirata <kazu@cs.umass.edu>
13857 * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
13858 line-map.c, line-map.h, var-tracking.c: Fix comment
13861 2004-02-16 Richard Henderson <rth@redhat.com>
13863 * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
13865 * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
13867 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
13869 * config/h8300/h8300.md: Remove unnecessary parallels from
13870 all define_insn and define_split patterns.
13872 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
13874 * config/h8300/h8300.md: Remove explicit (set_attr "cc"
13877 2004-02-15 Bernardo Innocenti <bernie@develer.com>
13879 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
13882 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
13884 * config/ia64/ia64.c, config/mips/mips.c,
13885 config/mmix/mmix-modes.def: Fix comment typos.
13887 2004-02-15 Roger Sayle <roger@eyesopen.com>
13889 * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
13890 (get_directive_line): Remove unused function prototype.
13892 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
13894 * tree-inline.c (copy_body_r): Do not replace ret_label.
13896 2004-02-14 Jan Hubicka <jh@suse.cz>
13898 * i386.c (x86_four_jump_limit): New variable.
13899 (k8_avoid_jump_misspredicts): Rename to ...
13900 (ix86_avoid_jump_misspredicts): .. this one.
13901 (ix86_pad_returns): Break out from ...
13902 (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
13904 * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
13906 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
13908 * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
13911 2004-02-14 Per Bothner <per@bothner.com>
13913 * fix-header.c (line_table): Move local variable in main to global.
13914 * scan.h (line_table): Use it.
13915 * scan-decls.c (scan_decls): Need to call linemap_lookup on token's
13916 line (recently renamed to src_loc) before calling recognized_function.
13918 2004-02-14 Matt Kraai <kraai@alumni.cmu.edu>
13920 * Makefile.in: Fix comment typos.
13922 2004-02-14 Olivier Hainque <hainque@act-europe.fr>
13924 * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
13925 for start_value when it is directly moved into reg, and factorize
13926 the retrieval of GET_MODE (reg).
13928 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
13930 * config/mips/mips-protos.h (mips_load_got_page): Delete.
13931 (mips_load_got_global): Delete.
13932 (mips_gotoff_page): Declare.
13933 * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
13934 (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
13935 UNSPEC_LOAD_GOT pattern rather than a MEM.
13936 (*load_got[sd]i): New patterns.
13937 * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
13938 (mips_load_got_page, mips_load_got_global): Delete.
13939 (mips_gotoff_page): New function.
13940 (override_options): Don't initialize mips_got_alias_set.
13942 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
13944 * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
13945 (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
13946 (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
13947 (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
13948 (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
13949 * config/mips/mips.c: Fix some overly-long lines.
13950 (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
13951 (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
13953 2004-02-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13955 * configure.ac: Search for as, ld below libexec/gcc.
13956 * configure: Regenerate.
13958 2004-02-14 Ben Elliston <bje@wasabisystems.com>
13960 * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
13961 __builtin_arm_setwcx ().
13962 * config/arm/arm.c (arm_expand_builtin): Generate operands
13963 correctly and reverse their order in call to gen_iwmmxt_tmcr ().
13965 2004-02-14 Ben Elliston <bje@wasabisystems.com>
13967 * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
13968 and "wmuluh" to "wmulsm" and "wmulum", respectively.
13969 * config/arm/arm.h (enum arm_builtins): Rename enumerators to
13970 ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
13971 * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
13972 (_mm_mulhi_pu16): Likewise.
13974 2004-02-13 Zack Weinberg <zack@codesourcery.com>
13976 * xcoffout.c (xcoff_assign_fundamental_type_number): Check
13977 DECL_NAME != 0 before dereferencing.
13979 2004-02-13 Ulrich Weigand <uweigand@de.ibm.com>
13981 * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
13982 (s390_output_addr_const_extra): Declare.
13983 (s390_output_pool_entry): Remove FILE * argument.
13984 * config/s390/s390.c (s390_output_symbolic_const): Remove.
13985 (s390_output_addr_const_extra): New function.
13986 (print_operand_address): Call output_addr_const instead of
13987 s390_output_symbolic_const.
13988 (print_operand): Likewise.
13989 (s390_output_pool_entry): Use assemble_integer for symbolic constants.
13990 Remove FILE * argument.
13991 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
13992 * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
13995 2004-02-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13997 * cfgloopanal.c (mark_irreducible_loops): Rewriten.
13998 (struct edge, struct vertex, struct graph): New.
13999 (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
14000 free_graph): New functions.
14002 2004-02-12 Chris Demetriou <cgd@broadcom.com>
14004 * config/mips/mips.md (casesi_internal, casesi_internal_di):
14005 Use ".set macro" to avoid warnings about multi-instruction
14006 macros, since they're intentional.
14008 2004-02-12 Geoffrey Keating <geoffk@apple.com>
14010 * config/darwin.h: Add include guards. Remove old, now incorrect,
14011 comment about STANDARD_EXEC_PREFIX.
14013 * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
14014 $(GCOV_INSTALL_NAME) to install manpages. Remove generic rule
14015 for installing .1 manpages. Add rules for installing cpp
14016 and gcov manpages under their installed names.
14018 2004-02-12 Alexandre Oliva <aoliva@redhat.com>
14020 * configure.ac (gcc_cv_ld): Don't set to LD if target is not
14021 host, but try LD_FOR_TARGET first.
14022 * configure: Rebuilt.
14024 2004-02-12 Zack Weinberg <zack@codesourcery.com>
14026 * dbxout.c: Move declaration of dbxout_type_decl outside
14027 #ifdef DBX_DEBUGGING_INFO.
14028 * c-parse.in: Don't give the asmdef production a type.
14030 2004-02-12 Zack Weinberg <zack@codesourcery.com>
14032 * debug.h (struct gcc_debug_hooks): Add type_decl field.
14033 (debug_nothing_tree_int): Prototype.
14034 (dwarf_debug_hooks): Delete, unused.
14035 * debug.c (do_nothing_debug_hooks): Update.
14036 (debug_nothing_tree_int): New function.
14037 * langhooks.h (struct lang_hooks_for_decls):
14038 Remove builtin_type_decls field.
14039 * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
14040 (LANG_HOOKS_DECLS): Update.
14041 * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
14042 Use debug_hooks->type_decl.
14043 * dbxout.c (preinit_symbols): New static.
14044 (dbx_debug_hooks, xcoff_debug_hooks): Update.
14045 (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
14046 lang_hooks.decls.builtin_type_decls. Do scan preinit_symbols
14047 for symbols to output.
14048 (dbxout_type_decl): New function.
14049 (dbxout_symbol): If called before dbxout_init has run, queue
14050 the symbol for later. Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
14051 to TYPE_DECLs before emitting them.
14052 * xcoffout.c (assign_type_number): Delete.
14053 (xcoff_type_numbers): New static table.
14054 (xcoff_assign_fundamental_type_number): New function.
14055 * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
14056 DBX_OUTPUT_STANDARD_TYPES. Remove unnecessary #ifdefs.
14057 * sdbout.c: Include varray.h.
14058 (deferred_global_decls): New static.
14059 (sdb_debug_hooks): Update.
14060 (sdbout_global_decl): If we can't emit something right now,
14061 remember it in deferred_global_decls.
14062 (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
14063 (sdbout_init): Initialize deferred_global_decls.
14064 * Makefile.in: Update dependencies of sdbout.o.
14065 * dwarf2out.c (dwarf2out_type_decl): New function.
14066 (dwarf2_debug_hooks): Update.
14067 * vmsdbgout.c (vmsdbg_debug_hooks): Update.
14068 * c-decl.c (getdecls): Just return 0.
14069 (check_for_loop_decls): Don't use getdecls.
14070 (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
14071 * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
14073 2004-02-12 Ulrich Weigand <uweigand@de.ibm.com>
14075 * config/s390/s390.c (s390_sched_reorder2): Remove.
14076 (TARGET_SCHED_REORDER2): Do not redefine.
14078 2004-02-12 Zack Weinberg <zack@codesourcery.com>
14080 * c-parse.in (maybe_type_qual): Delete.
14081 (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
14082 (asm_argument): New grammar rules.
14083 (extdef_1): Use asmdef.
14084 (maybeasm): Move down with other asm rules; use simple_asm_expr.
14085 (xexpr): Move up with other expression rules.
14086 (stmt): Use asm_stmt.
14088 * c-typeck.c (build_asm_expr): New function - body mostly
14089 pulled from build_asm_stmt.
14090 (build_asm_stmt): Just handle tacking on the volatile qualifier.
14091 * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
14093 2004-02-12 Richard Sandiford <rsandifo@redhat.com>
14096 * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
14097 (mips_declare_object): Make variadic.
14098 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
14099 mips_output_aligned_decl_common.
14100 * config/mips/mips.c (mips_output_aligned_decl_common): New function.
14101 (mips_declare_object): Make variadic.
14103 2004-02-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14105 * function.c (update_epilogue_consts): Teach about binary operations.
14107 * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
14108 previous MEM_VOLATILE in REF.
14109 * function.c (fixup_var_refs): Save volatile_ok and set to 1.
14110 * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
14112 2004-02-12 Gunther Nikl <gni@gecko.de>
14114 * config.gcc: Restore support for m68k-openbsd.
14116 2004-02-12 Jan Hubicka <jh@suse.cz>
14118 * tree-optimize.c (tree_rest_of_compilation): Do not release
14121 2004-02-11 Matt Kraai <kraai@alumni.cmu.edu>
14123 * doc/install.texi: Fix the spelling of "explicitly".
14125 2004-02-11 Eric Christopher <echristo@redhat.com>
14127 * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
14128 duplicate argument structure of cpp_interpret_string.
14129 * cpphash.h: Move prototype...
14131 * cpplib.c: Fix calls to match new function signature.
14133 2004-02-11 Joseph S. Myers <jsm@polyomino.org.uk>
14136 * cppexp.c (num_binary_op): Don't allow comma operators in #if
14137 constant expressions at all outside C99 mode if pedantic.
14139 2004-02-11 Uros Bizjak <uros@kss-loka.si>
14141 * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
14142 (log10_optab, log2_optab): Define corresponding macros.
14143 * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
14144 * genopinit.c (optabs): Implement log10_optab and log2_optab
14145 using log10?f2 and log2?f2 patterns.
14146 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
14147 using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
14148 (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
14149 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
14151 * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
14152 log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
14153 log2, log2f and log2l built-ins as inline x87 intrinsics.
14155 2004-02-11 Richard Henderson <rth@redhat.com>
14158 * flow.c (insn_dead_p): A clobber of a dead hard register is a
14159 dead insn after reload.
14161 2004-02-11 Ulrich Weigand <uweigand@de.ibm.com>
14163 * tree.h (frame_base_decl): Add GTY marker.
14164 * var-tracking.c (frame_base_decl): Likewise.
14166 2004-02-11 Daniel Berlin <dberlin@dberlin.org>
14168 * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
14170 (add_location_or_const_value_attribute): Use text_section_label,
14171 not TEXT_SECTION_NAME.
14173 2004-02-11 Per Bothner <per@bothner.com>
14175 Represent column numbers using line-map's source_location.
14176 The "next available source_location" is now managed internally by
14177 line-maps.c rather than by clients.
14178 * line-map.h (struct line_map): New field column_bits.
14179 <from_line>: Rename field to start_location.
14180 (struct line_maps): New fields highest_location and max_column_hint.
14181 (linemap_check_files_exited): New declaration.
14182 (linemap_line_start): New declaration.
14183 (linemap_add): Remove from_line parameter; use highest_location field.
14184 (SOURCE_LINE, LAST_SOURCE_LINE): Modify to use column_bits.
14185 (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION): New macros.
14186 (CURRENT_LINE_MAP): Remove macro.
14187 (linemap_position_for_column): New inline function.
14188 * line-map.c (linemap_init): Clear new fields.
14189 (linemap_check_files_exited): New function, extracted from ...
14190 (linemap_free): Use linemap_check_files_exited.
14191 (linemap_add): Remove from_line parameter. Various updates.
14192 (linemap_line_start): New function.
14193 (linemap_lookeup): Update for new field names.
14194 * cpphash.h (struct cpp_reader) <map>: Field removed. Because
14195 linemap_position_for_column may unpredictably change the current map,
14196 it is cleaner and simpler for us to not cache it in cpp_reader.
14197 (struct cpp_buffer): New sysp field.
14198 Changed warned_cplusplus_comments and from_stage3 to bitfields.
14199 * cppinit.c (cpp_read_min_file): pfile->map no longer exists.
14200 * cpplib.c (do_line, do_linemarker, _cpp_do_file_change): Get
14201 current map using linemap_lookup.
14202 (do_linemarker): Also set buffer's sysp field.
14203 (destringize_and_run): No longer need to decrement current line.
14204 * cppfiles.c (_cpp_stack_file): Set sysp from and in buffer.
14205 (search_path_head, open_file_failed): Use buffer's sysp.
14206 (cpp_make_system_header): Get current map using linemap_lookup.
14207 Also set buffer's sysp flag.
14208 * cppmacro.c (_cpp_builtin_macro_text): Likewise use linemap_lookup.
14209 * cpphash.h (CPP_INCREMENT_LINE): New macro.
14210 (struct cpp_buffer): Moved fields saved_cur, saved_rlimit to ...
14211 (struct cpp_reader): ... and adding saved_line_base field.
14212 * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
14213 Update accordingly. Don't adjust line.
14214 (_cpp_scan_out_logical_line): Use CPP_INCREMENT_LINE.
14215 * cpphash.c (CPP_IN_SYSTEM_HEADER): Replaced macro by ...
14216 (cpp_in_system_header): ... new inline function, using buffer's sysp.
14217 * cpperror.c (_cpp_begin_message): Update to use cpp_in_system_header.
14218 * cpplex.c (_cpp_lex_direct): Likewise.
14219 * cppmacro.c (_cpp_builtin_macro_text): Likewise.
14220 * cppmacro.c (_cpp_create_definition): Use buffer's sysp field.
14221 * cpplib.h (struct cpp_token): Rename line field to src_loc.
14222 Remove col field as it is now subsumed by src_loc.
14223 * cpperror.c: Update various field, parameter, and macro names.
14224 (print_location): If col==0, try SOURCE_COLUMN of line.
14225 (cpp_error): Use cur_token's src_loc field, rather than line+col.
14226 * cpplib.c (do_diagnostic): Token's src_loc fields replaces line+col.
14227 * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
14228 _cpp_skip_block_comment): Use CPP_INCREMENT_LINE.
14229 (_cpp_temp_token): Replace cpp_token's line+col fields by src_loc.
14230 (_cpp_get_fresh_line): Don't need to adjust line for missing newline.
14231 (_cpp_lex_direct): Use linemap_position_for_column.
14232 * c-ppoutput.c (maybe_print_line, print_line): Don't take map
14233 parameter. Instead get it from the line_table global. Adjust callers.
14234 (print): Remove map field. Replace line field to src_line.
14235 (init_pp_output, account_for_newlines, maybe_print_line): Adjust.
14236 (cb_line_change): Use SOURCE_COLUMN. Minor optimizations.
14237 (pp_file_change): Use MAIN_FILE_P since we cannot checked print.map.
14238 Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
14239 * cpptrad.c (copy_comment): Rename variable.
14240 * c-lex.c (map): Remove static variable, for same reason we removed
14241 cpp_reader's map field.
14242 (cb_line_change, cb_def_pragma, cb_define, cb_undef): Hence we need
14243 to call linemap_lookup.
14244 (cb_line_change): Token's line field replaced by src_loc.
14245 (fe_file_change): Use MAINFILE_P and LAST_SOURCE_LINE macros.
14246 Don't save new_map.
14248 * cpphash.h, cpperror.c, cpplib.h: Some renames of fileline to
14251 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
14253 * config/rs6000/altivec.md (*movv4si_internal): At least one
14254 operand must be register_operand.
14255 (*movv8hi_internal1): Likewise.
14256 (*movv16qi_internal1): Likewise.
14257 (*movv4sf_internal1): Likewise.
14259 2004-02-10 Aldy Hernandez <aldyh@redhat.com>
14261 * config/rs6000/spe.md ("*movv2si_internal"): Check for register
14263 (movv4hi_internal): Same.
14264 (movv2sf_internal): Same.
14265 (movv1di_internal): Same.
14267 2004-02-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
14269 * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
14270 TARGET_OLDABI consistently.
14271 * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
14272 mips_va_arg,override_options,compute_frame_size,
14273 mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
14274 ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
14275 and TARGET_OLDABI consistently.
14276 * config/mips/mips.md (exception_receiver): Likewise.
14277 * config/mips/linux64.h: Likewise.
14279 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
14281 * gcc/config/rs6000/rs6000.c (rs6000_override_options)
14282 Set AltiVec ABI and vrsave as default for ppc64 linux.
14283 (init_cumulative_args): Post error, if try to return
14284 value in AltiVec register without enable AltiVec.
14285 (function_arg_advance): Ditto for passing arguments.
14287 2004-02-11 Richard Sandiford <rsandifo@redhat.com>
14289 * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
14290 a label before updating its usage count.
14292 2004-02-10 Matt Kraai <kraai@alumni.cmu.edu>
14294 * doc/install.texi: Remove extra cd.
14296 2004-02-10 Ziemowit Laski <zlaski@apple.com>
14298 * c-common.c (vector_size_helper): Remove; call
14299 reconstruct_complex_type() instead.
14300 * tree.c (reconstruct_complex_type): New function
14301 (formerly vector_size_helper() in c-common.c).
14302 (make_vector): Make externally visible.
14303 * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
14305 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
14307 * config/h8300/h8300-protos.h: Add a prototype for
14308 h8300_regs_ok_for_stm.
14309 * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
14310 * config/h8300/h8300.md (stm_h8300s_2_advanced,
14311 stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
14312 stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
14313 stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
14314 ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
14315 ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
14316 ldm_h8300s_4_normal, ldm_h8300s_4): Use
14317 h8300_regs_ok_for_stm().
14319 2004-02-10 Danny Smith <dannysmith@users.sourceforge.net>
14322 * real.c (real_from_string): Look for 'X' as well as 'x' in
14325 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
14327 * config/h8300/h8300.md: Remove an incorrect comment about
14328 peephole2. Add comments.
14330 2004-02-10 Josef Zlomek <zlomekj@suse.cz>
14333 * emit-rtl.c (set_decl_incoming_rtl): New.
14334 * tree.h (set_decl_incoming_rtl): New.
14335 * function.c (assign_parms): Use set_decl_incoming_rtl for setting
14337 * ada/misc.c (adjust_decl_rtl): Likewise.
14339 2004-02-10 Per Bothner <per@bothner.com>
14341 * c-opts.c (c_common_post_options): Don't emit working directory
14342 in cpp output if -P was specified.
14344 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
14347 * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
14348 negate_expr back to the original type.
14350 2004-02-10 Alan Modra <amodra@bigpond.net.au>
14352 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
14355 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
14357 * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
14358 gen_lowpart_SUBREG): Move under the file in which they
14359 are actually declared.
14361 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>
14363 * doc/sourcebuild.texi: Add libada documentation.
14365 * doc/install.texi: Update documentation on Ada build, now
14366 that the GNAT lib and tools are built automatically.
14368 2004-02-10 Richard Sandiford <rsandifo@redhat.com>
14370 * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
14373 2004-02-09 Ziemowit Laski <zlaski@apple.com>
14375 * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
14376 boundaries outside build_component_ref() call (a macro in ObjC++).
14378 2004-02-09 Bob Wilson <bob.wilson@acm.org>
14380 * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
14381 (init_cumulative_args): Likewise.
14382 (a7_overlap_mentioned_p): Delete prototype.
14383 * config/xtensa/xtensa.c (struct machine_function): Replace
14384 incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
14385 Add set_frame_ptr_insn field.
14386 (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
14387 (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
14388 if the operand is an argument in a7. If so, copy a7 to a new pseudo
14389 at the function entry and replace the operand with the pseudo.
14390 (init_cumulative_args): Remove unused arguments. Add new "incoming"
14391 argument and record this flag in CUMULATIVE_ARGS.
14392 (function_arg): Remove result_mode and special-case code to handle
14393 arguments in a7. Instead, set need_a7_copy flag when there is an
14394 incoming argument in a7.
14395 (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
14396 and use the value recorded in cfun->machine->set_frame_ptr_insn.
14397 (xtensa_builtin_saveregs): Check for negative gp_left value. Set
14398 need_a7_copy and vararg_a7 flags. Use move_block_from_reg instead of
14400 (a7_overlap_mentioned_p): Delete.
14401 * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
14402 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
14403 arguments to init_cumulative_args and pass "incoming" flag instead.
14404 (BLOCK_REG_PADDING): Delete.
14405 * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
14406 checks for reload_in_progress and reload_completed. Update calls to
14407 xtensa_copy_incoming_a7.
14408 (ashlsi3): Rename existing insn to ashlsi3_internal. Add expander
14409 to call xtensa_copy_incoming_a7.
14411 2004-02-09 DJ Delorie <dj@redhat.com>
14413 * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
14414 longer modify standard_exec_prefix, standard_bindir_prefix, or
14415 standard_startfile_prefix.
14417 2004-02-09 James E Wilson <wilson@specifixinc.com>
14420 * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
14421 to expand_expr_real call, and pass in alt_rtl as last argument.
14424 * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
14425 * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
14426 * builtins.def (BUILT_IN_EXTEND_POINTER): New.
14427 * except.c (expand_builtin_extend_pointer): New.
14428 * except.h (expand_builtin_extend_pointer): Declare.
14430 2004-02-09 David Edelsohn <edelsohn@gnu.org>
14432 * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
14433 unaligned loads and stores.
14435 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14437 * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
14438 * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
14440 * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
14441 * config/mips/iris5.h: ... here.
14442 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
14444 * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
14445 * config/mips/iris5.h: ... here.
14447 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14449 * configure.ac: Remove default executable files before AC_PROG_CC.
14450 * configure: Regenerate.
14452 2004-02-09 Kazu Hirata <kazu@cs.umass.edu>
14455 * config/h8300/h8300.c (byte_reg): Call abort() if asked to
14456 print a operand other than a register.
14458 2004-02-09 Roger Sayle <roger@eyesopen.com>
14460 * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
14461 tree code rather than call fold_convert, which doesn't specify a
14462 default floating point to integer conversion.
14464 2004-02-08 Bernardo Innocenti <bernie@develer.com>
14466 * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
14467 code to support SGS assembler. Reformat adjacent code where possible.
14468 * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
14470 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
14472 * config/m68k/linux.h, config/m68k/m68k.c,
14473 * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
14474 macros and asm_printf() format strings.
14475 * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
14476 * config/m68k/linux.h: Update copyright.
14477 * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
14479 2004-02-08 Andreas Schwab <schwab@suse.de>
14480 Bernardo Innocenti <bernie@develer.com>
14482 * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
14484 * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
14485 frame pointer register, overridable by OS targets.
14486 * (M68K_REGNAME): Macro to obtain register name for asm output,
14487 eventually replacing %a6 with M68K_FP_REG_NAME.
14488 * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
14489 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
14490 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
14491 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
14492 * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
14494 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
14496 * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
14497 hook_rtx_tree_int_null.
14498 * targhooks.c (default_struct_value_rtx): Remove.
14499 * targhooks.h: Remove the prototype for
14500 default_struct_value_rtx.
14501 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
14502 config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
14503 config/ip2k/ip2k.c, config/iq2000/iq2000.c,
14504 config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
14505 config/mn10300/mn10300.c, config/pdp11/pdp11.c,
14506 config/rs6000/rs6000.c, config/s390/s390.c,
14507 config/stormy16/stormy16.c, config/v850/v850.c,
14508 config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
14509 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
14511 2004-02-08 Joseph S. Myers <jsm@polyomino.org.uk>
14513 * README.Portability: Change "ISO C89" to "ISO C90".
14514 * c-parse.in (primary, initelt): Likewise.
14516 2004-02-08 Richard Sandiford <rsandifo@redhat.com>
14518 * real.c (encode_ibm_extended): Normalize the input value before
14519 converting it to a double. Handle the case where a normal value
14520 rounds to infinity.
14522 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
14524 * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
14526 * cse.c (preferrable): Change to preferable. Update all of its
14528 * genautomata.c (ainsn): Change
14529 first_ainsn_with_given_equialence_num to
14530 first_ainsn_with_given_equivalence_num. Update all of its
14533 2004-02-08 Jan Hubicka <jh@suse.cz>
14535 * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
14537 2004-02-07 David Edelsohn <edelsohn@gnu.org>
14539 * function.c (assign_parms): Fix formatting.
14541 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
14543 * default.h (PROMOTE_PROTOTYPES): Remove.
14544 * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
14545 STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
14546 EXPAND_BUILTIN_SAVEREGS): Poison.
14547 * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
14548 hook_bool_tree_false.
14549 (TARGET_PROMOTE_PROTOTYPES): Likewise.
14550 * target.h: Replace SETUP_INCOMING_VARARGS with
14551 targetm.calls.setup_incoming_varargs().
14552 * targhooks.c (default_promote_function_return): Remove.
14553 (default_promote_prototypes): Likewise.
14554 (default_struct_value_rtx): Always abort().
14555 (default_expand_builtin_saveregs): Always print an error
14557 (default_setup_incoming_varargs): Do nothing.
14558 (default_pretend_outgoing_varargs_named): Don't depend on
14559 SETUP_INCOMING_VARARGS.
14560 * targhooks.h: Remove the prototype for
14561 default_promote_function_return and
14562 default_promote_prototypes.
14564 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
14566 * system.h (SHARED_SECTION_ASM_OP): Poison.
14567 * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
14568 * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
14570 2004-02-07 Zack Weinberg <zack@codesourcery.com>
14573 * c-decl.c (diagnose_mismatched_decls): Only give special
14574 treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
14576 (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
14577 DECL_FUNCTION_CODE when defining a built-in function.
14578 Don't update DECL_ESTIMATED_INSNS.
14579 * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
14581 * tree.h: Delete DECL_ESTIMATED_INSNS.
14582 * tree-inline.c (struct inline_data): Delete inlined_insns field.
14583 (expand_call_inline, optimize_inline_calls): Don't update
14584 DECL_ESTIMATED_INSNS nor inlined_insns.
14585 * cgraphunit.c (cgraph_analyze_function): Don't update
14586 DECL_ESTIMATED_INSNS.
14588 2004-02-07 Zack Weinberg <zack@codesourcery.com>
14590 * c-common.c (shadow_warning): Delete.
14591 * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
14592 * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
14593 * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
14594 * c-parse.in (free_parser_stacks): Delete.
14596 2004-02-07 Nathanael Nerode <neroden@gcc.gnu.org>
14598 * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
14599 config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
14600 Use the top level mkinstalldirs, not the one in the gcc subdir.
14601 * mkinstalldirs: Remove (from the gcc subdir).
14603 2004-02-07 Roger Sayle <roger@eyesopen.com>
14605 PR middle-end/13696
14606 * fold-const.c (fold_convert): New function to provide type
14607 conversion to the middle-end without using convert.
14608 (negate_expr, associate_trees, size_diffop, omit_one_operand,
14609 operand_equal_for_comparison_p, pedantic_omit_one_operand,
14610 invert_truthvalue, optimize_bit_field_compare, range_binop,
14611 decode_field_reference, make_range, build_range_check, unextend,
14612 fold_truthop, extract_muldiv_1, fold_mathfn_compare,
14613 fold_binary_op_with_conditional_arg, fold_inf_compare,
14614 fold_single_bit_test, fold, multiple_of_p): Replace all calls to
14615 convert with calls to fold_convert.
14617 2004-02-07 Jan Hubicka <jh@suse.cz>
14619 * genrecog.c (find_operand): add extra argument stop.
14620 (validate_pattern): Verify that mach_dup is duplicating operand
14621 defined lexically earlier.
14623 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
14625 * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
14626 * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
14627 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
14628 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
14629 config/ia64/ia64.h, config/ip2k/ip2k.h,
14630 config/iq2000/iq2000.h, config/mips/iris5.h,
14631 config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
14632 config/rs6000/aix51.h, config/rs6000/aix52.h,
14633 config/rs6000/darwin.h, config/rs6000/rs6000.h,
14634 config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
14635 config/sparc/linux.h, config/sparc/linux64.h,
14636 config/sparc/netbsd-elf.h, config/sparc/sparc.h,
14637 config/xtensa/xtensa.h: Remove the definitions of
14638 MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
14639 MAX_WCHAR_TYPE_SIZE.
14640 * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
14641 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
14643 2004-02-07 Stephane Carrez <stcarrez@nerim.fr>
14646 * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
14649 2004-02-07 Josef Zlomek <zlomekj@suse.cz>
14651 * var-tracking.c (vt_add_function_parameters): Surround checkings by
14652 #ifdef ENABLE_CHECKING and #endif.
14654 2004-02-07 Roger Sayle <roger@eyesopen.com>
14656 * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
14657 either (-A)-B or (-B)-A, if A or B is easily negated respectively.
14658 (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
14659 integer types and floating point with unsafe_math_optimizations.
14660 Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
14661 Optimize A - B as A + (-B), if B is easily negated.
14663 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
14665 * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
14666 config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
14667 config/m32r/linux.h, config/rs6000/ppc64-fp.c,
14668 config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
14671 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
14673 * c-ppoutput.c, var-tracking.c: Fix comment typos.
14675 2004-02-06 James E Wilson <wilson@specifixinc.com>
14677 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
14678 glibc 2.3 or better.
14680 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14682 * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
14683 to FLOAT_LIB_COMPARE_RETURNS_BOOL.
14685 2004-02-07 Alan Modra <amodra@bigpond.net.au>
14687 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
14688 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
14689 (SHLIB_MKMAP_OPTS): Delete.
14690 (TARGET_LIBGCC2_CFLAGS): Add -specs.
14691 (bispecs): Add rule.
14692 * config/rs6000/libgcc-ppc64.ver: New file.
14693 * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
14694 (__floatdidf, __floatdisf): Optimize multiply.
14695 (__fixunstfdi): New function.
14696 * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
14697 real and imag parts larger than one register.
14698 (function_arg): Correct type of reg used when fp arg split partially
14700 * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
14701 and __MACH__ or __powerpc64__.
14703 2004-02-06 Roger Sayle <roger@eyesopen.com>
14704 Ulrich Weigand <uweigand@de.ibm.com>
14706 * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
14707 of gen_highpart or gen_lowpart when the floating point format is
14708 wider than the result mode.
14710 2004-02-06 Andrew Pinski <pinskia@physics.uc.edu>
14712 * dwarf2out.c (loclabel_num): Move into #ifdef
14713 DWARF2_DEBUGGING_INFO.
14715 2004-02-06 Ziemowit Laski <zlaski@apple.com>
14717 * objc/objc-act.c (build_super_template) the 'class' field of
14718 'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
14719 (get_super_receiver): Likewise.
14721 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14723 * reload1.c (check_eliminable_occurrences): Optimize the reset
14725 (eliminate_regs_in_insn): Likewise.
14727 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
14728 Josef Zlomek <zlomekj@suse.cz>
14730 * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
14731 at the beginning of function, call dwarf2out_var_location for
14732 NOTE_INSN_VAR_LOCATION note.
14733 (struct var_loc_node, struct var_loc_list_def, loclabel_num,
14734 decl_loc_table): New.
14735 (lookup_decl_loc): New function.
14736 (add_var_loc_to_decl): New function.
14737 (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
14738 only if can_use_fbreg.
14739 (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
14741 (loc_descriptor): Likewise. Process VAR_LOCATION.
14742 (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
14743 (loc_descriptor_from_tree): Call mem_loc_descriptor with
14744 can_use_fbreg == true.
14745 (add_location_or_const_value_attribute): Added parameter enum
14746 dwarf_attribute attr, generate attribute ATTR. Create the location list.
14747 (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
14748 (gen_formal_parameter_die): Call add_location_or_const_value_attribute
14749 with attr == DW_AT_location.
14750 (gen_subprogram_die): Generate the location list for DW_AT_frame_base
14751 if frame_base_decl is defined and has a location list.
14752 (gen_variable_die): Call add_location_or_const_value_attribute with
14753 attr == DW_AT_location.
14754 (dwarf2out_var_location): New function.
14755 (dwarf2out_begin_function): New function.
14756 (dwarf2out_init): Create decl_loc_table.
14758 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
14760 * loop.c (force_movables): Transitively increase the priorities of
14761 all insns forces by an insn, not just the first one.
14763 2004-02-06 Josef Zlomek <zlomekj@suse.cz>
14764 Daniel Berlin <dberlin@dberlin.org>
14766 Josef Zlomek <zlomekj@suse.cz>
14767 * Makefile.in (var-tracking.o): New.
14768 * common.opt (fvar-tracking): New.
14769 * flags.h (flag_var_tracking): New.
14770 * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
14771 * opts.c (common_handle_option): Add OPT_fvar_tracking.
14772 * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
14773 * rtl.c (note_insn_name): Likewise.
14774 * rtl.def (VAR_LOCATION): New.
14775 * rtl.h (NOTE_VAR_LOCATION): New.
14776 (NOTE_VAR_LOCATION_DECL): New.
14777 (NOTE_VAR_LOCATION_LOC): New.
14778 (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
14779 (variable_tracking_main): New exported function.
14780 * timevar.def (TV_VAR_TRACKING): New.
14781 * toplev.c (enum dump_file_index): Added DFI_vartrack.
14782 (dump_file): "vartrack" was added (-dV).
14783 (flag_var_tracking): New.
14784 (f_options): "var-tracking" was added.
14785 (rest_of_handle_variable_tracking): New function.
14786 (rest_of_compilation): Run variable tracking.
14787 (process_options): If user has not specified flag_var_tracking set it
14788 according to optimize, debug_info_level and debug_hooks.
14789 * tree.h (frame_base_decl): New.
14790 * var-tracking.c: New file.
14791 * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
14792 (ia64_override_options): Set flags to run variable tracking in machine
14793 dependent reorg instead of toplev.c.
14794 (ia64_reorg): Run variable tracking if wanted.
14795 * doc/invoke.texi: Mention variable tracking in -dV,
14796 add and -fvar-tracking.
14797 * doc/passes.texi: Added variable tracking pass.
14799 Daniel Berlin <dberlin@dberlin.org>
14800 * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
14801 * dbxout.c (dbx_debug_hooks): Likewise.
14802 (xcoff_debug): Likewise.
14803 * debug.c (do_nothing_debug_hooks): Likewise.
14804 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
14805 * dwarfout.c (dwarf_debug_hooks): Likewise.
14806 * sdbout.c (sdb_debug_hooks): Likewise.
14807 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14808 * final.c (final_scan_insn): Call var_location debug hook for each
14809 NOTE_INSN_VAR_LOCATION.
14811 2004-02-06 Jan Hubicka <jh@suse.cz>
14813 * flow.c (update_life_info): Allocate reg_deaths when called from
14815 (attempt_auto_inc): Update life ranges accordingly.
14817 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
14820 * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
14822 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
14824 * cfganal.c (flow_call_edges_add): Never split a libcall block.
14826 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
14828 * dwarf2out.c (output_loc_list): Don't use deltas if we have
14829 a separate line info table in use.
14830 Use the correct size for terminators.
14831 (output_die): Use offset, not delta.
14833 2004-02-06 H.J. Lu <hongjiu.lu@intel.com>
14835 * doc/invoke.texi: Remove the pni option from -mfpmath=.
14837 2004-02-06 Jan Hubicka <jh@suse.cz>
14839 * recog.c (split_all_insns): Do not update reg info.
14840 * regrename.c (regrename_optimize): Likewise.
14841 * toplev.c (rest_of_handle_reorder_blocks): Likewise.
14842 * flow.c (struct propagate_block_info): Add insn_num field.
14843 (reg_deaths): New array.
14844 (life_analysis): Free reg_deaths info.
14845 (allocate_reg_life_data): Allocate reg_deaths array.
14846 (propagate_one_insn): Use new array.
14847 (init_propagate_block): Initialize it.
14848 (free_propagate_block_info): Finish compuation of
14850 (attempt_auto_inc): Sanity check that REG_INFO is not
14851 computed at same time.
14852 (mark_used_regs): Update new array.
14854 * reg-stack.c (subst_stack_regs): Unshare clobbers before
14857 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14859 * config/s390/s390.md (*extendsiqi2_short_displ): Change to
14860 *extendqisi2_short_displ.
14862 2004-02-06 Alan Modra <amodra@bigpond.net.au>
14864 * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
14865 * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
14866 (emit_library_call_value_1): Likewise pass nargs.
14867 * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
14868 * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
14869 * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
14870 parameter instead of scanning TYPE_ARGS_TYPES to count args.
14871 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
14873 * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
14874 (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
14875 (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
14876 * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
14877 INIT_CUMULATIVE_ARGS.
14878 * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
14879 * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
14880 config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
14881 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
14882 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
14883 config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
14884 config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
14885 config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
14886 config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
14887 config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
14888 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
14889 config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
14891 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14893 * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
14896 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14898 * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
14899 note containing (plus (reg) (const_int)), where reg is an
14900 eliminable reg, then perform the register elimination without
14901 depending on eliminate_regs().
14903 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14905 * config/arc/arc.c (arc_return_in_memory): Check the return
14906 value of int_size_in_bytes against -1. Don't check
14908 * config/avr/avr.c (avr_return_in_memory): Check the return
14909 value of int_size_in_bytes against -1.
14910 * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
14911 * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
14913 * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
14914 * config/stormy16/stormy16.c (xstormy16_return_in_memory):
14917 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14919 * config/frv/frv-protos.h: Remove the prototype for
14920 frv_setup_incoming_varargs.
14921 * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
14922 (frv_setup_incoming_varargs): Make it static.
14923 * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
14925 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14927 * config/fr30/fr30-protos.h: Remove the prototype for
14928 fr30_setup_incoming_varargs.
14929 Update the prototypes for fr30_num_arg_regs and
14930 fr30_function_arg_partial_nregs.
14931 * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
14932 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
14933 (fr30_setup_incoming_varargs): Make it static.
14934 Add argument second_time. Don't do anything when second_time
14936 (fr30_num_arg_regs): Change the type of the first argument to
14938 (fr30_function_arg_partial_nregs): Change the type of the
14939 second argument to enum machine_mode.
14940 * config/fr30/fr30.h (STRUCT_VALUE): Remove.
14941 (SETUP_INCOMING_VARARGS): Remove.
14943 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14945 * config/arc/arc-protos.h: Remove the prototype for
14946 arc_setup_incoming_varargs.
14947 * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
14948 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
14949 (arc_setup_incoming_varargs): Make it static.
14950 (arc_external_libcall): Likewise.
14951 * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
14952 Remove the commented-out definition of
14953 ASM_OUTPUT_EXTERNAL_LIBCALL.
14955 2004-02-05 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
14957 * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
14958 to $$(slibdir) in the installation commands.
14960 2004-02-05 David Edelsohn <edelsohn@gnu.org>
14962 * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
14963 with inner_regno, not regno.
14964 * rtlanal.c (refers_to_regno_p): Same.
14966 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
14968 * config.gcc: Remove i370 support.
14970 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
14972 * doc/install.texi: Update automake and autoconf version
14973 requirements. Note where to find gcj automake version.
14975 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
14977 * Makefile.in (generate-manpages): Move dependencies to ...
14979 * doc/makefile.texi: Document new targets.
14980 * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
14982 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
14985 Makefile.in (srcextra): Add a level of indirection to ...
14986 (gcc.srcextra): ... here.
14987 (po-generated): Delete.
14988 (po/$(PACKAGE).pot: Use srcextra instead of po-generated. Depend on
14990 (start.encap): Remove superfluous lang.srcextra dependency.
14991 objc/Make-lang.in (po-generated): Delete.
14993 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
14995 * config/ia64/ia64.c (REG_GP): Remove.
14997 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14999 * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
15001 2004-02-05 Devang Patel <dpatel@apple.com>
15003 * dwarf2out.c (force_type_die): Look up input type itself
15004 instead of root_type() of type.
15006 2004-02-05 Andreas Krebbel <krebbel1@de.ibm.com>
15008 * config/s390/s390.md ("*tmqidi_ext"): New insn.
15009 ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
15010 pre-reload splitters are transformed to post-reload
15011 define_insn_and_split patterns.
15012 ("*tmqisi_ext"): Renamed old "*tmqi_ext".
15014 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
15016 * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
15017 TARGET_PROMOTE_PROTOTYPES.
15019 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15021 PR middle-end/13750
15023 2004-01-15 Geoffrey Keating <geoffk@apple.com>
15025 * c-typeck.c (constructor_asmspec): Delete.
15026 (struct initializer_stack): Delete field 'asmspec'.
15027 (start_init): Delete saving of asmspec.
15028 (finish_init): Don't update constructor_asmspec.
15029 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
15030 * stmt.c (expand_asm): Duplicate strings from tree.
15031 (expand_asm_operands): Likewise.
15032 * tree.c (tree_size): Update computation of size of STRING_CST.
15033 (make_node): Don't make STRING_CST nodes.
15034 (build_string): Allocate string with tree node.
15035 * tree.def (STRING_CST): Update comment.
15036 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
15037 (tree_string): Place contents of string in tree node.
15038 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
15041 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
15043 * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
15046 2004-02-05 Dorit Naishlos <dorit@il.ibm.com>
15048 * config/rs6000/altivec.md (*movv4si_internal): At least one
15049 operand must be altivec_register_operand.
15050 (*movv8hi_internal1): Likewise.
15051 (*movv16qi_internal1): Likewise.
15052 (*movv4sf_internal1): Likewise.
15054 2004-02-05 David Edelsohn <edelsohn@gnu.org>
15056 * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
15057 * configure: Regenerate.
15059 2004-02-05 Jonathan Wakely <redi@gcc.gnu.org>
15061 * doc/install.texi: Update description of --gxx-include-dir to
15062 give correct default value.
15064 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
15066 * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
15069 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
15071 * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
15074 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
15076 * emit-rtl.c: Update the comment about the file.
15078 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
15080 * sourcebuild.texi (Test Idioms): Update testcase naming
15083 2004-02-04 Per Bothner <per@bothner.com>
15085 Partially revert/redo 2003-10-01 change; fix -fworking-directory.
15086 * c-ppoutput.c (pp_dir_change): New function.
15087 * c-common.h (pp_dir_change): New declaration.
15088 * cpplib.h (struct cpp_options): Remove working_directory field.
15089 * cppinit.c (cpp_find_main_file, cpp_push_main_file): Merge back to
15090 (cpp_read_main_file): as before 10-01. Call _cpp_stack_file.
15091 Don't handle -fworking_directory here, but in c_common_post_options.
15092 (read_original_directory): Don't back up when done.
15093 Don't clear no-longer used working_directory flag.
15094 * cpplib.h: Update declarations to match.
15095 * c-lex.c (cb_dir_change): Move to c-opts.c.
15096 (init_c_lex): Don't set dir_change callback here, since we want
15097 to set it even if flag_preprocess_only.
15098 * c-opts.c (cb_dir_change): Function moved from c-lex.c.
15099 (c_common_post_options): Set dir_change callback.
15100 Call pp_dir_change if approporiate.
15101 (finish_options): Don't call cpp_find_main_file here. Hence remove
15102 unneeded parameter and result. Do LC_RENAME for <built-in>.
15103 (c_common_post_options): Call cpp_read_main_file here instead.
15104 (c_common_init): Update accordingly.
15105 (push_command_line_include): Don't cpp_push_main_file.
15106 Do LC_RENAME rather than LC_LEASE to get back to main file.
15107 Compared to pre-10-01 version, inline cpp_rename_to_main_file.
15108 (c_common_parse_file): Call cpp_read_main_file for subsequent main
15109 files, but call finish_options for all files.
15110 * c-opts.c (sanitize_cpp_opts): Don't set cpp_opts->working_directory.
15111 * fix-header.c (read_scan_file): Call cpp_read_main_file instead of
15112 cpp_find_main_file + cpp_push_main_file.
15113 * c-lex.c (fe_file_change): Don't set main_input_filename here.
15114 * opts.c (handle_options): Only set main_input_filename first time.
15116 2004-02-05 Ian Lance Taylor <ian@wasabisystems.com>
15118 * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
15120 2004-02-04 Geoffrey Keating <geoffk@apple.com>
15122 * reload.c (find_equiv_reg): When checking for register overlap,
15123 don't index hard_regno_nregs with a pseudo-reg.
15125 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15127 * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
15129 2004-02-04 David Edelsohn <edelsohn@gnu.org>
15131 * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
15132 against FIRST_PSEUDO_REGISTER.
15134 2004-02-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15136 * Makefile.in: Move target, host overrides after per-language
15139 * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
15140 (GNATLIBCFLAGS): Remove -g.
15142 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15144 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
15145 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
15146 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
15147 config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
15148 config/pdp11/pdp11.c, config/rs6000/rs6000.c,
15149 config/sparc/sparc.c, config/vax/vax.c: Revert the
15150 replacements of "FALLTHRU" with "Fall through" done in the
15153 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15155 * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
15156 config/arm/arm.c, config/arm/arm.md,
15157 config/cris/cris-protos.h, config/fr30/fr30.c,
15158 config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
15159 config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
15160 config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
15161 config/ip2k/ip2k.md, config/ip2k/libgcc.S,
15162 config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
15163 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
15164 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
15165 config/ns32k/netbsd.h, config/ns32k/ns32k.c,
15166 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
15167 config/rs6000/darwin-ldouble.c, config/s390/s390.h,
15168 config/s390/s390.md, config/sparc/netbsd-elf.h,
15169 config/sparc/openbsd.h, config/sparc/sparc.c,
15170 config/xtensa/lib2funcs.S: Fix comment formatting.
15172 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15174 * config/alpha/alpha.c, config/arc/arc.c,
15175 config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
15176 config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
15177 config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
15178 config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
15179 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
15180 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
15181 config/iq2000/iq2000.c, config/m32r/m32r.c,
15182 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
15183 config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
15184 config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
15185 config/rs6000/rs6000.h, config/sparc/sparc.c,
15186 config/vax/vax.c: Fix comment typos. Follow spelling
15189 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15191 * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
15192 caller-save.c, df.h, genconfig.c, global.c, lcm.c,
15193 ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
15194 sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
15195 config/arm/fpa.md, config/arm/iwmmxt.md,
15196 config/arm/netbsd-elf.h, config/arm/netbsd.h,
15197 config/m68hc11/m68hc11.md, config/mips/iris5.h,
15198 config/mn10300/mn10300.md, config/rs6000/altivec.md,
15199 config/sparc/netbsd-elf.h: Update copyright.
15201 2004-02-04 Eric Botcazou <ebotcazou@libertysurf.fr>
15203 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
15204 for all modes whose size is greater than 8 bytes if ARCH32.
15205 (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
15206 by reference if ARCH32.
15208 2004-02-04 Aldy Hernandez <aldyh@redhat.com>
15210 * cgraphunit.c (cgraph_postorder): Fix typo in comment.
15212 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15214 * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
15215 to before adddi3 insn patterns.
15216 ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
15217 "reload_insi"): Move to before addsi3 insn patterns.
15219 2004-02-04 Mark Mitchell <mark@codesourcery.com>
15221 * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
15222 parameter. Use it instead of current_function_is_thunk.
15223 * function.h (struct function): Update documentation for is_thunk.
15224 * tree.h (CALL_FROM_THUNK_P): New macro.
15225 * config/alpha/alpha.c (alpha_sa_mask): Do not check
15226 no_new_pseudos when testing current_function_is_thunk.
15227 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
15229 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15231 * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
15232 TARGET_SETUP_INCOMING_VARARGS.
15234 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15236 * emit-rtl.c (gen_rtx): Remove.
15237 * genattrtab.c: Don't mention gen_rtx in a comment.
15238 * rtl.h: Remove the prototype for gen_rtx.
15239 * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
15241 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15243 * config/arc/arc.h, config/fr30/fr30.h
15244 (SETUP_INCOMING_VARARGS): Remove the target-independent
15246 * doc/tm.texi: Don't mention deprecated target macros.
15248 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15250 * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
15251 target-independent comment.
15253 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15255 * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
15256 mention deprecated target macros.
15258 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15260 * config.gcc: Remove obsolete ports and configurations.
15261 * config/linux-aout.h, config/netware.h,
15262 config/t-linux-gnulibc1, config/d30v/abi,
15263 config/d30v/d30v-protos.h, config/d30v/d30v.c,
15264 config/d30v/d30v.h, config/d30v/d30v.md,
15265 config/d30v/libgcc1.asm, config/d30v/t-d30v,
15266 config/dsp16xx/dsp16xx-modes.def,
15267 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
15268 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
15269 config/i370/README, config/i370/i370-c.c,
15270 config/i370/i370-protos.h, config/i370/i370.c,
15271 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
15272 config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
15273 config/i386/freebsd-aout.h, config/i386/linux-aout.h,
15274 config/i386/moss.h, config/i386/netware.h,
15275 config/i386/svr3.ifile, config/i386/svr3dbx.h,
15276 config/i386/svr3gas.h, config/i386/svr3z.ifile,
15277 config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
15278 config/i960/i960-c.c, config/i960/i960-coff.h,
15279 config/i960/i960-modes.def, config/i960/i960-protos.h,
15280 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
15281 config/i960/rtems.h, config/i960/t-960bare,
15282 config/m68k/hp310.h, config/m68k/hp320.h,
15283 config/m68k/hp320base.h, config/m68k/m68kv4.h,
15284 config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
15286 * doc/extend.texi, doc/install.texi, doc/invoke.texi,
15287 doc/md.texi: Remove mentions of obsolete ports.
15289 2004-02-04 Jan Hubicka <jh@suse.cz>
15291 * alias.c (find_base_term, get_addr): Do not dereference NULL
15292 pointer when all VALUE's locations has been invalidated.
15293 (rtx_equal_for_memref_p): Simplify checking of VALUEs.
15295 2004-02-03 Wolfgang Bangerth <bangerth@dealii.org>
15297 * doc/invoke.texi (x86 options): Fix spelling/wording.
15299 2004-02-03 Richard Sandiford <rsandifo@redhat.com>
15301 * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
15302 put the original string in a comment.
15303 * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
15304 * config/mips/mips.c (mips_output_ascii): Likewise.
15305 * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
15307 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
15309 * system.h (GIV_SORT_CRITERION): Poison.
15310 * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
15311 * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
15313 2004-02-03 Roger Sayle <roger@eyesopen.com>
15316 * expr.c (expand_expr_real) <MULT_EXPR>: When performing widening
15317 multiplies with a multiplication of the wrong signedness, its the
15318 signedness of the multiplication that we've performed that needs to
15319 be passed to expand_mult_highpart_adjust. Avoid emitting a nop-move
15320 if expand_mult_highpart_adjust places the result in target.
15322 2004-02-03 Richard Henderson <rth@redhat.com>
15324 * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
15326 2004-02-03 J"orn Rennecke <joern.rennecke@superh.com>
15328 * config.gcc (sh[234]l): Use little endian fragments.
15330 2004-02-03 Paul Koning <pkoning@equallogic.com>
15332 * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
15333 * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
15334 * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
15335 encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
15336 floating point format.
15337 (pdp11_f_format, pdp11_d_format): New real_format descriptors for
15338 the above functions.
15339 (output_move_quad): Output float values in correct target format.
15340 (legitimate_const_double_p): New function.
15341 * config/pdp11/pdp11.h: Fix typos.
15342 (FLOAT_WORDS_BIG_ENDIAN): Add definition.
15343 (TARGET_FLOAT_FORMAT): Ditto.
15344 (pdp11_f_format, pdp11_d_format): Add external declarations.
15345 (MAX_REGS_PER_ADDRESS): Corrected.
15346 (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
15347 (PRINT_OPERAND): Output float literals in target format.
15349 2004-02-03 Mark Mitchell <mark@codesourcery.com>
15352 * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
15354 (access_public_node): Redefine.
15355 (access_protected_node): Likewise.
15356 (access_private_node): Likewise.
15357 * tree.c (build_common_tree_nodes): Create access_public_node,
15358 access_protected_node, and access_private_node.
15360 2004-02-03 Steve Ellcey <sje@cup.hp.com>
15362 * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
15363 (MASK_INLINE_INT_DIV_THR): Ditto.
15364 (MASK_INLINE_SQRT_LAT): Ditto.
15365 (MASK_INLINE_SQRT_THR): Ditto.
15366 (MASK_DWARF2_ASM): Ditto.
15367 (MASK_EARLY_STOP_BITS): Ditto.
15369 2004-02-02 Paul Brook <paul@codesourcery.com>
15371 Merge from csl-arm-branch.
15373 2004-01-30 Paul Brook <paul@codesourcery.com>
15375 * aof.h (REGISTER_NAMES): Add vfp reg names
15376 (ADDITIONAL_REGISTER_NAMES): Ditto.
15377 * aout.h (REGISTER_NAMES): Ditto.
15378 (ADDITIONAL_REGISTER_NAMES): Ditto.
15379 * arm-protos.h: Update/Add Prototypes.
15380 * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
15381 Only allow 0.0 for VFP.
15382 (fp_consts_inited): Rename from fpa_consts_inited. Update users.
15383 (values_fp): Rename from values_fpa. Update Users.
15384 (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
15385 Update users. Only check valid constants for this hardware.
15386 (arm_float_rhs_operand): Rename from fpa_rhs_operand. Update Users.
15387 Only allow consts for FPA.
15388 (arm_float_add_operand): Rename from fpa_add_operand. Update users.
15389 Only allow consts for FPA.
15390 (use_return_insn): Check for saved VFP regs.
15391 (arm_legitimate_address_p): Handle VFP DFmode addressing.
15392 (arm_legitimize_address): Ditto.
15393 (arm_general_register_operand): New function.
15394 (vfp_mem_operand): New function.
15395 (vfp_compare_operand): New function.
15396 (vfp_secondary_reload_class): New function.
15397 (arm_float_compare_operand): New function.
15398 (vfp_print_multi): New function.
15399 (vfp_output_fstmx): New function.
15400 (vfp_emit_fstm): New function.
15401 (arm_output_epilogue): Output VPF reg restore code.
15402 (arm_expand_prologue): Output VFP reg save code.
15403 (arm_print_operand): Add 'P'.
15404 (arm_hard_regno_mode_ok): Return modes for VFP regs.
15405 (arm_regno_class): Return classes for VFP regs.
15406 (arm_compute_initial_elimination_offset): Include space for VFP regs.
15407 (arm_get_frame_size): Ditto.
15408 * arm.h (FIXED_REGISTERS): Add VFP regs.
15409 (CALL_USED_REGISTERS): Ditto.
15410 (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
15411 (FIRST_VFP_REGNUM): Define.
15412 (LAST_VFP_REGNUM): Define.
15413 (IS_VFP_REGNUM): Define.
15414 (FIRST_PSEUDO_REGISTER): Include VFP regs.
15415 (HARD_REGNO_NREGS): Handle VFP regs.
15416 (REG_ALLOC_ORDER): Add VFP regs.
15417 (enum reg_class): Add VFP_REGS.
15418 (REG_CLASS_NAMES): Ditto.
15419 (REG_CLASS_CONTENTS): Ditto.
15420 (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
15421 (REG_CLASS_FROM_LETTER): Add 'w'.
15422 (EXTRA_CONSTRAINT_ARM): Add 'U'.
15423 (EXTRA_MEMORY_CONSTRAINT): Define.
15424 (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
15425 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
15426 (REGISTER_MOVE_COST): Ditto.
15427 (PREDICATE_CODES): Add arm_general_register_operand,
15428 arm_float_compare_operand and vfp_compare_operand.
15429 * arm.md (various): Rename as above.
15430 (divsf3): Enable when TARGET_VFP.
15435 (arm_movdi): Disable when TARGET_VFP.
15436 (arm_movsi_insn): Ditto.
15437 (movsi): Only split with general regs.
15438 (cmpsf): Use arm_float_compare_operand.
15439 (push_fp_multi): Restrict to TARGET_FPA.
15441 * vfp.md: New file.
15442 * fpa.md (various): Rename as above.
15443 * doc/md.texi: Document ARM w and U constraints.
15445 2004-01-15 Paul Brook <paul@codesourcery.com>
15447 * config.gcc: Add with_fpu. Allow with-float=softfp.
15448 * config/arm/arm.c (arm_override_options): Rename *-s to *s.
15449 Break out of loop when we find a float-abi. Fix typo.
15450 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
15452 * doc/install.texi: Document --with-fpu.
15454 2003-01-14 Paul Brook <paul@codesourcery.com>
15456 * config.gcc (with_arch): Add armv6.
15457 * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
15458 * config/arm/arm.c (arm_overrride_options): Ditto.
15460 2004-01-08 Richard Earnshaw <rearnsha@arm.com>
15462 * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
15463 (FL_ARCH6): Renamed from FL_ARCH6J.
15464 (arm_arch3m): Renamed from arm_fast_multiply.
15465 (arm_arch6): Renamed from arm_arch6j.
15466 * arm.h: Update all uses of above.
15467 * arm-cores.def: Likewise.
15468 * arm.md: Likewise.
15470 * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
15471 not arm6j. Add entry for arch armv6.
15473 2004-01-07 Richard Earnshaw <rearnsha@arm.com>
15475 * arm.c (arm_emit_extendsi): Delete.
15476 * arm-protos.h (arm_emit_extendsi): Delete.
15477 * arm.md (zero_extendhisi2): Also handle zero-extension of
15479 (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
15480 (thumb_zero_extendhisi2): Only match if not v6.
15481 (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
15482 (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
15483 (thumb_extendqisi2): Likewise.
15484 (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
15485 (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
15486 (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
15487 (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
15488 (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
15489 (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
15490 (arm_zero_extendhisi2addsi): Remove subreg. Add attributes.
15491 (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
15492 (arm_extendqisi2addsi): Likewise.
15494 2003-12-31 Mark Mitchell <mark@codesourcery.com>
15496 Revert this change:
15497 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
15498 + REG addressing modes.
15500 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
15501 + REG addressing modes.
15503 2003-12-30 Mark Mitchell <mark@codesourcery.com>
15505 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
15508 2003-30-12 Paul Brook <paul@codesourcery.com>
15510 * longlong.h: protect arm inlines with !defined (__thumb__)
15512 2003-30-12 Paul Brook <paul@codesourcery.com>
15514 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
15516 2003-12-30 Nathan Sidwell <nathan@codesourcery.com>
15518 * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
15521 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
15523 * builtins.c (expand_builtin_apply_args_1): Add pretend args size
15524 to the virtual incoming args pointer for downward stacks.
15526 2003-12-29 Paul Brook <paul@codesourcery.com>
15528 * config/arm/arm-cores.def: Add cost function.
15529 * config/arm/arm.c (arm_*_rtx_costs): New functions.
15530 (arm_rtx_costs): Remove
15531 (struct processors): Add rtx_costs field.
15532 (all_cores, all_architectures): Ditto.
15533 (arm_override_options): Set targetm.rtx_costs.
15534 (thumb_rtx_costs): New function.
15535 (arm_rtx_costs_1): Remove cases handled elsewhere.
15536 * config/arm/arm.h (processor_type): Add COSTS parameter.
15538 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
15540 * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
15541 (arm926ejs.md): Include it.
15542 * config/arm/arm926ejs.md: New pipeline description.
15544 2003-12-24 Paul Brook <paul@codesourcery.com>
15546 * config/arm/arm.c (arm_arch6j): New variable.
15547 (arm_override_options): Set it.
15548 (arm_emit_extendsi): New function.
15549 * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
15550 * config/arm/arm.h (arm_arch6j): Declare.
15551 * config/arm/arm.md: Add sign/zero extend insns.
15553 2003-12-23 Paul Brook <paul@codesourcery.com>
15555 * config/arm/arm.c (all_architectures): Add armv6.
15556 * doc/invoke.texi: Document it.
15558 2003-12-19 Paul Brook <paul@codesourcery.com>
15560 * config/arm/arm.md: Add load1 and load_byte "type" attrs. Modify
15561 insn patterns to match.
15562 * config/arm/arm-generic.md: Ditto.
15563 * config/arm/cirrus.md: Ditto.
15564 * config/arm/fpa.md: Ditto.
15565 * config/amm/iwmmxt.md: Ditto.
15566 * config/arm/arm1026ejs.md: Ditto.
15567 * config/arm/arm1135jfs.md: Ditto. Add insn_reservation and bypasses
15570 2003-12-18 Nathan Sidwell <nathan@codesourcery.com>
15572 * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
15573 * config/arm/arm.c (arm_adjust_cost): Check shift cost for
15574 TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
15575 (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
15576 arm_no_early_mul_dep): Correctly deal with conditional execution,
15577 parallels and single shift operations.
15578 (arm_no_early_alu_shift_value_dep): Define.
15579 * arm.md (attr type): Replace 'normal' with 'alu',
15580 'alu_shift' and 'alu_shift_reg'.
15581 (attr core_cycles): Adjust.
15582 (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
15583 *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
15584 *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
15585 *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
15586 *arith_shiftsi_compare0_scratch, *sub_shiftsi,
15587 *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
15588 *if_shift_move, *if_move_shift, *if_shift_shift): Set type
15589 attribute appropriately.
15590 * config/arm/arm1026ejs.md (alu_op): Adjust.
15591 (alu_shift_op, alu_shift_reg_op): New.
15592 * config/arm/arm1136.md: Add better bypasses for early
15593 registers. Remove load[234] and store[234] bypasses.
15594 (11_alu_op): Adjust.
15595 (11_alu_shift_op, 11_alu_shift_reg_op): New.
15597 2003-12-15 Nathan Sidwell <nathan@codesourcery.com>
15599 * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
15600 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
15601 * config/arm/arm.c (arm_no_early_store_addr_dep,
15602 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
15603 * config/arm/arm1026ejs.md: Add load-store bypass.
15604 * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
15605 Add bypasses between instructions.
15607 2003-12-10 Paul Brook <paul@codesourcery.com>
15609 * config/arm/arm.c (arm_fpu_model): New variable.
15610 (arm_fload_abi): New variable.
15611 (target_fpe_name): Rename from target_fp_name.
15612 (target_fpu_name): New variable.
15613 (arm_is_cirrus): Remove.
15614 (fpu_desc): New struct.
15615 (all_fpus): Define.
15616 (pf_model_for_fpu): Define.
15617 (all_loat_abis): Define.
15618 (arm_override_options): Set fp arch flags based on -mfpu=
15620 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
15621 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
15622 (*): Use new TARGET_* flags.
15623 * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
15624 (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
15625 (TARGET_SOFT_FLOAT): Ditto.
15626 (TARGET_SOFT_FLOAT_ABI): New.
15627 (TARGET_MAVERICK): Rename from TARGET_CIRRUS. No longer implies
15629 (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
15630 (TARGET_OPTIONS): Add -mfpu=.
15631 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
15632 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
15633 (arm_pf_model): Define.
15634 (arm_float_abi_type): Define.
15635 (fputype): Add FPUTYPE_VFP. Change SOFT_FPA->NONE
15636 * config/arm/arm.md: Use new TARGET_* flags.
15637 * config/arm/cirrus.md: Ditto.
15638 * config/arm/fpa.md: Ditto.
15639 * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
15640 * config/arm/semi.h (ASM_SPEC): Ditto.
15641 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
15642 (FPUTYPE_DEFAULT): Set to VFP.
15643 * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
15645 2003-11-22 Phil Edwards <phil@codesourcery.com>
15648 * config/arm/arm.c (arm_output_mi_thunk): In Thumb mode, use
15649 'bx' instead of 'b' to avoid branch range restrictions. Output
15650 the thunk immediately before the thunked-to function.
15651 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Do not emit
15652 .thumb_func if a thunk is being generated. Emit .code 16 along
15653 with .thumb_func if a thunk is not being generated.
15655 2003-11-15 Nicolas Pitre <nico@cam.org>
15657 * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
15658 arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
15659 * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
15660 (lshrdi3_iwmmxt): Renamed from lshrdi3.
15661 * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
15663 2003-11-12 Steve Woodford <scw@wasabisystems.com>
15664 Ian Lance Taylor <ian@wasabisystems.com>
15666 * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
15667 code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
15669 2003-11-05 Phil Edwards <phil@codesourcery.com>
15671 * config/arm/arm.md (insn): Add new V6 instruction names.
15672 (generic_sched): New attr.
15673 * config/arm/arm-generic.md: Use generic_sched here.
15674 * config/arm/arm1026ejs.md: Do not model fetch/issue/decode
15675 stages of pipeline. Adjust latency counts accordingly.
15676 * config/arm/arm1136jfs.md: New file.
15678 2003-10-28 Mark Mitchell <mark@codesourcery.com>
15680 * config/arm/arm.h (processor_type): New enumeration type.
15681 (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
15682 ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
15683 (CPP_CPU_ARCH_SPEC): Likewise.
15684 * config/arm/arm.c (arm_tune): New variable.
15685 (all_cores): Use cores.def.
15686 (all_architectures): Add representative processor.
15687 (arm_override_options): Restructure way in which tuning
15688 information is deduced.
15689 * arm.md: Update "insn" and "type" attributes throughout.
15690 (insn): New attribute.
15691 (type): Compute "mult" from "insn" attribute. Add load2,
15692 load3, load4 alternatives.
15693 (arm automaton): Move to arm-generic.md.
15694 * config/arm/arm-cores.def: New file.
15695 * config/arm/arm-generic.md: Likewise.
15696 * config/arm/arm1026ejs.md: Likewise.
15698 2004-02-03 Eric Botcazou <ebotcazou@libertysurf.fr>
15700 * doc/invoke.texi (SPARC options): Remove -mflat and
15701 all -mxxx (xxx:chip) options.
15702 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
15703 * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
15704 * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
15705 * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
15706 * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
15707 * config/sparc/sparc.c: Likewise.
15708 (sparc_output_function_prologue): Remove TARGET_FLAT handling.
15709 (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
15710 (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
15711 (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
15712 (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
15713 (sparc_flat_must_save_register_p): Likewise.
15714 (sparc_flat_compute_frame_size): Likewise.
15715 (sparc_flat_save_restore): Likewise.
15716 (sparc_flat_function_prologue): Likewise.
15717 (sparc_flat_function_epilogue): Likewise.
15718 (sparc_flat_epilogue_delay_slots): Likewise.
15719 (sparc_flat_eligible_for_epilogue_delay): Likewise.
15720 (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
15721 * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
15722 (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
15723 (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
15724 (CONDITIONAL_REGISTER_USAGE): Likewise.
15725 (FRAME_POINTER_REQUIRED): Likewise.
15726 (INITIAL_ELIMINATION_OFFSET): Likewise.
15727 (BASE_RETURN_VALUE_REG): Likewise.
15728 (BASE_OUTGOING_VALUE_REG): Likewise.
15729 (BASE_PASSING_ARG_REG): Likewise.
15730 (BASE_INCOMING_ARG_REG): Likewise.
15731 (INCOMING_REGNO): Likewise.
15732 (OUTGOING_REGNO): Likewise.
15733 (LOCAL_REGNO): Likewise.
15734 (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
15735 (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
15736 (EPILOGUE_USES): Likewise.
15737 * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
15738 ("flat" attribute): Delete.
15739 (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
15741 (call followed by jump define_peephole's): Delete.
15742 (exception_receiver): Likewise.
15743 (builtin_setjmp_receiver): Likewise.
15744 * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
15746 2004-02-03 Paolo Bonzini <bonzini@gnu.org>
15750 * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
15752 * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
15753 * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
15754 Include langhooks.h. Replace c_common_truthvalue_conversion
15755 with the truthvalue_conversion language hook throughout.
15756 (expr_no_commas): Call default_conversion before save_expr
15757 for the first term of the production 'x ? : y'.
15758 * c-common.c (c_common_truthvalue_conversion): Remove
15759 obsolete block. Invoke recursively the hook instead
15761 * c-convert.c (convert): handle ERROR_MARK_NODE.
15762 * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
15763 returned by the truthvalue_conversion language hook.
15764 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
15765 c_objc_common_truthvalue_conversion.
15766 * c-objc-common.c (c_objc_common_truthvalue_conversion):
15768 * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
15769 * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
15770 c_objc_common_truthvalue_conversion.
15772 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
15774 * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
15776 (LIBCALL_VALUE): Likewise.
15777 * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
15778 gen_rtx_CC0 instead of gen_rtx.
15779 * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
15780 gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
15781 (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
15783 (m68hc11_emit_logical): Likewise.
15785 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
15787 * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
15788 config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
15789 config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
15790 config/m32r/m32r.md, config/m68hc11/m68hc11.c,
15791 config/mips/mips.md, config/mmix/mmix.c,
15792 config/mn10300/mn10300.c, config/mn10300/mn10300.md,
15793 config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
15794 config/rs6000/altivec.md, config/s390/s390.c,
15795 config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
15796 config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
15797 Use const0_rtx instead of GEN_INT (0). Do the same for other
15798 constants that are readily available.
15800 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
15802 * doloop.c, optabs.c, regmove.c, sched-deps.c,
15803 config/i386/i386.c, config/i386/i386.md: Use const0_rtx
15804 instead of GEN_INT (0). Do the same for other constants that
15805 are readily available.
15807 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
15809 * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
15811 * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
15812 instead of gen_rtx.
15813 * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
15815 * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
15816 gen_rtx_ASHIFT instead of gen_rtx.
15817 (udivmodqi4): Likewise.
15819 2004-02-02 Richard Henderson <rth@redhat.com>
15822 * expr.c (store_expr): Use force_operand before emit_move_insn.
15824 2004-02-02 Jeff Law <law@redhat.com>
15825 Roger Sayle <roger@eyesopen.com>
15827 * tree.c (commutative_tree_code, associative_tree_code): New
15829 (iterative_hash_expr): Use commutative_tree_code.
15830 * tree.h (commutative_tree_code, associative_tree_code): Declare.
15831 * fold-const.c (operand_equal_p): Use commutative_tree_code
15832 rather than inlining the commutativity check.
15835 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
15837 * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
15838 * config/frv/frv-protos.h: Remove the prototype for
15839 frv_function_arg_keep_as_reference.
15840 * config/frv/frv.c (frv_function_arg_keep_as_reference):
15842 * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
15843 * config/stormy16/stormy16.h: Remove the commented-out
15844 definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
15846 2004-02-03 Alan Modra <amodra@bigpond.net.au>
15849 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
15850 for retaddr_column.
15852 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
15854 * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
15857 2004-02-02 Eric Christopher <echristo@redhat.com>
15858 Zack Weinberg <zack@codesourcery.com>
15860 * c-opts.c (c_common_handle_option): Add -finput-charset.
15862 * cppcharset.c (one_iso88591_to_utf8): Remove.
15863 (convert_iso88591_utf8): Ditto.
15864 (conversion_tab): Remove 8859-1 converter.
15865 (_cpp_input_to_utf8): Remove.
15866 (_cpp_init_iconv_buffer): Ditto.
15867 (_cpp_close_iconv_buffer): Ditto.
15868 (_cpp_convert_input): New function.
15869 (_cpp_default_encoding): Ditto.
15870 * cpphash.h: Add/remove prototypes for above.
15871 * cppfiles.c (read_file_guts): Use _cpp_convert_input.
15872 * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
15873 for narrow execution and input character sets.
15874 * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
15875 * doc/cppopts.texi: Document -finput-charset.
15877 2004-02-02 David Edelsohn <edelsohn@gnu.org>
15879 * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
15880 against FIRST_PSEUDO_REGISTER.
15882 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
15884 * doc/invoke.texi (SPARC options): Further improve.
15886 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
15888 * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
15889 config/h8300/h8300.c, config/ip2k/ip2k.md,
15890 config/iq2000/iq2000.c, config/mips/mips.c,
15891 config/rs6000/rs6000.c, config/rs6000/rs6000.md,
15892 config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
15893 config/v850/v850.md: Fix indentation.
15895 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
15897 * config/sparc/sparc.c (function_arg_slotno): Align TImode
15898 arguments on a 16-byte boundary in the parameter array if ARCH64.
15899 Split handling of TFmode.
15901 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
15903 * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
15904 Don't test CONSTANT_P (x).
15905 (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
15906 ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
15907 Fix misindentation.
15909 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
15911 * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
15913 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
15915 * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
15916 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
15917 config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
15918 config/iq2000/iq2000.c, config/m32r/m32r.c,
15919 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
15920 config/mn10300/mn10300.c, config/rs6000/rs6000.c,
15921 config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
15922 config/stormy16/stormy16.c, config/v850/v850.md,
15923 config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
15925 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
15927 * config/mcore/mcore.c (block_move_sequence): Replace
15928 gen_rtx_CONST_INT with GEN_INT.
15930 2004-02-02 Jan Hubicka <jh@suse.cz>
15932 * alias.c (record_set): Use hard_regno_nregs.
15933 * bt-load.c (find_btr_reference, note_btr_set): Likewise.
15934 * builtins.c (apply_args_size): Likewise.
15935 * caller-save.c (setup_save_areas, save_call_clobbered_regs,
15936 mark_set_regs, add_stored_regs, mark_referenced_regs,
15937 insert_restore, insert_save, insert_one_insn): Likewise.
15938 * cfgcleanup.c: Include regs.h
15939 (mark_effect, mentions_nonequal_regs): Likewise.
15940 * cfgrtl.c (mark_killed_regs): Likewise
15941 * combine.c (update_table_tick, record_value_for_reg,
15942 record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
15943 reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
15944 reg_bitfield_target_p, distribute_notes): Likewise.
15945 * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
15946 exp_equiv_p, cse_insn): Likewise.
15947 * cselib.c (cselib_lookup): Likewise.
15948 (cselib_invalidate_regno, cselib_record_set): Likewise.
15949 * df.c (df_ref_record): Likewise.
15950 * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
15952 * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
15953 count_or_remove_death_notes_bb): Likewise.
15954 * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
15955 * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
15956 mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
15957 * integrate.c (mark_stores): Likewise.
15958 * jump.c (delete_prior_computation): Likewise.
15959 * lcm.c (reg_dies, reg_becomes_live): Likewise.
15960 * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
15961 * loop.c (LOOP_REGNO_NREGS): Likewise.
15962 * postreload.c (reload_combine, reload_combine_note_store,
15963 reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
15964 * ra-colorize.c (combine, color_usable_p, get_free_reg,
15965 calculate_dont_begin, calculate_dont_begin, colorize_one_web,
15966 try_recolor_web, insert_coalesced_conflicts, check_colors,
15967 break_precolored_alias): Likewise.
15968 * ra-debug.c: Include regs.h
15969 (ra_print_rtx_object): Likewise.
15970 * ra-rewrite (choose_spill_colors): Likewise.
15971 (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
15972 * ra.c (init_ra): Likewise.
15973 * recog.c (reg_fits_class_p, peep2_reg_dead_p,
15974 peep2_find_free_register): Likewise.
15975 * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
15976 * regclass.c (hard_regno_nregs): New array.
15977 (init_reg_modes_once): Initialize it.
15978 (choose_hard_reg_mode): Use it.
15979 (record_reg_classes): Likewise.
15980 * regmove.c (mark_flags_life_zones): Likewise.
15981 * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
15982 scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
15983 copy_value, maybe_mode_change, find_oldest_value_reg,
15984 copyprop_hardreg_forward_1):
15985 * regs.h (hard_regno_nregs): Declare.
15986 * realod.c (reload_inner_reg_of_subreg): Use it.
15987 (push_reload, combine_reloads, find_dummy_reload,
15988 hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
15989 refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
15990 reload_adjust_reg_for_mode): Likewise.
15991 * reload1.c (compute_use_by_pseudos, count_pseudo,
15992 count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
15993 spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
15994 clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
15995 allocate_reload_reg, choose_reload_regs, emit_reload_insns,
15996 delete_output_reload): Likewise.
15997 * resource.c (update_live_status, mark_referenced_resources,
15998 mark_set_resources, mark_target_live_regs): Likewise.
15999 * rtlanal.c: Include regs.h
16000 (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
16001 dead_or_set_regno_p, find_regno_note, find_reg_fusage,
16002 subreg_regno_offset, subreg_offset_representable_p,
16003 hoist_test_store): Likewise.
16004 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
16005 * sched-rgn.c (check_live_1, update_live_1): Likewise.
16006 * stmt.c: Include regs.h
16007 (decl_conflicts_with_clobbers_p): Likewise.
16008 * varasm.c (make_decl_rtl): Likewise.
16009 * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
16011 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
16013 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
16014 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
16015 config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
16016 config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
16017 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
16018 config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
16019 config/iq2000/iq2000.h, config/m32r/m32r.c,
16020 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
16021 config/m68hc11/m68hc11.md, config/m68k/m68k.md,
16022 config/mcore/mcore.c, config/mcore/mcore.h,
16023 config/mcore/mcore.md, config/mips/mips.c,
16024 config/ns32k/ns32k.h, config/ns32k/ns32k.md,
16025 config/rs6000/rs6000.c, config/s390/s390.c,
16026 config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
16027 config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
16028 "gen_rtx (FOO, " with "gen_rtx_FOO (".
16030 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
16032 * config/h8300/h8300.md (two peephole2's): New.
16034 2004-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
16036 * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
16037 (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
16038 (ASM_CPU_SPEC): Likewise
16039 * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
16040 (ASM_CPU_SPEC): Remove -mcpu=v8plus. Handle -mcpu=ultrasparc3.
16042 2004-02-01 Roger Sayle <roger@eyesopen.com>
16044 * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
16045 isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
16046 (expand_builtin): Always call expand_builtin_pow.
16048 2004-02-01 Roger Sayle <roger@eyesopen.com>
16050 * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
16051 BUILT_IN_SIGNBITL): New GCC builtins.
16052 * builtins.c (expand_builtin_signbit): New function to RTL expand
16053 calls to signbit, signbitf and signbitl as inline intrinsics.
16054 (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
16055 (fold_builtin_signbit): New function to perform constant folding
16056 of signbit, signbitf and signbitl.
16057 (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
16059 * doc/extend.texi: Document new signbit{,f,l} builtins.
16061 2004-02-01 Richard Sandiford <rsandifo@redhat.com>
16063 * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
16065 2004-02-01 Chris Demetriou <cgd@broadcom.com>
16067 * config/mips/mips.h (PREDICATE_CODES): Remove entries for
16068 "mips_const_double_ok" and "simple_memory_operand", which were
16069 removed from the MIPS port with the mips-3_4-rewrite branch merge.
16070 * config/mips/mips.c (mips16_lay_out_constants): Update comment
16071 for removal of simple_memory_operand.
16073 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16075 * config/c4x/c4x.md: Use GEN_INT instead of
16076 gen_rtx (CONST_INT, ...).
16078 2004-01-31 Richard Henderson <rth@redhat.com>
16080 * varasm.c (output_constant_pool): Don't zap the pool.
16082 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16084 * genrecog.c (decision_type): Add DT_const_int.
16085 (write_cond) [DT_const_int]: Print a comparison against small
16087 (write_node): Simplify comparisons against small constants
16088 before printing tests.
16090 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16092 * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
16093 instead of gen_rtx_CONST_INT.
16095 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16097 * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
16098 instead of gen_rtx_CONST_INT.
16100 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16102 * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
16103 hook_bool_CUMULATIVE_ARGS_false.
16104 * targhooks.c (default_strict_argument_naming): Rename to
16105 hook_bool_CUMULATIVE_ARGS_false.
16106 * targhooks.h: Update the prototype for
16107 default_strict_argument_naming.
16109 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16111 * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
16112 * config/sh/sh.h: Likewise.
16113 * config/sh/sh.md: Likewise.
16115 2004-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
16117 * doc/invoke.texi (SPARC options): Restructure and update.
16119 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16121 * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
16122 STRICT_ARGUMENT_NAMING): Poison.
16123 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
16124 hook_bool_tree_false.
16125 * targhooks.c (default_promote_function_args): Remove.
16126 (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
16127 Don't check incoming.
16128 (default_strict_argument_naming): Don't use
16129 STRICT_ARGUMENT_NAMING.
16130 * targhooks.h: Remove the prototype for
16131 default_promote_function_args.
16133 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16135 * config/i386/i386-protos.h: Remove the prototype for
16136 ix86_setup_incoming_varargs.
16137 * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
16138 (ix86_setup_incoming_varargs): Make it static.
16139 * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
16141 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16143 * alloc-pool.c: Fix comment typos.
16144 * builtin-types.def: Likewise.
16145 * builtins.def: Likewise.
16146 * c-pretty-print.c: Likewise.
16148 * reload1.c: Likewise.
16150 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16152 * doc/invoke.texi: Follow spelling conventions.
16153 * doc/tm.texi: Likewise.
16155 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16157 * doc/install.texi: Fix typos.
16158 * doc/invoke.texi: Likewise.
16160 2004-01-31 Ulrich Weigand <uweigand@de.ibm.com>
16162 * config/s390/s390.c (s390_decompose_address): Do not treat virtual
16163 registers as pointers.
16164 * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
16166 2004-01-31 Paolo Bonzini <bonzini@gnu.org>
16168 * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
16169 and restore it to gen_lowpart_general on exit.
16170 (gen_lowpart_for_combine): Adjust all callers to go through
16172 * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
16173 and restore it to gen_lowpart_general on exit.
16174 (gen_lowpart_if_possible): Adjust all callers to go through
16176 * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
16177 (gen_lowpart): Declare as pointer to function, initialized to
16178 gen_lowpart_general.
16179 * rtl.h (gen_lowpart): Declare as pointer to function.
16181 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16183 * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
16184 * calls.c: Likewise.
16185 * emit-rtl.c: Likewise.
16186 * function.c: Likewise.
16187 * reload1.c: Likewise.
16188 * config/i386/cygming.h: Likewise.
16189 * config/i386/i386.c: Likewise.
16190 * config/i386/winnt.c: Likewise.
16192 2004-01-30 Dara Hazeghi <dhazeghi@yahoo.com>
16195 * doc/install.texi: document --enable-__cxa_atexit option.
16196 * configure.ac: Disable __cxa_atexit if not supported.
16197 * configure: Regenerate.
16199 2004-01-30 Daniel Berlin <dberlin@dberlin.org>
16201 * ggc-zone.c (ggc_free): New function.
16203 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
16205 alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
16206 cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
16207 flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
16208 ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
16209 tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
16210 config/alpha/alpha.c, config/alpha/alpha.h,
16211 config/alpha/alpha.md, config/alpha/unicosmk.h,
16212 config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
16213 config/c4x/c4x-protos.h, config/c4x/c4x.md,
16214 config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
16215 config/frv/frvend.c, config/i386/cygming.h,
16216 config/i386/djgpp.h, config/i386/emmintrin.h,
16217 config/i386/gthr-win32.c, config/i386/i386-interix.h,
16218 config/i386/i386-protos.h, config/i386/openbsd.h,
16219 config/i386/winnt.c, config/i386/xm-mingw32.h,
16220 config/i386/xmmintrin.h, config/ia64/ia64.md,
16221 config/iq2000/iq2000.md, config/m32r/m32r.md,
16222 config/m68k/m68k.md, config/mcore/mcore-elf.h,
16223 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
16224 config/mips/iris5gas.h, config/mips/iris6.h,
16225 config/mips/iris6gas.h, config/mips/linux.h,
16226 config/mips/mips.md, config/mips/netbsd.h,
16227 config/mips/openbsd.h, config/mips/windiss.h,
16228 config/pa/fptr.c, config/rs6000/aix.h,
16229 config/rs6000/altivec.h, config/rs6000/darwin.h,
16230 config/rs6000/xcoff.h, config/s390/s390-protos.h,
16231 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
16232 config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
16233 config/sparc/sol2.h: Update copyright.
16235 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
16237 * Makefile.in (abs_docdir, abs_srcdir): Define.
16238 (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
16240 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
16242 * genconfig.c (main): Have CC0_P check its operand even on a
16243 target without cc0.
16245 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
16247 * config/alpha/alpha.c: Remove mentions of deprecates macros
16248 in comments, remove some target-independent comments about target
16249 macros, and/or add minimal function comments for target hook
16251 * config/avr/avr.c: Likewise.
16252 * config/ia64/ia64.h: Likewise.
16253 * config/ip2k/ip2k.c: Likewise.
16254 * config/iq2000/iq2000.c: Likewise.
16255 * config/m32r/m32r.h: Likewise.
16256 * config/m68hc11/m68hc11.c: Likewise.
16257 * config/mcore/mcore.c: Likewise.
16258 * config/mmix/mmix.c: Likewise.
16259 * config/mn10300/mn10300.c: Likewise.
16260 * config/pa/pa.c: Likewise.
16261 * config/pdp11/pdp11.c: Likewise.
16262 * config/rs6000/rs6000.h: Likewise.
16263 * config/sh/sh.c: Likewise.
16264 * config/sh/sh.h: Likewise.
16265 * config/sparc/sparc.c: Likewise.
16266 * config/sparc/sparc.h: Likewise.
16267 * config/stormy16/stormy16.c: Likewise.
16268 * config/xtensa/xtensa.c: Likewise.
16270 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
16272 PR optimization/12147
16273 * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
16274 RELOAD_FOR_OPADDR_ADDR.
16275 (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
16276 might be reused as RELOAD_FOR_OPADDR_ADDR register.
16278 2004-01-30 Jan Hubicka <jh@suse.cz>
16280 * reload.c (get_secondary_mem): Fix updating of
16281 secondary_memlocs_elim_used.
16283 2004-01-30 Richard Henderson <rth@redhat.com>
16285 * varasm.c (struct rtx_const, struct pool_constant): Remove.
16286 (MAX_RTX_HASH_TABLE): Remove.
16287 (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
16288 (first_pool, last_pool, pool_offset): Remove.
16289 (struct rtx_constant_pool): Split out from ...
16290 (struct varasm_status): ... here. Reference one via pointer.
16291 (struct constant_descriptor_rtx): Merge struct pool_constant.
16293 (decode_rtx_const): Remove.
16294 (const_hash_rtx, compare_constant_rtx): Remove.
16295 (record_constant_rtx): Remove.
16296 (const_desc_rtx_hash, const_desc_rtx_eq): New.
16297 (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
16298 (const_rtx_hash_1, const_rtx_hash): New.
16299 (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
16300 (simplify_subtraction): Use simplify_rtx.
16301 (force_const_mem): Rewrite to use new data structures.
16302 (find_pool_constant): Likewise.
16303 (get_pool_constant, get_pool_constant_mark,
16304 get_pool_constant_for_function, get_pool_mode,
16305 get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
16306 (output_constant_pool_2): Split out from output_constant_pool.
16307 (output_constant_pool_1): Likewise. Use new pool datastructures.
16308 (output_constant_pool): Zap entire pool datastructure.
16309 (mark_constant): Use new pool datastructures.
16310 (mark_constants): Use for_each_rtx.
16311 (mark_constant_pool): Use new pool datastructures.
16313 2004-01-30 Fariborz Jahanian <fjahanian@apple.com>
16315 * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
16316 Copy operands[1] to pseudo for simplify_gen_subreg.
16318 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
16320 * gcse.c (bypass_block): Fix a typo in the previous check-in
16323 2004-01-30 Andrew Pinski <pinskia@physics.uc.edu>
16325 * toplev.c: Include alloc-pool.h.
16326 * Makefile.in (toplev.c): Update dependencies.
16328 2004-01-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16330 * combine.c (simplify_shift_const, case XOR): Be careful when
16331 commuting XOR with ASHIFTRT.
16333 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
16334 Eric Botcazou <ebotcazou@libertysurf.fr>
16336 * config/sparc/sparc-protos.h: Remove the prototype for
16337 sparc_builtin_saveregs.
16338 * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
16339 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
16340 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16341 (TARGET_STRUCT_VALUE_RTX): Likewise.
16342 (TARGET_RETURN_IN_MEMORY): Likewise.
16343 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
16344 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
16345 (sparc_builtin_saveregs): Make it static.
16346 (sparc_promote_prototypes): New.
16347 (sparc_struct_value_rtx): Likewise.
16348 (sparc_return_in_memory): Likewise.
16349 * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
16350 (PROMOTE_FUNCTION_RETURN): Likewise.
16351 (RETURN_IN_MEMORY): Likewise.
16352 (STRUCT_VALUE): Likewise.
16353 (STRUCT_VALUE_INCOMING): Likewise.
16354 (EXPAND_BUILTIN_SAVEREGS): Likewise.
16355 (STRICT_ARGUMENT_NAMING): Likewise.
16356 (PROMOTE_PROTOTYPES): Likewise.
16358 * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
16360 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
16363 * varasm.c (const_hash_1) <STRING_CST>: Use the
16364 address to compute the hash value if flag_writable_strings.
16365 (compare_constant) <STRING_CST>: Compare the addresses
16366 if flag_writable_strings.
16367 (build_constant_desc): Do not copy the expression for a
16368 STRING_CST if flag_writable_strings.
16370 2004-01-30 Jan Hubicka <jh@suse.cz>
16372 * alloc-pool.c: Include hashtab.h
16373 (alloc_pool_descriptor): New structure
16374 (alloc_pool_hash): New global variable.
16375 (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
16376 (create_alloc_pool): Update statistics.
16377 (free_alloc_pool): Likewise.
16378 (pool_alloc): Likewise.
16379 (output_info): New structure
16380 (print_statistics, dump_alloc_pool_statistics): New function.
16381 * alloc-pool.h (alloc_pool_def): Turn name to be constant.
16382 (dump_alloc_pool_statistics): Declare.
16383 * toplev.c (finalize): Dump statistics.
16385 * reload.c (secondary_memlocs_elim_used): New static variable.
16386 (get_secondary_mem): Update it.
16387 (find_reloads): Use it.
16389 2004-01-30 Steven Bosscher <s.bosscher@student.tudelft.nl>
16391 * toplev.c: Fix broken checkin of 2003-12-30, again.
16393 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
16395 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
16396 s390*-*-* targets by specifying a 'nop' insn.
16397 * configure: Regenerate.
16399 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
16402 * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
16404 2004-01-29 Jakub Jelinek <jakub@redhat.com>
16406 * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
16407 of addr when creating MEM copy.
16409 2004-01-29 Devang Patel <dpatel@apple.com>
16411 * dwarf2out.c (gen_field_die): Do not equate decl number to die.
16413 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
16416 * reload.c (find_reloads): Only support one pair of commutative
16419 2004-01-29 Roger Sayle <roger@eyesopen.com>
16422 * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
16423 as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
16426 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
16428 * config/frv/frv.c: Don't mention deprecated macros in
16429 comments. Remove some target-independent comments about
16431 * config/frv/frv.h: Likewise.
16433 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16435 * cfghooks.c (split_block): Set probability and count of the
16438 2004-01-29 Josef Zlomek <zlomekj@suse.cz>
16440 * dwarf2out.c (struct die_struct): Added field decl_id.
16441 (decl_die_table): Changed to hash table.
16442 (decl_die_table_allocated): Deleted.
16443 (decl_die_table_in_use): Deleted.
16444 (DECL_DIE_TABLE_INCREMENT): Deleted.
16445 (decl_die_table_hash): New function.
16446 (decl_die_table_eq): New function.
16447 (lookup_decl_die): Lookup in a hash table.
16448 (equate_decl_number_to_die): Insert into a hash table.
16449 (dwarf2out_init): Init hash table decl_die_table.
16451 2004-01-29 Jakub Jelinek <jakub@redhat.com>
16453 PR optimization/13424
16454 * expr.c (store_constructor): Revert 2003-12-03 change.
16456 * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
16457 expected before returning early. Avoid sharing RTL if they
16458 need to be changed.
16460 * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
16461 handling so that memory attributes are preserved. Don't call
16462 ix86_set_move_mem_attrs.
16463 (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
16464 (ix86_expand_clrstr): Rename src argument to
16465 dst. Rework rep_stos and strset handling so that memory attributes
16467 (ix86_expand_strlen): Pass src argument to
16468 ix86_expand_strlensi_unroll_1. Rework strlenqi_1 handling so that
16469 memory attributes are preserved.
16470 (ix86_expand_strlensi_unroll_1): Add src argument. Use
16471 change_address instead of gen_rtx_MEM.
16472 * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
16474 (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
16475 strmovqi, strmovqi_rex64): Remove.
16476 (rep_mov*, strmov*): Prefix insn names with *.
16477 (strset, strset_singleop, rep_stos): New expanders.
16478 (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
16479 strsetqi, strsetqi_rex64): Remove.
16480 (rep_stos*, strset*): Prefix insn names with *.
16481 (rep_stosqi_rex64): Likewise. Fix mode of dirflag reg from DImode
16483 (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
16485 (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
16486 Prefix insn names with *.
16487 (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
16488 (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
16489 (strlenqi_1): New expander.
16490 * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
16492 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16494 * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
16495 * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
16496 verify_flow_info): Declaration removed.
16497 * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
16498 (debug_bb, debug_bb_n): Add argument to dump_bb call.
16499 * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
16500 try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
16501 instead of delete_block.
16502 * cfghooks.c: Include timevar.h and toplev.h.
16503 (cfg_hooks): Define here.
16504 (verify_flow_info, dump_bb): Moved from cfg.c.
16505 (redirect_edge_and_branch, redirect_edge_and_branch_force,
16506 split_block, split_block_after_labels, move_block_after,
16507 delete_basic_block, split_edge, create_basic_block,
16508 create_empty_bb, can_merge_blocks_p, merge_blocks,
16509 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
16511 * cfghooks.h (struct cfg_hooks): Added fields name,
16512 make_forwarder_block, tidy_fallthru_edge and
16513 move_block_after. Changed type of verify_flow_info, dump_bb,
16514 split_block fields. Renamed cfgh_split_edge and delete_block
16516 (redirect_edge_and_branch, redirect_edge_and_branch_force,
16517 split_block, delete_block, split_edge, create_basic_block,
16518 can_merge_blocks_p, merge_blocks): Macros removed.
16519 (cfg_hooks): Do not export.
16520 (verify_flow_info, dump_bb, redirect_edge_and_branch,
16521 redirect_edge_and_branch_force, split_block, split_block_after_labels,
16522 move_block_after, delete_basic_block, split_edge, create_basic_block,
16523 create_empty_bb, can_merge_blocks_p, merge_blocks,
16524 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
16526 (cfg_layout_rtl_cfg_hooks): Declare.
16527 * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
16529 (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
16530 (redirect_edge_with_latch_update): Removed.
16531 (make_forwarder_block): Moved to cfghooks.c, semantics changed.
16532 * cfgloopmanip.c (remove_bbs): Do not update dominators here.
16533 * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
16534 rtl_delete_block, rtl_split_block, rtl_merge_blocks,
16535 tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
16536 cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
16538 (rtl_create_basic_block): Coding style fix.
16539 (rtl_tidy_fallthru_edge, rtl_move_block_after,
16540 rtl_make_forwarder_block): New functions.
16541 (update_cfg_after_block_merging): Removed.
16542 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
16543 * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
16545 * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
16546 find_if_case_2): Don't update dominators.
16547 * timevar.def (TV_CFG_VERIFY): New.
16548 * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
16549 * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
16550 * cfgloopmanip.c (split_loop_bb): Don't update dominators.
16551 (remove_bbs): Don't call remove_bbs.
16552 (create_preheader): Use make_forwarder_block.
16553 (mfb_keep_just, mfb_update_loops): New static functions.
16555 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
16557 * config/avr/avr.h: Remove target-independent comments about
16560 2004-01-28 Daniel Berlin <dberlin@dberlin.org>
16562 * timevar.c (timevar_print): Mention when checking is enabled.
16564 2004-01-28 Giovanni Bajo <giovannibajo@gcc.gnu.org>
16566 * c-lex.c (c_lex): Rename to...
16567 (c_lex_with_flags): Add new parameter to get CPP flags.
16568 (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
16569 * c-pragma.h (c_lex_with_flags): Declare.
16571 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16573 * config/mcore/mcore.c (mcore_external_libcall): Add a
16575 (mcore_return_in_memory): Likewise.
16577 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16579 * config/mcore/mcore-protos.h: Remove the prototype for
16580 mcore_setup_incoming_varargs.
16581 * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
16582 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
16583 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
16584 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16585 (TARGET_STRUCT_VALUE_RTX): Likewise.
16586 (TARGET_RETURN_IN_MEMORY): Likewise.
16587 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16588 (mcore_setup_incoming_varargs): Make it static. Receive the
16589 first argument by reference. Add argument second_time.
16590 (mcore_external_libcall): New.
16591 (mcore_return_in_memory): Likewise.
16592 * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
16593 (PROMOTE_FUNCTION_RETURN): Likewise.
16594 (STRUCT_VALUE): Likewise.
16595 (RETURN_IN_MEMORY): Likewise.
16596 (SETUP_INCOMING_VARARGS): Likewise.
16597 (PROMOTE_PROTOTYPES): Likewise.
16598 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
16600 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16602 * config/m32r/m32r-protos.h: Remove the prototype for
16603 m32r_setup_incoming_varargs.
16604 * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
16605 (TARGET_STRUCT_VALUE_RTX): Likewise.
16606 (TARGET_RETURN_IN_MEMORY): Likewise.
16607 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16608 (m32r_return_in_memory): New.
16609 (m32r_setup_incoming_varargs): Make it static.
16610 * config/m32r/m32r.h: Remove #undef of
16611 ASM_OUTPUT_EXTERNAL_LIBCALL. Remove the commented-out
16612 definitions of PROMOTE_FUNCTION_ARGS and
16613 PROMOTE_FUNCTION_RETURN.
16614 (PROMOTE_PROTOTYPES): Remove.
16615 (RETURN_IN_MEMORY): Likewise.
16616 (STRUCT_VALUE): Likewise.
16618 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16620 * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
16621 (TARGET_STRUCT_VALUE_RTX): Likewise.
16622 (m68k_struct_value_rtx): Likewise.
16623 * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
16624 STRUCT_VALUE_REGNUM.
16625 (PROMOTE_PROTOTYPES): Remove.
16626 * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
16627 STRUCT_VALUE_REGNUM.
16628 * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
16629 * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
16631 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16633 * config/stormy16/stormy16.c
16634 (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
16635 TARGET_BUILD_BUILTIN_VA_LIST.
16637 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16639 * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
16640 (TARGET_STRUCT_VALUE_RTX): Likewise.
16641 (TARGET_RETURN_IN_MEMORY): Likewise.
16642 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16643 (v850_return_in_memory): Likewise.
16644 (v850_setup_incoming_varargs): Likewise.
16645 * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
16646 (SETUP_INCOMING_VARARGS): Likewise.
16647 (RETURN_IN_MEMORY): Likewise.
16648 (STRUCT_VALUE): Likewise.
16650 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16652 * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
16653 (fr30_setup_incoming_varargs): Don't use
16654 STRICT_ARGUMENT_NAMING.
16655 * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
16656 (STRICT_ARGUMENT_NAMING): Likewise.
16658 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16660 * config/frv/frv-protos.h: Remove the prototype for
16661 frv_expand_builtin_saveregs.
16662 * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
16663 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
16664 (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
16665 STRUCT_VALUE_REGNUM.
16666 (frv_expand_builtin_saveregs): Make it static.
16667 (frv_struct_value_rtx): New.
16668 * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
16670 2004-01-29 Jan Hubicka <jh@suse.cz>
16673 * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
16675 * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
16676 for functions that will be only inlined.
16677 (cgraph_mark_function_to_output): Likewise.
16678 (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
16679 do not clear function body.
16680 * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
16681 (tree_rest_of_compilation): Reorganize the logic releasing function
16682 body to use callgraph datastructure.
16684 2004-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16686 * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
16687 to register_operand.
16689 2004-01-28 Zack Weinberg <zack@codesourcery.com>
16691 * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
16692 (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
16693 match_operand expressions so that all match_dups appear
16694 lexically after their corresponding match_operands.
16696 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16698 * config/h8300/h8300.c (WORD_REG_USED): Use
16699 HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
16700 (compute_saved_regs): Likewise.
16701 (h8300_expand_prologue): Likewise. Allocate locals after
16703 (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
16704 of FRAME_POINTER_REGNUM. Deallocate locals before saving
16706 (h8300_initial_elimination_offset): Adjust for the new frame
16707 layout, which swaps flips the order of locals and saved
16709 * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
16710 (HARD_FRAME_POINTER_REGNUM): New.
16711 (ELIMINABLE_REGS): Add an elimination rule from
16712 FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
16713 (REGISTER_NAMES): Add fp.
16714 * config/h8300/h8300.md (FP_REG): Change to 11.
16717 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16719 * genrecog.c (write_node): Remove a useless local variable.
16721 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
16723 * Makefile.in (options.c options.h): Use stamp file s-options to
16724 avoid unnecessary rebuilds.
16725 (options.o): New target listing dependencies.
16726 (gtyp-gen.h): Use stamp file s-gtyp-gen.
16727 (STAGESTUFF): Add s-gtyp-gen.
16729 2004-01-28 Richard Henderson <rth@redhat.com>
16731 * ggc.h (ggc_free): Declare.
16732 * ggc-common.c (ggc_realloc): Use it.
16733 * ggc-page.c: Remove lots of inline markers.
16734 (globals): Add free_object_list.
16736 (ggc_free, validate_free_objects): New.
16737 (poison_pages): Provide default.
16738 (ggc_collect): Call validate_free_objects; emit markers to
16741 2004-01-28 Zack Weinberg <zack@codesourcery.com>
16742 Jim Wilson <wilson@specifixinc.com>
16744 * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
16745 Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
16747 (ia64_secondary_reload_class): Delete case GR_REGS.
16748 * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
16749 Do not allocate a scratch register.
16750 (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
16752 2004-01-28 Jan Hubicka <jh@suse.cz>
16754 * gcse.c (bypass_block): Prevent edges to be unified when we are
16755 about to emit compenstation code.
16757 2004-01-28 Nick Clifton <nickc@redhat.com>
16759 * config/arm/arm.c (arm_expand_builtin): Force second argument of
16760 the setcwx insn into a register.
16762 2004-01-28 Richard Sandiford <rsandifo@redhat.com>
16764 * config/fp-bit.c (pack_d): When using paired doubles to implement
16765 a long double, round the high part separately.
16766 (unpack_d): Fix the case in which the high part is a power of two
16767 and the low part is a nonzero value of the opposite sign.
16769 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16771 * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
16772 (TARGET_STRUCT_VALUE_RTX): Likewise.
16773 (c4x_external_libcall): Likewise.
16774 (c4x_struct_value_rtx): Likewise.
16775 * config/c4x/c4x.h: Remove.
16776 (STRUCT_VALUE_REGNUM): Likewise.
16777 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
16779 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16781 * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
16782 (TARGET_STRUCT_VALUE_RTX): Likewise.
16783 * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
16784 (STRUCT_VALUE): Likewise.
16785 (PROMOTE_PROTOTYPES): Likewise.
16787 2004-01-27 Roger Sayle <roger@eyesopen.com>
16789 * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
16790 CONST_INT before using INTVAL.
16792 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
16794 * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
16795 * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
16796 frame if !TARGET_BACKCHAIN.
16797 * config/s390/s390.md ("allocate_stack"): Use pattern only if
16799 * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
16801 2004-01-27 Zack Weinberg <zack@codesourcery.com>
16803 * ia64.c (ia64_function_arg): When placing HFAs in integer
16804 registers, do not special case the mode used for complex
16805 types. Do not advance int_regs until the current register
16808 2004-01-27 Richard Sandiford <rsandifo@redhat.com>
16811 * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
16813 2004-01-27 David Edelsohn <edelsohn@gnu.org>
16815 * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
16816 slow, unaligned loads and stores while debugging. Fix formatting.
16818 2004-01-27 David Edelsohn <edelsohn@gnu.org>
16820 * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
16821 of computing wmode.
16822 (restore_stack_nonlocal): Same.
16824 2004-01-27 Devang Patel <dpatel@apple.com>
16826 * Makefile.in (dwarf2out.o): Depend on input.h
16827 * dbxout.c (dbx_debug_hooks): Add new empty hook for
16828 imported_module_or_decl.
16829 (xcoff_debug_hooks): Same.
16830 * sdbout.c (sdb_debug_hooks): Same.
16831 * vmsdbgout.c (vmsdbg_debug_hooks): Same.
16832 * debug.c (do_nothing_debug_hooks): Same.
16833 (debug_nothing_tree_tree): New function.
16834 * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
16835 * dwarf2out.c: Include input.h.
16836 (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
16837 (remove_child_TAG): New function.
16838 (dwarf_tag_name): Handle DW_TAG_imported_module.
16839 (gen_subprogram_die): Equate decl number to declaration die. Do not
16840 remove all children dies while reusing declaration die for definition.
16841 Instead, selectively remove only formal parameters.
16842 (gen_variable_die): Equate variable decl to declaration die.
16843 (gen_field_die): Equate field decl to line number.
16844 (force_namespace_die): Replace it with ...
16845 (force_decl_die): ... this.
16846 (force_type_die): New function.
16847 (setup_namespace_context): Replace use of force_namespace_die() with
16849 (gen_namespace_die): Same.
16850 (dwarf2out_imported_module_or_decl): New function.
16852 2004-01-27 Bob Wilson <bob.wilson@acm.org>
16854 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
16855 on CQImode and CHImode incoming arguments in register a7.
16856 (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
16857 * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
16858 * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
16859 xtensa_copy_incoming_a7 before reload.
16861 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
16863 * coverage.c (get_coverage_counts): Give a different message
16864 if flag_guess_branch_prob is set.
16865 * predict.c (counts_to_freqs): Return an int.
16866 (estimate_bb_frequencies): If counts_to_freqs returns zero,
16867 calculate estimates.
16869 2004-01-27 Kazu Hirata <kazu@cs.umass.edu>
16871 * config/iq2000/iq2000-protos.h: Remove the prototype for
16872 iq2000_setup_incoming_varargs.
16873 * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
16874 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
16875 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16876 (TARGET_STRUCT_VALUE_RTX): Likewise.
16877 (TARGET_RETURN_IN_MEMORY): Likewise.
16878 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16879 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
16880 (iq2000_return_in_memory): Likewise.
16881 (iq2000_setup_incoming_varargs): Make it static. Receive the
16882 first argument by reference.
16883 * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
16884 (PROMOTE_FUNCTION_RETURN): Likewise.
16885 (PROMOTE_PROTOTYPES): Likewise.
16886 (RETURN_IN_MEMORY): Likewise.
16887 (STRUCT_VALUE): Likewise.
16888 (SETUP_INCOMING_VARARGS): Likewise.
16889 (STRICT_ARGUMENT_NAMING): Likewise.
16891 2004-01-24 James A. Morrison <ja2morri@uwaterloo.ca>
16893 * fixinc/fixinc.c (test_test): Initialize res.
16894 (start_flexer): Initialize pz_cmd_save.
16896 2004-01-27 Zack Weinberg <zack@codesourcery.com>
16898 * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
16899 SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
16901 2004-01-27 Zack Weinberg <zack@codesourcery.com>
16904 * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
16905 (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
16906 (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
16907 Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
16908 Possibly rename pattern for consistency.
16909 Remove ??? comments suggesting that this be done.
16910 (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
16912 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
16913 (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
16914 (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
16915 (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
16918 2004-01-27 Ian Lance Taylor <ian@wasabisystems.com>
16920 * config/arm/arm.c (output_return_instruction): Only restore IP
16921 into SP if frame_pointer_needed.
16923 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
16925 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
16926 for SCmode and DCmode if ARCH32.
16927 (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
16928 * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
16930 (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
16932 (BASE_OUTGOING_VALUE_REG): Likewise.
16934 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
16938 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
16939 Forbid mode changes from SImode for lower FP regs if ARCH64.
16941 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
16943 * Makefile.in (bt-load.o): Depend on except.h.
16944 * bt-load.c (except.h): #include.
16945 (compute_defs_uses_and_gen): If insn at end of BB can throw
16946 within this function, consider registers used by it unavailable for
16948 (move_btr_def): If insn at end of BB can throw, insert before rather
16951 * flags.h (flag_btr_bb_exclusive): Declare.
16952 * toplev.c (flag_btr_bb_exclusive): New variable.
16953 (f_options): Add btr-bb-exclusive.
16954 * bt-load.c (augment_live_range): Restore old behaviour if
16955 flag_btr_bb_exclusive is set.
16956 * common.opt: Add entry for -fbtr-bb-exclusive.
16957 * opts.c (common_handle_options): Same.
16958 * doc/invoke.texi: Document -fbtr-bb-exclusive.
16960 * bt-load.c (btrs_live_at_end): New variable.
16961 (compute_defs_uses_and_gen): Compute its pointed-to array.
16962 (clear_btr_from_live_range, add_btr_to_live_range): Update it.
16963 (augment_live_range): When augmenting with a new dominator,
16964 use only its btrs_live_at_end set, but also add in the full set
16965 of the old dominator.
16966 (btr_def_live_range): Use btrs_live_at_end.
16967 (move_btr_def): Set other_btr_uses_before_def, and move new set
16968 to the end of the basic block, if appropriate.
16969 (migrate_btr_defs): Allocate and free btrs_live_at_end.
16971 * bt-load.c (basic_block_freq): Remove outdated comment.
16973 2004-01-27 Alan Modra <amodra@bigpond.net.au>
16975 * config/rs6000/rs6000.h: Correct target_flags free bits comment.
16976 (PREDICATE_CODES): Remove duplicate.
16977 * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
16978 (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
16979 (MASK_PROFILE_KERNEL): Adjust define.
16981 2004-01-27 Jakub Jelinek <jakub@redhat.com>
16983 * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
16984 of long string literals from 32 bytes to sizeof (void *) when !-Os
16987 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16989 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
16990 constant addresses in the normal mode.
16992 2004-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16994 * system.h (CHAR_BITFIELD): Delete.
16995 (BOOL_BITFIELD): New.
16996 * c-decl.c (c_scope): Use BOOL_BITFIELD.
16997 * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
16999 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17001 * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17002 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
17003 (TARGET_PROMOTE_PROTOTYPES): Likewise.
17004 (TARGET_STRUCT_VALUE_RTX): Likewise.
17005 (TARGET_RETURN_IN_MEMORY): Likewise.
17006 (arc_return_in_memory): Likewise.
17007 * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
17008 (PROMOTE_FUNCTION_RETURN): Likewise.
17009 (RETURN_IN_MEMORY): Likewise.
17010 (STRUCT_VALUE): Likewise.
17012 2004-01-26 Richard Henderson <rth@redhat.com>
17014 * c-parse.in (extension): Use itype.
17015 (SAVE_EXT_FLAGS): Don't allocate a tree.
17016 (RESTORE_EXT_FLAGS): Don't read a tree.
17018 2004-01-26 Jan Hubicka <jh@suse.cz>
17020 * cselib.c (discard_useless_values): Clear out value pointer pointing
17021 to datastructure to be recycled.
17023 2004-01-25 Jan Hubicka <jh@suse.cz>
17025 * genextract.c (main): Do not output the memset when not checking.
17027 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17029 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
17030 switch statement instead of a chain of if statements.
17032 2004-01-26 Jeff Law <law@redhat.com>
17034 * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry. Add
17035 acute accents for Petur Runolfsson's entry.
17037 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17039 * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
17040 (TARGET_RETURN_IN_MEMORY): Likewise.
17041 * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
17042 (RETURN_IN_MEMORY): Likewise.
17044 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
17046 * config/rs6000/rs6000.c (rs6000_emit_move): split slow
17047 unaligned load/store into smaller loads and stores.
17049 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
17051 * function.c (assign_parms): Do not assign
17052 long long argument to memory in prologue if
17053 is it loaded into register.
17055 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
17057 PR middle-end/13779
17058 * expr.c (emit_group_load): split constant
17059 correctly into register components of PARALLEL insn.
17061 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
17063 * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
17064 Use adjust_address_nv directly with appropriate mode.
17065 (restore_stack_nonlocal): Ditto.
17067 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17069 * config/xtensa/xtensa-protos.h: Remove the prototype for
17070 xtensa_builtin_saveregs.
17071 * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17072 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
17073 (TARGET_PROMOTE_PROTOTYPES): Likewise.
17074 (TARGET_STRUCT_VALUE_RTX): Likewise.
17075 (TARGET_RETURN_IN_MEMORY): Likewise.
17076 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
17077 (xtensa_builtin_saveregs): Make it static.
17078 (xtensa_return_in_memory): New.
17079 * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
17080 (PROMOTE_FUNCTION_RETURN): Likewise.
17081 (PROMOTE_PROTOTYPES): Likewise.
17082 (STRUCT_VALUE): Likewise.
17083 (RETURN_IN_MEMORY): Likewise.
17084 (EXPAND_BUILTIN_SAVEREGS): Likewise.
17086 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17088 * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
17089 (arm_setup_incoming_varargs): Likewise.
17090 * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
17092 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17094 * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
17095 (cris_setup_incoming_varargs): Likewise.
17096 * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
17098 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17100 * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
17101 (ns32k_struct_value_rtx): Likewise.
17102 * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
17103 NS32K_STRUCT_VALUE_REGNUM.
17105 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17107 * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17108 (TARGET_PROMOTE_PROTOTYPES): Likewise.
17109 (TARGET_STRUCT_VALUE_RTX): Likewise.
17110 (arm_struct_value_rtx): Likewise.
17111 * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
17112 (STRUCT_VALUE): Likewise.
17113 (STRUCT_VALUE_REGNUM): Likewise.
17114 (PROMOTE_PROTOTYPES): Likewise.
17116 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17118 * config/ia64/ia64-protos.h: Remove the prototype for
17119 ia64_setup_incoming_varargs and ia64_return_in_memory.
17120 * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
17121 (TARGET_RETURN_IN_MEMORY): Likewise.
17122 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
17123 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
17124 (ia64_setup_incoming_varargs): Adjust the arguments to meet
17125 the requirement of TARGET_SETUP_INCOMING_VARARGS.
17126 (ia64_return_in_memory): Make it static. Change the return
17127 type to bool from int. Add an argument.
17128 (ia64_struct_value_rtx): New.
17129 * config/ia64/ia64.h: Remove commented-out definitions of
17130 PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
17131 PROMOTE_PROTOTYPES.
17132 (RETURN_IN_MEMORY): Remove.
17133 (STRUCT_VALUE_REGNUM): Likewise.
17134 (STRICT_ARGUMENT_NAMING): Likewise.
17136 2004-01-26 Eric Botcazou <ebotcazou@libertysurf.fr>
17139 * config/sparc/sparc.c (function_arg_union_value): New function.
17140 (function_arg): Use it to deal with unions.
17141 (function_value): Likewise. Define 'regbase' only for ARCH64.
17142 Replace a conditional statement by a simpler one.
17144 2004-01-26 Richard Sandiford <rsandifo@redhat.com>
17146 * config/mips/mips.c (mips16_optimize_gp): Delete.
17147 (mips_reorg): Don't call it.
17149 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17151 * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
17152 (floatunsqihf2): Remove operand 6.
17153 (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
17155 (ldi_conditional, ldf_conditional): Validate operands.
17157 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17159 * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
17160 (HAVE_GAS_HIDDEN): Undefine as interim measure.
17162 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17164 * config/c4x/c4x.c (c4x_legitimate_address_p): Invalidate direct
17165 memory references if TARGET_EXPOSE_LDP nonzero.
17167 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17169 * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
17171 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17173 * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
17174 invalid operand combinations.
17176 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17178 * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
17179 c4x_legitimate_address_p. Fix post_modify check.
17181 * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
17182 * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
17184 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17186 * config/pa/pa-protos.h: Remove the prototype for
17187 hppa_builtin_saveregs. Add a prototype for
17188 pa_return_in_memory.
17189 * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
17190 (TARGET_PROMOTE_PROTOTYPES): Likewise.
17191 (TARGET_STRUCT_VALUE_RTX): Likewise.
17192 (TARGET_RETURN_IN_MEMORY): Likewise.
17193 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
17194 (pa_struct_value_rtx): Likewise.
17195 (pa_return_in_memory): Likewise.
17196 * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
17197 PA_STRUCT_VALUE_REGNUM.
17198 (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
17199 (EXPAND_BUILTIN_SAVEREGS): Remove.
17200 (PROMOTE_PROTOTYPES): Likewise.
17201 (PROMOTE_FUNCTION_RETURN): Likewise.
17203 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17205 * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
17206 (TARGET_STRUCT_VALUE_RTX): Likewise.
17207 (vax_struct_value_rtx): Likewise.
17208 * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
17209 VAX_STRUCT_VALUE_REGNUM.
17210 (PROMOTE_PROTOTYPES): Remove.
17212 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17214 * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS): Handle symref.
17216 2004-01-25 Chris Demetriou <cgd@broadcom.com>
17218 * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
17219 and MIPS64 have HI/LO interlocks. Update comment.
17221 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17223 * config/stormy16/stormy16-protos.h: Remove the prototype for
17224 xstormy16_setup_incoming_varargs.
17225 * config/stormy16/stormy16.c
17226 (xstormy16_setup_incoming_varargs): Remove.
17227 (xstormy16_return_in_memory): New.
17228 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
17229 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
17230 (TARGET_PROMOTE_PROTOTYPES): Likewise.
17231 (TARGET_STRUCT_VALUE_RTX): Likewise.
17232 (TARGET_RETURN_IN_MEMORY): Likewise.
17233 * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
17234 (PROMOTE_FUNCTION_RETURN): Likewise
17235 (PROMOTE_PROTOTYPES): Likewise
17236 (RETURN_IN_MEMORY): Likewise
17237 (STRUCT_VALUE): Likewise
17238 (SETUP_INCOMING_VARARGS): Likewise
17240 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
17242 * config/mips/mips.c (mips_offset_within_object_p): New function.
17243 (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
17244 SYMBOL_CONSTANT_POOL cases. Also use it for SYMBOL_GENERAL if the
17245 ABI has 64-bit pointers and the object file only allows 32-bit symbols.
17247 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17249 * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
17250 (PROMOTE_FUNCTION_RETURN): Likewise.
17252 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17254 * config/mn10300/mn10300-protos.h: Remove the prototype for
17255 mn10300_builtin_saveregs.
17256 * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
17257 (TARGET_STRUCT_VALUE_RTX): Likewise.
17258 (TARGET_RETURN_IN_MEMORY): Likewise.
17259 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
17260 (mn10300_return_in_memory): Likewise.
17261 (mn10300_builtin_saveregs): Make it static.
17262 * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
17263 (RETURN_IN_MEMORY): Likewise.
17264 (STRUCT_VALUE): Likewise.
17265 (EXPAND_BUILTIN_SAVEREGS): Likewise.
17267 2004-01-25 Eric Botcazou <ebotcazou@act-europe.fr>
17270 * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
17272 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17274 * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
17277 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17279 * config/i860/i860-protos.h: Remove the prototype for
17281 * config/i860/i860.c (i860_saveregs): Make it static.
17282 (i860_struct_value_rtx): New.
17283 (TARGET_STRUCT_VALUE_RTX): Likewise.
17284 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
17285 * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
17286 I860_STRUCT_VALUE_REGNUM.
17287 (EXPAND_BUILTIN_SAVEREGS): Remove.
17289 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17291 * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
17292 (TARGET_RETURN_IN_MEMORY): Likewise.
17293 (m68hc11_struct_value_rtx): Likewise.
17294 (m68hc11_return_in_memory): Likewise.
17295 * config/m68hc11/m68hc11.h: Remove a commented-out definition
17296 of PROMOTE_PROTOTYPES.
17297 (RETURN_IN_MEMORY): Remove.
17298 (STRUCT_VALUE_REGNUM): Likewise.
17300 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17302 * config/mmix/mmix-protos.h: Remove the prototype for
17303 mmix_setup_incoming_varargs.
17304 * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17305 (TARGET_STRUCT_VALUE_RTX): Likewise.
17306 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
17307 (mmix_setup_incoming_varargs): Make it static.
17308 (mmix_struct_value_rtx): New.
17309 * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
17310 Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
17311 (STRUCT_VALUE_REGNUM): Remove.
17312 (SETUP_INCOMING_VARARGS): Likewise.
17314 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17316 * config/mips/mips-protos.h: Remove the prototypes for
17317 mips_setup_incoming_varargs and mips_return_in_memory.
17318 * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17319 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
17320 (TARGET_PROMOTE_PROTOTYPES): Likewise.
17321 (TARGET_STRUCT_VALUE_RTX): Likewise.
17322 (TARGET_RETURN_IN_MEMORY): Likewise.
17323 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
17324 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
17325 (mips_setup_incoming_varargs): Match the prototype for
17326 TARGET_SETUP_INCOMING_VARARGS.
17327 (mips_return_in_memory): Make it static. Add argument fntype.
17328 (mips_strict_argument_naming): New.
17329 * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
17330 (PROMOTE_FUNCTION_ARGS): Likewise.
17331 (PROMOTE_FUNCTION_RETURN): Likewise.
17332 (STRUCT_VALUE): Likewise.
17333 (RETURN_IN_MEMORY): Likewise.
17334 (SETUP_INCOMING_VARARGS): Likewise.
17335 (STRICT_ARGUMENT_NAMING): Likewise.
17337 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17339 * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
17340 (TARGET_RETURN_IN_MEMORY): Likewise.
17341 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
17342 (ip2k_return_in_memory): Likewise.
17343 (ip2k_setup_incoming_varargs): Likewise.
17344 * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
17345 (STRUCT_VALUE): Likewise.
17346 (STRUCT_VALUE_INCOMING): Likewise.
17347 (SETUP_INCOMING_VARARGS): Likewise.
17349 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17351 * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
17352 (TARGET_RETURN_IN_MEMORY): Likewise.
17353 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
17354 (avr_return_in_memory): Remove.
17355 * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
17356 (STRUCT_VALUE): Likewise.
17357 (STRUCT_VALUE_INCOMING): Likewise.
17358 (STRICT_ARGUMENT_NAMING): Likewise.
17360 2004-01-25 Jan Hubicka <jh@suse.cz>
17362 * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
17364 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
17366 * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
17367 (mips_regno_mode_ok_for_base_p): Declare.
17368 * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
17369 (FRAME_POINTER_REGNUM): Renumber to 78.
17370 (FIRST_PSEUDO_REGISTER): Update comment accordingly.
17371 (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
17372 (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
17373 (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
17374 (REG_MODE_OK_FOR_BASE_P): Likewise.
17375 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
17376 entry for 77 to "$arg" and entry for 78 to "$frame".
17377 (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
17378 (mips_reg_mode_ok_for_base_p): Remove.
17379 (mips_regno_mode_ok_for_base_p): New function, derived from old
17380 BASE_REG_P macro. Don't enforce the mips16 stack pointer
17381 restrictions unless we're being strict.
17382 (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
17384 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
17386 * c-common.h: Fix comment typos.
17387 * c-decl.c: Likewise.
17388 * cgraphunit.c: Likewise.
17389 * combine.c: Likewise.
17390 * et-forest.c: Likewise.
17391 * flow.c: Likewise.
17392 * function.c: Likewise.
17393 * ifcvt.c: Likewise.
17394 * integrate.c: Likewise.
17395 * jump.c: Likewise.
17396 * postreload.c: Likewise.
17397 * varray.c: Likewise.
17399 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
17401 * doc/frontends.texi: Update copyright.
17402 * doc/gcov.texi: Likewise.
17403 * doc/gty.texi: Likewise.
17404 * doc/sourcebuild.texi: Likewise.
17405 * doc/standards.texi: Likewise.
17407 2004-01-24 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
17410 * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
17411 Remove movstrqi_small because it conflicts with movstrqi_large.
17413 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
17415 * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17416 (TARGET_STRUCT_VALUE_RTX): Likewise.
17417 (cris_struct_value_rtx): Likewise.
17418 * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
17419 (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
17420 STRUCT_VALUE_REGNUM.
17421 (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
17423 2004-01-24 Ian Lance Taylor <ian@wasabisystems.com>
17426 * cse.c (cse_cc_succs): Change the mode of the source expression
17427 as soon as decide we need a new mode. Don't permit changing modes
17428 if we found a match in a successor block.
17429 (cse_condition_code_reg): Save original mode of source expression
17430 so that we know whether we have to change the mode in other
17433 2004-01-24 Jan Hubicka <jh@suse.cz>
17435 * emit-rtl.c (change_address, adjust_address_1, offset_address,
17436 widen_memory_access): Return early when there is nothing to change.
17438 2004-01-24 Jakub Jelinek <jakub@redhat.com>
17440 * simplify-rtx.c (simplify_relational_operation): Don't
17441 simplify address == constant into address + -constant == 0.
17443 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
17445 * gcc.c (process_command): Don't internationalize the
17447 * mips-tfile.c (main): Likewise.
17449 2004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
17451 * cse.c: (cse_cc_succs) Fix comparison warning.
17453 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
17455 * config/h8300/h8300.md: Remove extraneous USE in expanders.
17457 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
17459 * config/h8300/h8300-protos.h: Provide prototypes for
17460 h8300_legitimate_constant_p and h8300_legitimate_address_p.
17461 * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
17462 (h8300_rtx_ok_for_base_p): Likewise.
17463 (h8300_legitimate_address_p): Likewise.
17464 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
17465 h8300_legitimate_constant_p.
17466 (RTX_OK_FOR_BASE_P): Remove.
17467 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
17469 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
17471 * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
17472 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
17473 (REG_OK_FOR_INDEX_STRICT_P): Likewise.
17474 (REG_OK_FOR_BASE_STRICT_P): Likewise.
17475 (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
17476 (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
17477 (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
17478 (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
17480 2004-01-24 Jan Hubicka <jh@suse.cz>
17482 * cselib.c (remove_useless_values): Do not access discarded values.
17484 2004-01-24 Joseph S. Myers <jsm@polyomino.org.uk>
17486 * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
17489 2004-01-23 Kazu Hirata <kazu@cs.umass.edu>
17491 * recog.c: Fix a typo in copyright.
17493 2004-01-23 Andrew Pinski <apinski@apple.com>
17495 * config/rs6000/rs6000.md (call): Fix misappiled patch.
17496 (call_value): Likewise.
17498 2004-01-23 Richard Henderson <rth@redhat.com>
17501 * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
17502 (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
17503 if SHIFT_COUNT_TRUNCATED is set.
17505 2004-01-23 Bob Wilson <bob.wilson@acm.org>
17507 * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
17508 separate real and imaginary parts.
17509 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
17511 2004-01-23 Hartmut Penner <hpenner@de.ibm.com>
17514 * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
17517 2004-01-23 Jan Hubicka <jh@suse.cz>
17519 * emit-rtl.c (change_address_1): Do not re-generate the RTX if nothing
17522 * alloc-pool.c (align_four): Kill.
17523 (create_alloc_pool): Align size to eight.
17524 (free_alloc_pool, free_pool): Invalidate deallocated data.
17526 2004-01-23 Ian Lance Taylor <ian@wasabisystems.com>
17529 * cse.c (cse_change_cc_mode): New static function.
17530 (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
17531 (cse_condition_code_reg): New function.
17532 * rtl.h (cse_condition_code_reg): Declare.
17533 * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
17534 * target.h (struct gcc_target): Add fixed_condition_code_regs and
17535 cc_modes_compatible.
17536 * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
17537 (TARGET_CC_MODES_COMPATIBLE): Define.
17538 (TARGET_INITIALIZER): Add new initializers.
17539 * targhooks.c (default_cc_modes_compatible): New function.
17540 * targhooks.c (default_cc_modes_compatible): Declare.
17541 * hooks.c (hook_bool_intp_intp_false): New function.
17542 * hooks.h (hook_bool_intp_intp_false): Declare.
17543 * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
17544 (TARGET_CC_MODES_COMPATIBLE): Define.
17545 (ix86_fixed_condition_code_regs): New static function.
17546 (ix86_cc_modes_compatible): Likewise.
17547 * doc/tm.texi (Condition Code): Document new hooks.
17549 2004-01-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17551 * fixinc/inclhack.def (bad_lval): Renamed to ...
17552 (alpha_bad_lval): ... this.
17554 Restrict to alpha*-dec-osf*.
17555 * fixinc/fixincl.x: Regenerate.
17556 * fixinc/tests/base/dirent.h: Remove, moving test ...
17557 * fixinc/tests/base/testing.h: ... here, reflecting new name.
17559 2004-01-23 Zack Weinberg <zack@codesourcery.com>
17562 * c-decl.c (diagnose_mismatched_decls): Also discard a
17563 built-in if we encounter an old-style definition with the
17566 2004-01-23 Jakub Jelinek <jakub@redhat.com>
17568 * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
17569 set to default{32,64}.
17571 2004-01-21 Jakub Jelinek <jakub@redhat.com>
17573 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
17574 [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
17576 2004-01-23 Eric Botcazou <ebotcazou@act-europe.fr>
17577 Olivier Hainque <hainque@act-europe.fr>
17579 * fold-const.c (fold_binary_op_with_conditional_arg): Only
17580 build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
17582 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
17584 * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
17585 size for minipool references.
17587 2004-01-23 Roger Sayle <roger@eyesopen.com>
17589 * real.c (real_floor, real_ceil): Tweak to allow input and output
17590 arguments to overlap.
17591 (real_round): New function to implement round(3m) semantics.
17592 * real.h (real_round): Prototype here.
17593 * builtins.c (fold_builtin_round): New function to constant fold
17594 round, roundf and roundl.
17595 (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
17597 2004-01-23 Alexandre Oliva <aoliva@redhat.com>
17599 PR optimization/13819
17600 * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
17601 introduced by 2004-01-20's Jan Hubicka's copy_insn change.
17602 (sh_handle_sp_switch_attribute): Remove warning.
17604 2004-01-23 Jan Hubicka <jh@suse.cz>
17606 * i386.c (ix86_emit_restore_regs_using_mov): Deal with large offsets.
17608 2004-01-23 J"orn Rennecke <joern.rennecke@superh.com>
17610 * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
17611 may or may not return non-NIL.
17612 * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
17613 check CANNOT_CHANGE_MODE_CLASS
17615 2004-01-23 Jan Hubicka <jh@suse.cz>
17617 * basic-block.h (PROP_POSTRELOAD): New macro.
17618 (CLEANUP_LOG_LINKS): New.
17619 * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
17620 * toplev.c (rest_of_handle_life): Preserve LOG_LINKS trought cleanup_cfg.
17622 * cselib.c (value_pool): New.
17623 (new_cselib_val): Use pool.
17624 (cselib_init): Initialize value_pool
17625 (cselib_finish): Free pool.
17627 2004-01-23 Eric Botcazou <ebotcazou@libertysurf.fr>
17629 * config/sparc/sparc.c (scan_record_type): New function.
17630 (function_arg_slotno): Use it to determine which kinds of
17631 registers the record can be passed in.
17633 2004-01-22 James A. Mmorrison <ja2morri@uwaterloo.ca>
17635 * config/pa/fptr.c: Fix old-style definition.
17637 2004-01-22 Paolo Bonzini <bonzini@gnu.org>
17639 PR optimization/13724
17640 * cse.c (fold_rtx) <SUBREG>: Fold a SUBREG to zero if it
17641 represents the zero bits produced by a ZERO_EXTEND operation.
17643 2004-01-22 Roger Sayle <roger@eyesopen.com>
17645 PR optimization/13821
17646 * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
17647 correctly calculate the lowpart offset of the contracted subreg.
17649 2004-01-22 Ian Lance Taylor <ian@wasabisystems.com>
17651 * doc/invoke.texi (Optimize Options): Note that --param arguments
17652 are subject to change without notice.
17654 2004-01-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17656 * config.gcc (mips-sgi-irix6*o32): Removed.
17657 * config/mips/iris6-o32-as.h: Likewise.
17658 * config/mips/iris6-o32-gas.h: Likewise.
17659 * config/mips/iris6-o32.h: Likewise.
17661 2004-01-22 Jan Hubicka <jh@suse.cz>
17663 * cfgcleanup.c (first_pass): New static variable.
17664 (try_forward_edges): Add work limiting check for threading.
17665 (try_crossjump_bb): Add work limiting check for crossjumping.
17666 (try_optimize_cfg): Maintain first pass variable.
17668 2004-01-22 Bob Wilson <bob.wilson@acm.org>
17670 * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
17671 handles complex and vector modes.
17673 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
17675 * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
17676 (REG_OK_FOR_BASE_P_STRICT): Likewise.
17677 (STRICT): Likewise.
17679 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
17681 * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
17682 (genrtl_for_stmt): Remove emit_nop calls.
17684 2004-01-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17688 * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
17689 movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
17690 clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
17692 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
17694 * config/arm/arm.c: Include "debug.h".
17695 (thumb_pushpop): Take two new arguments. Add some commentary.
17696 Output frame information when pushing.
17697 (thumb_exit, thumb_unexpanded_epilogue): Update calls to
17699 (thumb_output_function_prologue): Likewise. Accumulate a CFA
17700 offset, and pass it to thumb_pushpop. Output CFI information.
17701 (thumb_expand_prologue): Add some frame-related markers and notes.
17703 2004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
17705 * config/s390/s390.c (s390_frame_info): Allow large frame sizes
17707 (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
17708 * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
17710 2004-01-22 Roger Sayle <roger@eyesopen.com>
17711 Paolo Bonzini <bonzini@gnu.org>
17713 * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
17714 (subreg_lsb): Change to call new subreg_lsb_1 helper function.
17715 * rtl.h (subreg_lsb_1): Prototype here.
17716 * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
17719 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
17721 * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
17722 macro need not be defined if jump-tables should contain
17723 relative addresses only when -fPIC or -fPIC is in effect.
17725 2004-01-22 Jan Hubicka <jh@suse.cz>
17727 * alias.c (reg_base_value): Turn into varray.
17728 (reg_base_value_size): Kill.
17729 (old_reg_base_value): New deletable varray.
17730 (alias_invariant_size): New variable.
17731 (REG_BASE_VALUE): Update to use varray.
17732 (find_base_value): Likewise.
17733 (record_set): Likewise.
17734 (record_base_value): Likewise.
17735 (memrefs_conflict_p): Likewise.
17736 (record_set): Likewise
17737 (record_base_value): Likewise.
17738 (memrefs_conflict_p): Use alias_invariant_size.
17739 (init_alias_analysis): Use varray; set alias_invariant_size;
17740 rescale other arrays to be sized by maxreg.
17741 (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
17743 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
17745 * config/sparc/sparc.c (function_arg_slotno): Use
17746 FLOAT_TYPE_P to detect FP fields in structures.
17747 (function_arg_record_value_1): Likewise.
17748 (function_arg_record_value_2): Likewise.
17750 2004-01-22 Jan Hubicka <jh@suse.cz>
17752 * function.c (allocate_struct_function): Do not initialize expr, emit
17754 (prepare_function_start): Do it here.
17755 * c-parse.in (maybe_type_qual): Do not produce line number notes.
17757 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
17760 * config/sparc/sparc.c (function_arg_record_value_3): Revert
17761 to 'word_mode' once the first slot has been filled.
17763 2004-01-22 Olivier Hainque <hainque@act-europe.fr>
17765 * config/sparc/sparc.c (function_arg_record_value_1): Fix
17766 computation of the number of integer registers required.
17768 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
17770 * config/i386/i386.md: Simplify certain comparisons of
17773 2004-01-21 Andrew Pinski <apinski@apple.com>
17776 * config/rs6000/rs6000.md (call_value): Force operand
17777 1 not operand 0 into a register.
17779 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
17781 * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
17782 unwind-dw2-fde.h: Update copyright.
17784 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17786 * pa-protos.h: Update copyright.
17790 2004-01-21 Caroline Tice <ctice@apple.com>
17793 * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
17795 (fix_truncdfdi2): Likewise.
17796 (fix_truncsfdi2): Likewise.
17797 (*fix_truncdi_1): Likewise.
17798 (fix_truncxfsi2): Likewise.
17799 (fix_truncdfsi2): Likewise.
17800 (fix_truncsfsi2): Likewise.
17801 (*fix_truncsi_1): Likewise.
17802 (fix_truncxfhi2): Likewise.
17803 (fix_truncdfhi2): Likewise.
17804 (fix_truncsfhi2): Likewise.
17805 (*fix_trunchi_1): Likewise.
17807 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
17809 * alias.c, basic-block.h, c-common.c, c-common.h,
17810 c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
17811 calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
17812 combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
17813 cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
17814 defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
17815 expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
17816 genautomata.c, genconditions.c, genemit.c, genflags.c,
17817 gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
17818 ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
17819 langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
17820 line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
17821 ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
17822 rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
17823 target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
17824 unwind.h, varray.c, varray.h: Update copyright.
17826 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
17828 * config/h8300/coff.h: Update copyright.
17829 * config/h8300/elf.h: Likewise.
17830 * config/h8300/h8300-protos.h: Likewise.
17831 * config/h8300/h8300.c: Likewise.
17832 * config/h8300/h8300.h: Likewise.
17833 * config/h8300/h8300.md: Likewise.
17835 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17837 * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
17838 ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
17839 ultrix_unistd): New hacks.
17840 * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
17841 ULTRIX_CONST2_CHECK): Add checks.
17842 * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
17843 * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
17844 * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
17845 * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
17846 * fixinc/tests/base/locale.h: New file.
17847 * fixinc/fixincl.x: Rebuilt.
17849 2004-01-21 Andreas Jaeger <aj@suse.de>
17850 Michael Matz <matz@suse.de>
17852 * doc/extend.texi (Extended Asm): Clarify memory clobber.
17854 2004-01-21 Jakub Jelinek <jakub@redhat.com>
17856 * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
17857 _Jv_RegisterClasses through a function pointer.
17859 2004-01-21 Falk Hueffner <falk@debian.org>
17862 * config/alpha/alpha.c (alpha_emit_set_const_1): If
17863 no_new_pseudos, use gen_rtx_SET directly for SImode constants
17864 which need multiple instructions to emit.
17866 2004-01-21 Inaoka Kazuhiro <inaoka.kazuhiro@renesas.com>
17868 * config/m32r/m32r.h (CPP_SPEC): Define.
17870 2004-01-21 Zack Weinberg <zack@codesourcery.com>
17872 * c-decl.c (merge_decls): Kill different_binding_level and
17873 different_tu arguments; simplify throughout.
17874 (duplicate_decls): Likewise.
17875 (pushdecl, merge_translation_unit_decls): Update calls to
17878 2004-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17880 * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
17882 (print-rtl1.o): Depend on $(SYSTEM_H).
17884 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
17887 * configure.ac: Delete definition and subsitution of docdir.
17888 Add info, man, srcman and srcinfo to target hooks. Create doc/
17890 * configure: Regenerate.
17891 * Makefile.in: Don't substitute docdir and delete all references
17893 (MAKEINFOFLAGS): Define.
17894 (stmp-docobjdir): Delete.
17895 (INFOFILES, MANFILES): Define.
17896 (info): Call lang.info, srcinfo and lang.srcinfo.
17897 (generated-manpages): Call lang.man, srcman and lang.srcman.
17898 (srcinfo, srcman): New rules to copy back files to source directory.
17899 (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
17900 (install-man): Revamp rule.
17901 (clean): Update dvi directory.
17902 (distclean): Delete TAGS from front end directorys.
17903 (maintainer-clean): Delete all document files in source directory.
17905 objc/Make-lang.in (objc.man, objc.info): Dummy entries.
17906 (objc.srcman, objc.srcinfo): Likewise.
17908 2004-01-20 Bruce Korb <bkorb@gnu.org>
17910 * fixinc/inclhack.def(math_exception): bypass only for glibc.
17911 (matherr_decl): rename & relocate as exception_structure.
17912 This fix must precede the math_exception fix.
17914 2004-01-20 Roger Sayle <roger@eyesopen.com>
17916 * fold-const.c (fold_convert): Rename to fold_convert_const.
17917 (fold_convert_const): Change arguments to take a tree_code,
17918 a type and the operand/expression to be converted. Return
17919 NULL_TREE if no simplification is possible. Add support for
17920 FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
17921 (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
17922 Adjust call to fold_convert to match new fold_convert_const.
17923 Avoid modifying the tree passed to fold in-place.
17925 2004-01-21 Alan Modra <amodra@bigpond.net.au>
17927 * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
17928 * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
17929 * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
17931 2004-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17933 * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
17934 * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
17935 Likewise. Handle frames larger than 0x7fffffff on 64-bit ports.
17936 (emit_move_sequence): Check scratch_reg first in various if statements.
17937 Extend source simplification to handle all 64-bit CONST_INTs.
17938 (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
17940 (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
17941 frame offset calculations.
17942 * pa.h (NEW_HP_ASSEMBLER): Add comment.
17943 (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
17944 LEGITIMATE_64BIT_CONST_INT_P): Define.
17945 (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P. Treat
17946 any CONST_INT as legitimate during and after reload.
17947 (VAL_32_BITS_P, INT_32_BITS): Define.
17948 (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
17950 2004-01-20 Jan Hubicka <jh@suse.cz>
17952 * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
17953 emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
17954 containing hard regs are shared.
17955 (gen_hard_reg_clobber): New function.
17956 (hard_reg_clobbers): New array.
17957 * genemit.c (gen_exp): Use gen_hard_reg_clobber.
17958 (copy_rtx): Do not copy clobbers containing hard regs.
17959 * rtl.h (gen_hard_reg_clobber): Declare.
17961 2004-01-20 Jan Hubicka <jh@suse.cz>
17963 * varray.c: Include hashtab.h
17964 (varray_descriptor): New structure.
17965 (hash_descriptor, eq_descriptor, varray_descriptor,
17966 print_statistics): New static functions
17967 (varray_init, varray_grow): Update statistics
17968 (dump_varray_statistics): New function.
17969 * varray.h (dump_varray_statistics): Declare.
17970 * toplev.c (finalize): Call it.
17971 * Makefile.in (varray.o): Add dependency.
17973 2004-01-20 Jan Hubicka <jh@suse.cz>
17975 * cselib.c: Include alloc-pool.h
17976 (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
17977 (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
17978 (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
17979 unchain_one_elt_loc_list_pool, unchain_one_value,
17980 new_cselib_val): Simplify using allocpool.
17981 (cselib_init): Initialize allocpools.
17982 (cselib_finish): Finish allocpools.
17983 * Makefile.in (cselib.o): Depend on alloc-pool.h
17985 2004-01-20 Richard Sandiford <rsandifo@redhat.com>
17987 * config/mips/mips.c (mips_load_call_address): Make the call insn
17988 use $gp if it could be calling a lazy binding stub.
17990 2004-01-20 Kazu Hirata <kazu@cs.umass.edu>
17992 * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
17993 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
17994 (TARGET_STRUCT_VALUE_RTX): Likewise.
17995 * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
17996 (PROMOTE_FUNCTION_RETURN): Remove.
17997 (STRUCT_VALUE): Remove.
17999 2004-01-20 Denis Chertykov <denisc@overta.ru>
18002 * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
18003 register as pointer after reload.
18005 2004-01-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18007 PR optimization/12440
18008 * loop.c: Include ggc.h.
18009 (loop_optimize): Run garbage collector between optimization of loops.
18010 * Makefile.in (loop.o): Add GGC_H dependency.
18012 2004-01-20 Hartmut Penner <hpenner@de.ibm.com>
18014 * gcc/config/rs6000/rs6000.c (function_arg) Handle
18015 vector register special in function without prototype.
18016 (function_arg_advance): Vector parameters get always
18017 GPRs allocated for the linux64 target.
18019 2004-01-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
18021 * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
18022 not TARGET_M32RX_MASK.
18024 2004-01-20 Eric Botcazou <ebotcazou@libertysurf.fr>
18027 * config/sparc/sparc.c (function_arg): Reorder the cases.
18029 2004-01-19 Per Bothner <per@bothner.com>
18031 Move cpp_reader's line_maps field to a shared global.
18032 * cpphash.h (cpp_reader): Rename line_maps field to line_table
18033 and change the type to a pointer rather than a struct.
18034 * cppinit.c (cpp_push_main_field): Adjust accordingly.
18035 * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
18037 * cppfiles.c (validate_pch): Likewise.
18038 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
18040 * cpperror.c (print_location): Likewise.
18041 * cpplib.h (cpp_create_reader): New line_maps pointer parameter.
18042 * cppinit.c (cpp_create_reader): Handle new parameter.
18043 (cpp_destroy): Don't free line_maps - that's no longer our job.
18044 * input.h (line_table): New variable.
18045 * toplev.c (line_table): Declare variable.
18046 (general_init): Initialize line_table.
18047 * c-opts.c (c_common_init_options): Pass line_table to
18049 * fix-header.c (read_scan_file): New local variable line_table.
18050 Initialize, and pass it to cpp_create_reader.
18051 * Makefile.in (LIBS, LIBDEPS): Add libcpp.a.
18052 (C_AND_OBJC_OBJS, fix-header): Remove redundant libcpp.a.
18054 2004-01-19 Per Bothner <per@bothner.com>
18056 Implement a cache for linemap_lookup.
18057 * line-map.h (struct_line_maps): Add cache field.
18058 * line-map.c (linemap_init): Zero cache field.
18059 (linemap_add): Set cache field to offset of newly allocated map.
18060 (linemap_lookup): Use and set cache field.
18062 2004-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
18064 PR optimization/13567
18065 * cse.c (cse_basic_block): Call cse_insn with a non-null
18066 libcall_insn for the last SET insn of a no-confilict block.
18068 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
18070 * Makefile.in (target_noncanonical, program_transform_name): Use
18071 immediate define instead of deferred.
18072 (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
18073 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
18074 GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
18075 deferred backquote.
18077 2004-01-20 Joseph S. Myers <jsm@polyomino.org.uk>
18079 * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
18080 true unconditionally.
18081 * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
18083 (build_unary_op, build_modify_expr): Don't handle extended
18085 (build_component_ref, build_conditional_expr): Call non_lvalue
18086 instead of pedantic_non_lvalue.
18087 (build_c_cast): Don't condition use of non_lvalue on pedantic.
18088 * fold-const.c (fold): Don't check pedantic directly for
18089 COMPOUND_EXPR. Ensure that results for COMPOUND_EXPR are
18090 passed to pedantic_non_lvalue.
18091 * doc/extend.texi: Remove documentation of extended lvalues.
18093 2004-01-19 Roger Sayle <roger@eyesopen.com>
18095 PR optimization/5263
18096 * simplify-rtx.c (associative_constant_p): Delete.
18097 (simplify_associative_operation): Rewrite to linearize terms, and
18098 attempt to simplify new term against both left and right subterms.
18099 (simplify_binary_operation): Call swap_commutative_operands_p on
18100 op0 and op1, not trueop0 and trueop1. Move the initialization of
18101 trueop0 and trueop1 down to where first needed.
18102 (simplify_relational_operation): Likewise.
18103 * rtlanal.c (commutative_operand_precedence): Also order constant
18104 operands using avoid_constant_pool_reference.
18106 2004-01-19 Richard Henderson <rth@redhat.com>
18108 * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
18109 don't check memory mode.
18110 (unaligned_memory_operand): Likewise.
18111 (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
18112 abort for op0 not MEM.
18114 * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
18115 is not a reg, copy to a scratch first.
18116 (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
18117 unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
18118 unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
18119 (reload_inqi, reload_inhi): Fix mode of op0.
18120 (reload_inqi_help, reload_inhi_help, reload_outqi_help,
18121 reload_outhi_help): Likewise. Use define_insn_and_split.
18123 * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
18124 as well as $29 dead.
18126 2004-01-19 Eric Botcazou <ebotcazou@libertysurf.fr>
18128 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New. Emit
18129 "tls_object" for thread-local objects.
18130 * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
18131 "#tls" for thread-local sections.
18132 * configure.ac (thread-local checks): Specify --fatal-warnings in
18133 every binutils-specific checks. For sparc*-*-*, test whether the
18134 OS is Solaris and the tools are native and act accordingly.
18135 * configure: Rebuild.
18137 2004-01-19 Jeff Law <law@redhat.com>
18139 * contrib.texi: Update Paolo Carlini's entry. New entries for
18140 Jerry Quinn and Petur Runolfsson.
18142 2004-01-19 Roger Sayle <roger@eyesopen.com>
18144 * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
18145 size, don't use the larger zero-extending loads.
18147 2004-01-19 Richard Henderson <rth@redhat.com>
18149 * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
18150 * alpha.md (UNSPEC_NT_LDA): Remove.
18151 (UNSPEC_CVTLQ, cvtlq): New.
18152 (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
18153 (extendsidi2_fix): Remove.
18154 (extendsidi2 splitter): Use cvtlq.
18155 (extendsidi2 fp peepholes): Remove.
18156 (cvtql): Use SFmode instead of SImode.
18157 (fix_trunc?fsi): Update to match.
18158 (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
18159 (movsi): Rename from movsi_nofix, remove f alternatives.
18160 (movsi_nt_vms): Similarly.
18161 (movsi_fix, movsi_nt_vms_fix): Remove.
18163 * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
18165 2004-01-19 Jan Hubicka <jh@suse.cz>
18167 * cgraph.c (cgraph_remove_node): Fix removal from linked list.
18168 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
18170 (cgraph_remove_unreachable_nodes): New function
18171 (cgraph_decide_inlining_of_small_function): Fix pasto.
18172 (cgraph_decide_inlining_incrementally): Fix pasto.
18173 (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
18175 2004-01-19 Steven Bosscher <stevenb@suse.de>
18177 * gengtype.c (header_file): Make it static.
18178 (write_types_process_field, write_enum_defn): Minor whitespace fixes.
18179 * gengtype.h (header_file): No longer extern.
18181 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
18183 * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
18184 * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
18185 * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
18187 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
18189 * stmt.c (HAVE_casesi): Define it not already defined.
18190 (HAVE_tablejump): Likewise.
18191 (expand_end_case_type): Resort to the binary tree method if
18192 neither casesi or tablejump is available.
18194 2004-01-18 Daniel Jacobowitz <drow@mvista.com>
18196 * final.c (final_scan_insn): Make non-static again.
18197 * output.h (final_scan_insn): Re-add prototype.
18198 * config/arc/arc.c (arc_output_function_epilogue): Add NULL
18199 to final_scan_insn call.
18200 * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
18201 * config/mips/mips.c (mips_output_conditional_branch): Likewise.
18202 * config/pa/pa.c (output_lbranch, output_call): Likewise.
18203 * config/sh/sh.c (print_slot): Likewise.
18204 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
18205 (output_sibcall, sparc_flat_function_epilogue): Likewise.
18207 2004-01-18 Jan Hubicka <jh@suse.cz>
18209 * basic-block.h (try_redirect_by_replacing_jump): Declare.
18210 * cfgcleanup.c (try_optimize_cfg): Use it.
18211 * cfgrtl.c (try_redirect_by_replacing_jump): Export.
18212 (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
18214 (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
18217 2004-01-16 Geoffrey Keating <geoffk@apple.com>
18219 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
18220 even after reload, just don't remove the actual jump tables.
18222 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
18224 * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
18226 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
18228 * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
18229 the size of a pointer in bytes.
18231 2004-01-18 Roger Sayle <roger@eyesopen.com>
18233 * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
18234 live "next" variable, which could lead to an infinite loop.
18236 2004-01-18 Andrew Pinski <pinskia@physics.uc.edu>
18238 * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
18241 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
18242 Check for NULL in the chain and remove repeated code.
18244 2004-01-18 Jan Hubicka <jh@suse.cz>
18246 * coverage.c (checksum_string): Rename to ...
18247 (coverage_checksum_string): ... this one, Use crc32_string; recognize
18248 names containing random number and zero the number out in order to get
18251 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
18253 * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
18255 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
18257 * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
18258 doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
18259 doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
18260 doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
18261 doc/trouble.texi: Remove trailing whitespace.
18263 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
18266 * config/mips/mips.c: Include cfglayout.h.
18267 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
18268 (mips_unspec_offset_high): Add temporary register argument.
18269 (mips_load_call_address): New function, split out from...
18270 (mips_expand_call): ...here.
18271 (mips_output_cplocal): New function.
18272 (mips_output_function_prologue, mips_output_function_epilogue): Use it.
18273 (mips_emit_loadgp): New function, split out from...
18274 (mips_expand_prologue): ...here.
18275 (mips_output_mi_thunk): New function.
18277 2004-01-17 Bernardo Innocenti <bernie@develer.com>
18279 * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
18280 mcpu32): Remove redundant checks for implied target predefines.
18282 2004-1-17 Andrew Pinski <pinskia@physics.uc.edu>
18284 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
18285 Return type is unsigned int not int.
18286 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
18289 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
18291 * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
18292 doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
18293 "GNU/Linux" and "Microsoft Windows" terminology.
18295 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
18297 * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
18298 doc/cppopts.texi, doc/extend.texi, doc/install.texi,
18299 doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
18300 doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
18301 @smallexample instead of @example.
18303 2004-01-17 Ziemowit Laski <zlaski@apple.com>
18305 * objc/objc-act.c (build_objc_method_call): Use target
18306 hooks instead of macros to determine if ..._stret
18307 dispatchers should be used (NeXT runtime only).
18309 2004-01-17 Roger Sayle <roger@eyesopen.com>
18311 * builtins.c (expand_builtin_expect_jump): Fix mistake in my
18312 last patch. Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
18314 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
18316 * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
18317 (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
18318 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
18320 * reload1.c (emit_reload_insns): Use them.
18321 * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
18322 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
18325 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
18327 * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
18328 (final_scan_insn): Update to take an additional SEEN argument. Emit
18329 a line note after the prologue. Make static.
18330 (line_note_exists): Remove.
18331 (final): Don't initialize line_note_exists. Update call to
18333 * output.h (final_scan_insn): Remove prologue.
18334 * function.c (set_insn_locators): Update comment.
18335 (thread_prologue_and_epilogue_insns): Add a comment.
18337 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
18340 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
18342 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
18344 * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
18345 * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
18346 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
18348 2004-01-17 Jan Hubicka <jh@suse.cz>
18350 * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
18353 * toplev.c (HAVE_conditional_execution): Provide default.
18354 (rest_of_handle_reorder_blocks): For conditional_execution target
18355 update liveness once after all transformations
18356 (rest_of_compilation): Do crossjumping before ce3.
18358 2004-01-17 Geoffrey Keating <geoffk@apple.com>
18360 * alias.c (new_alias_set): Mark last_alias_set for PCH.
18361 (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
18363 (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
18364 * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
18365 (get_TOC_alias_set): Mark 'set' for PCH.
18367 2004-01-16 Geoffrey Keating <geoffk@apple.com>
18369 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
18370 even after reload, just don't remove the actual jump tables.
18372 2004-01-17 J. Brobecker <brobecker@gnat.com>
18374 * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
18375 Remove checks for is_ada() and TREE_UNSIGNED.
18376 (subrange_type_die): Emit a byte_size attribute if the subrange
18377 type size is different from the base type size.
18378 (modified_type_die): Replace call to is_ada_subrange_type() by
18379 call to is_subrange_type().
18381 2004-01-16 Andrew Pinski <pinskia@physics.uc.edu>
18383 * config/sh/sh.c: Include ggc.h.
18385 2004-01-16 Geoffrey Keating <geoffk@apple.com>
18387 * Makefile.in (MD5_H): New.
18388 (fold-const.o): Depend on md5.h.
18389 (dwarf2out.o): Likewise.
18390 (cppfiles.o): Likewise.
18391 * cppfiles.c: Include md5.h.
18392 (should_stack_file): Check against list read from PCH file.
18393 (struct pchf_data): New.
18394 (pchf): New variable.
18395 (struct pchf_adder_info): New.
18397 (pchf_save_compare): New.
18398 (_cpp_save_file_entries): New.
18399 (_cpp_read_file_entries): New.
18400 (struct pchf_compare_data): New.
18401 (pchf_compare): New.
18402 (check_file_against_entries): New.
18403 * cpphash.h (_cpp_save_file_entries): Prototype.
18404 (_cpp_read_file_entries): Prototype.
18405 * cpppch.c (cpp_write_pch_state): Write the list of headers.
18406 (cpp_read_state): Read the list of headers.
18408 2004-01-17 Jan Hubicka <jh@suse.cz>
18410 * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
18411 builtin_expect specially.
18412 * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
18413 (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
18414 * invoke.texi (max-inline-insns-single): Set to 100.
18415 (large-function-insns): Set to 3000.
18417 2004-01-16 Eric Christopher <echristo@redhat.com>
18418 Chandrakala Chavva <cchavva@redhat.com>
18420 * cppcharset.c (one_iso88591_to_utf8): New function.
18421 (convert_iso88591_utf8): Ditto. Use.
18422 (conversion_tab): Use.
18423 (_cpp_input_to_utf8): New function.
18424 (_cpp_init_iconv_buffer): Ditto.
18425 (_cpp_close_iconv_buffer): Ditto.
18426 * cpphash.h: Prototype new functions.
18427 (cpp_buffer): Add input_cset_desc.
18428 * cppinit.c: Add input_charset default.
18429 * cpplib.c (cpp_push_buffer): Support init and
18431 * cpplib.h (cpp_options): Add input_charset.
18433 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
18435 * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
18436 * config/alpha/unicosmk.h: Remove a commented-out definition
18437 of ASM_OUTPUT_SECTION_NAME.
18438 * config/stormy16/stormy16.h: Likewise.
18440 2004-01-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18442 * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
18443 (alpha___extern_prefix_sys_stat): ... this.
18444 Apply to <sys/mount.h>, too.
18445 Tweak to match more variations.
18446 * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
18448 * fixinc/inclhack.def (alpha___extern_prefix,
18449 alpha___extern_prefix_standards): New hacks to obey
18450 __PRAGMA_EXTERN_PREFIX.
18451 * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
18453 * fixinc/tests/base/standards.h: Likewise.
18455 * fixincl/inclhack.def (alpha_pthread): Tweak to match more
18458 * fixinc/tests/base/pthread.h: Handle it.
18460 * fixincl/inclhack.def (bad_lval): Sort file list.
18461 Add many missing files up to Tru64 UNIX V5.1B.
18462 * gcc/fixinc/tests/base/libgen.h: Renamed to ...
18463 * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
18466 * fixinc/fixincl.x: Regenerate.
18468 2004-01-16 Mark Mitchell <mark@codesourcery.com>
18470 * version.c (version_string): Change to 3.5.0.
18471 * doc/include/gcc-common.texi (version-GCC): Likewise.
18473 2004-01-16 Jan Hubicka <jh@suse.cz>
18475 * i386.md (load_tp_di): Fix pasto.
18478 * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
18480 * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
18481 pp_c_character_constant, pp_c_floating_constant,
18482 pp_c_additive_expression, pp_c_shift_expression,
18483 pp_c_equality_expression, pp_c_and_expression,
18484 pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
18485 pp_c_logical_and_expression): Remove inline modifier.
18486 * dwarf2out.c (get_AT): Likewise.
18487 * et-forest.c (et_splay): Likewise.
18488 * ra.h (ra_alloc, ra_calloc): Likewise
18490 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
18492 * config/frv/frv-protos.h: Fix comment formatting.
18493 * config/frv/frv.c: Likewise.
18494 * config/frv/frv.h: Likewise.
18495 * config/frv/frv.md: Likewise.
18496 * config/frv/frvbegin.c: Likewise.
18497 * config/frv/frvend.c: Likewise.
18499 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
18501 * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
18502 * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
18503 LINKER_DOES_NOT_WORK_WITH_DWARF2.
18504 (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
18506 2004-01-16 J"orn Rennecke <joern.rennecke@superh.com>
18509 * postreload.c (reload_cse_simplify_operands): Don't remove
18510 implicit extension from LOAD_EXTEND_OP.
18512 2004-01-16 Jan Hubicka <jh@suse.cz>
18515 * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
18517 * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
18518 rtl_try_redirect_by_replacing_branch): Likewise.
18520 2004-01-15 Geoffrey Keating <geoffk@apple.com>
18523 * alias.c (struct alias_set_entry): Mark for GC.
18524 (alias_sets): Make static, mark for GC.
18525 (record_alias_subset): Use GC to allocate alias structures.
18526 * varray.c (element): Make generic varrays GCed.
18529 * c-typeck.c (constructor_asmspec): Delete.
18530 (struct initializer_stack): Delete field 'asmspec'.
18531 (start_init): Delete saving of asmspec.
18532 (finish_init): Don't update constructor_asmspec.
18533 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
18534 * stmt.c (expand_asm): Duplicate strings from tree.
18535 (expand_asm_operands): Likewise.
18536 * tree.c (tree_size): Update computation of size of STRING_CST.
18537 (make_node): Don't make STRING_CST nodes.
18538 (build_string): Allocate string with tree node.
18539 * tree.def (STRING_CST): Update comment.
18540 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
18541 (tree_string): Place contents of string in tree node.
18542 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
18545 * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
18548 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18550 * c-common.h: Fix comment formatting.
18551 * c-cppbuiltin.c: Likewise.
18552 * c-pragma.c: Likewise.
18553 * calls.c: Likewise.
18554 * collect2.c: Likewise.
18555 * cppcharset.c: Likewise.
18556 * cpptrad.c: Likewise.
18557 * dbxout.c: Likewise.
18558 * defaults.h: Likewise.
18559 * dwarf2out.c: Likewise.
18560 * fold-const.c: Likewise.
18561 * genautomata.c: Likewise.
18562 * genconditions.c: Likewise.
18563 * genflags.c: Likewise.
18564 * gengtype.c: Likewise.
18565 * integrate.c: Likewise.
18566 * loop.c: Likewise.
18567 * predict.c: Likewise.
18568 * sdbout.c: Likewise.
18570 2004-01-15 Zack Weinberg <zack@codesourcery.com>
18572 * config/ia64/ia64.md (*movti_internal): C output template
18573 extracted to ia64.c.
18574 (*movti_internal_reg): Delete.
18575 (reload_inti, reload_outti): Use the correct mode on operand 2
18576 in the first place, don't fix it up in the output template.
18577 (movtf, reload_ointf, reload_outtf): New expanders.
18578 (*movtf_internal): New define_insn_and_split.
18579 * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
18580 make static; do not hand TFmode CONST_DOUBLEs to split_double.
18581 (ia64_split_tmode_move): New function, body mostly pulled
18582 from ia64.md:*movti_internal.
18583 (ia64_function_arg_words): New function, extracted common
18584 logic from ia64_function_arg et seq.
18585 (ia64_function_arg_offset): Likewise. Handle correctly the
18586 case of a scalar quantity 16 bytes wide with only 8-byte alignment.
18587 (ia64_function_arg, ia64_function_arg_partial_nregs)
18588 (ia64_function_arg_advance): Use ia64_function_arg_words and
18589 ia64_function_arg_offset.
18590 (ia64_function_value): TCmode does not go in float regs.
18591 (ia64_secondary_reload_class): Also handle TFmode.
18592 * config/ia64/ia64-protos.h: Remove prototype for
18593 ia64_split_timode; add prototype for ia64_split_tmode_move.
18595 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
18597 * Makefile.in (MAINT): Make it an immediate assignment.
18599 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18601 * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
18603 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18605 * config/h8300/coff.h: Replace Hitachi with Renesas.
18606 * config/h8300/elf.h: Likewise.
18607 * config/h8300/h8300-protos.h: Likewise.
18608 * config/h8300/h8300.c: Likewise.
18609 * config/h8300/h8300.h: Likewise.
18610 * config/h8300/h8300.md: Likewise.
18611 * config/h8300/lib1funcs.asm: Likewise.
18613 2004-01-15 Andrew Pinski <apinski@apple.com>
18615 * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
18618 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18620 * config/h8300/h8300.c (h8300_return_in_memory): New.
18621 (TARGET_STRUCT_VALUE_RTX): Likewise.
18622 (TARGET_RETURN_IN_MEMORY): Likewise.
18623 * config/h8300/h8300.h (STRUCT_VALUE): Remove.
18624 (RETURN_IN_MEMORY): Likewise.
18626 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
18628 PR optimization/13375
18629 * gcse.c (handle_avail_expr): Just return if the source is not a
18632 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
18633 Daniel Jacobowitz <drow@mvista.com>
18635 * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
18637 (ARM_FUNC_ALIAS): New macro.
18638 * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
18639 * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
18641 2004-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18643 PR optimization/12372
18644 * calls.c (expand_call): Add call_fusage data for stack arguments in
18647 2004-01-15 Alan Modra <amodra@bigpond.net.au>
18649 * config/rs6000/rs6000.c (uses_TOC): Correct comment. Make static.
18650 (rs6000_elf_declare_function_name): Formatting.
18651 * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
18653 2004-01-15 Jan Hubicka <jh@suse.cz>
18656 * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
18659 2004-01-15 Richard Henderson <rth@redhat.com>
18661 * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
18662 integer regs of the same call-savedness.
18664 2004-01-15 Andreas Schwab <schwab@suse.de>
18667 * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
18668 status for NOTB/NOTW/NEGW methods.
18670 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18672 * doc/invoke.texi: Update dump file names. Fix a typo.
18674 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18676 * builtins.c (expand_builtin_va_end): Don't use
18677 EXPAND_BUILTIN_VA_END.
18678 * system.h (EXPAND_BUILTIN_VA_END): Poison.
18679 * config/d30v/d30v.h: Remove a commented-out definition of
18680 EXPAND_BUILTIN_VA_END.
18681 * config/stormy16/stormy16.h: Likewise.
18683 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18685 * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
18686 * targhooks.c (default_struct_value_rtx): Don't use
18687 STRUCT_VALUE_INCOMING_REGNUM.
18689 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
18692 * configure.in: Revamp enable-generated-files-in-srcdir rule to define
18693 GENINSRC and not parsedir. Define srcextra as a langhook.
18694 * configure: Regenerate.
18695 * Makefile.in: Suppress default .l.c rule. Don't substitute
18696 parsedir and delete all references throughout. Conditionally define
18697 rule for srcextra dependent on GENINSRC.
18698 (stmp-docobjdir): Delete.
18699 (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
18700 (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
18701 and gengtype-yacc.h back to source directory.
18702 (maintainer-clean): Delete all parse files in source directory.
18703 (distclean): Delete generated files.
18705 * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
18706 (objc-parse.c, objc-parse.y): Don't use parsedir.
18707 (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
18708 directory if requested.
18709 (po-generated): Don't use parsedir.
18710 (objc.maintainer-clean): Delete above files from source directory.
18712 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18714 * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
18716 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18718 * doc/tm.texi: Replace RETURN_IN_MEMORY with
18719 TARGET_RETURN_IN_MEMORY.
18721 2004-01-15 Jan Hubicka <jh@suse.cz>
18723 * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
18724 * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
18725 functions accepting SSE arguments
18726 (function_arg): Warn only when asked to warn.
18727 * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
18729 2004-01-14 Joseph S. Myers <jsm@polyomino.org.uk>
18731 * c-parse.in (stmts_and_decls): Make label at end of compound
18732 statement a hard error.
18734 2004-01-14 Jan Hubicka <jh@suse.cz>
18736 * cgraph.c (create_edge): Use local.redefined_extern_inline.
18737 * cgraph.h (cgraph_local_info): Sort fields by size; add
18738 redefined_extern_inline
18739 (cgraph_global_info): Sort fields by size.
18740 (cgraph_node): Likewise.
18741 * cgraphunit.c (cgraph_finalize_function): Se
18742 local.redefined_extern_inline on redefinition.
18743 (cgraph_analyze_function): Use it; fix formating.
18745 2004-01-14 Jan Hubicka <jh@suse.cz>
18748 * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
18749 outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
18751 (cache_size): New variable
18752 (add_dependence): Update use; canonize early memory locations
18753 (sched_analyze_1): Likewise.
18754 (sched_analyze_2): Likewise.
18755 (init_dependency_caches): Initialize bitmaps.
18756 (free_dependency_caches): Free bitmaps
18758 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18760 * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
18761 targetm.calls.strict_argument_naming().
18762 * target.h: Likewise.
18764 2004-01-14 Richard Henderson <rth@redhat.com>
18767 * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
18770 2004-01-14 Richard Henderson <rth@redhat.com>
18773 * except.c (struct eh_region): Add u.fixup.resolved.
18774 (resolve_one_fixup_region): Split out from ...
18775 (resolve_fixup_regions): ... here.
18777 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18779 * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
18781 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18783 * config/alpha/alpha.h (STRUCT_VALUE): Remove.
18784 * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
18785 (STRUCT_VALUE): Remove.
18787 2004-01-14 Steven Bosscher <stevenb@suse.de>
18789 * system.h: Poison PROMOTED_MODE
18790 * integrate.c (expand_inline_function): Don't mention the
18792 * loop.c (update_giv_derive): Same.
18793 * tree.h (DECL_RTL): Same.
18795 2004-01-14 J"orn Rennecke <joern.rennecke@superh.com>
18798 * sh.c (gen_block_redirect): Add special handling of RETURN.
18799 (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
18800 far branch target (i.e. it's a return).
18802 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18804 * regrename.c (find_oldest_value_reg): Fix a warning.
18806 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
18809 * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
18810 Move linux-gas.h and linux-elf.h before aout.h.
18811 * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
18812 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
18814 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18816 * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
18817 (CONST_INT, VOIDmode, ...).
18819 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
18821 * regrename.c (find_oldest_value_reg): If the replacement uses
18822 multiple hard registers, check that all of them are in CLASS.
18824 2004-01-14 Jan Hubicka <jh@suse.cz>
18826 * alias.c (get_alias_set): Initialize alias set to 0 when subset is
18829 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
18831 * Makefile.in: Define MAINT from --enable-maintainer-mode.
18833 2004-01-14 Hartmut Penner <hpenner@de.ibm.com>
18835 * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
18836 Calculate always vrsave_mask if TARGET_ALTIVEC.
18837 (rs6000_emit_prologue): Emit code for vrsave
18838 only if TARGET_ALTIVEC_VRSAVE.
18839 (rs6000_emit_epilogue): Likewise.
18841 2004-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
18843 * config/sparc/sparc.md (tie_add32): Fix pasto.
18844 (tie_add64): Likewise.
18846 2004-01-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18848 * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
18850 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
18852 * config/iq2000/iq2000-protos.h: Fix comment formatting.
18853 * config/iq2000/iq2000.c: Likewise.
18854 * config/iq2000/iq2000.md: Likewise.
18856 2004-01-14 J. Brobecker <brobecker@gnat.com>
18858 * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
18859 (subrange_type_die): Add handle for nameless subrange types.
18861 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
18863 * config/h8300/h8300-protos.h: Replace do_movsi with
18864 h8300_expand_movsi.
18865 * config/h8300/h8300.c (do_movsi): Change to
18866 h8300_expand_movsi.
18867 * config/h8300/h8300.md (movsi): Replace do_movsi with
18868 h8300_expand_movsi.
18871 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
18873 * config/h8300/h8300.c (dosize): Change to
18874 h8300_emit_stack_adjustment. Update callers.
18876 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
18878 * config/h8300/h8300.md (movstrictqi): Add an alternative with
18879 the source being post_inc. Tighten the predicate for the
18880 destination to register_operand.
18881 (movstricthi): Likewise.
18883 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
18885 * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
18886 * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
18887 * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
18889 2004-01-14 Jan Hubicka <jh@suse.cz>
18891 Partial fix PR c++/12850
18892 * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
18893 at zero nest level.
18895 2004-01-13 Bernardo Innocenti <bernie@develer.com>
18897 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
18900 2004-01-13 Devang Patel <dpatel@apple.com
18903 * dbxout.c (dbxout_symbol_name): Emit mangled names for
18904 NAMESPACE_DECL memebers.
18906 2004-01-13 Andrew Pinski <pinskia@physics.uc.edu>
18909 * c-common.c (finish_fname_decls): Use the chain only if the
18910 tree is an expr_stmt.
18912 2004-01-13 Vladimir Makarov <vmakarov@redhat.com>
18914 * rtl.def: Add comment about new option in automata_option.
18916 * genautomata.c (PROGRESS_OPTION): New macro.
18917 (progress_flag): New global variable.
18918 (gen_automata_option): Process `progress'.
18919 (transform_insn_regexps, check_unit_distributions_to_automata,
18920 make_automaton, NDFA_to_DFA, build_automaton, create_automata,
18921 expand_automata, write_automata): Print about the progress only if
18922 progress_flag. Remove fflush.
18923 (initiate_automaton_gen): Process command line flag `-progress'.
18925 * doc/md.texi: Describe the new option.
18927 2004-01-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18929 * cfg.c (dump_bb): Dump entry edges.
18931 2004-01-13 Richard Earnshaw <rearnsha@arm.com>
18933 * arm.c (thumb_legitimate_address_p): Only allow constant pool
18934 references from SImode.
18935 * arm.md (thumb_movhi_insn): Don't allow minipool references.
18937 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
18939 * system.h (TEXT_SECTION): Poison.
18940 * varasm.c (text_section): Don't use TEXT_SECTION.
18941 * config/sh/sh.c (sh_file_start): Fix a comment typo.
18942 * doc/tm.texi (TEXT_SECTION): Remove.
18944 2004-01-13 Ben Elliston <bje@wasabisystems.com>
18946 * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
18948 2004-01-12 James E Wilson <wilson@specifixinc.com>
18950 * unwind-libunwind.c: Delete.
18952 2004-01-12 Zack Weinberg <zack@codesourcery.com>
18955 * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
18956 oldtype is set, set *newtypep or *oldtypep too. Do not set
18957 them at the very end.
18958 (validate_proto_after_old_defn): Restructure for comprehensibility;
18959 make error messages clearer.
18961 2004-01-12 Zack Weinberg <zack@codesourcery.com>
18963 * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
18964 (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
18965 * varray.c: No need to prototype error.
18966 (varray_check_failed): Wrap long string onto two lines.
18967 (varray_underflow): New function.
18969 2004-01-13 Steven Bosscher <stevenb@suse.de>
18972 * function.h (struct function): Kill `name' field.
18973 (current_function_name): Make it an extern function.
18974 * function.c (current_function_name): New function.
18975 * graph.c: Update all uses of current_function_name.
18976 * gcse.c: Likewise.
18977 * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
18978 config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
18979 * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
18980 instead of a strcmp with "main".
18982 2004-01-13 Jan Hubicka <jh@suse.cz>
18984 * c-decl.c (diagnose_mismatched_decls): Fix warning calls.
18986 * cgraphunit.c (cgraph_optimize_function): Always do
18987 optimize_inline_calls when there is always_inline callee.
18988 (cgraph_decide_inlining): Fix formating.
18989 * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
18991 (expand_call_inline): Likewise.
18992 * toplev.h (sorry): Fix prototype.
18994 2004-01-12 Roger Sayle <roger@eyesopen.com>
18996 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
18997 conditional jumps that drop through to unconditional jumps or the
18998 end of the sequence.
19000 2004-01-13 Jan Hubicka <jh@suse.cz>
19002 * alias.c (new_alias_set): Construct the alias_set varray.
19003 (init_alias_once): Don't do it here.
19005 2004-01-12 Marc Espie <espie@openbsd.org>
19007 * system.h: handle YYBYACC like YYBISON.
19009 2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
19012 * config.gcc: No longer includes conflicting header sparc/sol2.h when
19013 building on sparc64-*-openbsd*.
19015 2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
19018 * dbxout.c (dbxout_type): Protected inheritance is not
19019 private but protected.
19021 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
19023 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
19025 2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
19027 PR optimization/12508.
19028 * combine.c (try_combine): Remove a dead set in a parallel
19029 even if its destination is a subreg.
19032 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
19033 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
19034 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
19036 2004-01-12 Geoffrey Keating <geoffk@apple.com>
19038 * real.c: Update copyright date.
19039 * emit-rtl.c: Likewise.
19041 * dwarf2out.c: Likewise.
19042 * config/rs6000/darwin-ldouble.c: Likewise.
19043 * config/rs6000/rs6000.md: Likewise.
19045 2004-01-12 David Edelsohn <edelsohn@gnu.org>
19047 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
19048 TFmode to SImode libfuncs.
19050 2004-01-12 Roger Sayle <roger@eyesopen.com>
19052 PR middle-end/11397
19053 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
19055 2004-01-12 Jan Hubicka <jh@suse.cz>
19058 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
19062 * cfgcleanup.c (label_is_jump_target_p): Move to...
19063 * rtlanal.c (label_is_jump_target_p): ... here.
19064 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
19065 edges unified with branch edges.
19067 2004-01-12 Richard Earnshaw <rearnsha@arm.com>
19069 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
19070 high word of an integral CONST_DOUBLE.
19072 2004-01-12 Paul Brook <paul@codesourcery.com>
19074 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
19076 2004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
19079 * sh-protos.h (check_use_sfunc_addr): Declare.
19080 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
19081 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
19083 2004-01-12 Jan Hubicka <jh@suse.cz>
19085 * alias.c: Invlude varray.h
19086 (alias_sets): Turn into varray.
19087 (get_alias_set_entry): Use VARRAY; mark inline.
19088 (mems_in_disjoint_alias_sets_p): Mark inline.
19089 (record_alias_subset): Use varray.
19090 (init_alias_once): Initialize varray.
19091 (new_alias_set): Grow array.
19092 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
19094 2004-01-12 Jan Hubicka <jh@suse.cz>
19096 Partial fix for PR opt/10776 II
19097 * cselib.c: Include params.h
19098 (cselib_invalidate_mem): Limit amount of nonconflicting memory
19100 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
19101 * Makefile.in (cselib.o): Depend on params.h
19103 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
19105 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
19106 simplify_unary_operation if the operand has a known mode.
19108 2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
19111 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
19112 predicate to handle 'ld' conform addresses.
19113 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
19115 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
19116 are memory contraints.
19117 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
19119 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
19120 Change 'o' to 'Y' constraint.
19121 (*movdf_softfloat64): Ditto.
19123 2004-01-12 Bernardo Innocenti <bernie@develer.com>
19125 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
19126 brace-enclosed syntax in all C output statements.
19128 2004-01-12 David Edelsohn <edelsohn@gnu.org>
19131 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
19132 Objective-C language type value is 14.
19134 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
19137 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
19138 `int' in a number of places to make sure we always have a SImode
19139 and not a HImode. Add a 'L' suffix to a number of constants.
19141 2004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19143 * pa.c: Don't include obstack.h.
19145 * pa.md: Correct constraint in pattern for loading PIC label address.
19147 2004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
19149 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
19152 2004-01-11 Steven Bosscher <stevenb@suse.de>
19155 * toplev.c (rest_of_handle_inline): Also consider functions
19156 for deferral if the language is GNU F77.
19158 2004-01-11 Zack Weinberg <zack@codesourcery.com>
19160 * c-decl.c (diagnose_arglist_conflict): Add missing space to
19161 diagnostic messages.
19163 2004-01-11 Jakub Jelinek <jakub@redhat.com>
19165 PR middle-end/13392
19166 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
19167 to drop through label. Don't fall back to SCC even when conditional
19168 jump has not been found.
19170 2004-01-11 Jan Hubicka <jh@suse.cz>
19172 * invoke.texi: Fix syntax error in previous patch.
19174 Partial fix for PR opt/10776
19175 * Makefile.in (reload.o): Include param.h
19176 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
19177 * reload.c: Include params.h.
19178 (find_equiv_reg): Work limiting check.
19179 * invoke.texi: Document.
19181 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
19183 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
19184 out-of-bounds accesses to string constants. Simplify mips16
19187 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
19189 PR optimization/13469
19190 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
19191 reload_cse_regs (-fnon-call-exceptions only).
19193 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
19195 * config/mcore/lib1.asm: Fix comment formatting.
19196 * config/mcore/mcore-elf.h: Likewise.
19197 * config/mcore/mcore.c: Likewise.
19198 * config/mcore/mcore.h: Likewise.
19199 * config/mcore/mcore.md: Likewise.
19201 2004-01-10 Zack Weinberg <zack@codesourcery.com>
19203 * c-decl.c (duplicate_decls): Break apart into...
19204 (diagnose_arglist_conflict, validate_proto_after_old_defn)
19205 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
19206 ... these new functions. Restructure for comprehensibility.
19207 Remove various archaic special cases. Always report the
19208 location of the previous declaration when a diagnostic is issued.
19209 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
19210 (match_builtin_function_types): Delete unnecessary forward declaration.
19212 2004-01-10 Zack Weinberg <zack@codesourcery.com>
19214 * genautomata.c (make_automaton, NDFA_to_DFA):
19215 Print progress bars with '.' characters instead of '*'.
19216 (build_automaton): Change notes to match.
19218 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
19220 * config/m32r/m32r.md: Use define_constants for unspec and
19223 2004-01-10 Jan Hubicka <jh@suse.cz>
19226 * expr.c (expand_expr_real): More curefully expand union casts.
19228 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
19230 * config/m32r/m32r.md (flush_icache): Use 1 for
19233 2004-01-10 David Edelsohn <edelsohn@gnu.org>
19234 James E Wilson <wilson@specifixinc.com>
19237 * dbxout.c (dbxout_symbol): Remove initialization of
19238 current_sym_code, current_sym_value, and current_sym_addr.
19239 (dbxout_symbol_location): Same.
19240 (dbxout_prepare_symbol): Zero current_sym_code,
19241 current_sym_value, and current_sym_addr.
19243 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
19245 * tree.c (get_unwidened): Reorder conditions so that the null pointer
19246 check is done first.
19248 2004-01-09 Eric Christopher <echristo@redhat.com>
19250 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
19251 if we're running mark_constant_function.
19253 2004-01-09 Jeff Bailey <jbailey@nisa.net>
19256 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
19258 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
19261 * dbxout.c (dbxout_type_fields): Return if any item is
19262 error_mark_node or the type is error_mark_node.
19264 2004-01-09 Geoffrey Keating <geoffk@apple.com>
19266 * config/rs6000/darwin-ldouble.c: Add big comment explaining
19267 exactly what is expected as a 'long double'.
19268 (_xlqadd): When a value to be returned is representable as a
19269 'double', just return it directly, do not construct it using a union.
19270 Also, correct final fixup.
19271 (_xlqmul): Likewise.
19272 (_xlqdiv): Likewise.
19273 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
19275 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
19277 2004-01-09 Richard Henderson <rth@redhat.com>
19279 * recog.c (constrain_operands): Validate mem operands.
19281 2004-01-09 James E Wilson <wilson@specifixinc.com>
19283 * gcc.c (init_spec): Remove -lunwind from shared case.
19284 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
19286 2004-01-09 Steve Ellcey <sje@cup.hp.com>
19288 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
19289 * configure: Regenerate
19291 2004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
19294 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
19295 between function and object pointers.
19296 (digest_init): When comparing a pointer to function type to the
19297 target type, only apply TREE_TYPE once to the pointer to function
19299 * except.c (for_each_eh_label_1): Treat data as a pointer to a
19300 function pointer rather than casting it to a function pointer.
19301 (for_each_eh_label): Update caller.
19302 * recog.h (struct insn_data): Use a struct or union for output.
19303 * genoutput.c (output_insn_data): Update.
19304 * final.c (get_insn_template): Update.
19306 2004-01-09 Mark Mitchell <mark@codesourcery.com>
19308 * expr.h (expand_expr): Make it a macro, not a function.
19309 (expand_expr_real): New function.
19310 * expr.c (store_expr): Adjust logic for deciding whether or not to
19311 copy the value returned by expand_expr.
19312 (expand_expr): Rename to ...
19313 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
19314 calls to language hooks.
19315 * c-common.h (c_expand_expr): Adjust prototype.
19316 * c-common.c (c_expand_expr): Add alt_rtl parameter.
19317 * langhooks-def.h (lhd_expand_expr): Change prototype.
19318 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
19319 * langhooks.h (lang_hooks): Change type of expand_expr.
19320 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
19321 (last_expr_alt_rtl): Likewise.
19322 (expand_expr_stmt_value): Set last_expr_alt_rtl.
19323 (clear_last_expr): Clear it.
19324 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
19325 (expand_end_bindings): Save and restor last_expr_alt_rtl.
19326 * tree.def (RTL_EXPR): Give it an additional operand.
19327 * tree.h (RTL_EXPR_ALT_RTL): New macro.
19329 2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
19331 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
19332 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
19334 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
19337 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
19338 or (ne:SI (reg:CC 17) (const_int 0)).
19339 Be specific about modes wherever possible.
19341 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
19343 * config/m32r/m32r.c (m32r_expand_block_move): Call
19344 gen_movestrsi_internal with two more arguments.
19345 (m32r_output_block_move): Adjust operand numbers.
19346 Properly update the source and destination pointers.
19347 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
19348 'r+'. Change the set detinations to match_operand.
19350 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
19352 * final.c (FIRST_INSN_ADDRESS): Remove.
19353 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
19354 * system.h (FIRST_INSN_ADDRESS): Poison.
19355 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
19356 * config/m32r/m32r-protos.h: Remove the prototype for
19357 m32r_first_insn_address.
19358 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
19359 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
19360 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
19362 2004-01-09 J. Brobecker <brobecker@gnat.com>
19364 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
19366 (is_ada_subrange_type): DIEs for enumeration subtypes should be
19367 emitted as subrange types too.
19368 (subrange_type_die): Add handling of enumeration subtypes.
19370 2004-01-08 Richard Henderson <rth@redhat.com>
19373 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
19374 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
19375 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
19376 (ix86_address_cost): Be prepared for SUBREGed registers.
19377 (legitimate_address_p): Accept SUBREGed registers.
19379 2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
19381 * Makefile.in: Rename configure.in to configure.ac
19382 * doc/sourcebuild.texi: Likewise.
19383 * configure: Regenerate.
19384 * config.in: Regenerate.
19386 2004-01-08 Stuart Hastings <stuart@apple.com>
19388 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
19390 2004-01-08 Jan Hubicka <jh@suse.cz>
19392 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
19394 2004-01-08 Geoffrey Keating <geoffk@apple.com>
19396 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
19397 (UNSPEC_FIX_TRUNC_TF): New constant.
19398 (movtf_internal): Make splitter active only when insn is active.
19399 (extenddftf2): Rewrite to properly load zero into low part.
19400 (extenddftf2_internal): New.
19401 (extendsftf2): Rewrite.
19402 (truncdftf2): Correct length.
19403 (floatditf2): Delete.
19404 (fix_trunc_helper): New.
19405 (fix_trunctfdi2): Use fix_trunc_helper.
19406 (fix_trunctfsi2): Likewise.fix_trunc
19407 (fix_trunctfsi2_internal): New.
19409 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
19410 addresses are legitimate on Darwin even when flag_pic.
19411 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
19412 non-offsettable addresses for loads of TFmode constants.
19414 2004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
19416 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
19417 variables in the appropriate bss section.
19419 2004-01-09 Alan Modra <amodra@bigpond.net.au>
19421 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
19422 target_flags has MASK_POWERPC64 when -m64.
19423 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
19424 to 620, 630, power3, power4 and rs64a entries.
19425 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
19427 2004-01-08 Richard Sandiford <rsandifo@redhat.com>
19429 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
19430 floating-point constants.
19432 2004-01-08 J. Brobecker <brobecker@gnat.com>
19434 * dwarf2out.c (subrange_type_die): Add context_die parameter.
19435 Create the subrange_type DIE using the given context DIE.
19436 (modified_type_die): Update call to subrange_type_die.
19438 2004-01-08 Zack Weinberg <zack@codesourcery.com>
19440 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
19441 Add multiple-include guard.
19443 2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
19445 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
19446 all vector constant loadable by vsplt*.
19447 (output_vec_const_move): Likewise.
19449 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
19452 * c-typeck.c (comptypes): Only treat enumerated types in the same
19453 translation unit as compatible with each other when they are the
19455 * doc/extend.texi: Update.
19457 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
19460 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
19461 array type from the array element type.
19463 2004-01-07 Alan Modra <amodra@bigpond.net.au>
19465 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
19466 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
19467 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
19468 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
19469 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
19471 2004-01-06 Eric Christopher <echristo@redhat.com>
19473 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
19474 (DWARF2_DEBUGGING_INFO): Define.
19475 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
19476 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
19477 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
19479 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
19480 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
19481 * config/mips/iris5gas.h: Ditto.
19482 (DBX_DEBUGGING_INFO): Remove.
19483 (DWARF2_DEBUGGING_INFO): Ditto.
19484 (MIPS_DEBUGGING_INFO): Ditto.
19485 (PREFERRED_DEBUGGING_TYPE): Ditto.
19486 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
19487 (PREFERRED_DEBUGGING_TYPE): Ditto.
19488 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
19489 * config/mips/elf64.h: Ditto.
19491 2004-01-06 Jan Hubicka <jh@suse.cz>
19493 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
19494 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
19496 2004-01-06 Geoffrey Keating <geoffk@apple.com>
19498 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
19499 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
19500 * config/rs6000/darwin-ldouble.c: New.
19502 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
19504 (constant_subword): Delete.
19505 * rtl.h (constant_subword): Delete prototype.
19506 (immed_double_const): Is not in varasm.c.
19507 * simplify-rtx.c (simplify_immed_subreg): New.
19508 (simplify_subreg): Use simplify_immed_subreg.
19510 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
19511 than trying to generate RTL directly.
19512 (fix_trunctfsi2): Use expand_fix rather than trying to generate
19515 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
19517 2004-01-06 David Edelsohn <edelsohn@gnu.org>
19519 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
19520 function into a separate macro.
19521 (read_only_data_section): Add void argument.
19522 (private_data_section): Same.
19523 (read_only_private_data_section): Same.
19524 (toc_section): Same.
19526 2004-01-06 Jan Hubicka <jh@suse.cz>
19528 * invoke.texi: Remove typo in last change.
19531 * config.gcc: Accept opteron and athlon-64 as variants
19533 * i386.c (override_options): Likewise.
19534 * invoke.texi (i386 -mtune): Expand documentation.
19536 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
19538 * alias.c: Fix comment typos.
19539 * builtins.c: Likewise.
19542 * dominance.c: Likewise.
19543 * dwarf2out.c: Likewise.
19544 * emit-rtl.c: Likewise.
19545 * expr.c: Likewise.
19546 * final.c: Likewise.
19547 * fold-const.c: Likewise.
19548 * gcse.c: Likewise.
19549 * genattrtab.c: Likewise.
19550 * genrecog.c: Likewise.
19551 * gensupport.c: Likewise.
19552 * ggc-zone.c: Likewise.
19553 * integrate.c: Likewise.
19554 * local-alloc.c: Likewise.
19555 * loop.c: Likewise.
19556 * recog.c: Likewise.
19557 * regmove.c: Likewise.
19558 * reg-stack.c: Likewise.
19559 * reorg.c: Likewise.
19560 * rtlanal.c: Likewise.
19562 * sched-ebb.c: Likewise.
19563 * simplify-rtx.c: Likewise.
19564 * toplev.c: Likewise.
19565 * varasm.c: Likewise.
19567 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
19569 * doc/install.texi: Fix typos.
19570 * doc/invoke.texi: Likewise.
19571 * doc/md.texi: Likewise.
19573 2004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
19575 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
19577 2004-01-06 Jan Hubicka <jh@suse.cz>
19579 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
19580 (function_arg_advance): Do not pass aggregates in SSE; deal handling
19582 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
19584 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
19585 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
19586 (MMX_REGPARM_MAX): Similarly for -mmmx.
19588 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19590 * config/sh/linux.h: Fix comment formatting.
19591 * config/sh/netbsd-elf.h: Likewise.
19592 * config/sh/sh.c: Likewise.
19593 * config/sh/sh.h: Likewise.
19594 * config/sh/vxworks.h: Likewise.
19596 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19598 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
19599 * toplev.c (output_file_directive): Don't use
19600 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
19602 2004-01-05 Steven Bosscher <s.bosscher@student.tudelft.nl>
19604 * toplev.c: Fix broken checkin of 2003-12-30.
19606 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
19608 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
19609 (USING_MMAP): We don't support non-mmap.
19610 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
19612 (struct page_entry): Remove bytes_free.
19613 (struct page_table_chain): Remove.
19614 (struct globals): Remove page_table member.
19615 (loookup_page_table_entry): Function deleted.
19616 (set_page_table_entry): Ditto.
19617 (ggc_allocated_p): No longer need page table lookups.
19618 (ggc_marked_p): Ditto.
19619 (alloc_small_page): Don't care about bytes_free anymore.
19620 (alloc_large_page): Round up size.
19621 (ggc_alloc_zone_1): Mark large objects as such, and calculate
19622 their size the new way.
19623 Remove page table lookups and setting.
19624 (ggc_get_size): Calculate large object size the new way.
19625 (sweep_pages): Redo to account for fact that we no longer have
19627 (ggc_collect): No longer need to reincrement bytes_free.
19628 (ggc_pch_alloc_object): Handle new large objects properly.
19629 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
19631 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19633 * doc/invoke.texi: Remove a page break.
19635 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19637 * config/avr/avr.c (avr_output_function_prologue): Remove an
19638 extra pair of curly braces.
19640 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19642 * config/mn10300/mn10300.c: Fix comment formatting.
19643 * config/mn10300/mn10300.h: Likewise.
19645 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19647 * tree.h: Update documentation on nothrow_flag.
19648 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
19651 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19653 * doc/invoke.texi: Remove traces of dead ports.
19655 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
19657 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
19660 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
19663 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
19665 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
19666 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
19667 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
19668 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
19669 (mips_symbol_insns): Don't trust the local/global classification.
19670 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
19671 (override_options): Make -mabicalls -fno-unit-at-a-time imply
19672 -mno-explicit-relocs.
19673 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
19674 between local and global symbols.
19676 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
19678 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
19679 (mips_preferred_reload_class): Declare.
19680 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
19681 (EXTRA_CONSTRAINT): Update accordingly.
19682 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
19683 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
19684 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
19685 mips_dangerous_for_la25_p.
19686 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
19687 if mips_dangerous_for_la25_p.
19689 2004-01-05 Bernardo Innocenti <bernie@develer.com>
19691 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
19694 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
19696 * configure.ac: Use AC_PROG_CPP_WERROR.
19697 * configure: Regenerate.
19699 2004-01-04 Zack Weinberg <zack@codesourcery.com>
19701 * .cvsignore: Add autom4te.cache.
19703 2004-01-04 Richard Sandiford <rsandifo@redhat.com>
19705 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
19706 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
19707 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
19708 then architecture options, then ABI options. General rewording.
19710 2004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
19713 * doc/extend.texi: Clarify definition of malloc attribute.
19715 2004-01-04 Jan Hubicka <jh@suse.cz>
19717 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
19718 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
19719 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
19720 (cgraph_inline_p): Add extra argument reason.
19721 * cgraphunit.c: Minor formating fixes.
19722 cgraph_first_inlined_callee): New functions.
19723 (record_call_1): Record builtins too.
19724 (cgraph_analyze_function): Update inline_failed messages.
19725 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
19726 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
19727 (cgraph_check_inline_limits): Likewise; Add argument reason.
19728 (cgraph_set_inline_failed): New static function.
19729 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
19731 (cgraph_inline_p): Add new argument reason.
19732 * tree-inline.c (expand_call_inline): Update warning.
19734 2004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
19736 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
19737 with modern equivalents.
19738 * configure: Regenerate.
19740 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
19741 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
19742 * configure: Regenerate.
19744 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
19746 * configure.in: Rename to configure.ac.
19747 * configure.ac: Renamed from configure.in; make minimum necessary
19748 changes for autoconf 2.5x.
19749 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
19750 * configure: Regenerate with autoconf 2.57.
19752 2004-01-03 Kazu Hirata <kazu@cs.umass.edu>
19754 * config/mips/linux.h: Fix comment formatting.
19755 * config/mips/mips.c: Likewise.
19756 * config/mips/mips.h: Likewise.
19757 * config/mips/mips.md: Likewise.
19758 * config/mips/netbsd.h: Likewise.
19759 * config/mips/windiss.h: Likewise.
19761 2004-01-02 Richard Henderson <rth@redhat.com>
19763 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
19764 for sse and 387; add suppression for mmx.
19766 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
19768 * loop.c (loop_optimize): Free all loops_info's mems.
19770 * c-typeck.c (finish_init): Free spelling_base before
19773 * cfgloop.c (flow_loops_find): Always free the sbitmap
19776 * predict.c (estimate_probability): Free bbs after being
19779 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
19781 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
19782 const_8bit_operand and call_address_operand.
19784 2004-01-02 Jan Hubicka <jh@suse.cz>
19786 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
19787 when there is nothing to inline but warnings are requested.
19788 (cgraph_decide_inlining): Fix memory leak.
19790 2004-01-02 Jan Hubicka <jh@suse.cz>
19792 * expr.c (store_constructor): Fix pasto in previous patch.
19794 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
19796 * config/i386/cygming.h: Fix comment formatting.
19797 * config/i386/djgpp.h: Likewise.
19798 * config/i386/gthr-win32.c: Likewise.
19799 * config/i386/i386-interix.h: Likewise.
19800 * config/i386/i386.c: Likewise.
19801 * config/i386/i386.h: Likewise.
19802 * config/i386/openbsd.h: Likewise.
19803 * config/i386/winnt.c: Likewise.
19804 * config/i386/xm-mingw32.h: Likewise.
19806 2004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
19808 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
19809 copyright and last modification dates.
19811 2004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
19813 * doc/install.texi (Specific): Mention x86_64.
19815 2004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
19817 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
19818 Call force_operand on plus_constant result.
19820 2004-01-01 Jan Hubicka <jh@suse.cz>
19822 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
19823 * expr.c (store_constructor): Use vec_init pattern.
19824 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
19825 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
19826 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
19827 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
19829 (sse2_unpc?pd): Fix pattern.
19830 (sse2_movlpd): Kill.
19831 (sse2_movsd): Deal with movlpd too.
19832 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
19833 (ix86_expand_vector_init): New.
19834 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
19835 * md.texi (vec_set, vec_extract): Document
19837 2003-12-31 Jan Hubicka <jh@suse.cz>
19840 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
19844 * toplev.c (dump_file_index): Reorder ce3 and bbro.
19845 (dump_file): Likewise.
19846 (rest_of_compilation): Likewise.
19849 * cgraph.c (cgraph_function_possibly_inlined): Even with
19850 flag_really_no_inline we inline always_inline functions.
19851 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
19852 for non-always_inline functions when there is flag_really_no_inline.
19853 (cgraph_decide_inlining): Limit work done when not inlining.
19854 (cgraph_decide_inlining_incrementally): Likewise.
19855 (cgraph_optimize_function): Check whether something got inlined.
19856 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
19857 extern inline functions when not inlining.
19859 * opts.c (decode_options): Disable crossjumping at -O1
19860 * invoke.texi (-O1): Document change.
19862 See ChangeLog.10 for earlier changes.