1 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
3 * cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
4 config/arm/arm.c, objc/objc-act.c: Fix comment typos.
5 * doc/invoke.texi: Fix a typo.
7 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
10 * stmt.c (emit_case_nodes): Emit equality comparisons instead
11 of recursing if both children are single-valued cases with no
14 2004-03-25 Paul Brook <paul@codesourcery.com>
16 * config/arm/arm.c (vfp_print_multi): Remove.
17 (arm_output_fldmx): New function.
18 (vfp_emit_fstmx): Return block size, not insn. Add ARM10 VFPr1 bugfix.
19 (arm_expand_prologue): Update to match.
20 (arm_get_vfp_saved_size): New Function.
21 (arm_get_frame_offsets): Use it.
22 (arm_output_epilogue): Use new functions.
24 2004-03-24 Richard Henderson <rth@redhat.com>
26 * alias.c (alias_invariant, alias_invariant_size): Mark GTY.
27 (reg_known_value, reg_known_value_size): Likewise; make static.
28 (reg_known_equiv_p): Make static.
29 (clear_reg_alias_info): Update for new indexing.
30 (get_reg_known_value, set_reg_known_value): New.
31 (get_reg_known_equiv_p, set_reg_known_equiv_p): New.
32 (canon_rtx): Use them.
33 (init_alias_analysis): Likewise. Allocate reg_known_value with gc.
34 Don't play queer offsetting games with reg_known_value and
36 (end_alias_analysis): Free reg_known_value with gc.
37 * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare.
38 * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove.
39 (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new
42 2004-03-24 Kazu Hirata <kazu@cs.umass.edu>
44 * dwarf2asm.c, loop.h, pretty-print.c, pretty-print.h,
45 config/i386/mmintrin.h: Update copyright.
47 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
49 * configure.ac: Add --enable-werror-always (for top level bootstrap
51 * configure: Regenerate.
53 2004-03-24 Ziemowit Laski <zlaski@apple.com>
55 * objc/objc-act.c (objc_comptypes): Treat comparisons
56 between 'Class' and '<class> *' as explicitly invalid.
58 2004-03-24 David Edelsohn <edelsohn@gnu.org>
60 * doc/invoke.texi (-frename-registers: Add enabled at -O3.
61 (-fprofile-values): Add enabled with profile-{generate,use}.
63 (-ftracer): Add enabled with profile-use.
64 (-funit-at-a-time): Add enabled at -O2,-O3.
65 (-funroll-loops): Add enabled with profile-use.
66 (-funswitch-loops): Add enabled with profile-use. Remove duplicates.
67 (max-gcse-passes): Mention default.
68 (max-cse-path-length): Mention default.
70 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
72 * Makefile.in (STRICT2_WARN): Reorder.
73 * configure.ac: Check for -Wold-style-definition, and use it
74 in strict1_warn if it's available.
75 * configure: Regnerate.
77 2004-03-24 Paul Brook <paul@nowt.org>
79 * config.gcc <arm>: Add --with-abi=
80 * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
81 thumb_far_jump_used): Remove prototypes.
82 (arm_needs_doubleword_align): Add prototype.
83 (thumb_compute_initial_elimination_offset): Ditto.
84 * config/arm/arm.c (arm_get_frame_offsets): New function.
85 (use_return_insn, output_return_instruction, arm_output_epilogue,
86 arm_output_function_epilogue, arm_compute_initial_elimination_offset,
87 arm_expand_prologue, thumb_expand_epilogue): Use it.
88 (arm_abi, target_abi_name, all_arm_abis): New variables.
89 (arm_override_options): Set them. Set structure padding for AAPCS.
90 (arm_return_in_memory): Update ABI check.
91 (arm_init_cumulative_args): Initialize can_split.
92 (arm_needs_doubleword_align): New function.
93 (arm_function_arg): Don't split args after pushing to stack. Handle
94 doubleword/even reg alignment.
95 (arm_va_arg): Handle all doubleword aligned args.
96 (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
98 (arm_compute_save_reg0_reg12_mask): Fix comment.
99 (thumb_get_frame_size, thumb_get_frame_size): Remove.
100 (thumb_jump_far_used_p): Remove superfluous argument. Return save
102 (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
104 (thumb_compute_initial_elimination_offset): New function.
105 (thumb_expand_prologue): Use arm_get_frame_offsets. Remove
106 unneccessary rounding.
107 * config/arm/arm.h (target_abi_name): Declare.
108 (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
109 arm_abi_type, ARM_DEFAULT_ABI): Define.
110 (ARM_FLAG_ATPCS): Remove.
111 (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
112 (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
113 (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
114 TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
115 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
116 Contitionalize on ABI, not CPU.
117 (struct arm_stack_offsets): Define.
118 (struct machine_function): Add stack_offsets. Remove frame_size.
119 (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
121 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
122 doubleword alignment.
123 (THUMB_INITIAL_ELIMINATION_OFFSET,
124 ARM_INITIAL_ELIMINATION_OFFSET): Remove.
125 (INITIAL_ELIMINATION_OFFSET): Call functions directly.
126 * config/arm/arm.md (align_8): Enable for all targets.
127 * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
128 (ARM_DEFAULT_ABI): Define.
129 * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
130 -mstructure-size-boundary.
132 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
134 * configure.ac: Check for -Wno-variadic-macros; don't use
135 -pedantic (in stage 1 or a simple 'make all') unless it's available,
136 and if it's available, use it. Also, clean up check for
138 * configure: Regenerate.
140 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
142 * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
143 * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
144 (MULTILIB_DEFAULTS): Use it.
145 (MIPS_CPU_STRING_DEFAULT): Remove.
146 (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
147 (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120. Make
148 EABI64 -mlong32 the default ABI. Enforce the default architecture.
149 * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
150 march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
151 (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
152 (MULTILIB_EXCEPTIONS): Change choice of multilibs. Update comments
155 2004-03-24 DJ Delorie <dj@redhat.com>
156 Richard Sandiford <rsandifo@redhat.com>
158 * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
159 (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
160 (ASM_SPEC): Pass down -mfix-vr4122-bugs.
161 * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
162 in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
163 (mips_init_libfuncs): Use special functions for divsi3 and modsi3
164 if TARGET_FIX_VR4122.
165 * config/mips/mips.md (define_attr length): Account for nops inserted
166 after macc and dmult when using -mfix-vr4122-bugs.
167 (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
168 * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
169 LIB2FUNCS_EXTRA. Add config/mips/vr4122-div.S.
170 * config/mips/vr4122-div.S: New file.
171 * doc/invoke.texi: Document -mfix-vr4122-bugs.
173 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
175 * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
176 (TARGET_MIPS4130): New macro.
177 (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
178 * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
179 (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
180 with PROCESSOR_R4130.
181 * config/mips/mips.md (define_attr cpu): Add r4130.
182 * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
184 2004-03-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
185 Richard Sandiford <rsandifo@redhat.com>
187 * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
189 2004-03-24 Alexandre Oliva <aoliva@redhat.com>
191 PR preprocessor/14438
192 * cpplib.c (do_pragma): Remove line_change call after pragma
195 2004-03-23 Ian Lance Taylor <ian@wasabisystems.com>
197 * doc/extend.texi (ARM Built-in Functions): Replace with correct
200 2004-03-23 Roger Sayle <roger@eyesopen.com>
202 * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
203 if flag_unsafe_math_optimizations.
204 * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
205 and TARGET_80387 expand using truncdfsf2_noop pattern.
206 (truncxfsf2): Likewise using truncxfsf2_noop.
207 (truncxfdf2): Likewise using truncxfdf2_noop.
208 (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
210 2004-03-23 Ziemowit Laski <zlaski@apple.com>
212 * hooks.c (hook_constcharptr_tree_null): New hook.
213 * hooks.h (hook_constcharptr_tree_null): New prototype.
214 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
215 * target.h (mangle_fundamental_type): New target hook.
216 * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
217 target hook at rs6000_mangle_fundamental_type.
218 (rs6000_mangle_fundamental_type): New function.
219 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
221 2004-03-23 Zack Weinberg <zack@codesourcery.com>
223 PR 12267, 12391, 12560, 13129, 14114, 14133
224 * c-tree.h: Forward declare struct c_binding. Declare
225 c_override_bindings_to_false. Update prototypes.
226 (struct lang_identifier): Update comments. Change fields to be
228 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
229 (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
230 (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
231 (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
232 * c-common.h: Update prototypes.
233 * c-decl.c (struct c_scope): Update commentary. Remove names,
234 names_last, parms, parms_last, tags, and shadowed fields. Add
235 bindings and depth fields.
236 (scope_freelist): Move to more appropriate location.
237 (c_print_identifier): Update for changes to struct lang_identifier.
238 (objc_mark_locals_volatile): Update for new bindings structures.
239 (global_bindings_p): Honor c_override_global_bindings_to_false.
240 (pushlevel): Rename to push_scope; take no arguments; use the
241 scope_freelist; initialize scope->depth and check for overflow.
242 (poplevel): Rename to pop_scope; totally rewritten for new bindings
244 (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
245 C_DECL_INVISIBLE, for certain decisions. Adjust some diagnostics.
246 Improve some commentary. Adjust handling of forward parm decls.
247 (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
248 Preserve C_DECL_IN_EXTERNAL_SCOPE.
249 (warn_if_shadowing): Correct indentation. Improve diagnostics.
250 (pushdecl): Remove unnecessary assertion. Short-circuit anonymous
251 decls. Rewrite for new bindings structures. Improve commentary.
252 Eliminate the copy_node call.
253 (implicit_decl_warning): Use the "diag" idiom (as seen in
254 locate_old_decl) to reduce code duplication; call locate_old_decl
255 if appropriate. Relocate to remove need for forward declaration.
256 (implicitly_declare): Adjust for new bindings structures. Kludge
257 around Objective-C not-really-builtin functions.
258 (undeclared_variable): Improve diagnostics. If current_function_decl
259 is nonnull but current_function_scope is null, use current_scope.
261 (lookup_tag): Adjust for new bindings structures. Kludge around
262 Objective-C's tag declarations that wind up in the external scope.
263 (lookup_name): Adjust for new bindings structures. Kludge around
264 c-common.c's pseudo-typedefs that wind up in the external scope.
265 (lookup_name_current_level): Rename lookup_name_in_scope; take a
266 second argument indicating the scope to examine; rewrite for
267 new bindings structures.
268 (c_init_decl_processing): Adjust for renamed functions. Do not
269 initialize current_file_decl, first_builtin_decl, last_builtin_decl.
270 First scope pushed is the external scope, not the global scope.
271 (builtin_function): Use bind, not pushdecl. Adjust other bits
272 for new data structures. Keep track of builtins that should be
273 made visible automatically.
274 (start_decl): Adjust diagnostics. Remove unnecessary call to
276 (grokparms): Return 0 if arg_types is error_mark_node.
277 (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
278 reversed sense. Rewrite for new bindings structures. Do not
279 leave any decls in the scope, to prevent pop_scope from doing
280 contradictory things with them.
281 (finish_struct, finish_enum): Remove redundant diagnostics.
282 (build_enumerator): Don't cascade diagnostics for error_mark_node.
283 Mark location where -pedantic changes the meaning of the program.
284 (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
285 parameter decls into the function's scope structure using bind.
286 Warn here about function definitions in the wrong style.
288 (store_parm_decls): Correct the determination of whether a
289 function was defined with a prototype.
290 (c_write_global_declarations): Operate on all file decls and on
291 the external scope. Split body of the loop to...
292 (c_write_global_declarations_1): ... this new function, to avoid
294 (truly_local_externals, first_builtin_decl, last_builtin_decl)
295 (make_scope, pop_scope, in_parm_level_p, set_block)
296 (any_external_decl, record_external_decl, bind_label, getdecls)
297 (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
298 (c_reset_state): Delete.
299 (visible_builtins, c_override_global_bindings_to_false)
300 (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
301 (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
302 (external_scope, binding_freelist, bind, free_binding_and_advance)
303 (push_file_scope, pop_file_scope): New.
304 (pushtag, pushdecl_top_level, lookup_label, declare_label)
305 (define_label, c_make_fname_decl, finish_decl)
306 (mark_forward_parm_decls, build_compound_literal)
307 (grokdeclarator, start_function, check_for_loop_decls)
308 (identifier_global_value, record_builtin_type): Minor adjustments
309 for new bindings structures. Improve diagnostics and commentary.
310 * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
311 pushlevel/poplevel respectively.
312 (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
313 * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
314 Warn about YYDEBUG not being defined only if -dy. Remove no-longer-
315 correct loop over multiple translation units; call fatal_error if
316 requested to compile more than one file at once. (This disables
317 IMA temporarily - an up-front error being preferable to a crash.)
318 * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
319 (all actions): Adjust calls to pushlevel/poplevel.
320 (parsing_iso_function_signature): Delete.
321 (extdef_1): Fold into extdef.
322 (old_style_parm_decls_1): Fold into old_style_parm_decls. Don't
323 warn here about function definitions in the wrong style.
324 (after_tyle_declarator, parm_declarator_starttypename)
325 (parm_declarator_nostarttypename, notype_declarator): Remove
326 commented-out productions.
327 (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
328 an empty TREE_LIST node. Adjust calls to get_parm_info.
329 (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
330 to suppress -Wold-style-definition after this error.
331 (c_parse_file): Don't clear the binding stack or call
332 finish_fname_decls here. Correct comment.
333 * c-typeck.c (same_translation_unit_p): Export.
334 (common_type): Use c_override_global_bindings_to_false, not
335 pushlevel/poplevel/declare_parm_level.
336 * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
337 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
338 and LANG_HOOKS_GETDECLS with do-nothing stubs.
339 * objc/objc-lang.c: Likewise.
340 * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
342 (OBJC_VOID_AT_END): Delete; replace all uses
344 (generate_forward_declaration_to_string_table): Delete.
345 * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
347 * coverage.c (create_coverage): Don't pushdecl anything.
348 * langhooks.c (lhd_clear_binding_stack): Call
349 lang_hooks.decls.poplevel, not poplevel.
350 * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
351 circular list rather than going into an infinite loop.
353 2004-03-23 Olivier Hainque <hainque@act-europe.fr>
355 * optabs.c (expand_binop): When synthesizing double word rotates
356 from single word shifts, use a new register target if the provided
357 target is not a REG already.
359 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
361 * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
362 * c-common.c (handle_mode_attribute): Add extra arg to
363 build_pointer_type_for_mode and build_reference_type_for_mode.
364 * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
366 * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
367 Chain pointers via TYPE_NEXT_PTR_TO.
368 (build_reference_type_for_mode): Similarly.
369 (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
370 and build_reference_type_for_mode.
371 (tree_check4_failed): New function.
372 * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
373 (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
374 (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
377 2004-03-23 Roger Sayle <roger@eyesopen.com>
379 * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
380 A is nonnegative or B is nonnegative. Similarly A|B is nonnegative
381 when both A and B are nonnegative.
382 (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
385 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
387 * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
388 VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
390 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
392 PR optimization/14669
393 * fold-const.c (fold): Only unwiden integer comparisons for equality
394 and inequality operators, or when the signedness doesn't change.
396 2004-03-23 Jakub Jelinek <jakub@redhat.com>
398 * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
399 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
400 * config/sparc/t-linux: New file.
402 2004-03-23 Richard Sandiford <rsandifo@redhat.com>
404 * gcse.c (can_assign_to_reg_p): New function, split out from...
405 (want_to_gcse_p): ...here.
406 (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
409 2004-03-22 Diego Novillo <dnovillo@redhat.com>
411 * c-typeck.c (same_translation_unit_p): Fix pasto.
413 2004-03-22 David Edelsohn <edelsohn@gnu.org>
415 * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
416 (PARAM_MAX_SCHED_REGION_INSNS): New.
417 * sched-rgn.c: Include params.h
418 (MAX_RGN_BLOCKS): Delete.
419 (MAX_RGN_INSNS): Delete.
420 (too_large): Return bool. Convert to PARAM_VALUE.
421 * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
422 * doc/invoke.texi (param): Document max-sched-region-blocks and
423 max-sched-region-insns.
425 2004-03-22 Joel Brobecker <brobecker@gnat.com>
427 * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
430 2004-03-22 Joel Brobecker <brobecker@gnat.com>
432 * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
435 2004-03-22 Jakub Jelinek <jakub@redhat.com>
438 * c-decl.c (finish_struct): Change type of incorrect flexible array
439 field into error_mark_node.
441 2004-03-22 Andrew Pinski <pinskia@physics.uc.edu>
444 * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
445 who are not local for Darwin PIC.
447 2004-03-22 Ulrich Weigand <uweigand@de.ibm.com>
449 * regrename.c (regrename_optimize): Set regs_ever_live for all
450 registers introduced as replacement.
452 2004-03-22 Eric Botcazou <ebotcazou@libertysurf.fr>
455 * expr.c (mark_queue): New function.
456 (emit_insns_enqueued_after_mark): New function replacing
457 emit_queue. Clear the body of emitted queued insns.
458 (emit_queue): Call emit_insns_enqueued_after_mark.
459 (store_expr): Mark the increment queue on entry. Emit
460 only the incrementations queued when expanding the source.
462 2004-03-22 Nathanael Nerode <neroden@gcc.gnu.org>
464 * configure.ac: Allow --disable-coverage-flags (for the future benefit
465 of top level bootstrap, and consistency). Reindent.
466 * configure: Regenerate.
468 2004-03-21 Kazu Hirata <kazu@cs.umass.edu>
470 * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
471 ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
474 2004-03-22 Danny Smith <dannysmith@users.sourceforge.net>
477 * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
480 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
482 * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
483 to nonimmediate_operand.
484 ("*doloop_di"): Likewise.
486 2004-03-21 Alexandre Oliva <aoliva@redhat.com>
488 * real.h (struct real_value): Use the same type for all
489 bitfields. Rename exp to uexp.
490 (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
491 Adjust all uses of exp...
492 * builtins.c: ... here, ...
493 * emit-rtl.c: ... here, and ...
494 * real.c: ... and here.
496 2004-03-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
498 * pretty-print.c (pp_base_maybe_space): New function.
499 * pretty-print.h (pp_base_maybe_space): Declare.
500 (pp_maybe_space): New macro.
502 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
504 * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
506 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
508 * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
509 of using register multiplication cost.
510 (expand_mult): Adapt choose_mult_variant call.
511 (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
512 of MODE; pass appropriate cost bound. Adjust result when
513 performing signed multiplication by a negative constant.
514 Don't use intermediate modes larger than word_mode.
516 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
518 * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
519 * emit-rtl.c (component_ref_for_mem_expr): Likewise.
520 (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
521 * explow.c (expr_size): Likewise.
522 * expr.h (placeholder_list, find_placeholder): Deleted.
523 * expr.c (store_constructor): Likewise.
524 (get_inner_reference): Likewise. Also don't call find_placeholder.
525 (placeholder_list, find_placeholder): Deleted.
526 (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
527 (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
528 (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
529 * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
530 * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
532 * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
533 (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
534 * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
535 (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
536 Clean up by using first_rtl_op.
537 (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
538 (substitute_placeholder_in_expr): New function.
539 * tree.def (WITH_RECORD_EXPR): Deleted.
540 * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
541 (substitute_placeholder_in_expr): New.
543 2004-03-21 Andrew Pinski <pinskia@gcc.gnu.org>
545 * dojump.c (prefer_and_bit_test): Fix which part of
546 the and_test is replaced.
548 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
550 * frontends.texi: Add missing line.
552 2004-03-21 Zack Weinberg <zack@codesourcery.com>
553 Chris Devers <cdevers@pobox.com>
554 Joseph S. Myers <jsm@polyomino.org.uk>
556 * doc/frontends.texi: Rewrite.
557 * doc/gcc.texi: Update last modification date.
559 2004-03-21 Josef Zlomek <zlomekj@suse.cz>
561 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
562 message before redirecting the edge.
564 2004-03-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
566 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
568 * explow.c (force_not_mem): Set REG_POINTER flag according to
570 * rtl.h (MEM_POINTER): New macro.
571 (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
574 2004-03-20 Roger Sayle <roger@eyesopen.com>
577 * cse.c (fold_rtx): Avoid substituting constants into unary
578 conversion operations.
580 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
582 * fold-const.c (fold): Replace "expr" with "t".
584 2004-03-20 Ian Lance Taylor <ian@wasabisystems.com>
587 * c-typeck.c (tagged_types_tu_compatible_p): Don't use
588 DECL_ORIGINAL_TYPE if there isn't one.
590 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
592 * fold-const.c (fold): Replace "final_type" with "type".
593 Remove variable "final_type".
595 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
597 * fold-const.c (fold): Constify "type".
598 Replace "TREE_TYPE (t)" with "type".
600 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
602 * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
603 dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
604 via (*targetm.foo) () with targetm.foo ().
606 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
609 * doc/install.texi: Add info directory category and entry.
611 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
613 * fold-const.c (fold): Replace "t" with "tem" where it is used
614 as a temporary variable. Remove "orig_t" and all of its uses.
616 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
618 * fold-const.c (fold): Remove variable "invert".
619 Move the handling of relational expressions that can be folded
621 (fold_relational_const): ... here.
622 (tree_expr_nonzero_p): New.
624 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
627 * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
630 2004-03-20 Richard Sandiford <rsandifo@redhat.com>
632 * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
633 (GTFILES): Add $(srcdir)/dojump.h.
634 (gt-dojump.h): New dependency.
635 * dojump.c (and_reg, and_test, shift_test): New static variables.
636 (prefer_and_bit_test): New function.
637 (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
639 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
641 * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
642 expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
643 reorg.c, tree.h: Fix comment typos.
645 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
647 * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
648 c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
649 cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
650 haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
651 sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
652 vmsdbgout.c: Replace calls via (*targetm.foo) () with
655 2004-03-19 Ziemowit Laski <zlaski@apple.com>
657 * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
658 vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
659 always_inline attribute.
660 * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
661 Treat expansion as completed even if literal argument is
662 invalid (so that other expansions are not tried in vain).
664 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
666 * loop-doloop.c (add_test): Replace GEN_INT (0) with
669 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
671 * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
673 (fold_abs_const): ... here.
675 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
677 * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
679 2004-03-19 Denis Chertykov <denisc@overta.ru>
682 * config/avr/avr.md ("call_insn"): Handle explicit integer
684 (call_value_insn): Likewise.
686 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
688 * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
690 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
692 * fold-const.c (negate_expr): Move the handling of constants
694 (fold_negate_const): ... here.
696 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
698 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
699 * langhooks.h (struct lang_hooks_for_types): New field hash_types.
700 * tree.c (debug_no_type_hash): Deleted.
701 (type_hash_canon): Abort if passed a variant.
702 Check lang_hooks.types.hash_types.
703 (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
704 (build_array_type): Remove unnecessary allocation of pointer type.
705 (build_complex_type): Properly qualify resulting type.
707 2004-03-19 Paolo Bonzini <bonzini@gnu.org>
709 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
711 2004-03-19 Richard Sandiford <rsandifo@redhat.com>
713 * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
714 (expand_mult): ...here.
715 (extract_high_half): New, split out from expand_mult_highpart.
716 (expand_highpart_optab): Likewise. Don't clobber target prematurely.
717 (expand_highpart): Evaluate the cost of a shift/add sequence,
718 then see if any of the specialized optabs are cheaper.
720 2004-03-18 Ian Lance Taylor <ian@wasabisystems.com>
722 * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
724 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
726 * convert.c (convert_to_real): Add more math builtins.
728 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
730 * convert.c (convert_to_real): Reformat using switch stmt.
732 2004-03-18 Mark Mitchell <mark@codesourcery.com>
734 * c-common.c (pointer_int_sum): Do not complain about using
735 pointers to pointers-to-members.
737 2004-03-18 Kazu Hirata <kazu@cs.umass.edu>
739 * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
740 have moved to the target hooks structure".
742 2004-03-18 James E Wilson <wilson@specifixinc.com>
744 * config/mips/mips.md (type): Split move into arith and fmove. Split
745 hilo into mthilo and mfhilo. Add trap. Delete icmp. Fix all uses.
746 * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
748 * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
750 * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
751 rm7_fp_quick): Likewise.
752 * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
753 rm9k_fquick): Likewise.
754 * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
756 (ir_sr70_icmp): Delete.
758 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
760 * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
761 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
762 (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
763 (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
764 (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
765 Protect with proper check.
766 (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
767 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
768 * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
769 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
770 * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
771 * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
773 * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
775 2004-03-18 Mostafa Hagog <mustafa@il.ibm.com>
777 * gcse.c (eliminate_partially_redundant_loads): Reject change if
778 dest is set between beginning and current insn.
780 2004-03-18 Mark Mitchell <mark@codesourcery.com>
782 * c-decl.c (grokdeclarator): Do not complain about redeclaring
783 visible "static" identifiers "extern" in a local scope.
784 * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
785 post-increments/decrements.
787 2004-03-18 Bob Wilson <bob.wilson@acm.org>
789 * config/xtensa/xtensa.c (current_function_arg_words): Delete.
790 (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
791 (xtensa_va_start): Remove assignment to current_function_arg_words.
793 2004-03-18 Richard Sandiford <rsandifo@redhat.com>
795 * alias.c (record_set): Detect the case where a register is assigned
796 a new value that has the same base term as the old one.
798 2004-03-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
801 * loop-doloop.c: New file.
802 * Makefile.in (doloop.o): Remove.
803 (loop-doloop.o): New.
804 * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
805 * cfgloopanal.c (get_loop_level): New function.
806 * loop-iv.c (iv_number_of_iterations): Handle case when loop
807 is leaved immediatelly.
808 * loop.c (strength_reduce): Do not call doloop optimization.
809 * loop.h (LOOP_BCT): Removed.
810 * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
811 (rest_of_handle_loop2): Call doloop_optimize_loops.
812 (rest_of_compilation): Test for optimizations moved to
813 rest_of_handle_loop2.
815 2004-03-17 Fariborz Jahanian <fjahanian@apple.com>
817 * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
819 (rs6000_emit_prologue): Ditto.
820 (rs6000_emit_epilogue): Ditto.
821 * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
822 macro for mixed mode.
824 2004-03-18 Jan Hubicka <jh@suse.cz>
826 * predict.c (propagate_freq): Compute correctly frequency of
829 2004-03-17 Eric Christopher <echristo@redhat.com>
831 * builtins.c (apply_args_size): Use reg_raw_mode.
832 (apply_result_size): Ditto.
834 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
837 * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
839 2004-03-17 Jakub Jelinek <jakub@redhat.com>
841 * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
842 32-bit builds when defaulting to 32-bit.
844 2004-03-17 Jan Hubicka <jh@suse.cz>
846 * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
849 2004-03-17 James E Wilson <wilson@specifixinc.com>
851 * config/mips/mips.md (zero_extendsidi2): Add length attribute.
852 (hazard_nop): Change type to nop.
853 (type): Split arith into arith, shift, slt, clz. Delete darith.
854 Fix all uses. Change arith to multi if more than one insn emitted.
855 * config/mips/5400.md (ir_vr54_arith): Likewise.
856 * config/mips/5500.md (ir_vr55_arith): Likewise.
857 * config/mips/7000.md (rm7_int_other): Likewise.
858 * config/mips/9000.md (rm9k_int): Likewise.
859 * config/mips/sr71k.md (ir_sr70_arith): Likewise.
861 2004-03-17 Joel Brobecker <brobecker@gnat.com>
863 * dwarf2out.c (subrange_type_die): Define new variable "subtype"
864 to hold the subtype tree instead of recomputing it several times.
866 2004-03-17 Kazu Hirata <kazu@cs.umass.edu>
868 * config/mn10300/mn10300.c (notice_update_cc): Don't handle
870 * config/mn10300/mn10300.md (cc): Remove "invert".
872 2004-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
874 * builtins.c (integer_valued_real_p): Add builtin rint.
875 (fold_builtin): Likewise.
876 * convert.c (convert_to_real): Likewise.
878 * convert.c (convert_to_real): Fix typos in `long double'
881 2004-03-16 Mark Mitchell <mark@codesourcery.com>
884 * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
885 generated COMPOUND_EXPRs.
887 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
889 * config/h8300/t-rtems (h8300-*-rtems*): New.
891 2004-03-16 Eric Christopher <echristo@redhat.com>
893 * doc/cppopts.texi(fwide-exec-charset): Fix typo.
895 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
897 * config/i386/i386-protos.h: Add a prototype for
898 ix86_reverse_condition.
899 * config/i386/i386.c (ix86_reverse_condition): New.
900 * config/i386/i386.h (REVERSE_CONDITION): Use
901 ix86_reverse_condition.
902 * config/i386/i386.md: Use ix86_reverse_condition instead of
905 2004-03-16 J. Brobecker <brobecker@gnat.com>
907 * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
909 2004-03-16 Nathanael Nerode <neroden@gcc.gnu.org>
912 * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
914 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
916 * c-common.c (c_common_type_for_mode): Build vector types on
918 (handle_mode_attribute): Deprecate using the mode attribute
919 to create vector types. Fix indentation.
920 (vector_type_node_list): Remove.
921 (handle_vector_size_attribute): Create vector types on demand.
922 Strip a NON_LVALUE_EXPR from the attribute if there is one.
923 * c-typeck.c (comptypes): Make vector types compatible if they
924 have the same underlying mode.
925 (convert_for_assignment): Use comptypes to convert between
927 * tree.c (build_common_tree_nodes_2): Do not create vector types.
928 * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
930 * tree.h: Remove vector types.
931 * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
932 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
933 (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
934 V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
935 * doc/extend.texi (Vector Types): Document how to use the
936 vector_size attribute to create vectors, rather than mode.
938 * config/arm/mmintrin.h: Use vector_size attribute, not mode.
939 * config/i386/emmintrin.h: Likewise.
940 * config/i386/mmintrin.h: Likewise.
941 * config/i386/xmmintrin.h: Likewise.
942 * config/sh/ushmedia.h: Likewise.
944 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
946 * config/freebsd-spec.h, config/arc/arc-protos.h,
947 config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
948 config/arm/linux-gas.h, config/arm/semi.h,
949 config/cris/cris-protos.h, config/i386/xm-djgpp.h,
950 config/ia64/freebsd.h, config/mips/7000.md,
951 config/mips/9000.md, config/ns32k/ns32k-protos.h,
952 config/sparc/pbd.h: Update copyright.
954 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
957 * config.gcc: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff.
959 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
961 * combine.c (combine_simplify_rtx): Remove the "last"
962 parameter and its documentation. Adjust recursive calls.
963 (simplify_logical): Always perform the only simplification
964 controlled by "last", if the simplified expression is
966 (try_combine): Do not pass the "last" parameter to
967 combine_simplify_rtx.
969 2004-03-16 Richard Sandiford <rsandifo@redhat.com>
972 * config/mips/mips.md (UNSPEC_GP): New constant.
973 * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
974 an UNSPEC instead of (reg $gp).
975 (mips16_gp_pseudo_reg): Change accordingly.
976 (print_operand): Print $gp directly when handling CONST_GP_P.
978 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
980 * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
981 * longlong.h: Make code 68060 clean when compiling for m68060.
983 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
985 * config/m68k/m68k.md: Fix constraints for bitfield instructions.
986 * doc/md.texi: Clarify description of "i" constraint.
988 2004-03-15 James E Wilson <wilson@specifixinc.com>
990 * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
991 Split store into store, fpstore, fpidxstore. Fix all uses.
992 * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
994 * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
995 * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
996 * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
997 * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
998 ir_sr70_fstore): Likewise.
1000 2004-03-15 Richard Henderson <rth@redhat.com>
1003 * except.c (collect_one_action_chain): Record action for cleanup
1004 outer of exception spec.
1006 2004-03-15 Ian Lance Taylor <ian@wasabisystems.com>
1008 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
1009 Fix the check for abort and only do the mmap if we can.
1011 2004-03-15 Eric Botcazou <ebotcazou@act-europe.fr>
1013 * config/sparc/sparc.h: Rework comments about the code model
1014 in 64-bit environment and the mode 'Pmode'.
1015 * doc/invoke.texi (SPARC options): Rework description of the
1016 different code models supported in 64-bit environment.
1018 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
1020 * defaults.h (REVERSIBLE_CC_MODE): Define.
1021 * jump.c (reversed_comparison_code_parts): Don't check if
1022 REVERSIBLE_CC_MODE is defined.
1024 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
1026 * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
1027 et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
1028 hosthooks.h, params.h, ra-colorize.c, web.c,
1029 config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
1030 config/avr/avr-protos.h, config/avr/avr.md,
1031 config/fr30/fr30-protos.h, config/fr30/fr30.md,
1032 config/h8300/fixunssfsi.c, config/i386/darwin.h,
1033 config/i386/freebsd.h, config/i386/freebsd64.h,
1034 config/ia64/hpux.h, config/ia64/unwind-ia64.c,
1035 config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
1036 config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
1037 config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
1038 config/pa/pa64-regs.h, config/rs6000/aix41.h,
1039 config/rs6000/aix43.h, config/rs6000/host-darwin.c,
1040 config/sparc/aout.h, config/sparc/freebsd.h,
1041 config/sparc/litecoff.h, config/vax/vax-protos.h,
1042 doc/hostconfig.texi, doc/include/gcc-common.texi: Update
1045 2004-03-15 Paul Brook <paul@codesourcery.com>
1047 * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
1049 2004-03-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
1051 * c-pretty-print.c (pp_c_semicolon): Fix formatting.
1052 (pp_c_cv_qualifier): Document.
1053 (pp_c_space_for_pointer_operator): Likewise.
1054 (pp_c_integer_constant): Likewise.
1055 (pp_c_identifier): Likewise.
1056 (pp_c_init_declarator): Don't print function body.
1058 2004-03-14 Joseph S. Myers <jsm@polyomino.org.uk>
1060 * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
1061 doc/install.texi, doc/invoke.texi, doc/makefile.texi,
1062 doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
1063 "gcc", "g++" and "g77" or mark up with appropriate markup. Adjust
1064 wording and grammar.
1066 2004-03-14 Roger Sayle <roger@eyesopen.com>
1068 * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
1069 with lang_hooks.foo ().
1070 * builtins.c (expand_builtin_va_arg): Likewise.
1071 * c-common.c (fname_as_string, c_common_truthvalue_conversion,
1072 c_common_type_for_mode, c_common_nodes_and_builtins,
1073 handle_mode_attribute, handle_vector_size_attribute): Likewise.
1074 * c-convert.c (convert): Likewise.
1075 * c-format.c (check_format_types): Likewise.
1076 * c-objc-common.c (c_tree_printer): Likewise.
1077 * c-typeck.c (build_unary_op, build_conditional_expr,
1078 build_binary_op): Likewise.
1079 * calls.c (try_to_integrate, expand_call,
1080 emit_library_call_value_1): Likewise.
1081 * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
1083 * cgraphunit.c (record_call_1, cgraph_analyze_function,
1084 cgraph_expand_function): Likewise.
1085 * convert.c (convert_to_pointer, convert_to_integer): Likewise.
1086 * coverage.c (build_fn_info_type, build_ctr_info_type,
1087 build_gcov_info, create_coverage): Likewise.
1088 * dbxout.c (dbxout_init): Likewise.
1089 * diagnostic.c (diagnostic_report_current_function): Likewise.
1090 * dojump.c (do_jump): Likewise.
1091 * dwarf2out.c (dwarf2_name): Likewise.
1092 * except.c (init_eh): Likewise.
1093 * explow.c (expr_size, int_expr_size): Likewise.
1094 * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
1096 * expr.c (store_expr, store_constructor, safe_from_p,
1097 expand_expr_real, do_store_flag, try_casesi): Likewise.
1098 * function.c (push_function_context_to, pop_function_context_from,
1099 free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
1100 put_var_into_stack, allocate_struct_function, current_function_name):
1102 * integrate.c (copy_decl_for_inlining, expand_inline_function):
1104 * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
1105 lhd_print_error_function): Likewise.
1106 * opts.c (handle_option, decode_options): Likewise.
1107 * passes.c (open_dump_file): Likewise.
1108 * print-tree.c (print_node): Likewise.
1109 * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
1110 expand_decl_cleanup, emit_case_nodes): Likewise.
1111 * stor-layout.c (variable_size): Likewise.
1112 * toplev.c (announce_function, wrapup_global_declarations,
1113 check_global_declarations, compile_file, default_tree_printer,
1114 process_options, lang_dependent_init, finalize): Likewise.
1115 * tree-dump.c (dequeue_and_dump): Likewise.
1116 * tree-inline.c (remap_decl, remap_block, copy_body_r,
1117 initialize_inlined_parameters, declare_return_variable,
1118 inlinable_function_p, expand_call_inline, optimize_inline_calls,
1119 walk_tree, copy_tree_r): Likewise.
1120 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1121 * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
1122 unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
1123 variably_modified_type_p, dump_tree_statistics): Likewise.
1124 * varasm.c (assemble_variable, compare_constant, copy_constant,
1125 force_const_mem, compute_reloc_for_constant, output_constant,
1126 output_addressed_constants, initializer_constant_valid_p): Likewise.
1128 2004-03-14 Kelley Cook <kcook@gcc.gnu.org>
1130 * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
1132 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
1134 * doc/install.texi: Reflect autoconf and automake version for
1135 libffi. Update autoconf version to 2.59.
1137 2004-03-13 Roger Sayle <roger@eyesopen.com>
1139 * fold-const.c (negate_expr, operand_equal_for_comparison_p,
1140 optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
1141 make_range, build_range_check, fold_range_test, unextend,
1142 constant_boolean_node, fold_binary_op_with_conditional_arg,
1143 fold_truthop, fold_mathfn_compare, fold_inf_compare,
1144 fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
1145 with lang_hooks.foo ().
1147 2004-03-14 Richard Earnshaw <rearnsha@arm.com>
1149 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
1151 2004-03-13 Dara Hazeghi <dhazeghi@yahoo.com>
1153 * doc/install.texi: Note status of -fnew-ra.
1155 2004-03-13 Eric Botcazou <ebotcazou@libertysurf.fr>
1158 * expr.c (store_expr): Call emit_queue before generating the move
1159 from the temporary to the original target. Protect the temporary
1162 2004-03-13 Jakub Jelinek <jakub@redhat.com>
1165 * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
1166 other than UNSPEC_GOTOFF.
1168 2004-03-13 Richard Earnshaw <rearnsha@arm.com>
1170 * arm.c (arm_legitimate_address_p): New argument, OUTER. Pass through
1171 to arm_legitimate_index_p. Update all callers with SET as default
1173 (arm_legitimate_index_p): New argument, OUTER. Restrict the index
1174 range if OUTER is a sign-extend operation on QImode. Correctly
1175 reject shift operations on sign-extended QImode addresses.
1176 (bad_signed_byte_operand): Delete.
1177 (arm_extendqisi_mem_op): New function.
1178 * arm.h (EXTRA_CONSTRAINT_ARM): Delete. Replace with...
1179 (EXTRA_CONSTRAINT_STR_ARM): ... this. Handle extended address
1181 (CONSTRAINT_LEN): New.
1182 (EXTRA_CONSTRAINT): Delete. Replace with...
1183 (EXTRA_CONSTRAINT_STR): ... this.
1184 (PREDICATE_CODES): Remove bad_signed_byte_operand.
1185 * arm.md (extendqihi_insn): Use new constraint Uq. Rework. Length
1186 is now always default.
1187 (define_splits for bad sign-extend loads): Delete.
1188 (arm_extendqisi, arm_extendqisi_v5): Likewise.
1189 * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
1190 Rework 'U' constraint to 'Uv'.
1191 * arm-protos.h: Remove bad_signed_byte_operand. Add
1192 arm_extendqisi_mem_op.
1193 * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
1196 2004-03-13 Alan Modra <amodra@bigpond.net.au>
1198 * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
1199 with targetm version.
1202 * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
1203 (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
1204 * config/rs6000/rs6000.c (rs6000_arg_size): New function.
1205 Update all users of RS6000_ARG_SIZE.
1206 (function_arg_advance): Count fregno using mode size.
1207 (function_arg): Handle long double split over regs and memory.
1208 (function_arg_partial_nregs): Likewise.
1209 (rs6000_va_arg): Repackage complex args.
1211 2004-03-13 Dean Ferreyra <dferreyra@igc.org>
1214 * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
1215 (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
1216 * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
1218 2004-03-12 Jakub Jelinek <jakub@redhat.com>
1220 * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
1222 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
1223 * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
1225 2003-03-12 Andrew Pinski <apinski@apple.com>
1227 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
1228 Use ret instead of result. Use addr instead of base.
1230 2004-03-12 David Edelsohn <edelsohn@gnu.org>
1232 * doc/install.texi (*-ibm-aix*): Document assembler and achiver
1233 fixes required by libstdc++ and update installation instructions
1236 2004-03-12 Danny Smith <dannysmith@users.sourceforge.net>
1238 * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
1239 leading '@' on fastcall symbols before stripping suffix.
1241 2004-03-12 Roger Sayle <roger@eyesopen.com>
1243 * combine.c (unmentioned_reg_p): New function to check whether an
1244 expression is a "specialization" of another, i.e. that there are
1245 no registers or memory references mentioned in the first that don't
1246 appear in the second.
1247 (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
1248 (combine_instructions): Also try combining instructions using the
1249 REG_EQUAL note from a preceding log-linked instruction.
1251 2004-03-12 Roger Sayle <roger@eyesopen.com>
1253 * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
1255 2004-03-12 Matt Austern <austern@apple.com>
1257 * target.h (struct gcc_target): New target hook, unwind_label.
1258 * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
1259 * output.h (default_emit_unwind_label): New function.
1260 * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
1261 (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
1262 (TARGET_SUPPORTS_HIDDEN): New target macro.
1263 * dwarf2out.c (struct dw_fde_struct): Add field for function decl
1264 that corresponds to this FDE.
1265 (FRAME_BEGIN_LABEL): Allow target to override default label.
1266 (output_call_frame_info): If FDEs are linknonce, then use extra
1267 indirection for FDE encoding, output a label for each FDE, and
1268 output an empty label for each function without an FDE.
1269 (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
1270 * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
1271 decls with DECL_ONE_ONLY set, if that macro is defined.
1272 (make_decl_one_only): Don't use DECL_COMMON if we're compiling
1273 for a SUPPORTS_ONE_ONLY target.
1274 * config/darwin-protos.h (darwin_unique_section): Declare.
1275 (darwin_asm_named_section): Likewise.
1276 (darwin_section_type_flags): Likewise.
1277 (darwin_non_lazy_pcrel): Likewise.
1278 (darwin_emit_unwind_label): Likewise.
1279 (darwin_make_decl_one_only): Likewise.
1280 * config/darwin.c (machopic_finish): Get rid of tweak that
1281 eliminate stubs for symbols that are defined.
1282 (darwin_encode_section_info): Don't treat weak functions as defined.
1283 (darwin_make_decl_one_only): Define.
1284 (darwin_asm_named_section): Likewise.
1285 (darwin_section_type_flags): Likewise.
1286 (darwin_unique_section): Likewise.
1287 (darwin_emit_unwind_label): Likewise.
1288 (darwin_non_lazy_pcrel): Likewise.
1289 (darwin_asm_output_dwarf_delta): Difference between two labels is
1290 local only if both labels are local.
1291 * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
1292 (ASM_MAKE_LABEL_LINKONCE): Likewise.
1293 (TARGET_SUPPORTS_HIDDEN): Likewise.
1294 (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
1295 (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
1296 (FRAME_BEGIN_LABEL): Likewise.
1297 (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
1298 (ASM_DECLARE_FUNCTION_NAME): Likewise.
1299 (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
1300 (TARGET_ASM_UNIQUE_SECTION): Define.
1301 (EH_FRAME_SECTION_NAME): Define.
1302 (EH_FRAME_SECTION_ATTR): Likewise.
1303 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
1304 (TARGET_ASM_NAMED_SECTION): Likewise.
1305 (TARGET_SECTION_TYPE_FLAGS): Likewise.
1306 * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
1307 TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
1308 TARGET_ASM_EMIT_UNWIND_LABEL.
1310 2004-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1312 * builtins.c (expand_builtin_mathfn): Add pow10* to the
1313 existing exp10* case.
1314 (expand_builtin): Likewise.
1316 2004-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
1318 * doc/tm.texi (registers) <Values in Registers>: Add
1319 entry for REGMODE_NATURAL_SIZE.
1321 2004-03-12 Richard Henderson <rth@redhat.com>
1324 * target.h (struct gcc_target): Move calls substructure before
1325 booleans. Add split_complex_arg.
1326 * function.c (assign_parms, split_complex_args): Use it.
1327 * calls.c (expand_call): Likewise.
1328 (split_complex_values): Likewise. Check for splittable types
1329 before allocating memory.
1330 (split_complex_types): Likewise.
1331 * system.h (SPLIT_COMPLEX_ARGS): Poison.
1332 * expr.h (SPLIT_COMPLEX_ARGS): Remove.
1333 * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
1334 * config/alpha/alpha.c (alpha_split_complex_arg): New.
1335 (TARGET_SPLIT_COMPLEX_ARG): New.
1336 * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
1337 * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
1338 (rs6000_override_options): Zap it for non-AIX.
1339 (rs6000_function_value): Use targetm.calls.split_complex_arg.
1340 * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
1341 * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
1342 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
1343 * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
1344 SPLIT_COMPLEX_ARGS entry.
1346 2004-03-11 Richard Henderson <rth@redhat.com>
1348 * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
1349 (alpha_lookup_xfloating_lib_func): Use them, return rtx.
1350 (alpha_emit_xfloating_arith): Update to match.
1351 (alpha_emit_xfloating_compare): Likewise.
1352 (alpha_emit_xfloating_cvt): Likewise.
1353 (alpha_emit_xfloating_libcall): Take already built symbol,
1355 * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
1358 2004-03-11 Richard Henderson <rth@redhat.com>
1361 * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
1363 * simplify-rtx.c (simplify_relational_operation): Fix typo.
1365 2004-03-11 Richard Henderson <rth@redhat.com>
1368 * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
1370 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
1373 * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
1374 defined, pass small BLKmode values in registers in the low-order part.
1376 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
1378 * combine.c (if_then_else_cond): Check for NULL return value of
1379 simplify_gen_subreg.
1381 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
1384 * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
1385 TARGET_SINGLE_FLOAT.
1387 2004-03-11 Steve Ellcey <sje@cup.hp.com>
1389 * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
1390 * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
1391 * config/ia64/ia64.c (ia64_init_libfuncs): New.
1392 (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
1394 2004-03-11 Roger Sayle <roger@eyesopen.com>
1396 * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
1397 -((int)X>>C) where C is an integer constant one bit less than the
1398 size of X into (unsigned)X>>C. Similarly for unsigned->signed.
1399 (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
1401 * simplify-rtx.c (simplify_unary_operation): Also implement the
1402 above transformations at the RTL level.
1404 2004-03-11 Alan Modra <amodra@bigpond.net.au>
1406 * real.c (encode_ibm_extended): Do round low word.
1408 2004-03-11 Ben Elliston <bje@wasabisystems.com>
1410 * config/arm/arm.md (is_xscale): Comment this attribute and move
1411 it a bit further up in the file, closer to related attributes.
1413 2004-03-11 Eric Botcazou <ebotcazou@libertysurf.fr>
1415 * config/host-solaris.c (sol_gt_pch_use_address): Add
1416 missing terminating marker to comment.
1418 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
1420 * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
1421 (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
1422 (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
1423 (*movsf_mips16, *movdf_mips16): Name unnamed patterns. Use
1424 move_operand as source predicate in all cases.
1425 (*movdi_32bit): Renamed from movdi_internal. Remove 'F' constraint.
1426 Test reg_or_0_operand. Use move_operand as source predicate.
1427 (*movdi_64bit): Renamed from movdi_internal2. Test reg_or_0_operand.
1428 (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
1429 (*movsi_internal): Renamed from movsi_internal. Test reg_or_0_operand.
1430 (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
1431 (*movhi_internal): Renamed from movhi_internal. Test reg_or_0_operand.
1432 Use move_operand as source predicate. Remove 'K' constraint.
1433 (*movqi_internal): Likewise movqi_internal.
1434 (*movsf_hardfloat): Renamed from movsf_internal1. Test
1435 reg_or_0_operand. Use move_operand as source predicate.
1436 (*movsf_softfloat): Likewise movsf_internal2.
1437 (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
1438 (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
1439 (*movdf_softfloat): Likewise movdf_internal2.
1440 * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
1441 for DImode if !TARGET_64BIT.
1442 (mips_legitimize_move): Simplify accordingly.
1444 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
1447 * var-tracking.c (struct variable_def): Added field refcount.
1448 (variable_htab_free): Decrease the refcount and delete variable
1449 only if there are no more references.
1450 (unshare_variable): New function.
1451 (vars_copy_1): Increase refcount instead of copying the variable.
1452 (variable_union): Share the variables where possible, unshare
1453 the variables if needed.
1454 (variable_different_p): Return false if var1 and var2 are
1456 (variable_was_changed): Init the refcount of new variable.
1457 (set_frame_base_location): Unshare variable if needed.
1458 (set_variable_part): Init the refcount of new variable.
1459 Unshare the variables if needed.
1460 (delete_variable_part): Unshare the variables if needed.
1461 (emit_notes_for_differences_1): Init the refcount of new variable.
1462 (vt_add_function_parameters): Do not add function parameters to
1463 IN set of ENTRY_BLOCK_PTR because it is unused anyway.
1464 (vt_initialize): Do not add frame_base_decl to IN set of
1465 ENTRY_BLOCK_PTR because it is unused anyway.
1467 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
1469 * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
1470 (vars_copy): Likewise.
1471 (variable_union): Likewise.
1472 (set_variable_part): Likewise.
1473 (delete_variable_part): Likewise.
1475 2004-03-11 Kazu Hirata <kazu@cs.umass.edu>
1477 * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
1478 ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
1479 config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
1480 config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
1481 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
1482 config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
1483 config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
1484 config/pdp11/pdp11.h, config/rs6000/rs6000.c,
1485 config/stormy16/stormy16.c: Fix comment typos and formatting.
1487 2004-03-11 Nathanael Nerode <neroden@gcc.gnu.org>
1489 * configure: Regenerate, since I forgot to while committing Paolo's
1492 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
1495 Move language detection to the top level.
1496 * configure.ac: Remove code to detect languages,
1497 it now lives exclusively in the top level.
1498 * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
1499 top level, renamed to ACX_PROG_GNAT.
1501 2004-03-10 Richard Henderson <rth@redhat.com>
1503 * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
1505 * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
1506 and host_xmake_file fragments.
1507 * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
1508 (gt_pch_restore): Similarly for gt_pch_use_address.
1509 (default_gt_pch_get_address): New.
1510 (mmap_gt_pch_get_address): Split out of gt_pch_save.
1511 (default_gt_pch_use_address): Split out of gt_pch_restore.
1512 (mmap_gt_pch_use_address): Likewise.
1513 * hooks.c (hook_voidp_size_t_null): Remove.
1514 (hook_bool_voidp_size_t_false): Remove.
1515 * hooks.h: Likewise.
1516 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
1517 default_ or mmap_ definitions.
1518 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
1519 * hosthooks.h (struct host_hooks): Update gt_pch_get_address
1520 and gt_pch_use_address.
1521 * config/host-linux.c, config/host-solaris.c: New files.
1522 * config/x-linux, config/x-solaris: New files.
1523 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
1524 Update for changed definition.
1525 (darwin_rs6000_gt_pch_use_address): Likewise.
1526 * doc/hostconfig.texi: Update docs.
1528 2004-03-10 Richard Henderson <rth@redhat.com>
1531 * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
1532 except for pedantic c90 mode.
1534 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
1536 * configure.ac: Bump AC_PREREQ to 2.59.
1537 * configure: Regenerate.
1539 2004-03-10 Uros Bizjak <uros@kss-loka.si>
1541 * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
1542 (exp10_optab, exp2_optab): Define corresponding macros.
1543 * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
1544 * genopinit.c (optabs): Implement exp10_optab and exp2_optab
1545 using exp10?f2 and exp2?f2 patterns.
1546 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
1547 using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
1548 (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
1549 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
1551 * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
1552 exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
1553 exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
1555 2004-03-10 Anthony Green <green@redhat.com>
1557 * doc/invoke.texi (ARM Options): Fix -mpfu typo.
1559 2004-03-10 David Edelsohn <edelsohn@gnu.org>
1561 * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
1562 (TARGET_OS_AIX_CPP_BUILTINS): this. Conditionally define
1564 * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
1565 TARGET_OS_AIX_CPP_BUILTINS.
1566 * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
1567 * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
1568 * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
1569 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
1572 2004-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1574 * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
1576 2004-03-10 David Edelsohn <edelsohn@gnu.org>
1578 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
1579 __LONGDOUBLE128 on AIX.
1581 2004-03-10 Andrew Haley <aph@redhat.com>
1583 PR optimization/14381
1584 * function.c (expand_function_end): Emit a blockage insn before
1585 the epilogue when -fnon-call-exceptions is used.
1587 * except.c (expand_start_all_catch): Make comment more accurate.
1589 2004-03-08 Joel Sherrill <joel@oarcorp.com>
1592 * config/rs6000/t-rtems: Add missing file on branch.
1594 2004-03-10 Ulrich Weigand <uweigand@de.ibm.com>
1596 * dbxout.c (dbxout_symbol_location): Do not output references
1597 to optimized-out constant pool symbols.
1599 2004-03-10 Andreas Schwab <schwab@suse.de>
1601 * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
1604 2004-03-09 James E Wilson <wilson@specifixinc.com>
1606 * alias.c (alias_sets_might_conflict_p): New.
1607 * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
1608 * common.opt (Wstrict-aliasing=): New.
1609 * flags.h (warn_strict_aliasing): Change type to int.
1610 * opts.c (warn_strict_aliasing): Change type to int.
1611 (common_handle_option): Handle OPT_Wstrict_aliasing_.
1612 * tree.h (alias_sets_might_conflict_p): Declare it.
1613 * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
1615 2004-03-10 Roman Zippel <zippel@linux-m68k.org>
1618 * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
1619 (CALL_USED_REGISTERS): Likewise.
1620 (REG_CLASS_CONTENTS): Likewise.
1621 (REG_ALLOC_ORDER): New.
1622 (REGNO_REG_CLASS): Use regno_reg_class.
1623 * config/m68k/m68k.c: Add regno_reg_class array.
1625 2004-03-09 Steve Ellcey <sje@cup.hp.com>
1627 * config/ia64/ia64.md (divsi3): Fix algorithm.
1629 (setf_exp_xf): Remove '*' from name.
1630 * testsuite/gcc.dg/20040309-1.c: New test.
1632 2004-03-09 Ian Lance Taylor <ian@wasabisystems.com>
1634 * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
1635 * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
1636 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
1637 * config/sparc/sparc.c (sparc_aout_select_section): Remove.
1638 (sparc_aout_select_rtx_section): Don't check
1639 SUNOS4_SHARED_LIBRARIES.
1640 * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
1642 2004-03-10 Hans-Peter Nilsson <hp@axis.com>
1645 * doc/md.texi (Pattern Ordering, Dependent Patterns)
1646 (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
1649 2004-03-09 Zack Weinberg <zack@codesourcery.com>
1651 * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
1652 (LIBGCC_SPEC): Update to match.
1654 2004-03-09 Zack Weinberg <zack@codesourcery.com>
1656 * c-decl.c (last_function_parms, last_function_parm_tags)
1657 (last_function_parm_others, current_function_parms)
1658 (current_function_parm_tags, current_function_parm_others):
1660 (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
1662 (grokdeclarator): For function definitions, save the arg-info
1663 block from the declarator in DECL_ARGUMENTS.
1664 (grokparms): Do not write to last_function_parm*. Use ARG_INFO_*
1665 macros to operate on arg-info block. Can assume ARG_INFO_PARMS
1666 contains only PARM_DECLs. Improve diagnostics.
1667 (get_parm_info): Use ARG_INFO_* macros. Improve comments and
1668 diagnostics. Disable some expensive checks if not ENABLE_CHECKING.
1669 (store_parm_decls_newstyle): Take the function to operate on,
1670 and an arg-info block, as arguments; don't get anything from
1671 current_function_* globals.
1672 (store_parm_decls_oldstyle): Likewise.
1673 (store_parm_decls): Pass fndecl and its arg-info block down to
1674 store_parm_decls_newstyle/oldstyle. Send functions with empty
1675 argument lists through store_parm_decls_newstyle to reduce
1677 (pushdecl): Comment on the problems with the call to copy_node.
1678 Clear DECL_ARGUMENTS of the old node after copying it, if it
1679 is an arg-info block instead of a chain of decls.
1680 (start_function): Do not manipulate current_function_parm* or
1681 last_function_parm*.
1683 2004-03-09 Roger Sayle <roger@eyesopen.com>
1684 Andrew Pinski <pinskia@physics.uc.edu>
1686 * ifcvt.c (noce_try_sign_mask): New function to transform
1687 "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
1688 (noce_process_if_block): Call noce_try_sign_mask.
1690 2004-03-09 Andrew Pinski <apinski@apple.com>
1692 * c-typeck.c (tagged_types_tu_compatible_p):
1695 2004-03-09 Roger Sayle <roger@eyesopen.com>
1697 * simplify-rtx.c (simplify_const_relational_operation): New function
1698 renamed from simplify_relational_operation.
1699 (simplify_relational_operation): Change prototype to accept an
1700 additional mode argument. Call simplify_const_relational_operation.
1701 (simplify_gen_relational): Update simplify_relational_operation call.
1702 (simplify_ternary_operation): Update simplify_relational_operation
1703 subroutine call to use simplify_const_relational_operation instead.
1705 * rtl.h (simplify_const_relational_operation): Prototype here.
1706 (simplify_relational_operation): Add addtional mode argument.
1708 * combine.c (combine_simplify_rtx): Update calls to
1709 simplify_relational_operation.
1710 (simplify_set): Likewise.
1711 (gen_binary): Likewise.
1712 * cse.c (fold_rtx): Likewise.
1713 * dojump.c (compare_from_rtx): Likewise.
1714 (do_compare_rtx_and_jump): Likewise.
1715 * integrate.c (subst_constants): Likewise.
1716 * unroll.c (simplify_cmp_and_jump_insns): Likewise.
1718 2004-03-09 Kazu Hirata <kazu@cs.umass.edu>
1720 * config/m32r/m32r.md: Remove all define_peephole's.
1722 2004-03-09 Alan Modra <amodra@bigpond.net.au>
1724 * config/rs6000/rs6000.md: Remove trailing whitespace.
1726 2004-03-08 Eric Christopher <echristo@redhat.com>
1728 * Makefile.in (site.exp): Add libiconv variable definition.
1730 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
1732 * configure: Regenerate for config/accross.m4 correction.
1734 2004-03-08 Joel Sherrill <joel@oarcorp.com>
1737 * config/rs6000/t-rtems: Add missing file on branch.
1739 2004-03-08 Roger Sayle <roger@eyesopen.com>
1742 * c-typeck.c (c_mark_addressable): A register variable should
1743 be considered global if its not automatic, i.e. TREE_PUBLIC,
1744 TREE_STATIC or DECL_EXTERNAL.
1745 * function.c (put_var_into_stack): Call abort when placing a
1746 hard register into the stack, if x_parm_reg_stack_loc is NULL.
1748 2004-03-08 Ulrich Weigand <uweigand@de.ibm.com>
1750 * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
1751 ("*extendqisi2_short_displ"): Likewise.
1753 2004-03-08 Kazu Hirata <kazu@cs.umass.edu>
1755 * config/pdp11/pdp11.c (comparison_operator_index): Remove.
1756 (comp_operator): Likewise.
1757 * config/pdp11/pdp11-protos.h: Remove corresponding
1760 2004-03-08 Eric Botcazou <ebotcazou@act-europe.fr>
1762 * expr.c (highest_pow2_factor_for_type): Rename into
1763 highest_pow2_factor_for_target. Use DECL_ALIGN instead of
1764 TYPE_ALIGN when the target is a COMPONENT_REF.
1765 (expand_assignment): Ajust call to highest_pow2_factor_for_type.
1767 2004-03-08 Alan Modra <amodra@bigpond.net.au>
1769 * config/rs6000/rs6000.c: Formatting fix.
1770 (legitimate_offset_address_p): Correct offset range check.
1772 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
1773 -msoft-float by -mcpu. Consolidate similar code for MASK_MULTIPLE
1776 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
1778 * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
1780 ("ashrdi3_no_power"): Disable for little endian.
1783 2004-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1785 * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
1788 2004-03-08 Hans-Peter Nilsson <hp@axis.com>
1791 * configure.ac (Target-specific assembler checks) <cris-*-*>: New
1792 case, checking for -no-mul-bug-abort option.
1793 * configure, config.in: Regenerate.
1794 * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
1795 and -mno-mul-bug-workaround.
1796 * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
1797 ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
1798 ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
1799 Ditto. Make attribute "slottable" dependent on TARGET_MUL_BUG.
1800 * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
1801 sure mulu.d is not last on cache-line.
1802 * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
1803 into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
1804 (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
1805 (TARGET_SWITCHES): New options -mmul-bug-workaround and
1806 -mno-mul-bug-workaround.
1807 (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
1808 (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
1809 * config/cris/cris.c (cris_operand_extend_operator): Clarify
1810 relation to MULT in head comment.
1811 (cris_op_str): Abort for MULT.
1812 (cris_print_operand) <case '!'>: New case.
1814 2004-03-08 Alan Modra <amodra@bigpond.net.au>
1817 * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
1818 dw_val_class_vec. Replace use throughout file.
1819 (dw_float_const): Delete.
1820 (dw_vec_const): New.
1821 (dw_val_struct_union): Rename val_float to val_vec. Replace use
1823 (add_AT_vec): Rename from add_AT_float. Add elt_size param.
1824 (same_dw_val_p): Adjust vec comparison. Use memcmp.
1825 (size_of_die): Adjust dw_val_class_vec sizing.
1826 (output_die): Output dw_val_class_vec.
1827 (insert_int, extract_int, insert_float): New functions.
1828 (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
1829 Handle CONST_VECTOR.
1830 (add_location_or_const_value_attribute): Handle CONST_VECTOR.
1832 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
1834 * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
1835 AltiVec abi cannot co-exist.
1837 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
1839 2004-03-07 Jan Hubicka <jh@suse.cz>
1841 * except.c (emit_to_new_bb_before): Break fallthru edges.
1843 2004-03-07 Stephane Carrez <stcarrez@nerim.fr>
1845 * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
1846 ("*lshrsi3"): Also accept an immediate for 68HC12.
1847 ("*ashrsi3_const"): Likewise.
1848 ("*ashrsi3"): Likewise.
1849 ("*ashlsi3_const"): Likewise.
1850 ("*ashlsi3"): Likewise.
1851 ("cmphi_1_hc12"): Compare two hard register by pushing them and
1852 comparing with a pop; don't use a split for that.
1853 ("cmphi split"): Disable compare split for 68HC12.
1855 * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
1856 the status operands if they have side effects.
1858 2004-03-07 Kazu Hirata <kazu@cs.umass.edu>
1860 * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
1862 * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
1863 config/h8300/h8300.h, config/ia64/ia64.h,
1864 config/mcore/mcore.h, config/mmix/mmix.h,
1865 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
1866 config/stormy16/stormy16.h, config/v850/v850.h,
1867 config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
1868 * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
1871 2004-03-07 Roger Sayle <roger@eyesopen.com>
1873 * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
1874 <XOR_EXPR>: Fold x ^ x as zero.
1875 <AND_EXPR>: Fold x & x as x.
1877 2004-03-07 Roger Sayle <roger@eyesopen.com>
1879 * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
1880 "foo++ == const" into "++foo == const+incr".
1882 2004-03-07 Richard Sandiford <rsandifo@redhat.com>
1884 * config/mips/mips.c (mips_in_small_data_p): Return false if
1887 2004-03-06 Stephane Carrez <stcarrez@nerim.fr>
1889 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
1891 (expand_prologue): Don't make an interrupt or a trap handler a far
1893 (m68hc11_initial_elimination_offset): Likewise.
1895 2004-03-06 Richard Henderson <rth@redhat.com>
1897 * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
1899 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
1901 * config/ns32k/ns32k-protos.h: Add a prototype for
1902 ns32k_notice_update_cc.
1903 * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
1904 * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
1905 ns32k_notice_update_cc.
1907 2004-03-06 Ulrich Weigand <uweigand@de.ibm.com>
1909 * config/s390/s390.md ("load_multiple", "*load_multiple_di",
1910 "*load_multiple_si"): Allow only if reload_completed.
1911 ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
1914 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
1916 * config/vax/vax-protos.h: Add a prototype for
1917 vax_notice_update_cc.
1918 * config/vax/vax.c (vax_notice_update_cc): New.
1919 * config/vax/vax.h (NOTICE_UPDATE_CC): Call
1920 vax_notice_update_cc.
1922 2004-03-06 David Edelsohn <edelsohn@gnu.org>
1924 * collect2.c (main): Only export initfunc and finifunc if
1925 LD_INIT_SWITCH not defined.
1926 (scan_prog_file): Only export constructors and destructors if
1927 LD_INIT_SWITCH not defined. Only export symbols not found in
1930 2004-03-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1932 * pa.md (icacheflush): Reorder operands to make match_scratch operand
1934 * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
1935 from calls to gen_icacheflush.
1937 2004-03-06 Richard Henderson <rth@redhat.com>
1939 * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
1940 (TARGET_LONG_DOUBLE_128): New.
1941 (TARGET_SWITCHES): Add long-double-{128,64}.
1942 (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
1943 (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
1944 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
1945 (WIDEST_HARDWARE_FP_SIZE): New.
1946 (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
1947 * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
1948 if TARGET_VAX_FLOAT.
1949 * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
1950 (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
1952 2004-03-06 Richard Henderson <rth@redhat.com>
1954 * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
1955 botched rtx class conversion.
1957 2004-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1959 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
1960 BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
1962 * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
1964 * fold-const.c (fold_mathfn_compare, fold): Likewise.
1966 2004-03-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1969 * config/i386/i386.md (movv2di_internal): Conditionalize on
1970 TARGET_SSE, not TARGET_SSE2.
1972 2004-03-05 Chris Demetriou <cgd@broadcom.com>
1974 * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
1977 2004-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1979 * builtins.c: Consistently use logN not log* in comments.
1981 2004-03-05 Andreas Krebbel <krebbel1@de.ibm.com>
1983 * rtl.h (mem_expr_equal_p): Function prototype added.
1984 * cfgcleanup.c (merge_memattrs): New function.
1985 (flow_find_cross_jump): Call merge_memattrs for matching insns.
1986 * emit-rtl.c (mem_expr_equal_p): New function.
1988 2004-03-05 Ziemowit Laski <zlaski@apple.com>
1990 * objc/objc-act.c (synth_module_prologue): Const-qualify
1991 objc_selector type if using the GNU runtime; fix generated
1992 signatures for objc_msg_lookup and objc_msg_lookup_super
1993 to match what GNU ObjC headers provide; reformat and clean up.
1994 (synth_self_and_ucmd_args): Use previously constructed (and
1995 hence possibly const-qualified) objc_selector type.
1997 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
1999 * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
2001 2004-03-05 Jason Merrill <jason@redhat.com>
2003 * tree.h (TYPE_HASH): Use TYPE_UID.
2004 (TREE_HASH): New macro with old definition of TYPE_HASH.
2005 * tree.c (build_type_attribute_variant): Use iterative_hash_object.
2006 (build_array_type, build_function_type): Likewise.
2007 (build_method_type_directly): Likewise.
2008 (build_offset_type, build_complex_type): Likewise.
2009 (type_hash_list, attribute_hash_list): Likewise. Now static.
2010 * except.c: s/TYPE_HASH/TREE_HASH/.
2012 2004-03-05 Bob Wilson <bob.wilson@acm.org>
2014 * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
2015 (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32). Adjust
2016 __va_ndx by 2 words when referencing an argument on the stack.
2017 (xtensa_va_arg): Handle 16-byte aligned args. Adjust __va_ndx by 2
2018 words when an arg on the stack is first seen.
2020 2004-03-05 Paul Brook <paul@codesourcery.com>
2022 * arm.h (ARM_FLAG_VFP): Remove.
2023 (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
2024 * netbsd-elf.h (ARM_FLAG_VFP): Remove.
2026 2004-03-05 Paul Brook <paul@codesourcery.com>
2028 * function.c (assign_parms): Include pretend alignment offset.
2030 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2032 * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
2033 FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
2035 2004-03-05 Ian Lance Taylor <ian@wasabisystems.com>
2037 * configure.ac: When passing --enable-languages to subdir
2038 configure when host != build, make sure we don't pass an empty
2040 * configure: Regenerate.
2042 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2045 * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
2048 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
2050 * simplify-rtx.c (simplify_relational_operation): If
2051 flag_wrapv is set, do not move terms between the two
2052 side of a relational operator.
2054 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
2056 * rtlanal.c: Include target.h and output.h
2057 (rtx_cost, address_cost, default_address_cost): Move from...
2058 * cse.c (rtx_cost, address_cost, default_address_cost):
2060 * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
2061 * Makefile.in: Adjust dependencies.
2063 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
2065 * cse.c (cse_end_of_basic_block): Make static.
2066 * local-alloc.c (function_invariant_p): Move to
2068 * loop.c (libcall_other_reg, record_excess_regs):
2070 * reload1.c (function_invariant_p): Moved here
2071 from local-alloc.c, made static.
2072 * rtl.h (cse_end_of_basic_block, function_invariant_p,
2073 libcall_other_reg, record_excess_regs): Remove
2076 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
2078 * config/m32r/m32r.c (signed_comparison_operator): Add a
2079 missing parenthesis.
2081 2004-03-04 Ian Lance Taylor <ian@wasabisystems.com>
2083 * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
2084 going to call mmap again. Read the file into the right place.
2085 Give a fatal error if we have to relocate.
2087 2004-03-04 Bob Wilson <bob.wilson@acm.org>
2089 * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
2090 (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
2092 2004-03-05 Hans-Peter Nilsson <hp@axis.com>
2095 * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
2096 round the same. When rounding, clear bits that would cause a
2097 second rounding in pack_d.
2098 (_fpmul_parts): Ditto. Remove #if 0:d code.
2100 2004-03-04 Ziemowit Laski <zlaski@apple.com>
2102 PR c++/14425, c++/14426
2103 * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
2104 vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
2105 Change C++ definitions to accept a 'const int' argument;
2106 the prototypes already do.
2107 * config/rs6000/rs6000.c (rs6000_common_init_builtins):
2108 Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
2109 v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
2110 v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
2111 v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
2112 v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
2113 end in ..._int; change them to accept an int instead of a char
2114 as the last parameter.
2116 2004-03-04 Phil Edwards <phil@codesourcery.com>
2118 * genmultilib: Change '=' to '-' when translating option names
2121 2004-03-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2123 * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
2124 stack slot for temp used for result of BLKmode but in integral mode.
2126 2004-03-04 Jan Hubicka <jh@suse.cz>
2128 * reload.c (find_reloads): Reorganize if seqeunce to switch.
2130 * cfgrtl.c (rtl_redirect_edge_and_branch): Set the source BB as dirty.
2131 (cfglayout_redirect_edge_and_branch): Set the source BB as dirty.
2133 2004-03-04 Steve Ellcey <sje@cup.hp.com>
2135 * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
2136 * testsuite/gcc.dg/20040303-1.c: New test.
2138 2004-03-04 Steven Bosscher <stevenb@suse.de>
2140 * ppro.md: Rewrite as a DFA pipeline description.
2141 * i386.md: Remove all uses of the ppro_uops attribute.
2142 * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
2143 ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
2144 ix86_sched_reorder, ix86_variable_issue,
2145 struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
2146 TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
2147 (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
2148 (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
2149 * athlon.md (athlon_ssecmp_load): Fix comment
2151 2004-03-04 Stuart Hastings <stuart@apple.com>
2153 * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
2155 2004-03-04 Stuart Hastings <stuart@apple.com>
2157 * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
2158 686, tell Darwin assembler to allow prefetch insns, non-empty def
2159 of SUBTARGET_OPTION_TRANSLATE_TABLE.
2161 2004-03-04 DJ Delorie <dj@redhat.com>
2163 PR optimization/14282
2164 * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
2165 between a call and the assignment of its return value.
2167 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
2169 * config/h8300/h8300.c: Put a comment for every function.
2171 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
2173 * config/h8300/h8300.md: Add comments about peephole2's.
2175 2004-03-04 Steven Bosscher <stevenb@suse.de>
2177 * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
2179 2004-03-04 Jan Hubicka <jh@suse.cz>
2181 * cfgcleanup.c (thread_jump): Update call of cselib_init.
2182 * cselib.c (cselib_record_memory): New static variable.
2183 (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
2184 Give up on memories when asked for.
2185 (cselib_init): Accept new argument.
2186 * cselib.h (cselib_init): Update prototype.
2187 * gcse.c (local_cprop_pass): Update call of cselib_init.
2188 * loop.c (load_mems): Update call of cselib_init.
2189 * postreload.c (reload_cse_regs_1): Update call of cselib_init.
2190 * sched-deps.c (sched_analyze): Update call of cselib_init.
2192 2004-03-04 David Edelsohn <edelsohn@gnu.org>
2195 * config/rs6000/rs6000.c (output_function_profiler): Append @plt
2198 2004-03-04 Josef Zlomek <zlomekj@suse.cz>
2201 * var-tracking.c (track_expr_p): Do not track variables which
2202 should be ignored for debugging purposes.
2204 2004-03-04 Alan Modra <amodra@bigpond.net.au>
2206 * real.c (encode_ibm_extended): Don't bother rounding low double.
2207 * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
2208 when fmt->pnan < fmt->p.
2210 2004-03-04 Eric Christopher <echristo@redhat.com>
2212 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
2213 only range of valid arg registers and fixed_regs.
2215 2004-03-04 Alan Modra <amodra@bigpond.net.au>
2218 * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
2219 (abstf2, abstf2_internal): New define_expand.
2221 2004-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2223 PR optimization/14235
2224 * expr.c (convert_move): Copy the source to a new pseudo
2225 when converting from a sub-word source to a larger-than-word
2226 register which conflicts with the source.
2228 2004-03-03 Zack Weinberg <zack@codesourcery.com>
2231 * c-decl.c (diagnose_mismatched_decls): Issue an error for two
2232 parameters with the same name, unless one is a forward decl.
2233 Do not issue a redundant-redeclaration warning for forward
2234 decls of parameters.
2236 2004-03-04 David Edelsohn <edelsohn@gnu.org>
2238 * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
2241 2004-03-03 Ian Lance Taylor <ian@wasabisystems.com>
2243 * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
2245 2004-03-04 Alan Modra <amodra@bigpond.net.au>
2247 * target-def.h (TARGET_OPTF): Delete.
2248 * c-opts.c (TARGET_OPTF): Define.
2250 2004-03-04 Jan Hubicka <jh@suse.cz>
2252 * cselib.c (cselib_finish): Fix another miss-application of my previous
2255 2004-03-03 Mike Stump <mrs@apple.com>
2257 Add framework support for darwin.
2259 * c-incpath.c: Include target.h and machmode.h.
2260 (add_path): Use a consistent style for cpp_dir. Initialize
2262 (add_cpp_dir_path): New.
2263 (register_include_chains): Add use of extra_includes callback.
2264 (hook_void_int): Add.
2265 (target_c_incpath): Add.
2266 * c-incpath.h (add_cpp_dir_path): New.
2267 (target_c_incpath_s): Add.
2268 (target_c_incpath): Add.
2269 (C_INCPATH_INIT): Add.
2270 * c-opts.c (c_common_missing_argument,
2271 c_common_handle_option): Add -F argument processing.
2272 * c.opt: Add -F argument processing.
2273 * gcc.c (trad_capable_cpp): Add -F argument processing.
2274 * cppfiles.c (find_file_in_dir): Update to use construct
2276 (search_path_exhausted, cpp_get_path, cpp_get_buffer,
2278 (_cpp_find_file): Use search_path_exhausted.
2279 (make_cpp_dir): Initialize construct to 0.
2280 * cpplib.h (missing_header_cb
2281 cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
2282 (cpp_callbacks): Add missing_header
2283 (cpp_dir): Add construct.
2284 * target-def.h: (TARGET_OPTF): New.
2285 * hooks.c (hook_void_int, hook_void_charptr): Add.
2286 * hooks.h (hook_void_int, hook_void_charptr): Add.
2287 * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
2288 $(MACHMODE_H) dependencies.
2289 * doc/invoke.texi (Darwin Options): Document -F.
2290 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
2292 * fix-header.c (target_c_incpath): Add.
2294 * config/darwin-c.c: Add c-incpath.h include.
2295 (using_frameworks, find_subframework_file,
2296 find_subframework_header, add_system_framework_path,
2297 frameworks_in_use, num_frameworks, max_frameworks,
2298 add_framework, find_framework, struct framework_header,
2299 framework_header_dirs, framework_construct_pathname,
2300 find_subframework_file, add_system_framework_path,
2301 add_framework_path, framework_defaults,
2302 darwin_register_frameworks, find_subframework_header): Add.
2303 * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
2304 (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
2305 (CPP_SPEC): Add __APPLE_CC__ support.
2306 * t-darwin (darwin-c.o): Add c-incpath.h dependency.
2308 2004-03-04 Jan Hubicka <jh@suse.cz>
2310 * cselib.c (cselib_finish): Fix miss-application of my previous
2313 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
2315 * hooks.c (hook_tree_tree_identity): New.
2316 * hooks.h: Add a prototype for hook_tree_tree_identity.
2317 * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
2318 instead of MD_ASM_CLOBBERS.
2319 * system.h (MD_ASM_CLOBBERS): Poison.
2320 * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
2321 (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
2322 * target.h (gcc_target): Add md_asm_clobbers.
2323 * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
2324 (ix86_md_asm_clobbers): New.
2325 * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
2326 * doc/tm.texi (MD_ASM_CLOBBERS): Change to
2327 TARGET_MD_ASM_CLOBBERS.
2329 2004-03-03 Stuart Hastings <stuart@apple.com>
2331 * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
2333 2004-03-03 Eric Botcazou <ebotcazou@libertysurf.fr>
2335 * config/sparc/sparc.c (noov_compare64_op): Fix typo.
2337 * config/sparc/sparc.h (ASM_FLOAT): Delete.
2338 (ASM_DOUBLE): Likewise.
2339 (ASM_LONGDOUBLE): Likewise.
2340 * config/sparc/pbd.h (ASM_INT_OP): Delete.
2342 2003-03-03 Richard Henderson <rth@redhat.com>
2345 * cselib.c (cselib_record_sets): Don't record multiple sets in
2348 2004-03-03 Mostafa Hagog <mustafa@il.ibm.com>
2350 * common.opt: Add description of the new -fgcse-after-reload flag.
2352 * flags.h (flag_gcse_after_reload): Declaration of global variable.
2354 * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
2355 reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
2356 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
2357 get_bb_avail_insn, hash_scan_set_after_reload,
2358 compute_hash_table_after_reload, eliminate_partially_redundant_loads,
2359 gcse_after_reload, get_bb_avail_insn): New functions to implement
2361 (gcse_after_reload_main): New function, the main entry point to
2364 * rtl.h (gcse_after_reload_main): Declaration of the new function.
2366 * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
2368 * toplev.c (flag_gcse_after_reload): Initialization.
2370 * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
2372 * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
2373 PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
2374 the gcse after reload optimization.
2376 * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
2377 GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
2380 * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
2382 2004-03-03 Nicolas Pitre <nico@cam.org>
2384 * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
2385 small negative values.
2387 2004-03-03 Jan Hubicka <jh@suse.cz>
2389 * cselib.c (hash_table): Remove GTY marker.
2390 (reg_values): Turn into array.
2391 (used_regs): Likewise.
2392 (n_used_regs): New static variable.
2393 (reg_values_old): Kill.
2394 (clear_table): Update uses of arrays.
2395 (cselib_lookup): Likewise.
2396 (cselib_record_set): Likewise.
2397 (cselib_init): Likewise.
2398 (cselib_finish): Likewise.
2399 (cselib_udpate_varray_sizes): Kill.
2400 * cselib.h (cselib_update_varray_sizes): Kill.
2402 2004-03-03 Paul Brook <paul@codesourcery.com>
2404 * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
2406 2004-03-03 Jan Hubicka <jh@suse.cz>
2408 * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
2409 Rename from ...; make statistics transparent.
2410 (ggc_alloc_cleared, ggc_realloc_stat): ... these.
2411 (loc_descriptor): New structure.
2412 (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
2414 New static function.
2415 (ggc_record_overhead, dump_statistics): New global function.
2416 * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
2417 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
2418 from ...; accept locations
2419 (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
2420 ggc_realloc, ggc_alloc_typed): ... this one.
2421 from ...; accept locations
2422 * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
2423 ggc_alloc_stat): Rename from ... ; pass locations
2424 * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
2426 (ggc_alloc_stat): Record overehead.
2427 * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
2428 ggc_realloc, ggc_alloc_typed): Turn to macros
2429 (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
2430 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
2431 (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
2432 * langhooks.h (lhd_make_node): Declare.
2433 (LANG_HOOKS_MAKE_TYPE): Default to new function,
2434 * langhooks.c (lhd_make_node): New.
2435 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
2437 (rtx_alloc, swallow_copy_rtx): ... this one.
2438 * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
2439 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
2440 * toplpev.c (finalize): Dump stats.
2441 * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
2442 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
2443 Rename from ... ; pass locators.
2444 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
2445 build?, build_decl): Declare.
2446 * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
2447 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
2449 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
2450 build?, build_decl): New macros.
2451 * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
2452 * statistics.h: New file.
2454 2004-03-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2455 Richard Sandiford <rsandifo@redhat.com>
2457 * config/mips/mips.h (MASK_FIX_SB1): Bump.
2458 (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
2459 (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
2460 * config/mips/mips.c (mips_output_division): Fill the branch delay
2461 slot with a nop if TARGET_FIX_R4000. Extend R4000 workarounds to
2463 (mips_output_division): Adjust accordingly.
2464 (override_options): Make -march=r4400 imply -mfix-r4400 by default.
2465 * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
2467 2004-03-03 Paolo Bonzini <bonzini@gnu.org>
2469 * alias.c (rtx_equal_for_memref_p): Use predicates
2470 to test rtx classes and new rtx class codes, possibly
2471 splitting conditionals that tested against '<' and 'o'.
2472 * caller-save.c (save_call_clobbered_regs): Likewise.
2473 * combine.c (contains_muldiv, find_split_point, subst,
2474 combine_simplify_rtx, simplify_if_then_else,
2475 simplify_set, simplify_logical, expand_compound_operation,
2476 make_compound_operation, if_then_else_cond, known_cond,
2477 apply_distributive_law, cached_nonzero_bits,
2478 cached_num_sign_bit_copies, simplify_shift_const,
2479 gen_binary, simplify_comparison, update_table_tick,
2480 record_value_for_reg, get_lsat_value_validate): Likewise.
2481 * cse.c (mention_regs, find_best_addr, find_comparison_args,
2482 fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
2484 * emit-rtl.c (copy_insn_1): Likewise.
2485 * expr.c (force_operand): Likewise.
2486 * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
2487 * flow.c (notice_stack_pointer_modification_1,
2488 invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
2489 and_reg_cond, elim_reg_cond): Likewise.
2490 * function.c (update_epilogue_consts): Likewise.
2491 * genattrtab.c (attr_rtx_1): Likewise.
2492 * genopinit.c (gen_insn): Likewise.
2493 * integrate.c (subst_constants): Likewise.
2494 * jump.c (reversed_comparison_code_parts,
2495 reversed_comparison_code, delete_related_insns,
2496 rtx_renumbered_equal_p): Likewise.
2497 * local-alloc.c (block_alloc): Likewise.
2498 * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
2499 canonicalize_condition): Likewise.
2500 * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
2502 * optabs.c (add_equal_node, expand_binop): Likewise.
2503 * predict.c (estimate_probability): Likewise.
2504 * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
2505 * recog.c (validate_replace_rtx_1, comparison_operator,
2506 offsettable_address_p, constrain_operands): Likewise.
2507 * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
2509 * regclass.c (scan_one_insn): Likewise.
2510 * regmove.c (stable_and_no_regs_but_for_p): Likewise.
2511 * regrename.c (kill_autoinc_value): Likewise.
2512 * reload.c (find_reusable_reload, find_reloads,
2513 reg_overlap_mentioned_for_reload_p): Likewise.
2514 * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
2515 * rtl.c (copy_rtx): Likewise.
2516 * rtl.h (CONSTANT_P, INSN_P): Likewise.
2517 * rtlanal.c (commutative_operand_precedence): Likewise.
2518 * sched-deps.c (conditions_mutex_p): Likewise.
2519 * sched-rgn.c (is_cfg_nonregular): Likewise.
2520 * simplify-rtx.c (simplify_gen_binary,
2521 simplify_gen_relational, simplify_replace_rtx,
2522 simplify_unary_operation, simplify_binary_operation,
2523 simplify_ternary_operation, simplify_rtx): Likewise.
2524 * unroll.c (reg_dead_after_loop): Likewise.
2525 * config/alpha/alpha.c (alpha_swapped_comparison_operator,
2526 print_operand): Likewise.
2527 * config/arc/arc.c (proper_comparison_operator): Likewise.
2528 * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
2530 * config/avr/avr.c (_reg_unused_after): Likewise.
2531 * config/frv/frv.c (frv_ifcvt_modify_tests,
2532 frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
2533 * config/i386/i386.c (ix86_comparison_operator,
2534 ix86_carry_flag_operator, fcmov_comparison_operator,
2535 arith_or_logical_operator, print_operand,
2536 ix86_expand_binary_operator, ix86_binary_operator_ok):
2538 * config/i386/i386.md: Likewise.
2539 * config/ia64/ia64.c (not_postinc_memory_operand,
2540 ia64_print_operand, update_set_flags, errata_emit_nops):
2542 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
2543 CONSTRAINT_OK_FOR_S): Likewise.
2544 * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
2545 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
2546 ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
2547 ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
2549 * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
2550 eqne_comparison_operator, signed_comparison_operator):
2552 * config/mips/mips.c (cmp_op, symbolic_expression_p):
2554 * config/mmix/mmix (mmix_foldable_comparison_operator,
2555 mmix_comparison_operator): Likewise.
2556 * config/pa/pa.c (hppa_legitimize_address): Likewise.
2557 * config/rs6000/rs6000.c (stmw_operation,
2558 branch_comparison_operator, trap_comparison_operator,
2560 * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
2561 * config/s390/s390.c (s390_alc_comparison,
2562 s390_slb_comparison):L Likewise.
2563 * config/sh/sh.c (gen_block_redirect, reg_unused_after):
2565 * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
2566 noov_compare_op, noov_compare64_op, v9_regcmp_op,
2567 emit_hard_tfmode_operation, reg_unused_after)
2568 * doc/md.texi, doc/rtl.texi: Likewise.
2570 * ra-debug.c: Add 2004 to list of copyright years.
2571 * unroll.c: Likewise.
2573 * combine.c (simplify_logical): Remove dummy test,
2574 (apply_distributive_law): Fix typo in comment.
2575 GET_CODE (x) == AND so x is a commutative binary op.
2576 * jump.c (delete_related_insns): simplify loop
2577 condition, move testing of RTX codes inside the loop.
2578 (rtx_renumbered_equal_p): do not use RTX_CODE.
2579 * rtl.c (rtx_class): Declare as enum rtx_class.
2580 * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
2581 Move to RTX_COMM_COMPARE class.
2582 (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
2583 Move to RTX_CONST_OBJ class.
2584 * rtl.h (enum rtx_class): New declaration,
2585 (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
2586 RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
2587 RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
2588 RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
2589 RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
2590 ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
2591 SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
2592 OBJECT_P): New macros.
2593 * config/sparc/sparc.c (noov_compare_op): Remove register
2596 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
2598 * target.h: Remove texi jargons in comments.
2600 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
2602 * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
2606 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
2607 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
2609 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
2610 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
2612 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
2614 * doc/md.texi (cbranchmode4): New.
2616 2004-03-02 Eric Christopher <echristo@redhat.com>
2618 * config/mips/mips16.S: Change fixsfsi and fixdfsi to
2620 * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
2621 * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
2622 * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
2623 * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
2625 2004-03-02 Richard Henderson <rth@redhat.com>
2628 * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
2629 * optabs.c (prepare_cmp_insn): Force trapping memories to registers
2630 before the compare, if flag_non_call_exceptions.
2632 2004-03-02 Richard Henderson <rth@redhat.com>
2635 * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
2636 emitting the label, not after.
2638 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
2640 * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
2641 (m68hc11_mov_addr_mode): Likewise.
2642 (m68hc11_override_options): Initialize them based on target.
2643 (register_indirect_p): Allow a MEM for indirect addressing modes and
2644 use flags to control what is allowed.
2645 (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
2646 supported addressing modes.
2647 (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
2648 (go_if_legitimate_address_internal): Likewise.
2649 (m68hc11_indirect_p): Likewise and check the mode.
2650 (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
2652 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
2654 * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
2655 (expand_builtin_setjmp_setup): Use
2656 targetm.builtin_setjmp_frame_value instead of
2657 BUILTIN_SETJMP_FRAME_VALUE.
2658 * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
2659 * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
2660 (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
2661 * target.h (gcc_target): Add builtin_setjmp_frame_value.
2662 * targhooks.c (default_builtin_setjmp_frame_value): New.
2663 * targhooks.h: Add a prototype for
2664 default_builtin_setjmp_frame_value.
2665 * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
2666 TARGET_BUILTIN_SETJMP_FRAME_VALUE.
2668 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
2670 * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
2672 (add peepholes): New peepholes to optimize sequences adding small
2674 (bset peepholes): New peepholes to transform an OR in a bset form
2675 (bclr peepholes): Likewise for bclr form.
2676 (cmp peepholes): New peepholes to avoid register copies when comparing.
2678 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
2680 * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
2681 to separate push from moves.
2682 ("*pushdf_internal"): Likewise.
2683 ("*pushsf_internal"): Likewise.
2684 ("*pushsi_internal"): Likewise.
2685 ("movdi_internal"): Use define_insn_and_split; non push operand.
2686 ("movdf_internal"): Likewise.
2687 ("movsf_internal"): Likewise.
2688 ("movsi_internal"): Likewise.
2689 ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
2690 ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
2691 ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
2693 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
2695 * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
2696 ("cmphi_z_used", "cmpqi_z_used"): Likewise.
2697 ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
2698 ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
2699 ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
2700 ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
2701 ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
2702 ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
2703 ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
2704 ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
2705 ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
2707 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
2709 * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
2710 (SOFT_XY_REGNUM): Define.
2711 (cmp split): Use the above instead of hard coded numbers.
2712 (8-bit op split): No need to check the mode; allow Q_REG.
2713 (ashift split): Adjust the first operand if it uses the SP and we
2714 are pushing the shifted value.
2715 (plus shift split): Fix when a source is in register D+X.
2716 ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
2718 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
2720 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
2721 comparing with Z register.
2723 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2725 * cfgloop.h (struct loop_desc): Removed.
2726 (struct loop): Fields simple, desc and has_desc removed.
2727 (simple_loop_p, count_loop_iterations): Declaration removed.
2728 * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
2729 (unmark_altered, blocks_invariant_registers, unmark_altered_insn
2730 blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
2731 invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
2732 simple_loop_exit_p, variable_initial_value, variable_initial_values,
2733 simple_condition_p, simple_increment, count_strange_loop_iterations,
2734 inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
2736 * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
2738 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
2740 * genattrtab.c: Don't handle MATCH_INSN.
2741 * genrecog.c: Likewise.
2742 * gensupport.c: Likewise.
2743 * rtl.def (match_insn): Remove.
2744 * doc/md.texi (match_insn, match_insn2): Remove.
2746 2004-03-02 Mark Mitchell <mark@codesourcery.com>
2748 * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
2749 macro results in memory allocation.
2751 2004-03-02 David O'Brien <obrien@FreeBSD.org>
2753 * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
2754 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
2755 %(fbsd_dynamic_linker),
2756 (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
2757 config/i386/freebsd.h
2758 * config/arm/freebsd.h: Ditto.
2759 * config/i386/freebsd.h: Ditto.
2760 * config/i386/freebsd64.h: Ditto.
2761 * config/ia64/freebsd.h: Ditto.
2762 * config/rs6000/sysv4.h: Ditto.
2763 * config/sparc/freebsd.h: Ditto.
2765 2004-03-02 Loren James Rittle <ljrittle@acm.org>
2767 * gcc/doc/install.texi (*-*-freebsd*): Update target information.
2769 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
2771 * rtl.def (define_combine): Remove.
2773 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
2775 * config/h8300/h8300.md: Tweak formatting.
2777 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
2779 * config/h8300/h8300.md (*cmphi_h8300): Rename to
2781 (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
2783 2004-03-01 Mark Mitchell <mark@codesourcery.com>
2786 * gcc.c (process_command): Remove const-qualification from argv.
2789 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
2791 * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
2792 pushqi1_h8300hs_advanced. Adjust its caller.
2793 (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
2796 2004-03-02 Nicolas Roche <roche@act-europe.fr>
2798 * Makefile.in (install-libgcc, install-multilib): Pass
2799 mkinstalldirs var to libgcc.mk.
2801 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
2803 * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
2804 * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
2806 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
2808 * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
2809 * config/h8300/h8300.md: Split several peephole2's, each into
2812 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2814 * dominance.c (recount_dominator): Handle postdominators.
2816 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
2818 * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
2819 (NUM_SYMBOL_TYPES): Likewise.
2820 (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
2821 (mips_unspec_address): Declare.
2822 (mips_gotoff_page, mips_gotoff_global): Delete.
2823 * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
2824 * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
2825 (mips_symbolic_constant_p, mips_symbolic_address_p)
2826 (mips_symbol_insns): Handle new symbol types.
2827 (general_symbolic_operand): New predicate.
2828 (mips_unspec_address): Make extern.
2829 (mips_gotoff_page, mips_gotoff_global): Delete.
2830 (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
2831 Handle new symbol types.
2832 * config/mips/mips.md (*lea_high64, *lea64): New patterns.
2833 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
2834 mips_unspec_address directly.
2835 * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
2836 the documentation of -mexplicit-relocs.
2838 2004-03-01 Jeff Law <law@redhat.com>
2840 * fold-const.c (fold): An equality comparison of a non-weak object
2841 against zero has a known result. Similarly an equality comparison
2842 of the address of two non-weak, unaliased symbols has a known result.
2844 * ggc-page.c (struct page_entry): New field PREV.
2845 (ggc_alloc): Update PREV field appropriately.
2846 (sweep_pages): Likewise.
2847 (ggc_free): Likewise. Use PREV field rather than loop to
2848 improve ggc_free performance.
2850 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
2852 * config/mips/mips.c (mips_output_division): Use the division
2853 instruction to fill the delay slot of a zero check.
2854 (mips_idiv_insns): Adjust accordingly.
2856 2004-03-01 Nathanael Nerode <neroden@gcc.gnu.org>
2858 * config.gcc: Create a default tmake_file for linux, and use
2859 it in all but two linux clauses. Comment those two.
2861 2004-03-01 Paolo Bonzini <bonzini@gnu.org>
2863 * combine.c (try_combine): Do not refer to is_replaced.
2864 (gen_lowpart_for_combine): Perverse subregs now have a
2865 more politically correct name.
2866 * cse.c (cse_insn): Likewise.
2867 * jump.c: Fix bogus reference to delete_insn.
2869 2004-02-29 Mark Mitchell <mark@codesourcery.com>
2872 * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
2873 constants as signed values.
2876 * c-tree.h (readonly_warning): Rename to ...
2877 (readonly_error): ... this.
2878 * c-typeck.c (build_unary_op): Adjust accordingly.
2879 (readonly_warning): Rename to ...
2880 (readonly_error): ... this and issue errors, not warnings.
2881 (build_modify_expr): Call readonly_error, not readonly_warning.
2882 (c_expand_asm_operands): Likewise.
2883 * tree-inline.c (optimize_inline_calls): Do not inline functions
2884 after errors have occurred.
2886 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
2888 * configure.ac: Rearrange some threading code for clarity;
2889 add section comment.
2890 * configure: Regenerate.
2892 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
2894 * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
2896 * doc/cppopts.texi: Fix a typo.
2898 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
2900 * config/i386/i386.md: Fix formatting.
2902 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
2904 * configure.ac: Add some comments delineating sections of code.
2906 * doc/install.texi: Note that libada uses autoconf 2.57 also.
2908 * doc/install.texi: Fix idiot typo in previous commit.
2910 * doc/install.texi: Update for conversion of intl to autoconf 2.57.
2912 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
2914 * config/h8300/h8300.md: Add comments about peephole2's.
2916 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
2918 * config/h8300/h8300.md: Tweak operand numbers of some
2921 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
2923 * config/h8300/h8300.md: Tweak comments about peephole2's.
2925 2004-02-29 Waldek Hebisch <hebisch@math.uni.wroc.pl>
2928 * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
2929 instead of testing whether DECL_RTL is not NULL.
2931 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
2933 * config/sh/sh.c: Fix formatting.
2935 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
2937 * config/sh/sh.c: Convert to ISO-C.
2939 2004-02-28 Andrew Pinski <pinskia@physics.uc.edu>
2941 * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
2944 * config/darwin.h (machopic_finish): Output stub even if the
2945 symbol is already defined.
2947 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2949 * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
2951 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
2953 * genattr.c (main): Don't define
2954 TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
2955 * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
2956 (DFA_PIPELINE_INTERFACE): Likewise.
2957 * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
2958 (DFA_PIPELINE_INTERFACE): Likewise.
2960 2004-02-28 Richard Sandiford <rsandifo@redhat.com>
2962 * config/mips/mips.md (tstsi, tstdi): Delete.
2964 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2966 * config/mips/mips.c (override_options): Remove an obsolete
2967 duplicate definition of the "e" constraint.
2968 * config/mips/mips.h: Update a comment accordingly.
2970 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2972 * config/mips/mips.md: Complete the unfinished R4000
2973 multiply/shift errata workaround. Improve documentation.
2974 (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
2976 (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
2977 (muldi3, muldi3_internal): Likewise.
2978 (muldi3_internal2): Remove, replacing with...
2979 (muldi3_mult3, muldi3_r4000): ...these new patterns.
2980 (mulsidi3): Take the errata into account.
2981 (mulsidi3_32bit): Remove, replacing with...
2982 (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
2983 (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
2984 (umulsidi3): Take the errata into account.
2985 (umulsidi3_32bit): Remove, replacing with..
2986 (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
2987 (umulsi3_highpart, umulsi3_highpart_internal): Disable if
2989 (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
2990 (smuldi3_highpart, umuldi3_highpart): Likewise.
2991 * doc/invoke.texi: Document the errata workaround.
2993 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2995 * config/mips/mips-protos.h (mips_idiv_insns): Declare.
2996 * config/mips/mips.h (MASK_FIX_SB1): Bump.
2997 (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
2998 (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
2999 * config/mips/mips.c (mips_idiv_insns): New function.
3000 (override_options): Make -march=r4000 imply -mfix-r4000 by default.
3001 (mips_output_division): Add a workaround for the R4000 divide/shift
3003 * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
3004 the length of an "idiv" instruction.
3005 * doc/invoke.texi: Document the new switches.
3007 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
3009 * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
3010 TARGET_SCHED_IS_COSTLY_DEPENDENCE.
3012 2004-02-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3014 PR optimization/14229
3015 * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
3017 2004-02-28 Eric Botcazou <ebotcazou@act-europe.fr>
3019 * fold-const.c (fold): Strip NOPs that change the signedness
3020 for RSHIFT too. Expand comment.
3022 2004-02-27 Ian Lance Taylor <ian@wasabisystems.com>
3024 PR optimization/7871
3025 * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
3026 from or to call insns.
3028 2004-02-27 Eric Botcazou <ebotcazou@libertysurf.fr>
3030 PR optimization/7871
3031 * flow.c (propagate_one_insn): Interpret calls as setting global
3032 registers, not merely clobbering them.
3034 2004-02-27 Dale Johannesen <dalej@apple.com>
3036 * config/darwin.c (machopic_output_possible_stub_label): Remove.
3037 config/darwin-protos.h: Ditto.
3038 config/darwin.h: Remove call to it.
3039 * combine.c (distribute_notes): Do not place a REG_DEAD note
3040 when value is both set and used.
3042 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
3044 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
3046 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
3047 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
3049 2004-02-27 Andrew Pinski <apinski@apple.com>
3051 * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
3052 Speedup common case of the type values being in the same order.
3054 2004-02-27 Steve Ellcey <sje@cup.hp.com>
3056 * config/ia64/ia64.h (no-inline-float-divide): New option.
3057 * config/ia64/ia64.h (no-inline-int-divide): New option.
3058 * config/ia64/ia64.h (no-inline-sqrt): New option.
3059 (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
3060 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
3061 * config/ia64/ia64.c (ia64_override_options): Modify error
3062 checking for inlined division/sqrt.
3064 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
3066 * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
3067 ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
3068 value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
3069 config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
3072 2004-02-27 Paul Brook <paul@codesourcery.com>
3074 * function.c (assign_parms): Don't count pretend args for alignment.
3076 2004-02-27 Richard Henderson <rth@redhat.com>
3078 * passes.c: New file.
3079 * Makefile.in (OBJS-common): Add it.
3080 * diagnostic.c (rtl_dump_and_exit): Move decl ...
3081 * flags.h (rtl_dump_and_exit): ... here.
3082 * output.h (size_directive_output, last_assemble_variable_decl):
3084 * rtl.h (reg_alloc): Move from toplev.c.
3085 * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
3086 struct dump_file_info, enum dump_file_index, dump_file_tbl,
3087 open_dump_file, close_dump_file, rest_of_decl_compilation,
3088 rest_of_type_compilation, rest_of_handle_final,
3089 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
3090 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
3091 rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
3092 rest_of_handle_regrename, rest_of_handle_reorder_blocks,
3093 rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
3094 rest_of_handle_tracer, rest_of_handle_if_conversion,
3095 rest_of_handle_if_after_combine, rest_of_handle_web,
3096 rest_of_handle_branch_prob,
3097 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
3098 rest_of_handle_addressof, rest_of_handle_sibling_calls,
3099 rest_of_handle_jump_bypass, rest_of_handle_inlining,
3100 rest_of_handle_null_pointer, rest_of_handle_combine,
3101 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
3102 rest_of_handle_gcse, rest_of_handle_loop_optimize,
3103 rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
3104 (decode_d_option): Use enable_rtl_dump_file.
3105 (compile_file, finalize, do_compile): Move profile+combine+graph
3106 cleanup to finish_optimization_passes.
3107 * toplev.h (init_optimization_passes, finish_optimization_passes,
3108 enable_rtl_dump_file): Declare.
3110 2004-02-27 Eric Botcazou <ebotcazou@act-europe.fr>
3111 Roger Sayle <roger@eyesopen.com>
3113 * fold-const.c (fold): Revert 2004-02-25 change. Use the original
3114 operands to build a tree with swapped operands.
3115 * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
3116 'unsignedp' predicate to specify the signedness.
3118 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
3120 * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
3121 expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
3122 params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
3123 comment typos and formatting. Follow spelling conventions.
3125 2004-02-26 Aldy Hernandez <aldyh@redhat.com>
3127 * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
3130 * config/rs6000/spe.md: Delete spe_efsctuiz.
3131 Add spe_fixuns_truncsfsi2.
3132 Add spe_fix_truncsfsi2.
3134 2004-02-26 Eric Christopher <echristo@redhat.com>
3136 * c-lex.c (c_lex_string_translate): New variable.
3137 (lex_string): Use to determine string translation.
3138 * c-pragma.h: Prototype.
3139 * c-parse.in (start_string_translation): New. Set above.
3140 (stop_string_translation): Ditto.
3141 (attribute, attribute_list, asm_def, asm_stmt,
3142 asm_operand): Use above functions.
3143 * cp/parser.c (cp_parser_declaration): Translate strings
3144 unless token is RID_EXTERN. Set c_lex_string_translate
3146 (cp_parser_asm_definition): Only translate argument strings
3148 (cp_parser_asm_operand_list): Ditto.
3149 (cp_parser_attribute_list): Do not translate attribute strings.
3151 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3153 * stmt.c (expand_start_case_dummy): Remove.
3154 * tree.h: Remove the corresponding prototype.
3156 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3158 * builtins.c (apply_args_register_offset): Remove.
3159 * tree.h: Remove the corresponding prototype.
3161 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3163 * stor-layout.c (is_pending_size): Remove.
3164 * tree.h: Remove the corresponding prototype.
3166 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3168 * recog.c (validate_replace_src): Remove.
3169 * recog.h: Remove the corresponding prototype.
3171 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3173 * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
3174 MAYBE_REG_PARM_STACK_SPACE.
3175 * function.c: Likewise.
3176 * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
3177 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
3178 * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
3179 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
3181 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3183 * c-decl.c (c_expand_deferred_function): Remove.
3184 * c-tree.h: Remove the corresponding prototype.
3186 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3188 * postreload.c (reload_cse_move2add): Generate just a PLUS
3189 instead of an entire SET.
3191 2004-02-26 Jan Hubicka <jh@suse.cz>
3193 * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
3195 * i386.c (override_options): Add support for new CPUs.
3196 * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
3197 (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
3199 * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
3201 2004-02-26 Bob Wilson <bob.wilson@acm.org>
3203 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
3205 2004-02-26 Eric Botcazou <ebotcazou@act-europe.fr>
3207 * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
3208 (sparc_emit_fixunsdi): New prototype.
3209 * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
3210 (sparc_emit_fixunsdi): New function.
3211 * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
3212 operand 1. Pass SFmode to sparc_emit_floatunsdi.
3213 (floatunsdidf2): Use 'general_operand' for operand 1. Pass DFmode
3214 to sparc_emit_floatunsdi.
3215 (fixuns_truncsfdi2): New expander.
3216 (fixuns_truncdfdi2): Likewise.
3218 2004-02-26 Alan Modra <amodra@bigpond.net.au>
3220 * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
3223 2004-02-25 Richard Henderson <rth@redhat.com>
3225 * explow.c (force_reg): Call mark_reg_pointer as appropriate.
3226 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
3227 use (op0-op1) == 0 if op0 is a pointer.
3228 * config/alpha/alpha.md (cmpdi): Use some_operand.
3229 (three comparison combine splits): Remove.
3231 2004-02-25 Richard Henderson <rth@redhat.com>
3234 * c-common.c (handle_alias_attribute): Reject the attribute if
3235 current_function_decl is set.
3237 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
3239 * config.gcc: Add comment describing extra_gcc_objs.
3240 i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
3241 * configure.ac (extra_gcc_objs): New substitution variable.
3242 (host_extra_gcc_objs): Don't substitute.
3243 * configure: Regenerate.
3244 * Makefile.in: Use extra_gcc_objs.
3246 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
3248 * doc/contrib.texi: Add an entry for myself.
3250 2004-02-25 Jan Hubicka <jh@suse.cz>
3252 * basic-block.h (make_eh_edge, break_superblocks): Declare.
3253 * cfgbuild.c (make_eh_edge): Make global.
3254 * cfglayout.c (break_superblocks): Likewise; fix memory leak.
3255 * except.c (build_post_landing_pads, connect_post_landing_pads,
3256 dw2_build_landing_pads, sjlj_emit_function_enter,
3257 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
3258 sjlj_build_landing_pads): Update CFG.
3259 (emit_to_new_bb_before): New function.
3260 (finish_eh_generation): Do not rebuild the CFG.
3262 2004-02-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3264 * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
3265 target_cpu_default defines.
3266 * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
3267 * pa.h (TARGET_DEFAULT): Likewise.
3269 2004-02-25 Eric Botcazou <ebotcazou@act-europe.fr>
3271 * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
3272 comparisons with regard to signedness.
3274 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
3276 * arm.c (thumb_legitimize_address): New function.
3277 * arm-protos.h: Prototype it.
3278 * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
3279 (LEGITIMIZE_ADDRESS): Use it.
3281 2004-02-25 J"orn Rennecke <joern.rennecke@superh.com>
3283 * reload1.c (reload): Only spill eliminable register with multiple
3284 adjacent elimination alternatives if all alternatives fail.
3286 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
3288 * arm.c (arm_legitimate_index_p): For QImode the range of an offset
3289 is -4095...+4095 inclusive.
3291 2004-02-25 Eric Botcazou <ebotcazou@libertysurf.fr>
3293 * doc/install.texi (sparc-sun-solaris2* specific notes): Document
3294 the bootstrap failure with Sun CC 5.4 and 5.5.
3296 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
3298 * cse.c (cse_change_cc_mode_insns): Stop at any instruction
3299 which modifies NEWREG.
3300 (cse_condition_code_reg): Update the mode of CC_REG in
3301 CC_SRC_INSN on our own.
3303 2004-02-24 Michael Matz <matz@suse.de>
3305 * config/i386/i386.c (ix86_comp_type_attributes): Check for
3308 2004-02-24 Richard Henderson <rth@redhat.com>
3310 * toplev.c (dump_file_tbl): Rename from dump_file.
3311 * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
3312 cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
3313 config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
3314 config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
3315 loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
3316 ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
3317 toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
3318 s/rtl_dump_file/dump_file/g.
3320 2004-02-24 Aldy Hernandez <aldyh@redhat.com>
3322 * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
3323 (spe_fixuns_truncsfsi2): Delete.
3325 * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
3326 (fixuns_truncsfsi2): Delete.
3328 2004-02-24 Josef Zlomek <zlomekj@suse.cz>
3331 * rtlanal.c (replace_label): Fix replacing labels in constant pool.
3333 2004-02-24 Geoffrey Keating <geoffk@apple.com>
3335 * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
3337 2004-02-24 Jason Merrill <jason@redhat.com>
3339 * tree.c (check_qualified_type): New fn.
3340 (get_qualified_type): Use it. If type already has the desired
3341 quals, just return it.
3342 * tree.h: Declare it.
3344 2003-02-24 Sanjiv Kumar Gupta <sanjivg@noida.hcltech.com>
3346 * target-def.h (TARGET_SCHED_INIT_GLOBAL,
3347 TARGET_SCHED_FINISH_GLOBAL): New macros.
3349 * target.h (md_init_global, md_finish_global): Function
3350 declarations corresponding to new target macros.
3352 * haifa-sched.c (sched_init, sched_finish): Allow target to
3353 call the new schedular hooks.
3355 * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
3356 call to update_life_info.
3358 * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
3359 flag_schedule_insns for SH4.
3361 * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
3362 find_set_regmode_weight, find_insn_regmode_weight,
3363 find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
3364 sh_variable_issue, high_pressure, ready_reorder,
3365 rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
3366 functions used to throttle the insn movement in first
3367 scheduling pass for SH.
3369 * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
3370 TARGET_SCHED_FINISH_GLOBAL.
3372 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
3374 Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
3375 2004-02-05 Alexandre Oliva <aoliva@redhat.com>
3376 * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
3377 symbols in sections named by the user.
3378 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
3379 * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
3380 2004-01-27 Alexandre Oliva <aoliva@redhat.com>
3381 * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
3382 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
3384 2004-01-20 Alexandre Oliva <aoliva@redhat.com>
3385 * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
3386 one more pseudo to further improve code generation.
3387 2004-01-19 Alexandre Oliva <aoliva@redhat.com>
3388 * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
3390 2004-01-16 Alexandre Oliva <aoliva@redhat.com>
3391 * config/frv/frv.c (frv_legitimate_address_p): Added
3392 allow_double_reg_p argument. Adjust all callers. Use it to
3393 decide whether to enable double-register indirect addressing.
3394 (frv_funcdesc_alias_set): Remove.
3395 (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
3396 register. Emit movdi_ldd.
3397 (ldd_address_operand): New.
3398 * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
3399 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
3400 (PREDICATE_CODES): Add ldd_address_operand.
3401 * config/frv/frv.md (movdi_ldd): New.
3402 (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
3403 intermediate computations if possible.
3404 (symGOTOFF2reg_i): Fix harmless typo.
3405 2003-12-18 Alexandre Oliva <aoliva@redhat.com>
3406 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
3407 relocated p_vaddr to vaddr type.
3408 * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
3409 * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
3410 (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
3411 MEM, or use a funcdesc alias set. Use regular move instead of
3413 (dbl_memory_one_insn_operand): Recognize function descriptors by
3414 type or by alias set, and don't split them.
3415 * config/frv/frv.md (call, call_value): Never use call_internal
3417 (call_internal, call_value_internal): Never match for FDPIC.
3418 (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
3419 call_value_fdpicsi): Require FDPIC.
3421 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
3422 * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
3423 * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
3424 (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
3425 FDPIC. Compute data base address.
3426 * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
3427 before the other self-specs are processed.
3428 * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
3430 2003-12-15 Alexandre Oliva <aoliva@redhat.com>
3431 * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
3432 inhibit_libc is defined.
3433 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
3434 * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
3436 (__RELOC_POINTER): Define.
3437 (_Unwind_IteratePhdrCallback): Use it.
3438 * config/frv/frv.h (Twrite): Define.
3439 (TRANSFER_FROM_TRAMPOLINE): Use it.
3440 * config/frv/linux.h (INVOKE__main): Undefine.
3442 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
3443 * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
3444 (-mlibrary-pic): Emphasize that this option generates EABI code.
3447 2003-11-30 Alexandre Oliva <aoliva@redhat.com>
3448 * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
3449 and CONSTs in FDPIC mode.
3450 * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
3451 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
3452 * config/frv/frv.c (move_source_operand): Don't accept symbolic
3454 * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
3455 rather than 'i' constraint for the 2-instruction alternative.
3456 (*movsi_2word): New, incorporating existing int_2word_operand splitter.
3457 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
3458 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
3459 EXTRA_CONSTRAINT_FOR_Y.
3460 (EXTRA_CONSTRAINT): Remove handling of 'Y'.
3461 * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
3462 (addsi3): Change 'Y' constraint to 'Q'.
3463 2003-11-27 Richard Sandiford <rsandifo@redhat.com>
3464 * reload.c (CONST_POOL_OK_P): New macro.
3465 (find_reloads): Use it to decide whether a constant can be forced
3467 * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
3468 constant satisfies got12_operand.
3469 (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
3470 (frv_legitimate_address_p): Check for valid unspec offsets using
3471 got12_operand rather than frv_legitimate_fdpic_operand_p.
3472 (frv_legitimate_fdpic_operand_p): Delete.
3473 (frv_emit_movsi): Abort if we try to use the FDPIC register during
3475 (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
3477 * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
3478 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
3479 * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
3480 (frv_fdpic_fptr_operand): Don't declare here.
3481 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
3482 rather than fdpic_got12_operand.
3483 (PREDICATE_CODES): Remove symbolic_operand entry. Add entries for
3484 got12_operand and const_unspec_operand.
3485 * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
3486 (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
3487 (symbolic_operand): Remove.
3488 (const_unspec_operand): New predicate.
3489 * config/frv/frv.md (*movsi_got): Use got12_operand.
3490 (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
3491 2003-11-18 Richard Sandiford <rsandifo@redhat.com>
3492 * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
3493 * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
3494 * config/frv/frv.c (frv_unspec): New structure.
3495 (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
3496 (frv_print_operand_memory_reference): Use frv_const_unspec_p to
3497 validate CONST indices. Use frv_output_const_unspec to print them.
3498 (frv_print_operand): Update call to unspec_got_name. Use
3499 frv_output_const_unspec to print constant unspecs.
3500 (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
3501 Reject UNSPECs otherwise.
3502 (unspec_got_name): Take the relocation number as argument, not an
3504 (frv_output_addr_const_extra): Remove, replacing with...
3505 (frv_output_const_unspec): ...this new function.
3506 (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
3507 (gpr_or_int12_operand): Use fdpic_got12_operand.
3508 (dbl_memory_one_insn_operand): Likewise.
3509 (fdpic_got12_operand): Use frv_const_unspec_p.
3510 (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
3511 are already legitimate. Use frv_small_data_reloc_p when deciding
3512 whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
3513 2003-11-18 Alexandre Oliva <aoliva@redhat.com>
3514 * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
3515 * config/frv/libgcc-frv.ver: ... frv-specific symbols. New file.
3516 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
3517 label, for real this time.
3518 * config/frv/frv.c (frv_local_funcdesc_p): Update to new
3519 representation of visibility.
3520 (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
3522 2003-11-17 Richard Sandiford <rsandifo@redhat.com>
3523 * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
3524 (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
3525 * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
3526 it was explicitly disabled.
3527 (frv_stack_info): There is no need to save the link register in every
3528 frame unless TARGET_LINKED_FP is true.
3529 (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
3530 frame pointer if the stack pointer might change value.
3531 (frv_return_addr_rtx): Check and process "count" argument.
3532 2003-11-14 Richard Sandiford <rsandifo@redhat.com>
3533 * config/frv/frv-protos.h (frv_legitimize_address): Remove.
3534 (frv_find_base_term): Declare.
3535 * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
3536 (FIND_BASE_TERM): Define.
3537 (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
3538 small_data_register_operand, small_data_symbolic_operand. Add
3540 * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
3541 (frv_print_operand_memory_reference, output_move_single): Remove
3542 special handling for unlegitimized sdata addresses.
3543 (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
3544 and symbolic addresses.
3545 (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
3546 (frv_find_base_term): New function.
3547 (int_2word_operand): Check specifically for symbolic address constants.
3548 (pic_register_operand, pic_symbolic_operand): Delete.
3549 (small_data_register_operand, small_data_symbolic_operand): Delete.
3550 (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
3551 Allow UNSPEC_GOT constants if !TARGET_FDPIC.
3552 (move_source_operand): Only accept CONSTs if they're a two-insn
3554 (fdpic_got12_operand): Don't require TARGET_FDPIC.
3555 (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
3556 using gen_symGOTOFF2reg*.
3557 (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
3558 (frv_rtx_costs): Give all MEM addresses a cost of 0. Give MEMs
3559 themselves a cost of 3 insns.
3560 * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
3561 Change predicate to symbolic_operand.
3562 (*movsi_high_got, *movsi_lo_sum_got): Likewise.
3563 (*movsi_lda_sdata): Delete.
3564 (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
3565 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
3566 * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
3568 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
3570 * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
3571 -multilib-library-pic.
3572 (LINK_SPEC): Add -z text for -mfdpic.
3573 * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
3574 * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
3575 * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
3577 (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
3578 FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
3579 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
3580 crtstuff-generated files.
3581 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
3582 * config.gcc: Add frv-*-*linux*.
3583 * config/frv/linux.h, config/frv/t-linux: New.
3584 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
3585 * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
3586 when -mfdpic even if a linker script is explicitly listed.
3587 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
3588 * config/frv/frv.c (frv_override_options): Clear asm_out
3589 unaligned_op for SImode on FDPIC.
3590 (frv_emit_movsi): Use compute_reloc_for_constant to compute the
3591 argument passed to decl_readonly_section.
3592 (frv_assemble_integer): Revert 2003-09-30's change, but make the
3593 whole block run with FDPIC even with -fno-PIC.
3594 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
3595 * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
3596 symbol or label plus offset to memory.
3597 (frv_emit_movsi): Emit GPREL only if -mgprel-ro. Emit 32-bit
3598 GOTOFF and GPREL for LABEL_REF.
3599 * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
3600 -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
3601 (MASK_GPREL_RO, TARGET_GPREL_RO): New.
3602 (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
3603 * doc/invoke.texi: Document them.
3604 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
3605 * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
3606 (frv_splittable_got_operand): Removed.
3607 * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
3608 LO_SUM. Add comments.
3609 (frv_override_options): Moved enabling of FDPIC to
3610 DRIVER_SELF_SPECS. Don't enable MASK_DWORD.
3611 (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
3612 (frv_legitimize_fdpic_address): Don't duplicate logic in
3614 (frv_gen_GPsym2reg): New.
3615 (unspec_got_name): Added gprel.
3616 (frv_expand_fdpic_call): Add support for inlining PLTs.
3617 (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
3618 (gpr_or_int12_operand): Added GPREL12.
3619 (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
3620 (small_data_symbolic_operand): Fail if FDPIC.
3621 (fdpic_splittable_got_operand): Removed.
3622 (fdpic_got12_operand): Added GPREL12.
3623 (frv_emit_movsi): Reorganize to avoid duplication. Emit GPREL
3624 when appropriate. Fix sdata GOTOFF.
3625 (frv_legitimate_constant_p): Require legitimate PIC operand for
3626 FDPIC with pic, but only a legitimate fdpic operand for non-pic.
3627 (frv_assemble_integer): Move FDPIC funcdesc handling out of
3629 (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
3630 frv_assemble_integer fails.
3631 * config/frv/frv.h (DRIVER_SELF_SPECS): New.
3632 (SUBTARGET_DRIVER_SELF_SPECS): New.
3633 (ASM_SPEC): Don't pass -mno-fdpic.
3634 (LINK_SPEC): Pass -melf32frvfd for FDPIC.
3635 (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
3636 (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
3637 -multilib-library-pic.
3638 (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
3639 condexec_si_media_operator, condexec_sf_add_operator and
3640 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
3641 and condexec_sf_unary_operator.
3642 * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
3644 (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
3645 movsi_internal. Give them internal names. movsi_got has type
3647 (fdpic got splitters): Remove.
3648 (symGPREL2reg, symGPREL2reg_hilo): New.
3649 * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
3650 to -mlibrary-pic. Map -multilib-library-pic to it.
3651 * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
3653 2003-09-28 Alexandre Oliva <aoliva@redhat.com>
3654 * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
3655 (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
3656 (frv_cannot_force_const_mem): New function.
3657 (const_small_data_p, plus_small_data_p): Update comments on sdata
3659 (frv_override_options): Set flag_pie for FDPIC too.
3660 (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
3661 call-saved registers on FDPIC.
3662 (frv_stack_info): Don't preserve the PIC register on FDPIC, and
3663 don't force LR to be preserved.
3664 (frv_expand_prologue): Likewise.
3665 (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
3666 (frv_frame_pointer_required): Don't force it just because the
3667 FDPIC register is used.
3668 (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
3669 operand only if !condexec_p.
3670 (frv_legitimize_address): Return the FDPIC-legitimized address.
3671 Don't match small data here on FDPIC.
3672 (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
3673 symbols. Use TRUE/FALSE instead of 1/0.
3674 (frv_local_funcdesc_p): New.
3675 (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
3676 immediates when possible.
3677 (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
3678 (dbl_memory_one_insn_operand): Accept addresses that add a REG and
3680 (frv_emit_movsi): Handle FDPIC before small data. Use GOTOFF and
3681 12-bit immediates when possible.
3682 (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
3683 are not legitimate pic operands.
3684 (frv_in_small_data_p): Re-enable for FDPIC.
3685 * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
3686 (FRV_GLOBAL_P): Removed.
3687 * config/frv/frv.md: Add modes to CONSTs.
3689 (movsi_lo_sum_got): Use separate matches instead of match_dup.
3690 (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
3691 (fdpic splittable operations): Match on flag_pic != 1.
3692 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
3693 * config/frv/frv.c (frv_asm_out_constructor,
3694 frv_asm_out_destructor): Pass to frv_assemble_integer the size in
3696 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
3697 * config/frv/frv.c (frv_assemble_integer): Reject complex
3698 expressions referencing function SYMBOL_REFs.
3699 * config/frv/frv.c (frv_function_symbol_referenced_p): New.
3700 (move_source_operand): Reject CONSTs that reference function
3701 SYMBOL_REFs on FDPIC.
3702 (frv_emit_movsi): If we get such a CONST, break it up.
3703 * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
3704 (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
3705 * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
3707 (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
3708 (frv_trampoline_size): Increase for FDPIC.
3709 * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
3710 (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
3711 * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
3712 Disable use of GOTOFF for now.
3713 (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
3714 Disable use of small data in FDPIC for now.
3715 (frv_asm_output_mi_thunk): Implement for FDPIC.
3716 * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
3717 * config/frv/frv.c (frv_asm_out_constructor): Use
3718 frv_assemble_integer for FDPIC pointers.
3719 (frv_asm_out_destructor): Likewise.
3720 * config/frv/frv.md (ldd): Fix order of operands. Use
3721 address_operand for input.
3722 2003-09-18 DJ Delorie <dj@redhat.com>
3723 * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
3724 (unspec_got_name): Correct typo.
3725 (frv_emit_movsi): Pre-expand splittable GOTs.
3726 (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
3727 * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
3728 (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
3729 * config/frv/t-frv: Add -mfdpic multilibs.
3730 * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
3731 (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
3732 * config/frv/frv.c (frv_override_options): -mfdpic assumes
3733 flag_pic, default to 32-bit pics, require DWORD ops.
3734 (frv_override_options): Add W and Z constraints.
3735 (frv_expand_prologue): No pic prologue for -mfdpic.
3736 (frv_asm_output_mi_thunk): Support -mfdpic (soon).
3737 (frv_print_operand_memory_reference): Handle GOT constants.
3738 (frv_legitimate_address_p): Allow GOT constants.
3739 (frv_legitimize_address): Handle GOT addresses too.
3740 (frv_legitimate_fdpic_operand_p): New.
3741 (frv_legitimize_fdpic_address): New.
3742 (unspec_got_name): New.
3743 (frv_output_addr_const_extra): New.
3744 (frv_expand_fdpic_call): New.
3745 (frv_fdpic_fptr_operand): New.
3746 (gpr_or_int12_operand): Handle GOT operands.
3747 (int_2word_operand): Handle GOT operands.
3748 (fdpic_operand): New.
3749 (fdpic_splittable_got_operand): New.
3750 (fdpic_got12_operand): New.
3751 (frv_emit_movsi): Handle GOT operands.
3752 (frv_assemble_integer): -mfdpic doesn't use rofixups.
3753 (frv_print_operand): Support 'g' code for GOT operands.
3754 * config/frv/frv-protos.h: Add prototypes as needed.
3755 * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
3756 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
3757 R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
3758 R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
3759 R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
3760 R_FRV_GOTOFFLO): New.
3761 (movsi_high_got, movsi_lo_sum_got): New.
3762 (*movsi_pic): Don't use this splitter for -mfdpic.
3763 (addsi3): Allow GOT references also.
3764 (call, call_value): Handle -mfdpic separately.
3765 (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
3766 call_value_fdpicsi): New.
3767 (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
3768 symGOTOFF2reg_i): New.
3769 * config/frv/frv.h (MASK_FDPIC): New.
3770 (TARGET_FDPIC): New.
3771 (TARGET_SWITCHES): Add -mfdpic.
3772 (FDPIC_FPTR_REGNO): New.
3774 (OUR_FDPIC_REG): New.
3775 (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
3777 (REG_CLASS_NAMES): Likewise.
3778 (REG_CLASS_CONTENTS): Likewise.
3779 (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
3780 (EXTRA_CONSTRAINT): Add it here.
3781 (FRV_GLOBAL_P): New.
3782 (OUTPUT_ADDR_CONST_EXTRA): New.
3784 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
3786 * config/sparc/sparc.h: Remove commented-out definitions of
3787 TARGET_EDOM and GEN_ERRNO_RTX.
3789 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
3791 * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
3792 df_analyse with df_analyze.
3794 2004-02-24 Alan Modra <amodra@bigpond.net.au>
3796 * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
3799 2004-02-23 James E Wilson <wilson@specifixinc.com>
3801 * calls.c (precompute_arguments): Update comment.
3803 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
3805 * et-forest.c: Replace et_occurences with et_occurrences.
3807 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
3809 * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
3812 2004-02-23 Kelley Cook <kcook@gcc.gnu.org>
3814 * config/i386/i386.c: Rename pni to sse3.
3815 * config/i386/i386.h: Likewise.
3816 * config/i386/i386.md: Likewise.
3817 * config/i386/pmmintrin.h: Likewise.
3818 * doc/extend.texi: Likewise.
3819 * doc/invoke.texi: Likewise.
3821 2004-02-23 Zack Weinberg <zack@codesourcery.com>
3822 Kazu Hirata <kazu@cs.umass.edu>
3824 Remove -fwritable-strings.
3825 * c-common.c (fix_string_type): Don't check
3826 flag_writable_strings.
3827 (fix_string_type): Likewise.
3828 * c-opts.c (set_std_c89): Don't initialize
3829 flag_writable_strings.
3830 (set_std_c99): Likewise.
3831 * common.opt (fwritable-strings): Remove.
3832 * flags.h: Remove the external declaration of
3833 flag_writable_strings.
3834 * opts.c (common_handle_option) <OPT_fwritable_strings>:
3836 * toplev.c (flag_writable_strings): Remove.
3837 (f_options): Remove an entry for writable-strings.
3838 * varasm.c (const_hash_1) <STRING_CST>: Don't check
3839 flag_writable_strings.
3840 (compare_constant) <STRING_CST>: Likewise.
3841 (build_constant_desc): Likewise.
3842 * config/darwin.c (machopic_select_section): Likewise.
3843 * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
3844 * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
3845 * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
3846 * config/mips/mips.c (mips_select_section): Likewise.
3847 (mips_encode_section_info): Likewise.
3848 * config/pa/pa.c (pa_select_section): Likewise.
3849 * config/pa/pa.h (TEXT_SPACE_P): Likewise.
3850 * config/v850/v850.c (v850_select_section): Likewise.
3851 * doc/invoke.texi (-fwritable-strings): Remove.
3852 (-fno-const-strings): Don't mention -fwritable-strings.
3853 * doc/trouble.texi: Don't mention -fwritable-strings.
3855 2003-02-23 Nathanael Nerode <neroden@gcc.gnu.org>
3857 * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
3859 2004-02-23 Dale Johannesen <dalej@apple.com>
3861 * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
3862 (movdf_hardfloat64): Ditto.
3863 (movdf_softfloat64): Ditto.
3865 2004-02-23 Fariborz Jahanian <fjahanian@apple.com>
3866 * config/rs6000/rs6000.c (function_arg): call to
3867 rs6000_mixed_function_arg for DFmode moved to allow
3868 normal DFmode incoming register assignment.
3870 2004-02-23 Dale Johannesen <dalej@apple.com>
3872 * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
3873 (movdf_hardfloat64): Ditto.
3875 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
3877 * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
3878 config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
3881 2004-02-23 Andrew Pinski <pinskia@physics.uc.edu>
3884 * c-typeck.c (c_expand_return): Change check for VAR_DECL
3885 to use DECL_P instead.
3887 * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
3888 * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
3890 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
3892 * Makefile.in (opts.o): Depend on target.h.
3893 * opts.c (decode_options): Use targetm.default_short_enums
3894 instead of DEFAULT_SHORT_ENUMS.
3895 * system.h (DEFAULT_SHORT_ENUMS): Poison.
3896 * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
3897 (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
3898 * target.h (gcc_target): Add default_short_enums.
3899 * config/cris/cris.h: Remove a comment about
3900 DEFAULT_SHORT_ENUMS.
3901 * config/ip2k/ip2k.h: Likewise.
3902 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
3903 TARGET_DEFAULT_SHORT_ENUMS. Update the description.
3905 2004-02-23 Eric Botcazou <ebotcazou@libertysurf.fr>
3906 Falk Hueffner <falk@debian.org>
3909 * builtins.c (expand_builtin_va_arg): Emit an informative message
3910 if a trap is generated.
3911 * c-typeck.c (build_function_call): Likewise.
3913 2004-02-22 Jakub Jelinek <jakub@redhat.com>
3915 * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
3917 * libgcov.c: Include sys/stat.h.
3918 * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
3919 * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
3920 * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
3921 * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
3923 2004-02-22 Kazu Hirata <kazu@cs.umass.edu>
3925 * reorg.c: Remove comments about dead ports.
3927 2004-02-22 Christopher Faylor <cgf@redhat.com>
3929 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
3930 extra host object file when targetting cygwin rather than generic
3933 2004-02-22 Josef Zlomek <zlomekj@suse.cz>
3935 Merge from tree-ssa:
3936 2003-11-20 Richard Henderson <rth@redhat.com>
3938 * tree-inline.c (insert_decl_map): New.
3939 (remap_decl, remap_type, remap_block, copy_body_r,
3940 initialize_inlined_parameters, declare_return_variable,
3941 remap_save_expr): Use it.
3943 * function.c (copy_body_r): Add mapping from id->ret_label to
3944 id->ret_label. Revert test for ret_label.
3946 2004-02-22 Jakub Jelinek <jakub@redhat.com>
3948 * genoutput.c (process_template): Strip trailing whitespace in @
3949 templates and issue a warning if there was any.
3951 2004-02-21 Christopher Faylor <cgf@redhat.com>
3953 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
3954 object file when targetting cygwin.
3955 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
3956 overridden by top-level Makefile.
3958 2004-02-21 Roger Sayle <roger@eyesopen.com>
3960 * config/i386/i386.c (standard_80387_constant_p): Also prefer
3961 the x87's load constant instructions when optimizing for size.
3963 2004-02-21 Kazu Hirata <kazu@cs.umass.edu>
3965 * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
3966 * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
3967 * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
3968 * fold-const.c: Likewise.
3969 * simplify-rtx.c: Likewise.
3971 2004-02-21 Alan Modra <amodra@bigpond.net.au>
3973 * combine.c (can_combine_p): Don't ignore SETs marked with
3974 REG_EH_REGION notes.
3975 (try_combine): When attemting to fix unrecognized insns, don't
3976 split a PARALLEL that contains the original i2.
3978 2004-02-21 Ziemowit Laski <zlaski@apple.com>
3980 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
3981 SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
3982 * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
3983 * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
3984 (vector, pixel, bool): #define to __vector, __pixel and __bool.
3985 (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
3987 (__altivec_link_error_invalid_argument): Remove prototype; will use
3988 __builtin_altivec_compiletime_error("vec_*") instead.
3989 (vec_*): Fix/complete set of available operation overloads given the
3990 existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
3991 cv-correctness of pointer arguments; in C, always check for correct
3992 argument types before macro expansion.
3993 * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
3994 defining Darwin/PowerPC-specific '-f[no-]altivec' and
3995 '-W[no-]altivec-long-deprecated' switches.
3996 * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
3997 '__vector', '__pixel' and '__bool' macros using
3998 '__attribute__((altivec(...)))' types.
3999 * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
4000 bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
4001 bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
4003 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
4004 handling '-W[no-]altivec-long-deprecated'.
4005 (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
4006 (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
4007 altivec_expand_dst_builtin): Remove casts from integer literals.
4008 (altivec_expand_builtin): Likewise; handle expansion of new
4009 '__builtin_altivec_compiletime_error' function.
4010 (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
4011 types, and make them distinct from other vector types; register
4012 '__builtin_altivec_compiletime_error' function.
4013 (print_operand): For 'P', print a full target register name instead of
4015 (rs6000_attribute_table): Add "altivec" attribute.
4016 (rs6000_handle_altivec_attribute): New function.
4017 * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
4018 '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
4020 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
4022 (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
4024 2004-02-20 James E Wilson <wilson@specifixinc.com>
4026 * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
4028 (shift_mix4left+2): Delete redundant pattern.
4030 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
4032 * alias.c (OUTGOING_REGNO): Don't define the default.
4033 * builtins.c (OUTGOING_REGNO): Likewise.
4034 (INCOMING_REGNO): Likewise.
4035 (apply_args_register_offset): Always use OUTGOING_REGNO.
4036 * combine.c (OUTGOING_REGNO): Likewise.
4037 * sibcall.c (OUTGOING_REGNO): Likewise.
4038 * defaults.h (INCOMING_REGNO): Provide the default.
4039 (OUTGOING_REGNO): Likewise.
4041 2004-02-21 Jan Hubicka <jh@suse.cz>
4043 * params.def (max-peeled-insns, max-completely-peeled-insns,
4044 max-once-peeled-insns): Set to 400.
4046 2004-02-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4049 * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
4050 are set for parameters before outputing debugging information.
4052 2004-02-20 Falk Hueffner <falk@debian.org>
4055 * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
4058 2004-02-20 Per Bothner <per@bothner.com>
4060 * input.h: Don't #include line-map.h. It may cause link problems
4061 with undefined linemap_line_start when line-map.h is included but
4062 line-map.o is not linked, as currently happens with gengtype on
4063 compilers that don't support inline.
4064 * toplev.c: So we do have to explicitly #include line-map.h here.
4066 2004-02-20 Richard Henderson <rth@redhat.com>
4068 * doc/invoke.texi: Add -Wvariadic-macros.
4070 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
4072 * haifa-sched.c (sched_emit_insn): Remove.
4073 * sched-int.h: Remove the corresponding prototype.
4075 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
4078 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
4079 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
4080 * system.h (DEFAULT_SHORT_ENUMS): Poison.
4081 * config/cris/cris.h: Remove a comment about
4082 DEFAULT_SHORT_ENUMS.
4083 * config/ip2k/ip2k.h: Likewise.
4084 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
4086 2004-02-20 Mohan Embar <gnustuff@thisiscool.com>
4087 Tom Tromey <tromey@redhat.com>
4089 * doc/install.texi: Moved --disable-libgcj and
4090 --with-system-zlib documentation to new section for
4091 Java-specific options.
4092 Added explicit Cross-Compiler-Specific Options subheading.
4093 Added section for Java-specific options.
4095 2004-02-20 Matt Kraai <kraai@alumni.cmu.edu>
4097 * doc/install.texi (Building the Ada compiler): Remove
4100 2004-02-20 James E Wilson <wilson@specifixinc.com>
4102 * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
4104 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
4106 * gcc.c (process_command): Allow translation of the copyright
4107 symbol but not the rest of the copyright message.
4108 * gcov.c (print_version): Likewise. Allow translation of the
4109 message about warranty.
4111 2004-02-20 Hans-Peter Nilsson <hp@axis.com>
4113 * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
4115 ("*andsi_clear"): Tweak constraints to not match postincrement.
4116 Adjust the predicate to exclude a volatile memory reference.
4117 ("*andhi_clear"): Ditto. Rename from "*andhi_clear_signed".
4118 ("*andhi_clear_unsigned"): Remove, non-matching pattern.
4120 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
4122 * move-if-change: Remove.
4123 * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
4124 (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
4125 (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
4126 (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
4127 (s-gtyp-gen, s-iov): Use the top level move-if-change.
4128 * objc/Make-lang.in (objc/objc-parse.y): Likewise.
4130 2004-02-19 James E Wilson <wilson@specifixinc.com>
4132 * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
4133 for operand2. Add condition that requires register_operand operand2
4136 2004-02-19 Richard Sandiford <rsandifo@redhat.com>
4137 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4139 * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
4140 * config/mips/mips.md: Expand comment above unaligned loads and stores.
4142 2004-02-19 Richard Henderson <rth@redhat.com>
4144 * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
4145 * tree.c (build0, build1, build2, build3, build4): Split out from...
4146 (build): ... here. Call them.
4147 * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
4149 * convert.c (convert_to_integer): Remove extra build argument.
4150 * tree-inline.c (expand_call_inline): Likewise.
4152 2004-02-19 Richard Henderson <rth@redhat.com>
4154 * c-opts.c (warn_variadic_macros): New.
4155 (c_common_handle_option): Set it.
4156 (sanitize_cpp_opts): Copy it to cpp_opts.
4157 * c.opt (Wvariadic-macros): New.
4158 * cpplib.h (struct cpp_options): Add warn_variadic_macros.
4159 * cppinit.c (cpp_create_reader): Initialize it.
4160 * cppmacro.c (parse_params): Check it.
4162 2004-02-19 David Daney <ddaney@avtrex.com>
4164 PR preprocessor/14198
4165 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
4166 builtin_assert ("machine=mips")
4168 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
4170 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
4171 * system.h (DEFAULT_SHORT_ENUMS): Poison.
4172 * config/cris/cris.h: Remove a comment about
4173 DEFAULT_SHORT_ENUMS.
4174 * config/ip2k/ip2k.h: Likewise.
4175 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
4177 2004-02-19 Zack Weinberg <zack@codesourcery.com>
4179 * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
4180 when passing single SFmode quantities in general registers,
4181 put them in the high half.
4183 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
4185 * doc/md.texi (Standard Names): Document additional dependency on
4188 * optabs.c (ftruncify): Remove.
4189 (expand_fix): Manually inline ftruncify above.
4190 (can_fix_p): Add FIXME note.
4192 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
4194 * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
4195 spe_fixuns_truncsfsi2.
4197 * config/rs6000/rs6000.md (fixunssfsi2): Rename to
4200 2004-02-19 Steve Ellcey <sje@cup.hp.com>
4202 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
4203 * testsuite/gcc.dg/20040219-1.c: New test.
4205 2004-02-19 Ulrich Weigand <uweigand@de.ibm.com>
4207 * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
4208 "*subsf3_cconly"): Subtraction is not commutative.
4210 2004-02-19 Zack Weinberg <zack@codesourcery.com>
4212 * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
4213 (sdbout_symbol): If called before sdbout_init, queue DECL for
4215 (sdbout_init): Set sdbout_initialized true, process decls
4216 queued earlier by sdbout_symbol.
4217 (sdbout_finish): Use size_t for index variable.
4219 2004-02-19 Jeff Law <law@redhat.com>
4221 * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
4222 for unordered comparison codes.
4224 2004-02-19 Ian Lance Taylor <ian@wasabisystems.com>
4226 * reload1.c (reload): Correct comment.
4227 (scan_paradoxical_subregs): Remove #if 0 and old comment.
4228 * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
4229 register variables are not used by reload.
4231 2004-02-19 Hans-Peter Nilsson <hp@axis.com>
4234 * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
4235 constraints to not match postincrement. Adjust the predicate to
4236 exclude a volatile memory reference.
4238 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
4240 * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
4242 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
4244 * hooks.c (hook_void_tree_int): Remove.
4245 (hook_void_constcharptr): Likewise.
4246 (hook_int_void_0): Likewise.
4247 * hooks.h: Remove the prototypes for the above three
4249 * targhooks.c (hook_bool_machine_mode_true): Remove.
4250 * targhooks.h: Remove the prototype for
4251 hook_bool_machine_mode_true.
4253 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
4255 * emit-rtl.c (subreg_realpart_p): Remove.
4256 (reorder_insns_with_line_notes): Likewise.
4257 (end_full_sequence): Likewise.
4258 * rtl.h: Remove the prototype for the above functions.
4260 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
4262 * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
4263 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
4264 config/iq2000/iq2000.h, config/m32r/m32r.h,
4265 config/pdp11/pdp11.h, config/sparc/sparc.h,
4266 config/xtensa/xtensa.h: Remove commented-out or useless
4267 definitions of CASE_VECTOR_PC_RELATIVE.
4269 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
4271 * loop.c (all_sets_invariant_p): Remove.
4273 2004-02-19 Eric Botcazou <ebotcazou@libertysurf.fr>
4276 * config/sparc/sparc.h (NPARM_REGS): Delete.
4277 (BASE_RETURN_VALUE_REG): Likewise.
4278 (BASE_OUTGOING_VALUE_REG): Likewise.
4279 (BASE_PASSING_ARG_REG): Likewise.
4280 (BASE_INCOMING_ARG_REG): Likewise.
4281 * config/sparc/sparc.c (sparc_strict_argument_naming): Test
4282 TARGET_ARCH64, not TARGET_V9.
4283 (function_arg_slotno): Dispatch based on the mode class.
4284 Handle vector modes like floating-point modes.
4285 (function_arg_record_value_1): Handle vector types like
4286 floating-point types.
4287 (function_arg_record_value_2): Likewise.
4288 Calculate regno after mode transformation.
4289 (function_arg): Handle vector modes like floating-point modes.
4290 (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
4291 If ARCH64, do not recheck alignment.
4292 (function_arg_pass_by_reference): Reorder the conditions.
4293 (sparc_return_in_memory): Move after function_arg_padding.
4294 Implement calling conventions for vector modes.
4295 (sparc_struct_value_rtx): Move after sparc_return_in_memory.
4296 (function_value): Move scope of 'regbase'.
4297 Implement calling conventions for vector modes.
4298 (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
4299 and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
4300 (sparc_va_arg): Use function_arg_pass_by_reference to test whether
4301 the argument is passed by reference.
4302 (sparc_type_code): Handle vector types.
4304 2004-02-19 Alan Modra <amodra@bigpond.net.au>
4306 * function.c (assign_parms): When building decl_rtl for
4307 SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
4309 2004-02-19 Olivier Hainque <hainque@act-europe.fr>
4311 * expr.c (is_aligning_offset): Check if we are aligning the
4312 expressions's address over BIGGEST_ALIGNMENT in bytes, not
4315 2003-02-18 Matt Austern <austern@apple.com>
4317 * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
4318 LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
4319 (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
4320 defined. Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
4322 * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
4324 2004-02-18 Zack Weinberg <zack@codesourcery.com>
4326 * dwarf2out.c (loclabel_num): Move outside #ifdef
4327 DWARF2_DEBUGGING_INFO and mark with GTY(()).
4328 * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
4330 (ia64_hpux_add_extern_decl): Save the decl, not the name string.
4331 Allocate memory with ggc_alloc. No need to copy anything.
4332 (ia64_hpux_file_end): Update to match.
4334 2004-02-18 Jakub Jelinek <jakub@redhat.com>
4336 * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
4339 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
4341 * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
4342 ("divmodtisi3"): Likewise.
4343 ("udivmoddi4", "udivmodtidi3"): Likewise.
4344 ("divmodsi4", "divmoddisi3"): Likewise.
4345 ("udivmodsi4", "udivmoddisi3"): Likewise.
4346 ("udivsi3", "umodsi3"): Likewise.
4348 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
4350 * config/s390/s390.c (s390_mainpool_start): Delete the main pool
4351 placeholder insn when chunkifying the pool.
4353 2004-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4355 * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
4356 generating PIC code.
4358 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
4360 * config/h8300/h8300-protos.h: Add a prototype for
4361 h8300_expand_branch.
4362 * config/h8300/h8300.c (h8300_expand_branch): New.
4363 * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
4364 bgtu, beq, bne): Call h8300_expand_branch().
4366 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
4368 * config/h8300/h8300-protos.h: Add prototypes for
4369 h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
4370 * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
4371 (h8300_hard_regno_mode_ok): Likewise.
4372 * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
4373 h8300_hard_regno_nregs().
4374 (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
4376 2004-02-18 Per Bothner <per@bothner.com>
4378 * cpphash.h (struct cpp_buffer): Restore return_at_eof field. This
4379 partly reverts my 2003-10-01 change, because we're back to logically
4380 including <command line> inside the main line.
4381 * cpplex.c (_cpp_get_fresh_line): Check return_at_eof field.
4382 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof of current buffer.
4383 Fixes PR preprocessor/14103.
4385 * cppfiles.c (_cpp_stack_include): When appropriate decrement
4386 line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
4387 (cpp_push_include): Don't need to increment pfile's line field.
4388 * line-map.h (LAST_SOURCE_LINE_LOCATION): Only decrement by 1.
4390 * c-ppoutput.c (print struct): New first_time field.
4391 (init_pp_output): Set print.first_time.
4392 (pp_file_change): Use print.first_time, rather than MAIN_FILE_P,
4393 which is set also for (say) <command line>. Clear print.first_time.
4395 * cppfiles.c (struct _cpp_file): Comment and type for pch field
4396 does not match the code, so fix both.
4397 (should_stack_file): Inline include_pch_p function.
4398 (include_pch_p): Remove pointless function.
4400 * cpphash.h (struct cpp_buffer): Remove unused search_cached field.
4402 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
4404 * config/h8300/h8300.md (four define_peephole2's): Use
4405 h8300_regs_ok_for_stm().
4407 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
4409 * config/h8300/h8300-protos.h: Update the prototype for
4411 * config/h8300/h8300.c (expand_a_rotate): Remove the first
4413 * config/h8300/h8300.md: Update all callers.
4415 2004-02-18 Jan Hubicka <jh@suse.cz>
4417 * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
4419 (simplify_binary_operation): Deal with logicals on floats.
4421 * i386.md (SSE fabs splitters): Emit new patterns.
4422 (SSE cmov splitters): Likewise.
4423 (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
4424 (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
4426 (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
4427 (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
4429 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
4431 * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
4433 (output_a_rotate): Tweak a comment.
4434 * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
4435 (*rotlhi3_1): Change to rotlhi3_1.
4436 (*rotlsi3_1): Change to rotlsi3_1.
4438 2004-02-18 Richard Earnshaw <rearnsha@arm.com>
4441 * arm.c (load_multiple_operation): Don't insist that the source reg
4442 of a post-increment component is the same as the destination.
4443 (store_multiple_operation): Likewise.
4445 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
4447 * config/h8300/h8300.md: Move movsf patterns into one section
4450 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
4452 * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
4453 loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
4454 xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
4455 config/mips/linux64.h, config/pa/pa-64.h,
4456 config/rs6000/aix51.h, config/rs6000/aix52.h,
4457 config/rs6000/spe.md, config/sparc/linux.h,
4458 config/sparc/linux64.h: Update copyright.
4460 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
4462 * config/h8300/h8300.md: Move push patterns into one
4463 section of the file.
4465 2004-02-18 Mark Mitchell <mark@codesourcery.com>
4468 * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
4471 2004-02-18 Paul Brook <paul@codesourcery.com>
4473 * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
4475 2004-02-18 Paul Brook <paul@codesourcery.com>
4478 * dwarf2out.c (loc_descriptor_from_tree): Handle
4479 EXPR_WITH_FILE_LOCATION.
4481 2004-02-18 Jakub Jelinek <jakub@redhat.com>
4483 * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
4484 testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
4485 trailing whitespace from instructions.
4487 2004-02-17 Geoffrey Keating <geoffk@apple.com>
4489 * configure.ac: When generating auto-build.h, pass
4490 --enable-languages to the sub-configure.
4491 Put quotes around ${program_transform_name} when generating
4492 name of as, ld, nm, objdump.
4493 * configure: Regenerate.
4495 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
4497 * Makefile.in (s-check, s-config, s-conditions, s-flags)
4498 (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
4499 (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
4500 (s-preds, s-iov): Do not depend on move-if-change.
4502 2004-02-17 James E Wilson <wilson@specifixinc.com>
4504 * caller-save.c (insert_restore): Pass mem through copy_rtx.
4505 (insert_save): Likewise.
4507 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
4509 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
4512 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
4514 * config/h8300/h8300.md (*one_complsi2_h8300): Change to
4516 (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
4518 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
4520 * config/h8300/h8300-protos.h: Update the prototype of
4522 * config/h8300/h8300.c (fix_bit_operand): Remove the second
4524 * config/h8300/h8300.md: Update all callers.
4526 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
4528 * config/h8300/h8300.c (fix_bit_operand): Change the name of
4529 the last argument to "code" from "type".
4531 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
4533 * config/h8300/h8300.c: Remove an extern declaration of
4534 rtx_equal_function_value_matters.
4536 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
4538 * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
4540 * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
4541 (*iorqi3_1): Change to iorqi3_1.
4542 (*xorqi3_1): Change to xorqi3_1.
4544 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
4546 * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
4549 2004-02-17 Jan Hubicka <jh@suse.cz>
4551 * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
4553 2004-02-18 Alan Modra <amodra@bigpond.net.au>
4555 PR optimization/14119
4556 * combine.c (try_combine): When attemting to fix unrecognized insns,
4557 don't delete SETs marked with REG_EH_REGION notes.
4559 2004-02-17 Ulrich Weigand <uweigand@de.ibm.com>
4561 * combine.c (simplify_if_then_else): Do not replace
4562 (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
4565 2004-02017 Steven Bosscher <stevenb@suse.de>
4567 * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
4568 function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
4569 tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
4570 * ada/utils.c: Likewise.
4571 * cp/decl.c: Likewise.
4572 * f/com.c: Likewise.
4573 * java/class.c: Likewise.
4575 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
4577 * config/h8300/h8300.md: Fix comment typos.
4579 2004-02-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4581 * config/mips/t-iris6gld: Renamed to ...
4582 * config/mips/t-irix-gld: ... this.
4583 * config.gcc (mips-sgi-irix6*): Reflect this
4584 (mips-sgi-irix5*): Use it with GNU ld.
4586 * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
4588 * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
4589 * config/mips/t-irix-gld: Reflect this.
4590 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
4592 * config/mips/iris5gld.h: New file.
4593 * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
4594 Only use collect2 without gas.
4596 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
4597 Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
4598 (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
4599 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
4601 * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
4602 * config/mips/iris5.h: ... here.
4604 * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
4605 IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
4606 (STARTFILE_SPEC, ENDFILE_SPEC): Define.
4608 * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
4609 using irix_startfile_spec, irix_endfile_spec.
4611 2004-02-16 Gunther Nikl <gni@gecko.de>
4613 * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
4615 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
4617 * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
4620 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4622 * cfghooks.c (split_edge): Speed up updating of dominators.
4624 2004-02-17 Mark Mitchell <mark@codesourcery.com>
4627 * c-common.c (flag_abi_version): Remove.
4628 * c-common.h (flag_abi_version): Likewise.
4629 * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
4630 * c.opt (fabi-version): Remove.
4631 * calls.c (expand_call): Always pass a function type to
4632 struct_value_rtx. Use convert_memory_address.
4633 * common.opt (fabi-version): Add it.
4634 * flags.h (flag_abi_version): Likewise.
4635 (abi_version_at_least): New macro.
4636 * opts.c (common_handle_option): Add OPT_fabi_version.
4637 * toplev.c (flag_abi_version): Define it.
4638 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
4640 (ia64_output_mi_thunk): Use it.
4641 (ia64_struct_value_rtx): Likewise.
4643 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
4645 * config/h8300/h8300.c (h8300_emit_stack_adjustment):
4646 Don't generate insns by hand.
4648 2004-02-17 Andrew Pinski <pinskia@physics.uc.edu>
4651 * doc/invoke.texi (fabi-version): The default is 2 now.
4653 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4655 * loop-iv.c: New file.
4656 * Makefile.in (loop-iv.o): New.
4657 * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
4658 * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
4659 num_loop_branches): New functions.
4660 * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
4661 iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
4662 find_simple_exit, iv_number_of_iterations, iv_analysis_done,
4663 get_simple_loop_desc, free_simple_loop_desc): Declare.
4664 (simple_loop_desc): New inline function.
4665 (struct rtx_iv, struct niter_desc): New.
4666 * cfgloopmanip.c (loopify): Specify semantics more precisely.
4667 * expr.c (force_operand): Handle subregs of expressions created by
4669 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
4670 parts of the initialization to toplev.c
4671 * loop-unroll.c (loop_exit_at_end_p): New.
4672 (unroll_and_peel_loops): Call iv_analysis_done.
4673 (decide_peel_once_rolling, decide_peel_completely,
4674 decide_unroll_stupid, decide_unroll_constant_iterations,
4675 decide_unroll_runtime_iterations, decide_peel_simple,
4676 peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
4677 unroll_loop_runtime_iterations): Use new simple loop analysis.
4678 * loop-unswitch.c (compare_and_jump_seq): New.
4679 (may_unswitch_on_p): Renamed to ...
4680 (may_unswitch_on): Use new iv analysis.
4681 (reversed_condition): Export.
4682 (unswitch_single_loop, unswitch_loop): Use new iv analysis.
4683 * predict.c (estimate_probability): Use new simple loop analysis.
4684 * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
4685 canon_condition, simplify_using_condition): Declare.
4686 * stor-layout.c (get_mode_bounds): New.
4687 * toplev.c (rest_of_handle_loop2): Some parts of
4688 initialization/finalization moved here from loop-init.c.
4690 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
4692 * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
4694 (CALL_USED_REGISTERS): Likewise.
4695 (REG_ALLOC_ORDER): Likewise.
4696 (REG_CLASS) <GENERAL_REGS>: Likewise.
4698 2004-02-16 Geoffrey Keating <geoffk@apple.com>
4700 * doc/md.texi (Insn Canonicalizations): Document left-chaining
4701 in associative operators.
4702 * rtlanal.c (commutative_operand_precedence): Create some new
4703 variables. Prefer a commutative operand on the left, then
4704 binary expressions, then NEG and NOT.
4706 2004-02-16 Matthias Klose <doko@debian.org>
4708 * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
4709 in terms of SHLIB_SOVERSION.
4710 * config/m68k/t-slibgcc-elf-ver: New file.
4711 * config/pa/t-slibgcc-elf-ver: New file.
4712 * config.gcc (m68k-linux, parisc-linux): Use them when not
4713 sjlj exceptions are not configured.
4715 2004-02-16 Eric Botcazou <ebotcazou@libertysurf.fr>
4717 * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
4719 2004-02-16 Zack Weinberg <zack@codesourcery.com>
4721 * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
4723 2004-02-16 Joseph S. Myers <jsm@polyomino.org.uk>
4725 * doc/sourcebuild.texi: Mention backends.html.
4727 2004-02-16 Kazu Hirata <kazu@cs.umass.edu>
4729 * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
4730 line-map.c, line-map.h, var-tracking.c: Fix comment
4733 2004-02-16 Richard Henderson <rth@redhat.com>
4735 * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
4737 * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
4739 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
4741 * config/h8300/h8300.md: Remove unnecessary parallels from
4742 all define_insn and define_split patterns.
4744 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
4746 * config/h8300/h8300.md: Remove explicit (set_attr "cc"
4749 2004-02-15 Bernardo Innocenti <bernie@develer.com>
4751 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
4754 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
4756 * config/ia64/ia64.c, config/mips/mips.c,
4757 config/mmix/mmix-modes.def: Fix comment typos.
4759 2004-02-15 Roger Sayle <roger@eyesopen.com>
4761 * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
4762 (get_directive_line): Remove unused function prototype.
4764 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
4766 * tree-inline.c (copy_body_r): Do not replace ret_label.
4768 2004-02-14 Jan Hubicka <jh@suse.cz>
4770 * i386.c (x86_four_jump_limit): New variable.
4771 (k8_avoid_jump_misspredicts): Rename to ...
4772 (ix86_avoid_jump_misspredicts): .. this one.
4773 (ix86_pad_returns): Break out from ...
4774 (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
4776 * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
4778 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
4780 * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
4783 2004-02-14 Per Bothner <per@bothner.com>
4785 * fix-header.c (line_table): Move local variable in main to global.
4786 * scan.h (line_table): Use it.
4787 * scan-decls.c (scan_decls): Need to call linemap_lookup on token's
4788 line (recently renamed to src_loc) before calling recognized_function.
4790 2004-02-14 Matt Kraai <kraai@alumni.cmu.edu>
4792 * Makefile.in: Fix comment typos.
4794 2004-02-14 Olivier Hainque <hainque@act-europe.fr>
4796 * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
4797 for start_value when it is directly moved into reg, and factorize
4798 the retrieval of GET_MODE (reg).
4800 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
4802 * config/mips/mips-protos.h (mips_load_got_page): Delete.
4803 (mips_load_got_global): Delete.
4804 (mips_gotoff_page): Declare.
4805 * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
4806 (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
4807 UNSPEC_LOAD_GOT pattern rather than a MEM.
4808 (*load_got[sd]i): New patterns.
4809 * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
4810 (mips_load_got_page, mips_load_got_global): Delete.
4811 (mips_gotoff_page): New function.
4812 (override_options): Don't initialize mips_got_alias_set.
4814 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
4816 * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
4817 (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
4818 (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
4819 (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
4820 (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
4821 * config/mips/mips.c: Fix some overly-long lines.
4822 (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
4823 (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
4825 2004-02-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4827 * configure.ac: Search for as, ld below libexec/gcc.
4828 * configure: Regenerate.
4830 2004-02-14 Ben Elliston <bje@wasabisystems.com>
4832 * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
4833 __builtin_arm_setwcx ().
4834 * config/arm/arm.c (arm_expand_builtin): Generate operands
4835 correctly and reverse their order in call to gen_iwmmxt_tmcr ().
4837 2004-02-14 Ben Elliston <bje@wasabisystems.com>
4839 * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
4840 and "wmuluh" to "wmulsm" and "wmulum", respectively.
4841 * config/arm/arm.h (enum arm_builtins): Rename enumerators to
4842 ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
4843 * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
4844 (_mm_mulhi_pu16): Likewise.
4846 2004-02-13 Zack Weinberg <zack@codesourcery.com>
4848 * xcoffout.c (xcoff_assign_fundamental_type_number): Check
4849 DECL_NAME != 0 before dereferencing.
4851 2004-02-13 Ulrich Weigand <uweigand@de.ibm.com>
4853 * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
4854 (s390_output_addr_const_extra): Declare.
4855 (s390_output_pool_entry): Remove FILE * argument.
4856 * config/s390/s390.c (s390_output_symbolic_const): Remove.
4857 (s390_output_addr_const_extra): New function.
4858 (print_operand_address): Call output_addr_const instead of
4859 s390_output_symbolic_const.
4860 (print_operand): Likewise.
4861 (s390_output_pool_entry): Use assemble_integer for symbolic constants.
4862 Remove FILE * argument.
4863 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
4864 * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
4867 2004-02-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4869 * cfgloopanal.c (mark_irreducible_loops): Rewriten.
4870 (struct edge, struct vertex, struct graph): New.
4871 (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
4872 free_graph): New functions.
4874 2004-02-12 Chris Demetriou <cgd@broadcom.com>
4876 * config/mips/mips.md (casesi_internal, casesi_internal_di):
4877 Use ".set macro" to avoid warnings about multi-instruction
4878 macros, since they're intentional.
4880 2004-02-12 Geoffrey Keating <geoffk@apple.com>
4882 * config/darwin.h: Add include guards. Remove old, now incorrect,
4883 comment about STANDARD_EXEC_PREFIX.
4885 * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
4886 $(GCOV_INSTALL_NAME) to install manpages. Remove generic rule
4887 for installing .1 manpages. Add rules for installing cpp
4888 and gcov manpages under their installed names.
4890 2004-02-12 Alexandre Oliva <aoliva@redhat.com>
4892 * configure.ac (gcc_cv_ld): Don't set to LD if target is not
4893 host, but try LD_FOR_TARGET first.
4894 * configure: Rebuilt.
4896 2004-02-12 Zack Weinberg <zack@codesourcery.com>
4898 * dbxout.c: Move declaration of dbxout_type_decl outside
4899 #ifdef DBX_DEBUGGING_INFO.
4900 * c-parse.in: Don't give the asmdef production a type.
4902 2004-02-12 Zack Weinberg <zack@codesourcery.com>
4904 * debug.h (struct gcc_debug_hooks): Add type_decl field.
4905 (debug_nothing_tree_int): Prototype.
4906 (dwarf_debug_hooks): Delete, unused.
4907 * debug.c (do_nothing_debug_hooks): Update.
4908 (debug_nothing_tree_int): New function.
4909 * langhooks.h (struct lang_hooks_for_decls):
4910 Remove builtin_type_decls field.
4911 * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
4912 (LANG_HOOKS_DECLS): Update.
4913 * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
4914 Use debug_hooks->type_decl.
4915 * dbxout.c (preinit_symbols): New static.
4916 (dbx_debug_hooks, xcoff_debug_hooks): Update.
4917 (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
4918 lang_hooks.decls.builtin_type_decls. Do scan preinit_symbols
4919 for symbols to output.
4920 (dbxout_type_decl): New function.
4921 (dbxout_symbol): If called before dbxout_init has run, queue
4922 the symbol for later. Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
4923 to TYPE_DECLs before emitting them.
4924 * xcoffout.c (assign_type_number): Delete.
4925 (xcoff_type_numbers): New static table.
4926 (xcoff_assign_fundamental_type_number): New function.
4927 * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
4928 DBX_OUTPUT_STANDARD_TYPES. Remove unnecessary #ifdefs.
4929 * sdbout.c: Include varray.h.
4930 (deferred_global_decls): New static.
4931 (sdb_debug_hooks): Update.
4932 (sdbout_global_decl): If we can't emit something right now,
4933 remember it in deferred_global_decls.
4934 (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
4935 (sdbout_init): Initialize deferred_global_decls.
4936 * Makefile.in: Update dependencies of sdbout.o.
4937 * dwarf2out.c (dwarf2out_type_decl): New function.
4938 (dwarf2_debug_hooks): Update.
4939 * vmsdbgout.c (vmsdbg_debug_hooks): Update.
4940 * c-decl.c (getdecls): Just return 0.
4941 (check_for_loop_decls): Don't use getdecls.
4942 (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
4943 * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
4945 2004-02-12 Ulrich Weigand <uweigand@de.ibm.com>
4947 * config/s390/s390.c (s390_sched_reorder2): Remove.
4948 (TARGET_SCHED_REORDER2): Do not redefine.
4950 2004-02-12 Zack Weinberg <zack@codesourcery.com>
4952 * c-parse.in (maybe_type_qual): Delete.
4953 (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
4954 (asm_argument): New grammar rules.
4955 (extdef_1): Use asmdef.
4956 (maybeasm): Move down with other asm rules; use simple_asm_expr.
4957 (xexpr): Move up with other expression rules.
4958 (stmt): Use asm_stmt.
4960 * c-typeck.c (build_asm_expr): New function - body mostly
4961 pulled from build_asm_stmt.
4962 (build_asm_stmt): Just handle tacking on the volatile qualifier.
4963 * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
4965 2004-02-12 Richard Sandiford <rsandifo@redhat.com>
4968 * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
4969 (mips_declare_object): Make variadic.
4970 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
4971 mips_output_aligned_decl_common.
4972 * config/mips/mips.c (mips_output_aligned_decl_common): New function.
4973 (mips_declare_object): Make variadic.
4975 2004-02-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4977 * function.c (update_epilogue_consts): Teach about binary operations.
4979 * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
4980 previous MEM_VOLATILE in REF.
4981 * function.c (fixup_var_refs): Save volatile_ok and set to 1.
4982 * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
4984 2004-02-12 Gunther Nikl <gni@gecko.de>
4986 * config.gcc: Restore support for m68k-openbsd.
4988 2004-02-12 Jan Hubicka <jh@suse.cz>
4990 * tree-optimize.c (tree_rest_of_compilation): Do not release
4993 2004-02-11 Matt Kraai <kraai@alumni.cmu.edu>
4995 * doc/install.texi: Fix the spelling of "explicitly".
4997 2004-02-11 Eric Christopher <echristo@redhat.com>
4999 * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
5000 duplicate argument structure of cpp_interpret_string.
5001 * cpphash.h: Move prototype...
5003 * cpplib.c: Fix calls to match new function signature.
5005 2004-02-11 Joseph S. Myers <jsm@polyomino.org.uk>
5008 * cppexp.c (num_binary_op): Don't allow comma operators in #if
5009 constant expressions at all outside C99 mode if pedantic.
5011 2004-02-11 Uros Bizjak <uros@kss-loka.si>
5013 * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
5014 (log10_optab, log2_optab): Define corresponding macros.
5015 * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
5016 * genopinit.c (optabs): Implement log10_optab and log2_optab
5017 using log10?f2 and log2?f2 patterns.
5018 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
5019 using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
5020 (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
5021 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
5023 * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
5024 log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
5025 log2, log2f and log2l built-ins as inline x87 intrinsics.
5027 2004-02-11 Richard Henderson <rth@redhat.com>
5030 * flow.c (insn_dead_p): A clobber of a dead hard register is a
5031 dead insn after reload.
5033 2004-02-11 Ulrich Weigand <uweigand@de.ibm.com>
5035 * tree.h (frame_base_decl): Add GTY marker.
5036 * var-tracking.c (frame_base_decl): Likewise.
5038 2004-02-11 Daniel Berlin <dberlin@dberlin.org>
5040 * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
5042 (add_location_or_const_value_attribute): Use text_section_label,
5043 not TEXT_SECTION_NAME.
5045 2004-02-11 Per Bothner <per@bothner.com>
5047 Represent column numbers using line-map's source_location.
5048 The "next available source_location" is now managed internally by
5049 line-maps.c rather than by clients.
5050 * line-map.h (struct line_map): New field column_bits.
5051 <from_line>: Rename field to start_location.
5052 (struct line_maps): New fields highest_location and max_column_hint.
5053 (linemap_check_files_exited): New declaration.
5054 (linemap_line_start): New declaration.
5055 (linemap_add): Remove from_line parameter; use highest_location field.
5056 (SOURCE_LINE, LAST_SOURCE_LINE): Modify to use column_bits.
5057 (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION): New macros.
5058 (CURRENT_LINE_MAP): Remove macro.
5059 (linemap_position_for_column): New inline function.
5060 * line-map.c (linemap_init): Clear new fields.
5061 (linemap_check_files_exited): New function, extracted from ...
5062 (linemap_free): Use linemap_check_files_exited.
5063 (linemap_add): Remove from_line parameter. Various updates.
5064 (linemap_line_start): New function.
5065 (linemap_lookeup): Update for new field names.
5066 * cpphash.h (struct cpp_reader) <map>: Field removed. Because
5067 linemap_position_for_column may unpredictably change the current map,
5068 it is cleaner and simpler for us to not cache it in cpp_reader.
5069 (struct cpp_buffer): New sysp field.
5070 Changed warned_cplusplus_comments and from_stage3 to bitfields.
5071 * cppinit.c (cpp_read_min_file): pfile->map no longer exists.
5072 * cpplib.c (do_line, do_linemarker, _cpp_do_file_change): Get
5073 current map using linemap_lookup.
5074 (do_linemarker): Also set buffer's sysp field.
5075 (destringize_and_run): No longer need to decrement current line.
5076 * cppfiles.c (_cpp_stack_file): Set sysp from and in buffer.
5077 (search_path_head, open_file_failed): Use buffer's sysp.
5078 (cpp_make_system_header): Get current map using linemap_lookup.
5079 Also set buffer's sysp flag.
5080 * cppmacro.c (_cpp_builtin_macro_text): Likewise use linemap_lookup.
5081 * cpphash.h (CPP_INCREMENT_LINE): New macro.
5082 (struct cpp_buffer): Moved fields saved_cur, saved_rlimit to ...
5083 (struct cpp_reader): ... and adding saved_line_base field.
5084 * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
5085 Update accordingly. Don't adjust line.
5086 (_cpp_scan_out_logical_line): Use CPP_INCREMENT_LINE.
5087 * cpphash.c (CPP_IN_SYSTEM_HEADER): Replaced macro by ...
5088 (cpp_in_system_header): ... new inline function, using buffer's sysp.
5089 * cpperror.c (_cpp_begin_message): Update to use cpp_in_system_header.
5090 * cpplex.c (_cpp_lex_direct): Likewise.
5091 * cppmacro.c (_cpp_builtin_macro_text): Likewise.
5092 * cppmacro.c (_cpp_create_definition): Use buffer's sysp field.
5093 * cpplib.h (struct cpp_token): Rename line field to src_loc.
5094 Remove col field as it is now subsumed by src_loc.
5095 * cpperror.c: Update various field, parameter, and macro names.
5096 (print_location): If col==0, try SOURCE_COLUMN of line.
5097 (cpp_error): Use cur_token's src_loc field, rather than line+col.
5098 * cpplib.c (do_diagnostic): Token's src_loc fields replaces line+col.
5099 * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
5100 _cpp_skip_block_comment): Use CPP_INCREMENT_LINE.
5101 (_cpp_temp_token): Replace cpp_token's line+col fields by src_loc.
5102 (_cpp_get_fresh_line): Don't need to adjust line for missing newline.
5103 (_cpp_lex_direct): Use linemap_position_for_column.
5104 * c-ppoutput.c (maybe_print_line, print_line): Don't take map
5105 parameter. Instead get it from the line_table global. Adjust callers.
5106 (print): Remove map field. Replace line field to src_line.
5107 (init_pp_output, account_for_newlines, maybe_print_line): Adjust.
5108 (cb_line_change): Use SOURCE_COLUMN. Minor optimizations.
5109 (pp_file_change): Use MAIN_FILE_P since we cannot checked print.map.
5110 Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
5111 * cpptrad.c (copy_comment): Rename variable.
5112 * c-lex.c (map): Remove static variable, for same reason we removed
5113 cpp_reader's map field.
5114 (cb_line_change, cb_def_pragma, cb_define, cb_undef): Hence we need
5115 to call linemap_lookup.
5116 (cb_line_change): Token's line field replaced by src_loc.
5117 (fe_file_change): Use MAINFILE_P and LAST_SOURCE_LINE macros.
5120 * cpphash.h, cpperror.c, cpplib.h: Some renames of fileline to
5123 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
5125 * config/rs6000/altivec.md (*movv4si_internal): At least one
5126 operand must be register_operand.
5127 (*movv8hi_internal1): Likewise.
5128 (*movv16qi_internal1): Likewise.
5129 (*movv4sf_internal1): Likewise.
5131 2004-02-10 Aldy Hernandez <aldyh@redhat.com>
5133 * config/rs6000/spe.md ("*movv2si_internal"): Check for register
5135 (movv4hi_internal): Same.
5136 (movv2sf_internal): Same.
5137 (movv1di_internal): Same.
5139 2004-02-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5141 * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
5142 TARGET_OLDABI consistently.
5143 * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
5144 mips_va_arg,override_options,compute_frame_size,
5145 mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
5146 ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
5147 and TARGET_OLDABI consistently.
5148 * config/mips/mips.md (exception_receiver): Likewise.
5149 * config/mips/linux64.h: Likewise.
5151 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
5153 * gcc/config/rs6000/rs6000.c (rs6000_override_options)
5154 Set AltiVec ABI and vrsave as default for ppc64 linux.
5155 (init_cumulative_args): Post error, if try to return
5156 value in AltiVec register without enable AltiVec.
5157 (function_arg_advance): Ditto for passing arguments.
5159 2004-02-11 Richard Sandiford <rsandifo@redhat.com>
5161 * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
5162 a label before updating its usage count.
5164 2004-02-10 Matt Kraai <kraai@alumni.cmu.edu>
5166 * doc/install.texi: Remove extra cd.
5168 2004-02-10 Ziemowit Laski <zlaski@apple.com>
5170 * c-common.c (vector_size_helper): Remove; call
5171 reconstruct_complex_type() instead.
5172 * tree.c (reconstruct_complex_type): New function
5173 (formerly vector_size_helper() in c-common.c).
5174 (make_vector): Make externally visible.
5175 * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
5177 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
5179 * config/h8300/h8300-protos.h: Add a prototype for
5180 h8300_regs_ok_for_stm.
5181 * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
5182 * config/h8300/h8300.md (stm_h8300s_2_advanced,
5183 stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
5184 stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
5185 stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
5186 ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
5187 ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
5188 ldm_h8300s_4_normal, ldm_h8300s_4): Use
5189 h8300_regs_ok_for_stm().
5191 2004-02-10 Danny Smith <dannysmith@users.sourceforge.net>
5194 * real.c (real_from_string): Look for 'X' as well as 'x' in
5197 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
5199 * config/h8300/h8300.md: Remove an incorrect comment about
5200 peephole2. Add comments.
5202 2004-02-10 Josef Zlomek <zlomekj@suse.cz>
5205 * emit-rtl.c (set_decl_incoming_rtl): New.
5206 * tree.h (set_decl_incoming_rtl): New.
5207 * function.c (assign_parms): Use set_decl_incoming_rtl for setting
5209 * ada/misc.c (adjust_decl_rtl): Likewise.
5211 2004-02-10 Per Bothner <per@bothner.com>
5213 * c-opts.c (c_common_post_options): Don't emit working directory
5214 in cpp output if -P was specified.
5216 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
5219 * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
5220 negate_expr back to the original type.
5222 2004-02-10 Alan Modra <amodra@bigpond.net.au>
5224 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
5227 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
5229 * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
5230 gen_lowpart_SUBREG): Move under the file in which they
5231 are actually declared.
5233 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>
5235 * doc/sourcebuild.texi: Add libada documentation.
5237 * doc/install.texi: Update documentation on Ada build, now
5238 that the GNAT lib and tools are built automatically.
5240 2004-02-10 Richard Sandiford <rsandifo@redhat.com>
5242 * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
5245 2004-02-09 Ziemowit Laski <zlaski@apple.com>
5247 * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
5248 boundaries outside build_component_ref() call (a macro in ObjC++).
5250 2004-02-09 Bob Wilson <bob.wilson@acm.org>
5252 * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
5253 (init_cumulative_args): Likewise.
5254 (a7_overlap_mentioned_p): Delete prototype.
5255 * config/xtensa/xtensa.c (struct machine_function): Replace
5256 incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
5257 Add set_frame_ptr_insn field.
5258 (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
5259 (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
5260 if the operand is an argument in a7. If so, copy a7 to a new pseudo
5261 at the function entry and replace the operand with the pseudo.
5262 (init_cumulative_args): Remove unused arguments. Add new "incoming"
5263 argument and record this flag in CUMULATIVE_ARGS.
5264 (function_arg): Remove result_mode and special-case code to handle
5265 arguments in a7. Instead, set need_a7_copy flag when there is an
5266 incoming argument in a7.
5267 (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
5268 and use the value recorded in cfun->machine->set_frame_ptr_insn.
5269 (xtensa_builtin_saveregs): Check for negative gp_left value. Set
5270 need_a7_copy and vararg_a7 flags. Use move_block_from_reg instead of
5272 (a7_overlap_mentioned_p): Delete.
5273 * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
5274 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
5275 arguments to init_cumulative_args and pass "incoming" flag instead.
5276 (BLOCK_REG_PADDING): Delete.
5277 * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
5278 checks for reload_in_progress and reload_completed. Update calls to
5279 xtensa_copy_incoming_a7.
5280 (ashlsi3): Rename existing insn to ashlsi3_internal. Add expander
5281 to call xtensa_copy_incoming_a7.
5283 2004-02-09 DJ Delorie <dj@redhat.com>
5285 * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
5286 longer modify standard_exec_prefix, standard_bindir_prefix, or
5287 standard_startfile_prefix.
5289 2004-02-09 James E Wilson <wilson@specifixinc.com>
5292 * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
5293 to expand_expr_real call, and pass in alt_rtl as last argument.
5296 * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
5297 * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
5298 * builtins.def (BUILT_IN_EXTEND_POINTER): New.
5299 * except.c (expand_builtin_extend_pointer): New.
5300 * except.h (expand_builtin_extend_pointer): Declare.
5302 2004-02-09 David Edelsohn <edelsohn@gnu.org>
5304 * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
5305 unaligned loads and stores.
5307 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5309 * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
5310 * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
5312 * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
5313 * config/mips/iris5.h: ... here.
5314 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
5316 * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
5317 * config/mips/iris5.h: ... here.
5319 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5321 * configure.ac: Remove default executable files before AC_PROG_CC.
5322 * configure: Regenerate.
5324 2004-02-09 Kazu Hirata <kazu@cs.umass.edu>
5327 * config/h8300/h8300.c (byte_reg): Call abort() if asked to
5328 print a operand other than a register.
5330 2004-02-09 Roger Sayle <roger@eyesopen.com>
5332 * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
5333 tree code rather than call fold_convert, which doesn't specify a
5334 default floating point to integer conversion.
5336 2004-02-08 Bernardo Innocenti <bernie@develer.com>
5338 * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
5339 code to support SGS assembler. Reformat adjacent code where possible.
5340 * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
5342 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
5344 * config/m68k/linux.h, config/m68k/m68k.c,
5345 * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
5346 macros and asm_printf() format strings.
5347 * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
5348 * config/m68k/linux.h: Update copyright.
5349 * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
5351 2004-02-08 Andreas Schwab <schwab@suse.de>
5352 Bernardo Innocenti <bernie@develer.com>
5354 * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
5356 * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
5357 frame pointer register, overridable by OS targets.
5358 * (M68K_REGNAME): Macro to obtain register name for asm output,
5359 eventually replacing %a6 with M68K_FP_REG_NAME.
5360 * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
5361 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
5362 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
5363 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
5364 * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
5366 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
5368 * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
5369 hook_rtx_tree_int_null.
5370 * targhooks.c (default_struct_value_rtx): Remove.
5371 * targhooks.h: Remove the prototype for
5372 default_struct_value_rtx.
5373 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
5374 config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
5375 config/ip2k/ip2k.c, config/iq2000/iq2000.c,
5376 config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
5377 config/mn10300/mn10300.c, config/pdp11/pdp11.c,
5378 config/rs6000/rs6000.c, config/s390/s390.c,
5379 config/stormy16/stormy16.c, config/v850/v850.c,
5380 config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
5381 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
5383 2004-02-08 Joseph S. Myers <jsm@polyomino.org.uk>
5385 * README.Portability: Change "ISO C89" to "ISO C90".
5386 * c-parse.in (primary, initelt): Likewise.
5388 2004-02-08 Richard Sandiford <rsandifo@redhat.com>
5390 * real.c (encode_ibm_extended): Normalize the input value before
5391 converting it to a double. Handle the case where a normal value
5394 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
5396 * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
5398 * cse.c (preferrable): Change to preferable. Update all of its
5400 * genautomata.c (ainsn): Change
5401 first_ainsn_with_given_equialence_num to
5402 first_ainsn_with_given_equivalence_num. Update all of its
5405 2004-02-08 Jan Hubicka <jh@suse.cz>
5407 * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
5409 2004-02-07 David Edelsohn <edelsohn@gnu.org>
5411 * function.c (assign_parms): Fix formatting.
5413 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
5415 * default.h (PROMOTE_PROTOTYPES): Remove.
5416 * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
5417 STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
5418 EXPAND_BUILTIN_SAVEREGS): Poison.
5419 * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
5420 hook_bool_tree_false.
5421 (TARGET_PROMOTE_PROTOTYPES): Likewise.
5422 * target.h: Replace SETUP_INCOMING_VARARGS with
5423 targetm.calls.setup_incoming_varargs().
5424 * targhooks.c (default_promote_function_return): Remove.
5425 (default_promote_prototypes): Likewise.
5426 (default_struct_value_rtx): Always abort().
5427 (default_expand_builtin_saveregs): Always print an error
5429 (default_setup_incoming_varargs): Do nothing.
5430 (default_pretend_outgoing_varargs_named): Don't depend on
5431 SETUP_INCOMING_VARARGS.
5432 * targhooks.h: Remove the prototype for
5433 default_promote_function_return and
5434 default_promote_prototypes.
5436 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
5438 * system.h (SHARED_SECTION_ASM_OP): Poison.
5439 * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
5440 * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
5442 2004-02-07 Zack Weinberg <zack@codesourcery.com>
5445 * c-decl.c (diagnose_mismatched_decls): Only give special
5446 treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
5448 (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
5449 DECL_FUNCTION_CODE when defining a built-in function.
5450 Don't update DECL_ESTIMATED_INSNS.
5451 * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
5453 * tree.h: Delete DECL_ESTIMATED_INSNS.
5454 * tree-inline.c (struct inline_data): Delete inlined_insns field.
5455 (expand_call_inline, optimize_inline_calls): Don't update
5456 DECL_ESTIMATED_INSNS nor inlined_insns.
5457 * cgraphunit.c (cgraph_analyze_function): Don't update
5458 DECL_ESTIMATED_INSNS.
5460 2004-02-07 Zack Weinberg <zack@codesourcery.com>
5462 * c-common.c (shadow_warning): Delete.
5463 * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
5464 * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
5465 * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
5466 * c-parse.in (free_parser_stacks): Delete.
5468 2004-02-07 Nathanael Nerode <neroden@gcc.gnu.org>
5470 * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
5471 config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
5472 Use the top level mkinstalldirs, not the one in the gcc subdir.
5473 * mkinstalldirs: Remove (from the gcc subdir).
5475 2004-02-07 Roger Sayle <roger@eyesopen.com>
5478 * fold-const.c (fold_convert): New function to provide type
5479 conversion to the middle-end without using convert.
5480 (negate_expr, associate_trees, size_diffop, omit_one_operand,
5481 operand_equal_for_comparison_p, pedantic_omit_one_operand,
5482 invert_truthvalue, optimize_bit_field_compare, range_binop,
5483 decode_field_reference, make_range, build_range_check, unextend,
5484 fold_truthop, extract_muldiv_1, fold_mathfn_compare,
5485 fold_binary_op_with_conditional_arg, fold_inf_compare,
5486 fold_single_bit_test, fold, multiple_of_p): Replace all calls to
5487 convert with calls to fold_convert.
5489 2004-02-07 Jan Hubicka <jh@suse.cz>
5491 * genrecog.c (find_operand): add extra argument stop.
5492 (validate_pattern): Verify that mach_dup is duplicating operand
5493 defined lexically earlier.
5495 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
5497 * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
5498 * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
5499 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
5500 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
5501 config/ia64/ia64.h, config/ip2k/ip2k.h,
5502 config/iq2000/iq2000.h, config/mips/iris5.h,
5503 config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
5504 config/rs6000/aix51.h, config/rs6000/aix52.h,
5505 config/rs6000/darwin.h, config/rs6000/rs6000.h,
5506 config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
5507 config/sparc/linux.h, config/sparc/linux64.h,
5508 config/sparc/netbsd-elf.h, config/sparc/sparc.h,
5509 config/xtensa/xtensa.h: Remove the definitions of
5510 MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
5511 MAX_WCHAR_TYPE_SIZE.
5512 * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
5513 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
5515 2004-02-07 Stephane Carrez <stcarrez@nerim.fr>
5518 * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
5521 2004-02-07 Josef Zlomek <zlomekj@suse.cz>
5523 * var-tracking.c (vt_add_function_parameters): Surround checkings by
5524 #ifdef ENABLE_CHECKING and #endif.
5526 2004-02-07 Roger Sayle <roger@eyesopen.com>
5528 * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
5529 either (-A)-B or (-B)-A, if A or B is easily negated respectively.
5530 (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
5531 integer types and floating point with unsafe_math_optimizations.
5532 Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
5533 Optimize A - B as A + (-B), if B is easily negated.
5535 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
5537 * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
5538 config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
5539 config/m32r/linux.h, config/rs6000/ppc64-fp.c,
5540 config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
5543 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
5545 * c-ppoutput.c, var-tracking.c: Fix comment typos.
5547 2004-02-06 James E Wilson <wilson@specifixinc.com>
5549 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
5550 glibc 2.3 or better.
5552 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
5554 * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
5555 to FLOAT_LIB_COMPARE_RETURNS_BOOL.
5557 2004-02-07 Alan Modra <amodra@bigpond.net.au>
5559 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
5560 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
5561 (SHLIB_MKMAP_OPTS): Delete.
5562 (TARGET_LIBGCC2_CFLAGS): Add -specs.
5563 (bispecs): Add rule.
5564 * config/rs6000/libgcc-ppc64.ver: New file.
5565 * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
5566 (__floatdidf, __floatdisf): Optimize multiply.
5567 (__fixunstfdi): New function.
5568 * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
5569 real and imag parts larger than one register.
5570 (function_arg): Correct type of reg used when fp arg split partially
5572 * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
5573 and __MACH__ or __powerpc64__.
5575 2004-02-06 Roger Sayle <roger@eyesopen.com>
5576 Ulrich Weigand <uweigand@de.ibm.com>
5578 * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
5579 of gen_highpart or gen_lowpart when the floating point format is
5580 wider than the result mode.
5582 2004-02-06 Andrew Pinski <pinskia@physics.uc.edu>
5584 * dwarf2out.c (loclabel_num): Move into #ifdef
5585 DWARF2_DEBUGGING_INFO.
5587 2004-02-06 Ziemowit Laski <zlaski@apple.com>
5589 * objc/objc-act.c (build_super_template) the 'class' field of
5590 'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
5591 (get_super_receiver): Likewise.
5593 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
5595 * reload1.c (check_eliminable_occurrences): Optimize the reset
5597 (eliminate_regs_in_insn): Likewise.
5599 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
5600 Josef Zlomek <zlomekj@suse.cz>
5602 * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
5603 at the beginning of function, call dwarf2out_var_location for
5604 NOTE_INSN_VAR_LOCATION note.
5605 (struct var_loc_node, struct var_loc_list_def, loclabel_num,
5606 decl_loc_table): New.
5607 (lookup_decl_loc): New function.
5608 (add_var_loc_to_decl): New function.
5609 (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
5610 only if can_use_fbreg.
5611 (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
5613 (loc_descriptor): Likewise. Process VAR_LOCATION.
5614 (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
5615 (loc_descriptor_from_tree): Call mem_loc_descriptor with
5616 can_use_fbreg == true.
5617 (add_location_or_const_value_attribute): Added parameter enum
5618 dwarf_attribute attr, generate attribute ATTR. Create the location list.
5619 (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
5620 (gen_formal_parameter_die): Call add_location_or_const_value_attribute
5621 with attr == DW_AT_location.
5622 (gen_subprogram_die): Generate the location list for DW_AT_frame_base
5623 if frame_base_decl is defined and has a location list.
5624 (gen_variable_die): Call add_location_or_const_value_attribute with
5625 attr == DW_AT_location.
5626 (dwarf2out_var_location): New function.
5627 (dwarf2out_begin_function): New function.
5628 (dwarf2out_init): Create decl_loc_table.
5630 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
5632 * loop.c (force_movables): Transitively increase the priorities of
5633 all insns forces by an insn, not just the first one.
5635 2004-02-06 Josef Zlomek <zlomekj@suse.cz>
5636 Daniel Berlin <dberlin@dberlin.org>
5638 Josef Zlomek <zlomekj@suse.cz>
5639 * Makefile.in (var-tracking.o): New.
5640 * common.opt (fvar-tracking): New.
5641 * flags.h (flag_var_tracking): New.
5642 * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
5643 * opts.c (common_handle_option): Add OPT_fvar_tracking.
5644 * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
5645 * rtl.c (note_insn_name): Likewise.
5646 * rtl.def (VAR_LOCATION): New.
5647 * rtl.h (NOTE_VAR_LOCATION): New.
5648 (NOTE_VAR_LOCATION_DECL): New.
5649 (NOTE_VAR_LOCATION_LOC): New.
5650 (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
5651 (variable_tracking_main): New exported function.
5652 * timevar.def (TV_VAR_TRACKING): New.
5653 * toplev.c (enum dump_file_index): Added DFI_vartrack.
5654 (dump_file): "vartrack" was added (-dV).
5655 (flag_var_tracking): New.
5656 (f_options): "var-tracking" was added.
5657 (rest_of_handle_variable_tracking): New function.
5658 (rest_of_compilation): Run variable tracking.
5659 (process_options): If user has not specified flag_var_tracking set it
5660 according to optimize, debug_info_level and debug_hooks.
5661 * tree.h (frame_base_decl): New.
5662 * var-tracking.c: New file.
5663 * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
5664 (ia64_override_options): Set flags to run variable tracking in machine
5665 dependent reorg instead of toplev.c.
5666 (ia64_reorg): Run variable tracking if wanted.
5667 * doc/invoke.texi: Mention variable tracking in -dV,
5668 add and -fvar-tracking.
5669 * doc/passes.texi: Added variable tracking pass.
5671 Daniel Berlin <dberlin@dberlin.org>
5672 * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
5673 * dbxout.c (dbx_debug_hooks): Likewise.
5674 (xcoff_debug): Likewise.
5675 * debug.c (do_nothing_debug_hooks): Likewise.
5676 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
5677 * dwarfout.c (dwarf_debug_hooks): Likewise.
5678 * sdbout.c (sdb_debug_hooks): Likewise.
5679 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5680 * final.c (final_scan_insn): Call var_location debug hook for each
5681 NOTE_INSN_VAR_LOCATION.
5683 2004-02-06 Jan Hubicka <jh@suse.cz>
5685 * flow.c (update_life_info): Allocate reg_deaths when called from
5687 (attempt_auto_inc): Update life ranges accordingly.
5689 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
5692 * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
5694 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
5696 * cfganal.c (flow_call_edges_add): Never split a libcall block.
5698 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
5700 * dwarf2out.c (output_loc_list): Don't use deltas if we have
5701 a separate line info table in use.
5702 Use the correct size for terminators.
5703 (output_die): Use offset, not delta.
5705 2004-02-06 H.J. Lu <hongjiu.lu@intel.com>
5707 * doc/invoke.texi: Remove the pni option from -mfpmath=.
5709 2004-02-06 Jan Hubicka <jh@suse.cz>
5711 * recog.c (split_all_insns): Do not update reg info.
5712 * regrename.c (regrename_optimize): Likewise.
5713 * toplev.c (rest_of_handle_reorder_blocks): Likewise.
5714 * flow.c (struct propagate_block_info): Add insn_num field.
5715 (reg_deaths): New array.
5716 (life_analysis): Free reg_deaths info.
5717 (allocate_reg_life_data): Allocate reg_deaths array.
5718 (propagate_one_insn): Use new array.
5719 (init_propagate_block): Initialize it.
5720 (free_propagate_block_info): Finish compuation of
5722 (attempt_auto_inc): Sanity check that REG_INFO is not
5723 computed at same time.
5724 (mark_used_regs): Update new array.
5726 * reg-stack.c (subst_stack_regs): Unshare clobbers before
5729 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
5731 * config/s390/s390.md (*extendsiqi2_short_displ): Change to
5732 *extendqisi2_short_displ.
5734 2004-02-06 Alan Modra <amodra@bigpond.net.au>
5736 * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
5737 * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
5738 (emit_library_call_value_1): Likewise pass nargs.
5739 * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
5740 * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
5741 * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
5742 parameter instead of scanning TYPE_ARGS_TYPES to count args.
5743 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
5745 * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
5746 (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
5747 (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
5748 * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
5749 INIT_CUMULATIVE_ARGS.
5750 * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
5751 * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
5752 config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
5753 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
5754 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
5755 config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
5756 config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
5757 config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
5758 config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
5759 config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
5760 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
5761 config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
5763 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
5765 * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
5768 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
5770 * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
5771 note containing (plus (reg) (const_int)), where reg is an
5772 eliminable reg, then perform the register elimination without
5773 depending on eliminate_regs().
5775 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
5777 * config/arc/arc.c (arc_return_in_memory): Check the return
5778 value of int_size_in_bytes against -1. Don't check
5780 * config/avr/avr.c (avr_return_in_memory): Check the return
5781 value of int_size_in_bytes against -1.
5782 * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
5783 * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
5785 * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
5786 * config/stormy16/stormy16.c (xstormy16_return_in_memory):
5789 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
5791 * config/frv/frv-protos.h: Remove the prototype for
5792 frv_setup_incoming_varargs.
5793 * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
5794 (frv_setup_incoming_varargs): Make it static.
5795 * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
5797 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
5799 * config/fr30/fr30-protos.h: Remove the prototype for
5800 fr30_setup_incoming_varargs.
5801 Update the prototypes for fr30_num_arg_regs and
5802 fr30_function_arg_partial_nregs.
5803 * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
5804 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
5805 (fr30_setup_incoming_varargs): Make it static.
5806 Add argument second_time. Don't do anything when second_time
5808 (fr30_num_arg_regs): Change the type of the first argument to
5810 (fr30_function_arg_partial_nregs): Change the type of the
5811 second argument to enum machine_mode.
5812 * config/fr30/fr30.h (STRUCT_VALUE): Remove.
5813 (SETUP_INCOMING_VARARGS): Remove.
5815 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
5817 * config/arc/arc-protos.h: Remove the prototype for
5818 arc_setup_incoming_varargs.
5819 * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
5820 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
5821 (arc_setup_incoming_varargs): Make it static.
5822 (arc_external_libcall): Likewise.
5823 * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
5824 Remove the commented-out definition of
5825 ASM_OUTPUT_EXTERNAL_LIBCALL.
5827 2004-02-05 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
5829 * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
5830 to $$(slibdir) in the installation commands.
5832 2004-02-05 David Edelsohn <edelsohn@gnu.org>
5834 * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
5835 with inner_regno, not regno.
5836 * rtlanal.c (refers_to_regno_p): Same.
5838 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
5840 * config.gcc: Remove i370 support.
5842 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
5844 * doc/install.texi: Update automake and autoconf version
5845 requirements. Note where to find gcj automake version.
5847 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
5849 * Makefile.in (generate-manpages): Move dependencies to ...
5851 * doc/makefile.texi: Document new targets.
5852 * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
5854 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
5857 Makefile.in (srcextra): Add a level of indirection to ...
5858 (gcc.srcextra): ... here.
5859 (po-generated): Delete.
5860 (po/$(PACKAGE).pot: Use srcextra instead of po-generated. Depend on
5862 (start.encap): Remove superfluous lang.srcextra dependency.
5863 objc/Make-lang.in (po-generated): Delete.
5865 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
5867 * config/ia64/ia64.c (REG_GP): Remove.
5869 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5871 * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
5873 2004-02-05 Devang Patel <dpatel@apple.com>
5875 * dwarf2out.c (force_type_die): Look up input type itself
5876 instead of root_type() of type.
5878 2004-02-05 Andreas Krebbel <krebbel1@de.ibm.com>
5880 * config/s390/s390.md ("*tmqidi_ext"): New insn.
5881 ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
5882 pre-reload splitters are transformed to post-reload
5883 define_insn_and_split patterns.
5884 ("*tmqisi_ext"): Renamed old "*tmqi_ext".
5886 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
5888 * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
5889 TARGET_PROMOTE_PROTOTYPES.
5891 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5895 2004-01-15 Geoffrey Keating <geoffk@apple.com>
5897 * c-typeck.c (constructor_asmspec): Delete.
5898 (struct initializer_stack): Delete field 'asmspec'.
5899 (start_init): Delete saving of asmspec.
5900 (finish_init): Don't update constructor_asmspec.
5901 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
5902 * stmt.c (expand_asm): Duplicate strings from tree.
5903 (expand_asm_operands): Likewise.
5904 * tree.c (tree_size): Update computation of size of STRING_CST.
5905 (make_node): Don't make STRING_CST nodes.
5906 (build_string): Allocate string with tree node.
5907 * tree.def (STRING_CST): Update comment.
5908 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
5909 (tree_string): Place contents of string in tree node.
5910 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
5913 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
5915 * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
5918 2004-02-05 Dorit Naishlos <dorit@il.ibm.com>
5920 * config/rs6000/altivec.md (*movv4si_internal): At least one
5921 operand must be altivec_register_operand.
5922 (*movv8hi_internal1): Likewise.
5923 (*movv16qi_internal1): Likewise.
5924 (*movv4sf_internal1): Likewise.
5926 2004-02-05 David Edelsohn <edelsohn@gnu.org>
5928 * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
5929 * configure: Regenerate.
5931 2004-02-05 Jonathan Wakely <redi@gcc.gnu.org>
5933 * doc/install.texi: Update description of --gxx-include-dir to
5934 give correct default value.
5936 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
5938 * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
5941 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
5943 * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
5946 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
5948 * emit-rtl.c: Update the comment about the file.
5950 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
5952 * sourcebuild.texi (Test Idioms): Update testcase naming
5955 2004-02-04 Per Bothner <per@bothner.com>
5957 Partially revert/redo 2003-10-01 change; fix -fworking-directory.
5958 * c-ppoutput.c (pp_dir_change): New function.
5959 * c-common.h (pp_dir_change): New declaration.
5960 * cpplib.h (struct cpp_options): Remove working_directory field.
5961 * cppinit.c (cpp_find_main_file, cpp_push_main_file): Merge back to
5962 (cpp_read_main_file): as before 10-01. Call _cpp_stack_file.
5963 Don't handle -fworking_directory here, but in c_common_post_options.
5964 (read_original_directory): Don't back up when done.
5965 Don't clear no-longer used working_directory flag.
5966 * cpplib.h: Update declarations to match.
5967 * c-lex.c (cb_dir_change): Move to c-opts.c.
5968 (init_c_lex): Don't set dir_change callback here, since we want
5969 to set it even if flag_preprocess_only.
5970 * c-opts.c (cb_dir_change): Function moved from c-lex.c.
5971 (c_common_post_options): Set dir_change callback.
5972 Call pp_dir_change if approporiate.
5973 (finish_options): Don't call cpp_find_main_file here. Hence remove
5974 unneeded parameter and result. Do LC_RENAME for <built-in>.
5975 (c_common_post_options): Call cpp_read_main_file here instead.
5976 (c_common_init): Update accordingly.
5977 (push_command_line_include): Don't cpp_push_main_file.
5978 Do LC_RENAME rather than LC_LEASE to get back to main file.
5979 Compared to pre-10-01 version, inline cpp_rename_to_main_file.
5980 (c_common_parse_file): Call cpp_read_main_file for subsequent main
5981 files, but call finish_options for all files.
5982 * c-opts.c (sanitize_cpp_opts): Don't set cpp_opts->working_directory.
5983 * fix-header.c (read_scan_file): Call cpp_read_main_file instead of
5984 cpp_find_main_file + cpp_push_main_file.
5985 * c-lex.c (fe_file_change): Don't set main_input_filename here.
5986 * opts.c (handle_options): Only set main_input_filename first time.
5988 2004-02-05 Ian Lance Taylor <ian@wasabisystems.com>
5990 * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
5992 2004-02-04 Geoffrey Keating <geoffk@apple.com>
5994 * reload.c (find_equiv_reg): When checking for register overlap,
5995 don't index hard_regno_nregs with a pseudo-reg.
5997 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5999 * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
6001 2004-02-04 David Edelsohn <edelsohn@gnu.org>
6003 * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
6004 against FIRST_PSEUDO_REGISTER.
6006 2004-02-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6008 * Makefile.in: Move target, host overrides after per-language
6011 * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
6012 (GNATLIBCFLAGS): Remove -g.
6014 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
6016 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
6017 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
6018 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
6019 config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
6020 config/pdp11/pdp11.c, config/rs6000/rs6000.c,
6021 config/sparc/sparc.c, config/vax/vax.c: Revert the
6022 replacements of "FALLTHRU" with "Fall through" done in the
6025 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
6027 * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
6028 config/arm/arm.c, config/arm/arm.md,
6029 config/cris/cris-protos.h, config/fr30/fr30.c,
6030 config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
6031 config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
6032 config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
6033 config/ip2k/ip2k.md, config/ip2k/libgcc.S,
6034 config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
6035 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
6036 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
6037 config/ns32k/netbsd.h, config/ns32k/ns32k.c,
6038 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
6039 config/rs6000/darwin-ldouble.c, config/s390/s390.h,
6040 config/s390/s390.md, config/sparc/netbsd-elf.h,
6041 config/sparc/openbsd.h, config/sparc/sparc.c,
6042 config/xtensa/lib2funcs.S: Fix comment formatting.
6044 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
6046 * config/alpha/alpha.c, config/arc/arc.c,
6047 config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
6048 config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
6049 config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
6050 config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
6051 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
6052 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
6053 config/iq2000/iq2000.c, config/m32r/m32r.c,
6054 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
6055 config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
6056 config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
6057 config/rs6000/rs6000.h, config/sparc/sparc.c,
6058 config/vax/vax.c: Fix comment typos. Follow spelling
6061 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
6063 * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
6064 caller-save.c, df.h, genconfig.c, global.c, lcm.c,
6065 ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
6066 sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
6067 config/arm/fpa.md, config/arm/iwmmxt.md,
6068 config/arm/netbsd-elf.h, config/arm/netbsd.h,
6069 config/m68hc11/m68hc11.md, config/mips/iris5.h,
6070 config/mn10300/mn10300.md, config/rs6000/altivec.md,
6071 config/sparc/netbsd-elf.h: Update copyright.
6073 2004-02-04 Eric Botcazou <ebotcazou@libertysurf.fr>
6075 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
6076 for all modes whose size is greater than 8 bytes if ARCH32.
6077 (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
6078 by reference if ARCH32.
6080 2004-02-04 Aldy Hernandez <aldyh@redhat.com>
6082 * cgraphunit.c (cgraph_postorder): Fix typo in comment.
6084 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6086 * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
6087 to before adddi3 insn patterns.
6088 ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
6089 "reload_insi"): Move to before addsi3 insn patterns.
6091 2004-02-04 Mark Mitchell <mark@codesourcery.com>
6093 * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
6094 parameter. Use it instead of current_function_is_thunk.
6095 * function.h (struct function): Update documentation for is_thunk.
6096 * tree.h (CALL_FROM_THUNK_P): New macro.
6097 * config/alpha/alpha.c (alpha_sa_mask): Do not check
6098 no_new_pseudos when testing current_function_is_thunk.
6099 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
6101 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
6103 * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
6104 TARGET_SETUP_INCOMING_VARARGS.
6106 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
6108 * emit-rtl.c (gen_rtx): Remove.
6109 * genattrtab.c: Don't mention gen_rtx in a comment.
6110 * rtl.h: Remove the prototype for gen_rtx.
6111 * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
6113 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
6115 * config/arc/arc.h, config/fr30/fr30.h
6116 (SETUP_INCOMING_VARARGS): Remove the target-independent
6118 * doc/tm.texi: Don't mention deprecated target macros.
6120 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
6122 * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
6123 target-independent comment.
6125 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
6127 * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
6128 mention deprecated target macros.
6130 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
6132 * config.gcc: Remove obsolete ports and configurations.
6133 * config/linux-aout.h, config/netware.h,
6134 config/t-linux-gnulibc1, config/d30v/abi,
6135 config/d30v/d30v-protos.h, config/d30v/d30v.c,
6136 config/d30v/d30v.h, config/d30v/d30v.md,
6137 config/d30v/libgcc1.asm, config/d30v/t-d30v,
6138 config/dsp16xx/dsp16xx-modes.def,
6139 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
6140 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
6141 config/i370/README, config/i370/i370-c.c,
6142 config/i370/i370-protos.h, config/i370/i370.c,
6143 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
6144 config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
6145 config/i386/freebsd-aout.h, config/i386/linux-aout.h,
6146 config/i386/moss.h, config/i386/netware.h,
6147 config/i386/svr3.ifile, config/i386/svr3dbx.h,
6148 config/i386/svr3gas.h, config/i386/svr3z.ifile,
6149 config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
6150 config/i960/i960-c.c, config/i960/i960-coff.h,
6151 config/i960/i960-modes.def, config/i960/i960-protos.h,
6152 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
6153 config/i960/rtems.h, config/i960/t-960bare,
6154 config/m68k/hp310.h, config/m68k/hp320.h,
6155 config/m68k/hp320base.h, config/m68k/m68kv4.h,
6156 config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
6158 * doc/extend.texi, doc/install.texi, doc/invoke.texi,
6159 doc/md.texi: Remove mentions of obsolete ports.
6161 2004-02-04 Jan Hubicka <jh@suse.cz>
6163 * alias.c (find_base_term, get_addr): Do not dereference NULL
6164 pointer when all VALUE's locations has been invalidated.
6165 (rtx_equal_for_memref_p): Simplify checking of VALUEs.
6167 2004-02-03 Wolfgang Bangerth <bangerth@dealii.org>
6169 * doc/invoke.texi (x86 options): Fix spelling/wording.
6171 2004-02-03 Richard Sandiford <rsandifo@redhat.com>
6173 * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
6174 put the original string in a comment.
6175 * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
6176 * config/mips/mips.c (mips_output_ascii): Likewise.
6177 * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
6179 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
6181 * system.h (GIV_SORT_CRITERION): Poison.
6182 * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
6183 * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
6185 2004-02-03 Roger Sayle <roger@eyesopen.com>
6188 * expr.c (expand_expr_real) <MULT_EXPR>: When performing widening
6189 multiplies with a multiplication of the wrong signedness, its the
6190 signedness of the multiplication that we've performed that needs to
6191 be passed to expand_mult_highpart_adjust. Avoid emitting a nop-move
6192 if expand_mult_highpart_adjust places the result in target.
6194 2004-02-03 Richard Henderson <rth@redhat.com>
6196 * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
6198 2004-02-03 J"orn Rennecke <joern.rennecke@superh.com>
6200 * config.gcc (sh[234]l): Use little endian fragments.
6202 2004-02-03 Paul Koning <pkoning@equallogic.com>
6204 * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
6205 * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
6206 * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
6207 encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
6208 floating point format.
6209 (pdp11_f_format, pdp11_d_format): New real_format descriptors for
6210 the above functions.
6211 (output_move_quad): Output float values in correct target format.
6212 (legitimate_const_double_p): New function.
6213 * config/pdp11/pdp11.h: Fix typos.
6214 (FLOAT_WORDS_BIG_ENDIAN): Add definition.
6215 (TARGET_FLOAT_FORMAT): Ditto.
6216 (pdp11_f_format, pdp11_d_format): Add external declarations.
6217 (MAX_REGS_PER_ADDRESS): Corrected.
6218 (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
6219 (PRINT_OPERAND): Output float literals in target format.
6221 2004-02-03 Mark Mitchell <mark@codesourcery.com>
6224 * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
6226 (access_public_node): Redefine.
6227 (access_protected_node): Likewise.
6228 (access_private_node): Likewise.
6229 * tree.c (build_common_tree_nodes): Create access_public_node,
6230 access_protected_node, and access_private_node.
6232 2004-02-03 Steve Ellcey <sje@cup.hp.com>
6234 * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
6235 (MASK_INLINE_INT_DIV_THR): Ditto.
6236 (MASK_INLINE_SQRT_LAT): Ditto.
6237 (MASK_INLINE_SQRT_THR): Ditto.
6238 (MASK_DWARF2_ASM): Ditto.
6239 (MASK_EARLY_STOP_BITS): Ditto.
6241 2004-02-02 Paul Brook <paul@codesourcery.com>
6243 Merge from csl-arm-branch.
6245 2004-01-30 Paul Brook <paul@codesourcery.com>
6247 * aof.h (REGISTER_NAMES): Add vfp reg names
6248 (ADDITIONAL_REGISTER_NAMES): Ditto.
6249 * aout.h (REGISTER_NAMES): Ditto.
6250 (ADDITIONAL_REGISTER_NAMES): Ditto.
6251 * arm-protos.h: Update/Add Prototypes.
6252 * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
6253 Only allow 0.0 for VFP.
6254 (fp_consts_inited): Rename from fpa_consts_inited. Update users.
6255 (values_fp): Rename from values_fpa. Update Users.
6256 (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
6257 Update users. Only check valid constants for this hardware.
6258 (arm_float_rhs_operand): Rename from fpa_rhs_operand. Update Users.
6259 Only allow consts for FPA.
6260 (arm_float_add_operand): Rename from fpa_add_operand. Update users.
6261 Only allow consts for FPA.
6262 (use_return_insn): Check for saved VFP regs.
6263 (arm_legitimate_address_p): Handle VFP DFmode addressing.
6264 (arm_legitimize_address): Ditto.
6265 (arm_general_register_operand): New function.
6266 (vfp_mem_operand): New function.
6267 (vfp_compare_operand): New function.
6268 (vfp_secondary_reload_class): New function.
6269 (arm_float_compare_operand): New function.
6270 (vfp_print_multi): New function.
6271 (vfp_output_fstmx): New function.
6272 (vfp_emit_fstm): New function.
6273 (arm_output_epilogue): Output VPF reg restore code.
6274 (arm_expand_prologue): Output VFP reg save code.
6275 (arm_print_operand): Add 'P'.
6276 (arm_hard_regno_mode_ok): Return modes for VFP regs.
6277 (arm_regno_class): Return classes for VFP regs.
6278 (arm_compute_initial_elimination_offset): Include space for VFP regs.
6279 (arm_get_frame_size): Ditto.
6280 * arm.h (FIXED_REGISTERS): Add VFP regs.
6281 (CALL_USED_REGISTERS): Ditto.
6282 (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
6283 (FIRST_VFP_REGNUM): Define.
6284 (LAST_VFP_REGNUM): Define.
6285 (IS_VFP_REGNUM): Define.
6286 (FIRST_PSEUDO_REGISTER): Include VFP regs.
6287 (HARD_REGNO_NREGS): Handle VFP regs.
6288 (REG_ALLOC_ORDER): Add VFP regs.
6289 (enum reg_class): Add VFP_REGS.
6290 (REG_CLASS_NAMES): Ditto.
6291 (REG_CLASS_CONTENTS): Ditto.
6292 (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
6293 (REG_CLASS_FROM_LETTER): Add 'w'.
6294 (EXTRA_CONSTRAINT_ARM): Add 'U'.
6295 (EXTRA_MEMORY_CONSTRAINT): Define.
6296 (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
6297 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
6298 (REGISTER_MOVE_COST): Ditto.
6299 (PREDICATE_CODES): Add arm_general_register_operand,
6300 arm_float_compare_operand and vfp_compare_operand.
6301 * arm.md (various): Rename as above.
6302 (divsf3): Enable when TARGET_VFP.
6307 (arm_movdi): Disable when TARGET_VFP.
6308 (arm_movsi_insn): Ditto.
6309 (movsi): Only split with general regs.
6310 (cmpsf): Use arm_float_compare_operand.
6311 (push_fp_multi): Restrict to TARGET_FPA.
6314 * fpa.md (various): Rename as above.
6315 * doc/md.texi: Document ARM w and U constraints.
6317 2004-01-15 Paul Brook <paul@codesourcery.com>
6319 * config.gcc: Add with_fpu. Allow with-float=softfp.
6320 * config/arm/arm.c (arm_override_options): Rename *-s to *s.
6321 Break out of loop when we find a float-abi. Fix typo.
6322 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
6324 * doc/install.texi: Document --with-fpu.
6326 2003-01-14 Paul Brook <paul@codesourcery.com>
6328 * config.gcc (with_arch): Add armv6.
6329 * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
6330 * config/arm/arm.c (arm_overrride_options): Ditto.
6332 2004-01-08 Richard Earnshaw <rearnsha@arm.com>
6334 * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
6335 (FL_ARCH6): Renamed from FL_ARCH6J.
6336 (arm_arch3m): Renamed from arm_fast_multiply.
6337 (arm_arch6): Renamed from arm_arch6j.
6338 * arm.h: Update all uses of above.
6339 * arm-cores.def: Likewise.
6342 * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
6343 not arm6j. Add entry for arch armv6.
6345 2004-01-07 Richard Earnshaw <rearnsha@arm.com>
6347 * arm.c (arm_emit_extendsi): Delete.
6348 * arm-protos.h (arm_emit_extendsi): Delete.
6349 * arm.md (zero_extendhisi2): Also handle zero-extension of
6351 (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
6352 (thumb_zero_extendhisi2): Only match if not v6.
6353 (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
6354 (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
6355 (thumb_extendqisi2): Likewise.
6356 (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
6357 (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
6358 (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
6359 (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
6360 (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
6361 (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
6362 (arm_zero_extendhisi2addsi): Remove subreg. Add attributes.
6363 (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
6364 (arm_extendqisi2addsi): Likewise.
6366 2003-12-31 Mark Mitchell <mark@codesourcery.com>
6369 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
6370 + REG addressing modes.
6372 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
6373 + REG addressing modes.
6375 2003-12-30 Mark Mitchell <mark@codesourcery.com>
6377 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
6380 2003-30-12 Paul Brook <paul@codesourcery.com>
6382 * longlong.h: protect arm inlines with !defined (__thumb__)
6384 2003-30-12 Paul Brook <paul@codesourcery.com>
6386 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
6388 2003-12-30 Nathan Sidwell <nathan@codesourcery.com>
6390 * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
6393 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
6395 * builtins.c (expand_builtin_apply_args_1): Add pretend args size
6396 to the virtual incoming args pointer for downward stacks.
6398 2003-12-29 Paul Brook <paul@codesourcery.com>
6400 * config/arm/arm-cores.def: Add cost function.
6401 * config/arm/arm.c (arm_*_rtx_costs): New functions.
6402 (arm_rtx_costs): Remove
6403 (struct processors): Add rtx_costs field.
6404 (all_cores, all_architectures): Ditto.
6405 (arm_override_options): Set targetm.rtx_costs.
6406 (thumb_rtx_costs): New function.
6407 (arm_rtx_costs_1): Remove cases handled elsewhere.
6408 * config/arm/arm.h (processor_type): Add COSTS parameter.
6410 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
6412 * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
6413 (arm926ejs.md): Include it.
6414 * config/arm/arm926ejs.md: New pipeline description.
6416 2003-12-24 Paul Brook <paul@codesourcery.com>
6418 * config/arm/arm.c (arm_arch6j): New variable.
6419 (arm_override_options): Set it.
6420 (arm_emit_extendsi): New function.
6421 * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
6422 * config/arm/arm.h (arm_arch6j): Declare.
6423 * config/arm/arm.md: Add sign/zero extend insns.
6425 2003-12-23 Paul Brook <paul@codesourcery.com>
6427 * config/arm/arm.c (all_architectures): Add armv6.
6428 * doc/invoke.texi: Document it.
6430 2003-12-19 Paul Brook <paul@codesourcery.com>
6432 * config/arm/arm.md: Add load1 and load_byte "type" attrs. Modify
6433 insn patterns to match.
6434 * config/arm/arm-generic.md: Ditto.
6435 * config/arm/cirrus.md: Ditto.
6436 * config/arm/fpa.md: Ditto.
6437 * config/amm/iwmmxt.md: Ditto.
6438 * config/arm/arm1026ejs.md: Ditto.
6439 * config/arm/arm1135jfs.md: Ditto. Add insn_reservation and bypasses
6442 2003-12-18 Nathan Sidwell <nathan@codesourcery.com>
6444 * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
6445 * config/arm/arm.c (arm_adjust_cost): Check shift cost for
6446 TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
6447 (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
6448 arm_no_early_mul_dep): Correctly deal with conditional execution,
6449 parallels and single shift operations.
6450 (arm_no_early_alu_shift_value_dep): Define.
6451 * arm.md (attr type): Replace 'normal' with 'alu',
6452 'alu_shift' and 'alu_shift_reg'.
6453 (attr core_cycles): Adjust.
6454 (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
6455 *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
6456 *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
6457 *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
6458 *arith_shiftsi_compare0_scratch, *sub_shiftsi,
6459 *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
6460 *if_shift_move, *if_move_shift, *if_shift_shift): Set type
6461 attribute appropriately.
6462 * config/arm/arm1026ejs.md (alu_op): Adjust.
6463 (alu_shift_op, alu_shift_reg_op): New.
6464 * config/arm/arm1136.md: Add better bypasses for early
6465 registers. Remove load[234] and store[234] bypasses.
6466 (11_alu_op): Adjust.
6467 (11_alu_shift_op, 11_alu_shift_reg_op): New.
6469 2003-12-15 Nathan Sidwell <nathan@codesourcery.com>
6471 * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
6472 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
6473 * config/arm/arm.c (arm_no_early_store_addr_dep,
6474 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
6475 * config/arm/arm1026ejs.md: Add load-store bypass.
6476 * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
6477 Add bypasses between instructions.
6479 2003-12-10 Paul Brook <paul@codesourcery.com>
6481 * config/arm/arm.c (arm_fpu_model): New variable.
6482 (arm_fload_abi): New variable.
6483 (target_fpe_name): Rename from target_fp_name.
6484 (target_fpu_name): New variable.
6485 (arm_is_cirrus): Remove.
6486 (fpu_desc): New struct.
6488 (pf_model_for_fpu): Define.
6489 (all_loat_abis): Define.
6490 (arm_override_options): Set fp arch flags based on -mfpu=
6492 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
6493 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
6494 (*): Use new TARGET_* flags.
6495 * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
6496 (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
6497 (TARGET_SOFT_FLOAT): Ditto.
6498 (TARGET_SOFT_FLOAT_ABI): New.
6499 (TARGET_MAVERICK): Rename from TARGET_CIRRUS. No longer implies
6501 (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
6502 (TARGET_OPTIONS): Add -mfpu=.
6503 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
6504 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
6505 (arm_pf_model): Define.
6506 (arm_float_abi_type): Define.
6507 (fputype): Add FPUTYPE_VFP. Change SOFT_FPA->NONE
6508 * config/arm/arm.md: Use new TARGET_* flags.
6509 * config/arm/cirrus.md: Ditto.
6510 * config/arm/fpa.md: Ditto.
6511 * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
6512 * config/arm/semi.h (ASM_SPEC): Ditto.
6513 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
6514 (FPUTYPE_DEFAULT): Set to VFP.
6515 * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
6517 2003-11-22 Phil Edwards <phil@codesourcery.com>
6520 * config/arm/arm.c (arm_output_mi_thunk): In Thumb mode, use
6521 'bx' instead of 'b' to avoid branch range restrictions. Output
6522 the thunk immediately before the thunked-to function.
6523 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Do not emit
6524 .thumb_func if a thunk is being generated. Emit .code 16 along
6525 with .thumb_func if a thunk is not being generated.
6527 2003-11-15 Nicolas Pitre <nico@cam.org>
6529 * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
6530 arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
6531 * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
6532 (lshrdi3_iwmmxt): Renamed from lshrdi3.
6533 * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
6535 2003-11-12 Steve Woodford <scw@wasabisystems.com>
6536 Ian Lance Taylor <ian@wasabisystems.com>
6538 * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
6539 code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
6541 2003-11-05 Phil Edwards <phil@codesourcery.com>
6543 * config/arm/arm.md (insn): Add new V6 instruction names.
6544 (generic_sched): New attr.
6545 * config/arm/arm-generic.md: Use generic_sched here.
6546 * config/arm/arm1026ejs.md: Do not model fetch/issue/decode
6547 stages of pipeline. Adjust latency counts accordingly.
6548 * config/arm/arm1136jfs.md: New file.
6550 2003-10-28 Mark Mitchell <mark@codesourcery.com>
6552 * config/arm/arm.h (processor_type): New enumeration type.
6553 (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
6554 ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
6555 (CPP_CPU_ARCH_SPEC): Likewise.
6556 * config/arm/arm.c (arm_tune): New variable.
6557 (all_cores): Use cores.def.
6558 (all_architectures): Add representative processor.
6559 (arm_override_options): Restructure way in which tuning
6560 information is deduced.
6561 * arm.md: Update "insn" and "type" attributes throughout.
6562 (insn): New attribute.
6563 (type): Compute "mult" from "insn" attribute. Add load2,
6564 load3, load4 alternatives.
6565 (arm automaton): Move to arm-generic.md.
6566 * config/arm/arm-cores.def: New file.
6567 * config/arm/arm-generic.md: Likewise.
6568 * config/arm/arm1026ejs.md: Likewise.
6570 2004-02-03 Eric Botcazou <ebotcazou@libertysurf.fr>
6572 * doc/invoke.texi (SPARC options): Remove -mflat and
6573 all -mxxx (xxx:chip) options.
6574 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
6575 * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
6576 * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
6577 * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
6578 * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
6579 * config/sparc/sparc.c: Likewise.
6580 (sparc_output_function_prologue): Remove TARGET_FLAT handling.
6581 (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
6582 (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
6583 (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
6584 (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
6585 (sparc_flat_must_save_register_p): Likewise.
6586 (sparc_flat_compute_frame_size): Likewise.
6587 (sparc_flat_save_restore): Likewise.
6588 (sparc_flat_function_prologue): Likewise.
6589 (sparc_flat_function_epilogue): Likewise.
6590 (sparc_flat_epilogue_delay_slots): Likewise.
6591 (sparc_flat_eligible_for_epilogue_delay): Likewise.
6592 (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
6593 * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
6594 (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
6595 (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
6596 (CONDITIONAL_REGISTER_USAGE): Likewise.
6597 (FRAME_POINTER_REQUIRED): Likewise.
6598 (INITIAL_ELIMINATION_OFFSET): Likewise.
6599 (BASE_RETURN_VALUE_REG): Likewise.
6600 (BASE_OUTGOING_VALUE_REG): Likewise.
6601 (BASE_PASSING_ARG_REG): Likewise.
6602 (BASE_INCOMING_ARG_REG): Likewise.
6603 (INCOMING_REGNO): Likewise.
6604 (OUTGOING_REGNO): Likewise.
6605 (LOCAL_REGNO): Likewise.
6606 (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
6607 (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
6608 (EPILOGUE_USES): Likewise.
6609 * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
6610 ("flat" attribute): Delete.
6611 (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
6613 (call followed by jump define_peephole's): Delete.
6614 (exception_receiver): Likewise.
6615 (builtin_setjmp_receiver): Likewise.
6616 * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
6618 2004-02-03 Paolo Bonzini <bonzini@gnu.org>
6622 * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
6624 * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
6625 * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
6626 Include langhooks.h. Replace c_common_truthvalue_conversion
6627 with the truthvalue_conversion language hook throughout.
6628 (expr_no_commas): Call default_conversion before save_expr
6629 for the first term of the production 'x ? : y'.
6630 * c-common.c (c_common_truthvalue_conversion): Remove
6631 obsolete block. Invoke recursively the hook instead
6633 * c-convert.c (convert): handle ERROR_MARK_NODE.
6634 * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
6635 returned by the truthvalue_conversion language hook.
6636 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
6637 c_objc_common_truthvalue_conversion.
6638 * c-objc-common.c (c_objc_common_truthvalue_conversion):
6640 * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
6641 * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
6642 c_objc_common_truthvalue_conversion.
6644 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
6646 * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
6648 (LIBCALL_VALUE): Likewise.
6649 * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
6650 gen_rtx_CC0 instead of gen_rtx.
6651 * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
6652 gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
6653 (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
6655 (m68hc11_emit_logical): Likewise.
6657 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
6659 * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
6660 config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
6661 config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
6662 config/m32r/m32r.md, config/m68hc11/m68hc11.c,
6663 config/mips/mips.md, config/mmix/mmix.c,
6664 config/mn10300/mn10300.c, config/mn10300/mn10300.md,
6665 config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
6666 config/rs6000/altivec.md, config/s390/s390.c,
6667 config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
6668 config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
6669 Use const0_rtx instead of GEN_INT (0). Do the same for other
6670 constants that are readily available.
6672 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
6674 * doloop.c, optabs.c, regmove.c, sched-deps.c,
6675 config/i386/i386.c, config/i386/i386.md: Use const0_rtx
6676 instead of GEN_INT (0). Do the same for other constants that
6677 are readily available.
6679 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
6681 * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
6683 * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
6685 * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
6687 * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
6688 gen_rtx_ASHIFT instead of gen_rtx.
6689 (udivmodqi4): Likewise.
6691 2004-02-02 Richard Henderson <rth@redhat.com>
6694 * expr.c (store_expr): Use force_operand before emit_move_insn.
6696 2004-02-02 Jeff Law <law@redhat.com>
6697 Roger Sayle <roger@eyesopen.com>
6699 * tree.c (commutative_tree_code, associative_tree_code): New
6701 (iterative_hash_expr): Use commutative_tree_code.
6702 * tree.h (commutative_tree_code, associative_tree_code): Declare.
6703 * fold-const.c (operand_equal_p): Use commutative_tree_code
6704 rather than inlining the commutativity check.
6707 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
6709 * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
6710 * config/frv/frv-protos.h: Remove the prototype for
6711 frv_function_arg_keep_as_reference.
6712 * config/frv/frv.c (frv_function_arg_keep_as_reference):
6714 * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
6715 * config/stormy16/stormy16.h: Remove the commented-out
6716 definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
6718 2004-02-03 Alan Modra <amodra@bigpond.net.au>
6721 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
6724 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
6726 * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
6729 2004-02-02 Eric Christopher <echristo@redhat.com>
6730 Zack Weinberg <zack@codesourcery.com>
6732 * c-opts.c (c_common_handle_option): Add -finput-charset.
6734 * cppcharset.c (one_iso88591_to_utf8): Remove.
6735 (convert_iso88591_utf8): Ditto.
6736 (conversion_tab): Remove 8859-1 converter.
6737 (_cpp_input_to_utf8): Remove.
6738 (_cpp_init_iconv_buffer): Ditto.
6739 (_cpp_close_iconv_buffer): Ditto.
6740 (_cpp_convert_input): New function.
6741 (_cpp_default_encoding): Ditto.
6742 * cpphash.h: Add/remove prototypes for above.
6743 * cppfiles.c (read_file_guts): Use _cpp_convert_input.
6744 * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
6745 for narrow execution and input character sets.
6746 * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
6747 * doc/cppopts.texi: Document -finput-charset.
6749 2004-02-02 David Edelsohn <edelsohn@gnu.org>
6751 * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
6752 against FIRST_PSEUDO_REGISTER.
6754 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
6756 * doc/invoke.texi (SPARC options): Further improve.
6758 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
6760 * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
6761 config/h8300/h8300.c, config/ip2k/ip2k.md,
6762 config/iq2000/iq2000.c, config/mips/mips.c,
6763 config/rs6000/rs6000.c, config/rs6000/rs6000.md,
6764 config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
6765 config/v850/v850.md: Fix indentation.
6767 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
6769 * config/sparc/sparc.c (function_arg_slotno): Align TImode
6770 arguments on a 16-byte boundary in the parameter array if ARCH64.
6771 Split handling of TFmode.
6773 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
6775 * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
6776 Don't test CONSTANT_P (x).
6777 (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
6778 ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
6781 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
6783 * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
6785 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
6787 * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
6788 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
6789 config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
6790 config/iq2000/iq2000.c, config/m32r/m32r.c,
6791 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
6792 config/mn10300/mn10300.c, config/rs6000/rs6000.c,
6793 config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
6794 config/stormy16/stormy16.c, config/v850/v850.md,
6795 config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
6797 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
6799 * config/mcore/mcore.c (block_move_sequence): Replace
6800 gen_rtx_CONST_INT with GEN_INT.
6802 2004-02-02 Jan Hubicka <jh@suse.cz>
6804 * alias.c (record_set): Use hard_regno_nregs.
6805 * bt-load.c (find_btr_reference, note_btr_set): Likewise.
6806 * builtins.c (apply_args_size): Likewise.
6807 * caller-save.c (setup_save_areas, save_call_clobbered_regs,
6808 mark_set_regs, add_stored_regs, mark_referenced_regs,
6809 insert_restore, insert_save, insert_one_insn): Likewise.
6810 * cfgcleanup.c: Include regs.h
6811 (mark_effect, mentions_nonequal_regs): Likewise.
6812 * cfgrtl.c (mark_killed_regs): Likewise
6813 * combine.c (update_table_tick, record_value_for_reg,
6814 record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
6815 reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
6816 reg_bitfield_target_p, distribute_notes): Likewise.
6817 * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
6818 exp_equiv_p, cse_insn): Likewise.
6819 * cselib.c (cselib_lookup): Likewise.
6820 (cselib_invalidate_regno, cselib_record_set): Likewise.
6821 * df.c (df_ref_record): Likewise.
6822 * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
6824 * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
6825 count_or_remove_death_notes_bb): Likewise.
6826 * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
6827 * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
6828 mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
6829 * integrate.c (mark_stores): Likewise.
6830 * jump.c (delete_prior_computation): Likewise.
6831 * lcm.c (reg_dies, reg_becomes_live): Likewise.
6832 * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
6833 * loop.c (LOOP_REGNO_NREGS): Likewise.
6834 * postreload.c (reload_combine, reload_combine_note_store,
6835 reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
6836 * ra-colorize.c (combine, color_usable_p, get_free_reg,
6837 calculate_dont_begin, calculate_dont_begin, colorize_one_web,
6838 try_recolor_web, insert_coalesced_conflicts, check_colors,
6839 break_precolored_alias): Likewise.
6840 * ra-debug.c: Include regs.h
6841 (ra_print_rtx_object): Likewise.
6842 * ra-rewrite (choose_spill_colors): Likewise.
6843 (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
6844 * ra.c (init_ra): Likewise.
6845 * recog.c (reg_fits_class_p, peep2_reg_dead_p,
6846 peep2_find_free_register): Likewise.
6847 * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
6848 * regclass.c (hard_regno_nregs): New array.
6849 (init_reg_modes_once): Initialize it.
6850 (choose_hard_reg_mode): Use it.
6851 (record_reg_classes): Likewise.
6852 * regmove.c (mark_flags_life_zones): Likewise.
6853 * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
6854 scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
6855 copy_value, maybe_mode_change, find_oldest_value_reg,
6856 copyprop_hardreg_forward_1):
6857 * regs.h (hard_regno_nregs): Declare.
6858 * realod.c (reload_inner_reg_of_subreg): Use it.
6859 (push_reload, combine_reloads, find_dummy_reload,
6860 hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
6861 refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
6862 reload_adjust_reg_for_mode): Likewise.
6863 * reload1.c (compute_use_by_pseudos, count_pseudo,
6864 count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
6865 spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
6866 clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
6867 allocate_reload_reg, choose_reload_regs, emit_reload_insns,
6868 delete_output_reload): Likewise.
6869 * resource.c (update_live_status, mark_referenced_resources,
6870 mark_set_resources, mark_target_live_regs): Likewise.
6871 * rtlanal.c: Include regs.h
6872 (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
6873 dead_or_set_regno_p, find_regno_note, find_reg_fusage,
6874 subreg_regno_offset, subreg_offset_representable_p,
6875 hoist_test_store): Likewise.
6876 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
6877 * sched-rgn.c (check_live_1, update_live_1): Likewise.
6878 * stmt.c: Include regs.h
6879 (decl_conflicts_with_clobbers_p): Likewise.
6880 * varasm.c (make_decl_rtl): Likewise.
6881 * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
6883 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
6885 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
6886 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
6887 config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
6888 config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
6889 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
6890 config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
6891 config/iq2000/iq2000.h, config/m32r/m32r.c,
6892 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
6893 config/m68hc11/m68hc11.md, config/m68k/m68k.md,
6894 config/mcore/mcore.c, config/mcore/mcore.h,
6895 config/mcore/mcore.md, config/mips/mips.c,
6896 config/ns32k/ns32k.h, config/ns32k/ns32k.md,
6897 config/rs6000/rs6000.c, config/s390/s390.c,
6898 config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
6899 config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
6900 "gen_rtx (FOO, " with "gen_rtx_FOO (".
6902 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
6904 * config/h8300/h8300.md (two peephole2's): New.
6906 2004-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
6908 * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
6909 (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
6910 (ASM_CPU_SPEC): Likewise
6911 * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
6912 (ASM_CPU_SPEC): Remove -mcpu=v8plus. Handle -mcpu=ultrasparc3.
6914 2004-02-01 Roger Sayle <roger@eyesopen.com>
6916 * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
6917 isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
6918 (expand_builtin): Always call expand_builtin_pow.
6920 2004-02-01 Roger Sayle <roger@eyesopen.com>
6922 * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
6923 BUILT_IN_SIGNBITL): New GCC builtins.
6924 * builtins.c (expand_builtin_signbit): New function to RTL expand
6925 calls to signbit, signbitf and signbitl as inline intrinsics.
6926 (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
6927 (fold_builtin_signbit): New function to perform constant folding
6928 of signbit, signbitf and signbitl.
6929 (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
6931 * doc/extend.texi: Document new signbit{,f,l} builtins.
6933 2004-02-01 Richard Sandiford <rsandifo@redhat.com>
6935 * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
6937 2004-02-01 Chris Demetriou <cgd@broadcom.com>
6939 * config/mips/mips.h (PREDICATE_CODES): Remove entries for
6940 "mips_const_double_ok" and "simple_memory_operand", which were
6941 removed from the MIPS port with the mips-3_4-rewrite branch merge.
6942 * config/mips/mips.c (mips16_lay_out_constants): Update comment
6943 for removal of simple_memory_operand.
6945 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
6947 * config/c4x/c4x.md: Use GEN_INT instead of
6948 gen_rtx (CONST_INT, ...).
6950 2004-01-31 Richard Henderson <rth@redhat.com>
6952 * varasm.c (output_constant_pool): Don't zap the pool.
6954 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
6956 * genrecog.c (decision_type): Add DT_const_int.
6957 (write_cond) [DT_const_int]: Print a comparison against small
6959 (write_node): Simplify comparisons against small constants
6960 before printing tests.
6962 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
6964 * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
6965 instead of gen_rtx_CONST_INT.
6967 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
6969 * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
6970 instead of gen_rtx_CONST_INT.
6972 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
6974 * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
6975 hook_bool_CUMULATIVE_ARGS_false.
6976 * targhooks.c (default_strict_argument_naming): Rename to
6977 hook_bool_CUMULATIVE_ARGS_false.
6978 * targhooks.h: Update the prototype for
6979 default_strict_argument_naming.
6981 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
6983 * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
6984 * config/sh/sh.h: Likewise.
6985 * config/sh/sh.md: Likewise.
6987 2004-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
6989 * doc/invoke.texi (SPARC options): Restructure and update.
6991 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
6993 * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
6994 STRICT_ARGUMENT_NAMING): Poison.
6995 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
6996 hook_bool_tree_false.
6997 * targhooks.c (default_promote_function_args): Remove.
6998 (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
6999 Don't check incoming.
7000 (default_strict_argument_naming): Don't use
7001 STRICT_ARGUMENT_NAMING.
7002 * targhooks.h: Remove the prototype for
7003 default_promote_function_args.
7005 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
7007 * config/i386/i386-protos.h: Remove the prototype for
7008 ix86_setup_incoming_varargs.
7009 * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
7010 (ix86_setup_incoming_varargs): Make it static.
7011 * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
7013 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
7015 * alloc-pool.c: Fix comment typos.
7016 * builtin-types.def: Likewise.
7017 * builtins.def: Likewise.
7018 * c-pretty-print.c: Likewise.
7020 * reload1.c: Likewise.
7022 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
7024 * doc/invoke.texi: Follow spelling conventions.
7025 * doc/tm.texi: Likewise.
7027 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
7029 * doc/install.texi: Fix typos.
7030 * doc/invoke.texi: Likewise.
7032 2004-01-31 Ulrich Weigand <uweigand@de.ibm.com>
7034 * config/s390/s390.c (s390_decompose_address): Do not treat virtual
7035 registers as pointers.
7036 * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
7038 2004-01-31 Paolo Bonzini <bonzini@gnu.org>
7040 * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
7041 and restore it to gen_lowpart_general on exit.
7042 (gen_lowpart_for_combine): Adjust all callers to go through
7044 * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
7045 and restore it to gen_lowpart_general on exit.
7046 (gen_lowpart_if_possible): Adjust all callers to go through
7048 * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
7049 (gen_lowpart): Declare as pointer to function, initialized to
7050 gen_lowpart_general.
7051 * rtl.h (gen_lowpart): Declare as pointer to function.
7053 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
7055 * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
7056 * calls.c: Likewise.
7057 * emit-rtl.c: Likewise.
7058 * function.c: Likewise.
7059 * reload1.c: Likewise.
7060 * config/i386/cygming.h: Likewise.
7061 * config/i386/i386.c: Likewise.
7062 * config/i386/winnt.c: Likewise.
7064 2004-01-30 Dara Hazeghi <dhazeghi@yahoo.com>
7067 * doc/install.texi: document --enable-__cxa_atexit option.
7068 * configure.ac: Disable __cxa_atexit if not supported.
7069 * configure: Regenerate.
7071 2003-01-30 Daniel Berlin <dberlin@dberlin.org>
7073 * ggc-zone.c (ggc_free): New function.
7075 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
7077 alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
7078 cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
7079 flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
7080 ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
7081 tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
7082 config/alpha/alpha.c, config/alpha/alpha.h,
7083 config/alpha/alpha.md, config/alpha/unicosmk.h,
7084 config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
7085 config/c4x/c4x-protos.h, config/c4x/c4x.md,
7086 config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
7087 config/frv/frvend.c, config/i386/cygming.h,
7088 config/i386/djgpp.h, config/i386/emmintrin.h,
7089 config/i386/gthr-win32.c, config/i386/i386-interix.h,
7090 config/i386/i386-protos.h, config/i386/openbsd.h,
7091 config/i386/winnt.c, config/i386/xm-mingw32.h,
7092 config/i386/xmmintrin.h, config/ia64/ia64.md,
7093 config/iq2000/iq2000.md, config/m32r/m32r.md,
7094 config/m68k/m68k.md, config/mcore/mcore-elf.h,
7095 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
7096 config/mips/iris5gas.h, config/mips/iris6.h,
7097 config/mips/iris6gas.h, config/mips/linux.h,
7098 config/mips/mips.md, config/mips/netbsd.h,
7099 config/mips/openbsd.h, config/mips/windiss.h,
7100 config/pa/fptr.c, config/rs6000/aix.h,
7101 config/rs6000/altivec.h, config/rs6000/darwin.h,
7102 config/rs6000/xcoff.h, config/s390/s390-protos.h,
7103 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
7104 config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
7105 config/sparc/sol2.h: Update copyright.
7107 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
7109 * Makefile.in (abs_docdir, abs_srcdir): Define.
7110 (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
7112 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
7114 * genconfig.c (main): Have CC0_P check its operand even on a
7117 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
7119 * config/alpha/alpha.c: Remove mentions of deprecates macros
7120 in comments, remove some target-independent comments about target
7121 macros, and/or add minimal function comments for target hook
7123 * config/avr/avr.c: Likewise.
7124 * config/ia64/ia64.h: Likewise.
7125 * config/ip2k/ip2k.c: Likewise.
7126 * config/iq2000/iq2000.c: Likewise.
7127 * config/m32r/m32r.h: Likewise.
7128 * config/m68hc11/m68hc11.c: Likewise.
7129 * config/mcore/mcore.c: Likewise.
7130 * config/mmix/mmix.c: Likewise.
7131 * config/mn10300/mn10300.c: Likewise.
7132 * config/pa/pa.c: Likewise.
7133 * config/pdp11/pdp11.c: Likewise.
7134 * config/rs6000/rs6000.h: Likewise.
7135 * config/sh/sh.c: Likewise.
7136 * config/sh/sh.h: Likewise.
7137 * config/sparc/sparc.c: Likewise.
7138 * config/sparc/sparc.h: Likewise.
7139 * config/stormy16/stormy16.c: Likewise.
7140 * config/xtensa/xtensa.c: Likewise.
7142 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7144 PR optimization/12147
7145 * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
7146 RELOAD_FOR_OPADDR_ADDR.
7147 (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
7148 might be reused as RELOAD_FOR_OPADDR_ADDR register.
7150 2004-01-30 Jan Hubicka <jh@suse.cz>
7152 * reload.c (get_secondary_mem): Fix updating of
7153 secondary_memlocs_elim_used.
7155 2004-01-30 Richard Henderson <rth@redhat.com>
7157 * varasm.c (struct rtx_const, struct pool_constant): Remove.
7158 (MAX_RTX_HASH_TABLE): Remove.
7159 (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
7160 (first_pool, last_pool, pool_offset): Remove.
7161 (struct rtx_constant_pool): Split out from ...
7162 (struct varasm_status): ... here. Reference one via pointer.
7163 (struct constant_descriptor_rtx): Merge struct pool_constant.
7165 (decode_rtx_const): Remove.
7166 (const_hash_rtx, compare_constant_rtx): Remove.
7167 (record_constant_rtx): Remove.
7168 (const_desc_rtx_hash, const_desc_rtx_eq): New.
7169 (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
7170 (const_rtx_hash_1, const_rtx_hash): New.
7171 (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
7172 (simplify_subtraction): Use simplify_rtx.
7173 (force_const_mem): Rewrite to use new data structures.
7174 (find_pool_constant): Likewise.
7175 (get_pool_constant, get_pool_constant_mark,
7176 get_pool_constant_for_function, get_pool_mode,
7177 get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
7178 (output_constant_pool_2): Split out from output_constant_pool.
7179 (output_constant_pool_1): Likewise. Use new pool datastructures.
7180 (output_constant_pool): Zap entire pool datastructure.
7181 (mark_constant): Use new pool datastructures.
7182 (mark_constants): Use for_each_rtx.
7183 (mark_constant_pool): Use new pool datastructures.
7185 2004-01-30 Fariborz Jahanian <fjahanian@apple.com>
7187 * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
7188 Copy operands[1] to pseudo for simplify_gen_subreg.
7190 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
7192 * gcse.c (bypass_block): Fix a typo in the previous check-in
7195 2004-01-30 Andrew Pinski <pinskia@physics.uc.edu>
7197 * toplev.c: Include alloc-pool.h.
7198 * Makefile.in (toplev.c): Update dependencies.
7200 2004-01-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7202 * combine.c (simplify_shift_const, case XOR): Be careful when
7203 commuting XOR with ASHIFTRT.
7205 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
7206 Eric Botcazou <ebotcazou@libertysurf.fr>
7208 * config/sparc/sparc-protos.h: Remove the prototype for
7209 sparc_builtin_saveregs.
7210 * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
7211 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7212 (TARGET_PROMOTE_PROTOTYPES): Likewise.
7213 (TARGET_STRUCT_VALUE_RTX): Likewise.
7214 (TARGET_RETURN_IN_MEMORY): Likewise.
7215 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
7216 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
7217 (sparc_builtin_saveregs): Make it static.
7218 (sparc_promote_prototypes): New.
7219 (sparc_struct_value_rtx): Likewise.
7220 (sparc_return_in_memory): Likewise.
7221 * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
7222 (PROMOTE_FUNCTION_RETURN): Likewise.
7223 (RETURN_IN_MEMORY): Likewise.
7224 (STRUCT_VALUE): Likewise.
7225 (STRUCT_VALUE_INCOMING): Likewise.
7226 (EXPAND_BUILTIN_SAVEREGS): Likewise.
7227 (STRICT_ARGUMENT_NAMING): Likewise.
7228 (PROMOTE_PROTOTYPES): Likewise.
7230 * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
7232 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
7235 * varasm.c (const_hash_1) <STRING_CST>: Use the
7236 address to compute the hash value if flag_writable_strings.
7237 (compare_constant) <STRING_CST>: Compare the addresses
7238 if flag_writable_strings.
7239 (build_constant_desc): Do not copy the expression for a
7240 STRING_CST if flag_writable_strings.
7242 2004-01-30 Jan Hubicka <jh@suse.cz>
7244 * alloc-pool.c: Include hashtab.h
7245 (alloc_pool_descriptor): New structure
7246 (alloc_pool_hash): New global variable.
7247 (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
7248 (create_alloc_pool): Update statistics.
7249 (free_alloc_pool): Likewise.
7250 (pool_alloc): Likewise.
7251 (output_info): New structure
7252 (print_statistics, dump_alloc_pool_statistics): New function.
7253 * alloc-pool.h (alloc_pool_def): Turn name to be constant.
7254 (dump_alloc_pool_statistics): Declare.
7255 * toplev.c (finalize): Dump statistics.
7257 * reload.c (secondary_memlocs_elim_used): New static variable.
7258 (get_secondary_mem): Update it.
7259 (find_reloads): Use it.
7261 2004-01-30 Steven Bosscher <s.bosscher@student.tudelft.nl>
7263 * toplev.c: Fix broken checkin of 2003-12-30, again.
7265 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7267 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
7268 s390*-*-* targets by specifying a 'nop' insn.
7269 * configure: Regenerate.
7271 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
7274 * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
7276 2004-01-29 Jakub Jelinek <jakub@redhat.com>
7278 * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
7279 of addr when creating MEM copy.
7281 2004-01-29 Devang Patel <dpatel@apple.com>
7283 * dwarf2out.c (gen_field_die): Do not equate decl number to die.
7285 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
7288 * reload.c (find_reloads): Only support one pair of commutative
7291 2004-01-29 Roger Sayle <roger@eyesopen.com>
7294 * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
7295 as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
7298 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
7300 * config/frv/frv.c: Don't mention deprecated macros in
7301 comments. Remove some target-independent comments about
7303 * config/frv/frv.h: Likewise.
7305 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7307 * cfghooks.c (split_block): Set probability and count of the
7310 2005-01-29 Josef Zlomek <zlomekj@suse.cz>
7312 * dwarf2out.c (struct die_struct): Added field decl_id.
7313 (decl_die_table): Changed to hash table.
7314 (decl_die_table_allocated): Deleted.
7315 (decl_die_table_in_use): Deleted.
7316 (DECL_DIE_TABLE_INCREMENT): Deleted.
7317 (decl_die_table_hash): New function.
7318 (decl_die_table_eq): New function.
7319 (lookup_decl_die): Lookup in a hash table.
7320 (equate_decl_number_to_die): Insert into a hash table.
7321 (dwarf2out_init): Init hash table decl_die_table.
7323 2004-01-29 Jakub Jelinek <jakub@redhat.com>
7325 PR optimization/13424
7326 * expr.c (store_constructor): Revert 2003-12-03 change.
7328 * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
7329 expected before returning early. Avoid sharing RTL if they
7332 * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
7333 handling so that memory attributes are preserved. Don't call
7334 ix86_set_move_mem_attrs.
7335 (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
7336 (ix86_expand_clrstr): Rename src argument to
7337 dst. Rework rep_stos and strset handling so that memory attributes
7339 (ix86_expand_strlen): Pass src argument to
7340 ix86_expand_strlensi_unroll_1. Rework strlenqi_1 handling so that
7341 memory attributes are preserved.
7342 (ix86_expand_strlensi_unroll_1): Add src argument. Use
7343 change_address instead of gen_rtx_MEM.
7344 * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
7346 (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
7347 strmovqi, strmovqi_rex64): Remove.
7348 (rep_mov*, strmov*): Prefix insn names with *.
7349 (strset, strset_singleop, rep_stos): New expanders.
7350 (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
7351 strsetqi, strsetqi_rex64): Remove.
7352 (rep_stos*, strset*): Prefix insn names with *.
7353 (rep_stosqi_rex64): Likewise. Fix mode of dirflag reg from DImode
7355 (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
7357 (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
7358 Prefix insn names with *.
7359 (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
7360 (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
7361 (strlenqi_1): New expander.
7362 * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
7364 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7366 * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
7367 * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
7368 verify_flow_info): Declaration removed.
7369 * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
7370 (debug_bb, debug_bb_n): Add argument to dump_bb call.
7371 * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
7372 try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
7373 instead of delete_block.
7374 * cfghooks.c: Include timevar.h and toplev.h.
7375 (cfg_hooks): Define here.
7376 (verify_flow_info, dump_bb): Moved from cfg.c.
7377 (redirect_edge_and_branch, redirect_edge_and_branch_force,
7378 split_block, split_block_after_labels, move_block_after,
7379 delete_basic_block, split_edge, create_basic_block,
7380 create_empty_bb, can_merge_blocks_p, merge_blocks,
7381 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
7383 * cfghooks.h (struct cfg_hooks): Added fields name,
7384 make_forwarder_block, tidy_fallthru_edge and
7385 move_block_after. Changed type of verify_flow_info, dump_bb,
7386 split_block fields. Renamed cfgh_split_edge and delete_block
7388 (redirect_edge_and_branch, redirect_edge_and_branch_force,
7389 split_block, delete_block, split_edge, create_basic_block,
7390 can_merge_blocks_p, merge_blocks): Macros removed.
7391 (cfg_hooks): Do not export.
7392 (verify_flow_info, dump_bb, redirect_edge_and_branch,
7393 redirect_edge_and_branch_force, split_block, split_block_after_labels,
7394 move_block_after, delete_basic_block, split_edge, create_basic_block,
7395 create_empty_bb, can_merge_blocks_p, merge_blocks,
7396 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
7398 (cfg_layout_rtl_cfg_hooks): Declare.
7399 * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
7401 (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
7402 (redirect_edge_with_latch_update): Removed.
7403 (make_forwarder_block): Moved to cfghooks.c, semantics changed.
7404 * cfgloopmanip.c (remove_bbs): Do not update dominators here.
7405 * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
7406 rtl_delete_block, rtl_split_block, rtl_merge_blocks,
7407 tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
7408 cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
7410 (rtl_create_basic_block): Coding style fix.
7411 (rtl_tidy_fallthru_edge, rtl_move_block_after,
7412 rtl_make_forwarder_block): New functions.
7413 (update_cfg_after_block_merging): Removed.
7414 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
7415 * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
7417 * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
7418 find_if_case_2): Don't update dominators.
7419 * timevar.def (TV_CFG_VERIFY): New.
7420 * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
7421 * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
7422 * cfgloopmanip.c (split_loop_bb): Don't update dominators.
7423 (remove_bbs): Don't call remove_bbs.
7424 (create_preheader): Use make_forwarder_block.
7425 (mfb_keep_just, mfb_update_loops): New static functions.
7427 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
7429 * config/avr/avr.h: Remove target-independent comments about
7432 2004-01-28 Daniel Berlin <dberlin@dberlin.org>
7434 * timevar.c (timevar_print): Mention when checking is enabled.
7436 2004-01-28 Giovanni Bajo <giovannibajo@gcc.gnu.org>
7438 * c-lex.c (c_lex): Rename to...
7439 (c_lex_with_flags): Add new parameter to get CPP flags.
7440 (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
7441 * c-pragma.h (c_lex_with_flags): Declare.
7443 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
7445 * config/mcore/mcore.c (mcore_external_libcall): Add a
7447 (mcore_return_in_memory): Likewise.
7449 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
7451 * config/mcore/mcore-protos.h: Remove the prototype for
7452 mcore_setup_incoming_varargs.
7453 * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
7454 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
7455 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7456 (TARGET_PROMOTE_PROTOTYPES): Likewise.
7457 (TARGET_STRUCT_VALUE_RTX): Likewise.
7458 (TARGET_RETURN_IN_MEMORY): Likewise.
7459 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
7460 (mcore_setup_incoming_varargs): Make it static. Receive the
7461 first argument by reference. Add argument second_time.
7462 (mcore_external_libcall): New.
7463 (mcore_return_in_memory): Likewise.
7464 * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
7465 (PROMOTE_FUNCTION_RETURN): Likewise.
7466 (STRUCT_VALUE): Likewise.
7467 (RETURN_IN_MEMORY): Likewise.
7468 (SETUP_INCOMING_VARARGS): Likewise.
7469 (PROMOTE_PROTOTYPES): Likewise.
7470 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
7472 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
7474 * config/m32r/m32r-protos.h: Remove the prototype for
7475 m32r_setup_incoming_varargs.
7476 * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
7477 (TARGET_STRUCT_VALUE_RTX): Likewise.
7478 (TARGET_RETURN_IN_MEMORY): Likewise.
7479 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
7480 (m32r_return_in_memory): New.
7481 (m32r_setup_incoming_varargs): Make it static.
7482 * config/m32r/m32r.h: Remove #undef of
7483 ASM_OUTPUT_EXTERNAL_LIBCALL. Remove the commented-out
7484 definitions of PROMOTE_FUNCTION_ARGS and
7485 PROMOTE_FUNCTION_RETURN.
7486 (PROMOTE_PROTOTYPES): Remove.
7487 (RETURN_IN_MEMORY): Likewise.
7488 (STRUCT_VALUE): Likewise.
7490 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
7492 * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
7493 (TARGET_STRUCT_VALUE_RTX): Likewise.
7494 (m68k_struct_value_rtx): Likewise.
7495 * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
7496 STRUCT_VALUE_REGNUM.
7497 (PROMOTE_PROTOTYPES): Remove.
7498 * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
7499 STRUCT_VALUE_REGNUM.
7500 * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
7501 * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
7503 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
7505 * config/stormy16/stormy16.c
7506 (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
7507 TARGET_BUILD_BUILTIN_VA_LIST.
7509 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
7511 * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
7512 (TARGET_STRUCT_VALUE_RTX): Likewise.
7513 (TARGET_RETURN_IN_MEMORY): Likewise.
7514 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
7515 (v850_return_in_memory): Likewise.
7516 (v850_setup_incoming_varargs): Likewise.
7517 * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
7518 (SETUP_INCOMING_VARARGS): Likewise.
7519 (RETURN_IN_MEMORY): Likewise.
7520 (STRUCT_VALUE): Likewise.
7522 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
7524 * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
7525 (fr30_setup_incoming_varargs): Don't use
7526 STRICT_ARGUMENT_NAMING.
7527 * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
7528 (STRICT_ARGUMENT_NAMING): Likewise.
7530 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
7532 * config/frv/frv-protos.h: Remove the prototype for
7533 frv_expand_builtin_saveregs.
7534 * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
7535 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
7536 (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
7537 STRUCT_VALUE_REGNUM.
7538 (frv_expand_builtin_saveregs): Make it static.
7539 (frv_struct_value_rtx): New.
7540 * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
7542 2004-01-29 Jan Hubicka <jh@suse.cz>
7545 * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
7547 * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
7548 for functions that will be only inlined.
7549 (cgraph_mark_function_to_output): Likewise.
7550 (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
7551 do not clear function body.
7552 * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
7553 (tree_rest_of_compilation): Reorganize the logic releasing function
7554 body to use callgraph datastructure.
7556 2004-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7558 * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
7559 to register_operand.
7561 2004-01-28 Zack Weinberg <zack@codesourcery.com>
7563 * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
7564 (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
7565 match_operand expressions so that all match_dups appear
7566 lexically after their corresponding match_operands.
7568 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
7570 * config/h8300/h8300.c (WORD_REG_USED): Use
7571 HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
7572 (compute_saved_regs): Likewise.
7573 (h8300_expand_prologue): Likewise. Allocate locals after
7575 (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
7576 of FRAME_POINTER_REGNUM. Deallocate locals before saving
7578 (h8300_initial_elimination_offset): Adjust for the new frame
7579 layout, which swaps flips the order of locals and saved
7581 * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
7582 (HARD_FRAME_POINTER_REGNUM): New.
7583 (ELIMINABLE_REGS): Add an elimination rule from
7584 FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
7585 (REGISTER_NAMES): Add fp.
7586 * config/h8300/h8300.md (FP_REG): Change to 11.
7589 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
7591 * genrecog.c (write_node): Remove a useless local variable.
7593 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
7595 * Makefile.in (options.c options.h): Use stamp file s-options to
7596 avoid unnecessary rebuilds.
7597 (options.o): New target listing dependencies.
7598 (gtyp-gen.h): Use stamp file s-gtyp-gen.
7599 (STAGESTUFF): Add s-gtyp-gen.
7601 2004-01-28 Richard Henderson <rth@redhat.com>
7603 * ggc.h (ggc_free): Declare.
7604 * ggc-common.c (ggc_realloc): Use it.
7605 * ggc-page.c: Remove lots of inline markers.
7606 (globals): Add free_object_list.
7608 (ggc_free, validate_free_objects): New.
7609 (poison_pages): Provide default.
7610 (ggc_collect): Call validate_free_objects; emit markers to
7613 2004-01-28 Zack Weinberg <zack@codesourcery.com>
7614 Jim Wilson <wilson@specifixinc.com>
7616 * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
7617 Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
7619 (ia64_secondary_reload_class): Delete case GR_REGS.
7620 * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
7621 Do not allocate a scratch register.
7622 (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
7624 2004-01-28 Jan Hubicka <jh@suse.cz>
7626 * gcse.c (bypass_block): Prevent edges to be unified when we are
7627 about to emit compenstation code.
7629 2004-01-28 Nick Clifton <nickc@redhat.com>
7631 * config/arm/arm.c (arm_expand_builtin): Force second argument of
7632 the setcwx insn into a register.
7634 2004-01-28 Richard Sandiford <rsandifo@redhat.com>
7636 * config/fp-bit.c (pack_d): When using paired doubles to implement
7637 a long double, round the high part separately.
7638 (unpack_d): Fix the case in which the high part is a power of two
7639 and the low part is a nonzero value of the opposite sign.
7641 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
7643 * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
7644 (TARGET_STRUCT_VALUE_RTX): Likewise.
7645 (c4x_external_libcall): Likewise.
7646 (c4x_struct_value_rtx): Likewise.
7647 * config/c4x/c4x.h: Remove.
7648 (STRUCT_VALUE_REGNUM): Likewise.
7649 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
7651 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
7653 * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
7654 (TARGET_STRUCT_VALUE_RTX): Likewise.
7655 * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
7656 (STRUCT_VALUE): Likewise.
7657 (PROMOTE_PROTOTYPES): Likewise.
7659 2004-01-27 Roger Sayle <roger@eyesopen.com>
7661 * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
7662 CONST_INT before using INTVAL.
7664 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
7666 * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
7667 * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
7668 frame if !TARGET_BACKCHAIN.
7669 * config/s390/s390.md ("allocate_stack"): Use pattern only if
7671 * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
7673 2004-01-27 Zack Weinberg <zack@codesourcery.com>
7675 * ia64.c (ia64_function_arg): When placing HFAs in integer
7676 registers, do not special case the mode used for complex
7677 types. Do not advance int_regs until the current register
7680 2004-01-27 Richard Sandiford <rsandifo@redhat.com>
7683 * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
7685 2004-01-27 David Edelsohn <edelsohn@gnu.org>
7687 * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
7688 slow, unaligned loads and stores while debugging. Fix formatting.
7690 2004-01-27 David Edelsohn <edelsohn@gnu.org>
7692 * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
7694 (restore_stack_nonlocal): Same.
7696 2004-01-27 Devang Patel <dpatel@apple.com>
7698 * Makefile.in (dwarf2out.o): Depend on input.h
7699 * dbxout.c (dbx_debug_hooks): Add new empty hook for
7700 imported_module_or_decl.
7701 (xcoff_debug_hooks): Same.
7702 * sdbout.c (sdb_debug_hooks): Same.
7703 * vmsdbgout.c (vmsdbg_debug_hooks): Same.
7704 * debug.c (do_nothing_debug_hooks): Same.
7705 (debug_nothing_tree_tree): New function.
7706 * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
7707 * dwarf2out.c: Include input.h.
7708 (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
7709 (remove_child_TAG): New function.
7710 (dwarf_tag_name): Handle DW_TAG_imported_module.
7711 (gen_subprogram_die): Equate decl number to declaration die. Do not
7712 remove all children dies while reusing declaration die for definition.
7713 Instead, selectively remove only formal parameters.
7714 (gen_variable_die): Equate variable decl to declaration die.
7715 (gen_field_die): Equate field decl to line number.
7716 (force_namespace_die): Replace it with ...
7717 (force_decl_die): ... this.
7718 (force_type_die): New function.
7719 (setup_namespace_context): Replace use of force_namespace_die() with
7721 (gen_namespace_die): Same.
7722 (dwarf2out_imported_module_or_decl): New function.
7724 2004-01-27 Bob Wilson <bob.wilson@acm.org>
7726 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
7727 on CQImode and CHImode incoming arguments in register a7.
7728 (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
7729 * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
7730 * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
7731 xtensa_copy_incoming_a7 before reload.
7733 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
7735 * coverage.c (get_coverage_counts): Give a different message
7736 if flag_guess_branch_prob is set.
7737 * predict.c (counts_to_freqs): Return an int.
7738 (estimate_bb_frequencies): If counts_to_freqs returns zero,
7739 calculate estimates.
7741 2004-01-27 Kazu Hirata <kazu@cs.umass.edu>
7743 * config/iq2000/iq2000-protos.h: Remove the prototype for
7744 iq2000_setup_incoming_varargs.
7745 * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
7746 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7747 (TARGET_PROMOTE_PROTOTYPES): Likewise.
7748 (TARGET_STRUCT_VALUE_RTX): Likewise.
7749 (TARGET_RETURN_IN_MEMORY): Likewise.
7750 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
7751 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
7752 (iq2000_return_in_memory): Likewise.
7753 (iq2000_setup_incoming_varargs): Make it static. Receive the
7754 first argument by reference.
7755 * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
7756 (PROMOTE_FUNCTION_RETURN): Likewise.
7757 (PROMOTE_PROTOTYPES): Likewise.
7758 (RETURN_IN_MEMORY): Likewise.
7759 (STRUCT_VALUE): Likewise.
7760 (SETUP_INCOMING_VARARGS): Likewise.
7761 (STRICT_ARGUMENT_NAMING): Likewise.
7763 2004-01-24 James A. Morrison <ja2morri@uwaterloo.ca>
7765 * fixinc/fixinc.c (test_test): Initialize res.
7766 (start_flexer): Initialize pz_cmd_save.
7768 2004-01-27 Zack Weinberg <zack@codesourcery.com>
7770 * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
7771 SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
7773 2004-01-27 Zack Weinberg <zack@codesourcery.com>
7776 * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
7777 (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
7778 (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
7779 Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
7780 Possibly rename pattern for consistency.
7781 Remove ??? comments suggesting that this be done.
7782 (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
7784 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
7785 (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
7786 (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
7787 (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
7790 2004-01-27 Ian Lance Taylor <ian@wasabisystems.com>
7792 * config/arm/arm.c (output_return_instruction): Only restore IP
7793 into SP if frame_pointer_needed.
7795 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
7797 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
7798 for SCmode and DCmode if ARCH32.
7799 (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
7800 * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
7802 (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
7804 (BASE_OUTGOING_VALUE_REG): Likewise.
7806 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
7810 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
7811 Forbid mode changes from SImode for lower FP regs if ARCH64.
7813 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
7815 * Makefile.in (bt-load.o): Depend on except.h.
7816 * bt-load.c (except.h): #include.
7817 (compute_defs_uses_and_gen): If insn at end of BB can throw
7818 within this function, consider registers used by it unavailable for
7820 (move_btr_def): If insn at end of BB can throw, insert before rather
7823 * flags.h (flag_btr_bb_exclusive): Declare.
7824 * toplev.c (flag_btr_bb_exclusive): New variable.
7825 (f_options): Add btr-bb-exclusive.
7826 * bt-load.c (augment_live_range): Restore old behaviour if
7827 flag_btr_bb_exclusive is set.
7828 * common.opt: Add entry for -fbtr-bb-exclusive.
7829 * opts.c (common_handle_options): Same.
7830 * doc/invoke.texi: Document -fbtr-bb-exclusive.
7832 * bt-load.c (btrs_live_at_end): New variable.
7833 (compute_defs_uses_and_gen): Compute its pointed-to array.
7834 (clear_btr_from_live_range, add_btr_to_live_range): Update it.
7835 (augment_live_range): When augmenting with a new dominator,
7836 use only its btrs_live_at_end set, but also add in the full set
7837 of the old dominator.
7838 (btr_def_live_range): Use btrs_live_at_end.
7839 (move_btr_def): Set other_btr_uses_before_def, and move new set
7840 to the end of the basic block, if appropriate.
7841 (migrate_btr_defs): Allocate and free btrs_live_at_end.
7843 * bt-load.c (basic_block_freq): Remove outdated comment.
7845 2004-01-27 Alan Modra <amodra@bigpond.net.au>
7847 * config/rs6000/rs6000.h: Correct target_flags free bits comment.
7848 (PREDICATE_CODES): Remove duplicate.
7849 * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
7850 (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
7851 (MASK_PROFILE_KERNEL): Adjust define.
7853 2004-01-27 Jakub Jelinek <jakub@redhat.com>
7855 * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
7856 of long string literals from 32 bytes to sizeof (void *) when !-Os
7859 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
7861 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
7862 constant addresses in the normal mode.
7864 2004-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7866 * system.h (CHAR_BITFIELD): Delete.
7867 (BOOL_BITFIELD): New.
7868 * c-decl.c (c_scope): Use BOOL_BITFIELD.
7869 * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
7871 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
7873 * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
7874 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7875 (TARGET_PROMOTE_PROTOTYPES): Likewise.
7876 (TARGET_STRUCT_VALUE_RTX): Likewise.
7877 (TARGET_RETURN_IN_MEMORY): Likewise.
7878 (arc_return_in_memory): Likewise.
7879 * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
7880 (PROMOTE_FUNCTION_RETURN): Likewise.
7881 (RETURN_IN_MEMORY): Likewise.
7882 (STRUCT_VALUE): Likewise.
7884 2004-01-26 Richard Henderson <rth@redhat.com>
7886 * c-parse.in (extension): Use itype.
7887 (SAVE_EXT_FLAGS): Don't allocate a tree.
7888 (RESTORE_EXT_FLAGS): Don't read a tree.
7890 2004-01-26 Jan Hubicka <jh@suse.cz>
7892 * cselib.c (discard_useless_values): Clear out value pointer pointing
7893 to datastructure to be recycled.
7895 2004-01-25 Jan Hubicka <jh@suse.cz>
7897 * genextract.c (main): Do not output the memset when not checking.
7899 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
7901 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
7902 switch statement instead of a chain of if statements.
7904 2004-01-26 Jeff Law <law@redhat.com>
7906 * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry. Add
7907 acute accents for Petur Runolfsson's entry.
7909 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
7911 * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
7912 (TARGET_RETURN_IN_MEMORY): Likewise.
7913 * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
7914 (RETURN_IN_MEMORY): Likewise.
7916 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
7918 * config/rs6000/rs6000.c (rs6000_emit_move): split slow
7919 unaligned load/store into smaller loads and stores.
7921 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
7923 * function.c (assign_parms): Do not assign
7924 long long argument to memory in prologue if
7925 is it loaded into register.
7927 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
7930 * expr.c (emit_group_load): split constant
7931 correctly into register components of PARALLEL insn.
7933 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
7935 * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
7936 Use adjust_address_nv directly with appropriate mode.
7937 (restore_stack_nonlocal): Ditto.
7939 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
7941 * config/xtensa/xtensa-protos.h: Remove the prototype for
7942 xtensa_builtin_saveregs.
7943 * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
7944 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7945 (TARGET_PROMOTE_PROTOTYPES): Likewise.
7946 (TARGET_STRUCT_VALUE_RTX): Likewise.
7947 (TARGET_RETURN_IN_MEMORY): Likewise.
7948 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
7949 (xtensa_builtin_saveregs): Make it static.
7950 (xtensa_return_in_memory): New.
7951 * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
7952 (PROMOTE_FUNCTION_RETURN): Likewise.
7953 (PROMOTE_PROTOTYPES): Likewise.
7954 (STRUCT_VALUE): Likewise.
7955 (RETURN_IN_MEMORY): Likewise.
7956 (EXPAND_BUILTIN_SAVEREGS): Likewise.
7958 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
7960 * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
7961 (arm_setup_incoming_varargs): Likewise.
7962 * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
7964 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
7966 * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
7967 (cris_setup_incoming_varargs): Likewise.
7968 * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
7970 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
7972 * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
7973 (ns32k_struct_value_rtx): Likewise.
7974 * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
7975 NS32K_STRUCT_VALUE_REGNUM.
7977 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
7979 * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
7980 (TARGET_PROMOTE_PROTOTYPES): Likewise.
7981 (TARGET_STRUCT_VALUE_RTX): Likewise.
7982 (arm_struct_value_rtx): Likewise.
7983 * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
7984 (STRUCT_VALUE): Likewise.
7985 (STRUCT_VALUE_REGNUM): Likewise.
7986 (PROMOTE_PROTOTYPES): Likewise.
7988 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
7990 * config/ia64/ia64-protos.h: Remove the prototype for
7991 ia64_setup_incoming_varargs and ia64_return_in_memory.
7992 * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
7993 (TARGET_RETURN_IN_MEMORY): Likewise.
7994 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
7995 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
7996 (ia64_setup_incoming_varargs): Adjust the arguments to meet
7997 the requirement of TARGET_SETUP_INCOMING_VARARGS.
7998 (ia64_return_in_memory): Make it static. Change the return
7999 type to bool from int. Add an argument.
8000 (ia64_struct_value_rtx): New.
8001 * config/ia64/ia64.h: Remove commented-out definitions of
8002 PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
8004 (RETURN_IN_MEMORY): Remove.
8005 (STRUCT_VALUE_REGNUM): Likewise.
8006 (STRICT_ARGUMENT_NAMING): Likewise.
8008 2004-01-26 Eric Botcazou <ebotcazou@libertysurf.fr>
8011 * config/sparc/sparc.c (function_arg_union_value): New function.
8012 (function_arg): Use it to deal with unions.
8013 (function_value): Likewise. Define 'regbase' only for ARCH64.
8014 Replace a conditional statement by a simpler one.
8016 2004-01-26 Richard Sandiford <rsandifo@redhat.com>
8018 * config/mips/mips.c (mips16_optimize_gp): Delete.
8019 (mips_reorg): Don't call it.
8021 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8023 * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
8024 (floatunsqihf2): Remove operand 6.
8025 (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
8027 (ldi_conditional, ldf_conditional): Validate operands.
8029 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8031 * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
8032 (HAVE_GAS_HIDDEN): Undefine as interim measure.
8034 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8036 * config/c4x/c4x.c (c4x_legitimate_address_p): Invalidate direct
8037 memory references if TARGET_EXPOSE_LDP nonzero.
8039 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8041 * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
8043 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8045 * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
8046 invalid operand combinations.
8048 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8050 * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
8051 c4x_legitimate_address_p. Fix post_modify check.
8053 * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
8054 * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
8056 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8058 * config/pa/pa-protos.h: Remove the prototype for
8059 hppa_builtin_saveregs. Add a prototype for
8060 pa_return_in_memory.
8061 * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
8062 (TARGET_PROMOTE_PROTOTYPES): Likewise.
8063 (TARGET_STRUCT_VALUE_RTX): Likewise.
8064 (TARGET_RETURN_IN_MEMORY): Likewise.
8065 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8066 (pa_struct_value_rtx): Likewise.
8067 (pa_return_in_memory): Likewise.
8068 * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
8069 PA_STRUCT_VALUE_REGNUM.
8070 (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
8071 (EXPAND_BUILTIN_SAVEREGS): Remove.
8072 (PROMOTE_PROTOTYPES): Likewise.
8073 (PROMOTE_FUNCTION_RETURN): Likewise.
8075 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8077 * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
8078 (TARGET_STRUCT_VALUE_RTX): Likewise.
8079 (vax_struct_value_rtx): Likewise.
8080 * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
8081 VAX_STRUCT_VALUE_REGNUM.
8082 (PROMOTE_PROTOTYPES): Remove.
8084 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8086 * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS): Handle symref.
8088 2003-04-25 Chris Demetriou <cgd@broadcom.com>
8090 * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
8091 and MIPS64 have HI/LO interlocks. Update comment.
8093 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8095 * config/stormy16/stormy16-protos.h: Remove the prototype for
8096 xstormy16_setup_incoming_varargs.
8097 * config/stormy16/stormy16.c
8098 (xstormy16_setup_incoming_varargs): Remove.
8099 (xstormy16_return_in_memory): New.
8100 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
8101 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8102 (TARGET_PROMOTE_PROTOTYPES): Likewise.
8103 (TARGET_STRUCT_VALUE_RTX): Likewise.
8104 (TARGET_RETURN_IN_MEMORY): Likewise.
8105 * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
8106 (PROMOTE_FUNCTION_RETURN): Likewise
8107 (PROMOTE_PROTOTYPES): Likewise
8108 (RETURN_IN_MEMORY): Likewise
8109 (STRUCT_VALUE): Likewise
8110 (SETUP_INCOMING_VARARGS): Likewise
8112 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
8114 * config/mips/mips.c (mips_offset_within_object_p): New function.
8115 (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
8116 SYMBOL_CONSTANT_POOL cases. Also use it for SYMBOL_GENERAL if the
8117 ABI has 64-bit pointers and the object file only allows 32-bit symbols.
8119 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8121 * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
8122 (PROMOTE_FUNCTION_RETURN): Likewise.
8124 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8126 * config/mn10300/mn10300-protos.h: Remove the prototype for
8127 mn10300_builtin_saveregs.
8128 * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
8129 (TARGET_STRUCT_VALUE_RTX): Likewise.
8130 (TARGET_RETURN_IN_MEMORY): Likewise.
8131 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8132 (mn10300_return_in_memory): Likewise.
8133 (mn10300_builtin_saveregs): Make it static.
8134 * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
8135 (RETURN_IN_MEMORY): Likewise.
8136 (STRUCT_VALUE): Likewise.
8137 (EXPAND_BUILTIN_SAVEREGS): Likewise.
8139 2004-01-25 Eric Botcazou <ebotcazou@act-europe.fr>
8142 * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
8144 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8146 * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
8149 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8151 * config/i860/i860-protos.h: Remove the prototype for
8153 * config/i860/i860.c (i860_saveregs): Make it static.
8154 (i860_struct_value_rtx): New.
8155 (TARGET_STRUCT_VALUE_RTX): Likewise.
8156 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8157 * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
8158 I860_STRUCT_VALUE_REGNUM.
8159 (EXPAND_BUILTIN_SAVEREGS): Remove.
8161 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8163 * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
8164 (TARGET_RETURN_IN_MEMORY): Likewise.
8165 (m68hc11_struct_value_rtx): Likewise.
8166 (m68hc11_return_in_memory): Likewise.
8167 * config/m68hc11/m68hc11.h: Remove a commented-out definition
8168 of PROMOTE_PROTOTYPES.
8169 (RETURN_IN_MEMORY): Remove.
8170 (STRUCT_VALUE_REGNUM): Likewise.
8172 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8174 * config/mmix/mmix-protos.h: Remove the prototype for
8175 mmix_setup_incoming_varargs.
8176 * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8177 (TARGET_STRUCT_VALUE_RTX): Likewise.
8178 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8179 (mmix_setup_incoming_varargs): Make it static.
8180 (mmix_struct_value_rtx): New.
8181 * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
8182 Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
8183 (STRUCT_VALUE_REGNUM): Remove.
8184 (SETUP_INCOMING_VARARGS): Likewise.
8186 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8188 * config/mips/mips-protos.h: Remove the prototypes for
8189 mips_setup_incoming_varargs and mips_return_in_memory.
8190 * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8191 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8192 (TARGET_PROMOTE_PROTOTYPES): Likewise.
8193 (TARGET_STRUCT_VALUE_RTX): Likewise.
8194 (TARGET_RETURN_IN_MEMORY): Likewise.
8195 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8196 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8197 (mips_setup_incoming_varargs): Match the prototype for
8198 TARGET_SETUP_INCOMING_VARARGS.
8199 (mips_return_in_memory): Make it static. Add argument fntype.
8200 (mips_strict_argument_naming): New.
8201 * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
8202 (PROMOTE_FUNCTION_ARGS): Likewise.
8203 (PROMOTE_FUNCTION_RETURN): Likewise.
8204 (STRUCT_VALUE): Likewise.
8205 (RETURN_IN_MEMORY): Likewise.
8206 (SETUP_INCOMING_VARARGS): Likewise.
8207 (STRICT_ARGUMENT_NAMING): Likewise.
8209 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8211 * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
8212 (TARGET_RETURN_IN_MEMORY): Likewise.
8213 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8214 (ip2k_return_in_memory): Likewise.
8215 (ip2k_setup_incoming_varargs): Likewise.
8216 * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
8217 (STRUCT_VALUE): Likewise.
8218 (STRUCT_VALUE_INCOMING): Likewise.
8219 (SETUP_INCOMING_VARARGS): Likewise.
8221 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8223 * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
8224 (TARGET_RETURN_IN_MEMORY): Likewise.
8225 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8226 (avr_return_in_memory): Remove.
8227 * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
8228 (STRUCT_VALUE): Likewise.
8229 (STRUCT_VALUE_INCOMING): Likewise.
8230 (STRICT_ARGUMENT_NAMING): Likewise.
8232 2004-01-25 Jan Hubicka <jh@suse.cz>
8234 * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
8236 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
8238 * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
8239 (mips_regno_mode_ok_for_base_p): Declare.
8240 * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
8241 (FRAME_POINTER_REGNUM): Renumber to 78.
8242 (FIRST_PSEUDO_REGISTER): Update comment accordingly.
8243 (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
8244 (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
8245 (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
8246 (REG_MODE_OK_FOR_BASE_P): Likewise.
8247 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
8248 entry for 77 to "$arg" and entry for 78 to "$frame".
8249 (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
8250 (mips_reg_mode_ok_for_base_p): Remove.
8251 (mips_regno_mode_ok_for_base_p): New function, derived from old
8252 BASE_REG_P macro. Don't enforce the mips16 stack pointer
8253 restrictions unless we're being strict.
8254 (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
8256 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
8258 * c-common.h: Fix comment typos.
8259 * c-decl.c: Likewise.
8260 * cgraphunit.c: Likewise.
8261 * combine.c: Likewise.
8262 * et-forest.c: Likewise.
8264 * function.c: Likewise.
8265 * ifcvt.c: Likewise.
8266 * integrate.c: Likewise.
8268 * postreload.c: Likewise.
8269 * varray.c: Likewise.
8271 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
8273 * doc/frontends.texi: Update copyright.
8274 * doc/gcov.texi: Likewise.
8275 * doc/gty.texi: Likewise.
8276 * doc/sourcebuild.texi: Likewise.
8277 * doc/standards.texi: Likewise.
8279 2004-01-24 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
8282 * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
8283 Remove movstrqi_small because it conflicts with movstrqi_large.
8285 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
8287 * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8288 (TARGET_STRUCT_VALUE_RTX): Likewise.
8289 (cris_struct_value_rtx): Likewise.
8290 * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
8291 (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
8292 STRUCT_VALUE_REGNUM.
8293 (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
8295 2004-01-24 Ian Lance Taylor <ian@wasabisystems.com>
8298 * cse.c (cse_cc_succs): Change the mode of the source expression
8299 as soon as decide we need a new mode. Don't permit changing modes
8300 if we found a match in a successor block.
8301 (cse_condition_code_reg): Save original mode of source expression
8302 so that we know whether we have to change the mode in other
8305 2004-01-24 Jan Hubicka <jh@suse.cz>
8307 * emit-rtl.c (change_address, adjust_address_1, offset_address,
8308 widen_memory_access): Return early when there is nothing to change.
8310 2004-01-24 Jakub Jelinek <jakub@redhat.com>
8312 * simplify-rtx.c (simplify_relational_operation): Don't
8313 simplify address == constant into address + -constant == 0.
8315 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
8317 * gcc.c (process_command): Don't internationalize the
8319 * mips-tfile.c (main): Likewise.
8321 2004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
8323 * cse.c: (cse_cc_succs) Fix comparison warning.
8325 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
8327 * config/h8300/h8300.md: Remove extraneous USE in expanders.
8329 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
8331 * config/h8300/h8300-protos.h: Provide prototypes for
8332 h8300_legitimate_constant_p and h8300_legitimate_address_p.
8333 * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
8334 (h8300_rtx_ok_for_base_p): Likewise.
8335 (h8300_legitimate_address_p): Likewise.
8336 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
8337 h8300_legitimate_constant_p.
8338 (RTX_OK_FOR_BASE_P): Remove.
8339 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
8341 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
8343 * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
8344 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
8345 (REG_OK_FOR_INDEX_STRICT_P): Likewise.
8346 (REG_OK_FOR_BASE_STRICT_P): Likewise.
8347 (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
8348 (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
8349 (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
8350 (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
8352 2004-01-24 Jan Hubicka <jh@suse.cz>
8354 * cselib.c (remove_useless_values): Do not access discarded values.
8356 2004-01-24 Joseph S. Myers <jsm@polyomino.org.uk>
8358 * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
8361 2004-01-23 Kazu Hirata <kazu@cs.umass.edu>
8363 * recog.c: Fix a typo in copyright.
8365 2004-01-23 Andrew Pinski <apinski@apple.com>
8367 * config/rs6000/rs6000.md (call): Fix misappiled patch.
8368 (call_value): Likewise.
8370 2004-01-23 Richard Henderson <rth@redhat.com>
8373 * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
8374 (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
8375 if SHIFT_COUNT_TRUNCATED is set.
8377 2004-01-23 Bob Wilson <bob.wilson@acm.org>
8379 * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
8380 separate real and imaginary parts.
8381 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
8383 2004-01-23 Hartmut Penner <hpenner@de.ibm.com>
8386 * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
8389 2004-01-23 Jan Hubicka <jh@suse.cz>
8391 * emit-rtl.c (change_address_1): Do not re-generate the RTX if nothing
8394 * alloc-pool.c (align_four): Kill.
8395 (create_alloc_pool): Align size to eight.
8396 (free_alloc_pool, free_pool): Invalidate deallocated data.
8398 2004-01-23 Ian Lance Taylor <ian@wasabisystems.com>
8401 * cse.c (cse_change_cc_mode): New static function.
8402 (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
8403 (cse_condition_code_reg): New function.
8404 * rtl.h (cse_condition_code_reg): Declare.
8405 * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
8406 * target.h (struct gcc_target): Add fixed_condition_code_regs and
8407 cc_modes_compatible.
8408 * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
8409 (TARGET_CC_MODES_COMPATIBLE): Define.
8410 (TARGET_INITIALIZER): Add new initializers.
8411 * targhooks.c (default_cc_modes_compatible): New function.
8412 * targhooks.c (default_cc_modes_compatible): Declare.
8413 * hooks.c (hook_bool_intp_intp_false): New function.
8414 * hooks.h (hook_bool_intp_intp_false): Declare.
8415 * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
8416 (TARGET_CC_MODES_COMPATIBLE): Define.
8417 (ix86_fixed_condition_code_regs): New static function.
8418 (ix86_cc_modes_compatible): Likewise.
8419 * doc/tm.texi (Condition Code): Document new hooks.
8421 2004-01-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8423 * fixinc/inclhack.def (bad_lval): Renamed to ...
8424 (alpha_bad_lval): ... this.
8426 Restrict to alpha*-dec-osf*.
8427 * fixinc/fixincl.x: Regenerate.
8428 * fixinc/tests/base/dirent.h: Remove, moving test ...
8429 * fixinc/tests/base/testing.h: ... here, reflecting new name.
8431 2004-01-23 Zack Weinberg <zack@codesourcery.com>
8434 * c-decl.c (diagnose_mismatched_decls): Also discard a
8435 built-in if we encounter an old-style definition with the
8438 2004-01-23 Jakub Jelinek <jakub@redhat.com>
8440 * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
8441 set to default{32,64}.
8443 2004-01-21 Jakub Jelinek <jakub@redhat.com>
8445 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
8446 [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
8448 2004-01-23 Eric Botcazou <ebotcazou@act-europe.fr>
8449 Olivier Hainque <hainque@act-europe.fr>
8451 * fold-const.c (fold_binary_op_with_conditional_arg): Only
8452 build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
8454 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
8456 * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
8457 size for minipool references.
8459 2004-01-23 Roger Sayle <roger@eyesopen.com>
8461 * real.c (real_floor, real_ceil): Tweak to allow input and output
8462 arguments to overlap.
8463 (real_round): New function to implement round(3m) semantics.
8464 * real.h (real_round): Prototype here.
8465 * builtins.c (fold_builtin_round): New function to constant fold
8466 round, roundf and roundl.
8467 (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
8469 2004-01-23 Alexandre Oliva <aoliva@redhat.com>
8471 PR optimization/13819
8472 * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
8473 introduced by 2004-01-20's Jan Hubicka's copy_insn change.
8474 (sh_handle_sp_switch_attribute): Remove warning.
8476 2003-11-30 Jan Hubicka <jh@suse.cz>
8478 * i386.c (ix86_emit_restore_regs_using_mov): Deal with large offsets.
8480 2004-01-23 J"orn Rennecke <joern.rennecke@superh.com>
8482 * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
8483 may or may not return non-NIL.
8484 * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
8485 check CANNOT_CHANGE_MODE_CLASS
8487 2004-01-23 Jan Hubicka <jh@suse.cz>
8489 * basic-block.h (PROP_POSTRELOAD): New macro.
8490 (CLEANUP_LOG_LINKS): New.
8491 * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
8492 * toplev.c (rest_of_handle_life): Preserve LOG_LINKS trought cleanup_cfg.
8494 * cselib.c (value_pool): New.
8495 (new_cselib_val): Use pool.
8496 (cselib_init): Initialize value_pool
8497 (cselib_finish): Free pool.
8499 2004-01-23 Eric Botcazou <ebotcazou@libertysurf.fr>
8501 * config/sparc/sparc.c (scan_record_type): New function.
8502 (function_arg_slotno): Use it to determine which kinds of
8503 registers the record can be passed in.
8505 2004-01-22 James A. Mmorrison <ja2morri@uwaterloo.ca>
8507 * config/pa/fptr.c: Fix old-style definition.
8509 2004-01-22 Paolo Bonzini <bonzini@gnu.org>
8511 PR optimization/13724
8512 * cse.c (fold_rtx) <SUBREG>: Fold a SUBREG to zero if it
8513 represents the zero bits produced by a ZERO_EXTEND operation.
8515 2004-01-22 Roger Sayle <roger@eyesopen.com>
8517 PR optimization/13821
8518 * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
8519 correctly calculate the lowpart offset of the contracted subreg.
8521 2004-01-22 Ian Lance Taylor <ian@wasabisystems.com>
8523 * doc/invoke.texi (Optimize Options): Note that --param arguments
8524 are subject to change without notice.
8526 2004-01-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8528 * config.gcc (mips-sgi-irix6*o32): Removed.
8529 * config/mips/iris6-o32-as.h: Likewise.
8530 * config/mips/iris6-o32-gas.h: Likewise.
8531 * config/mips/iris6-o32.h: Likewise.
8533 2004-01-22 Jan Hubicka <jh@suse.cz>
8535 * cfgcleanup.c (first_pass): New static variable.
8536 (try_forward_edges): Add work limiting check for threading.
8537 (try_crossjump_bb): Add work limiting check for crossjumping.
8538 (try_optimize_cfg): Maintain first pass variable.
8540 2004-01-22 Bob Wilson <bob.wilson@acm.org>
8542 * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
8543 handles complex and vector modes.
8545 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
8547 * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
8548 (REG_OK_FOR_BASE_P_STRICT): Likewise.
8551 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
8553 * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
8554 (genrtl_for_stmt): Remove emit_nop calls.
8556 2004-01-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8560 * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
8561 movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
8562 clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
8564 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
8566 * config/arm/arm.c: Include "debug.h".
8567 (thumb_pushpop): Take two new arguments. Add some commentary.
8568 Output frame information when pushing.
8569 (thumb_exit, thumb_unexpanded_epilogue): Update calls to
8571 (thumb_output_function_prologue): Likewise. Accumulate a CFA
8572 offset, and pass it to thumb_pushpop. Output CFI information.
8573 (thumb_expand_prologue): Add some frame-related markers and notes.
8575 2004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
8577 * config/s390/s390.c (s390_frame_info): Allow large frame sizes
8579 (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
8580 * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
8582 2004-01-22 Roger Sayle <roger@eyesopen.com>
8583 Paolo Bonzini <bonzini@gnu.org>
8585 * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
8586 (subreg_lsb): Change to call new subreg_lsb_1 helper function.
8587 * rtl.h (subreg_lsb_1): Prototype here.
8588 * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
8591 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
8593 * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
8594 macro need not be defined if jump-tables should contain
8595 relative addresses only when -fPIC or -fPIC is in effect.
8597 2004-01-22 Jan Hubicka <jh@suse.cz>
8599 * alias.c (reg_base_value): Turn into varray.
8600 (reg_base_value_size): Kill.
8601 (old_reg_base_value): New deletable varray.
8602 (alias_invariant_size): New variable.
8603 (REG_BASE_VALUE): Update to use varray.
8604 (find_base_value): Likewise.
8605 (record_set): Likewise.
8606 (record_base_value): Likewise.
8607 (memrefs_conflict_p): Likewise.
8608 (record_set): Likewise
8609 (record_base_value): Likewise.
8610 (memrefs_conflict_p): Use alias_invariant_size.
8611 (init_alias_analysis): Use varray; set alias_invariant_size;
8612 rescale other arrays to be sized by maxreg.
8613 (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
8615 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
8617 * config/sparc/sparc.c (function_arg_slotno): Use
8618 FLOAT_TYPE_P to detect FP fields in structures.
8619 (function_arg_record_value_1): Likewise.
8620 (function_arg_record_value_2): Likewise.
8622 2004-01-22 Jan Hubicka <jh@suse.cz>
8624 * function.c (allocate_struct_function): Do not initialize expr, emit
8626 (prepare_function_start): Do it here.
8627 * c-parse.in (maybe_type_qual): Do not produce line number notes.
8629 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
8632 * config/sparc/sparc.c (function_arg_record_value_3): Revert
8633 to 'word_mode' once the first slot has been filled.
8635 2004-01-22 Olivier Hainque <hainque@act-europe.fr>
8637 * config/sparc/sparc.c (function_arg_record_value_1): Fix
8638 computation of the number of integer registers required.
8640 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
8642 * config/i386/i386.md: Simplify certain comparisons of
8645 2004-01-21 Andrew Pinski <apinski@apple.com>
8648 * config/rs6000/rs6000.md (call_value): Force operand
8649 1 not operand 0 into a register.
8651 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
8653 * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
8654 unwind-dw2-fde.h: Update copyright.
8656 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8658 * pa-protos.h: Update copyright.
8662 2004-01-21 Caroline Tice <ctice@apple.com>
8665 * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
8667 (fix_truncdfdi2): Likewise.
8668 (fix_truncsfdi2): Likewise.
8669 (*fix_truncdi_1): Likewise.
8670 (fix_truncxfsi2): Likewise.
8671 (fix_truncdfsi2): Likewise.
8672 (fix_truncsfsi2): Likewise.
8673 (*fix_truncsi_1): Likewise.
8674 (fix_truncxfhi2): Likewise.
8675 (fix_truncdfhi2): Likewise.
8676 (fix_truncsfhi2): Likewise.
8677 (*fix_trunchi_1): Likewise.
8679 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
8681 * alias.c, basic-block.h, c-common.c, c-common.h,
8682 c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
8683 calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
8684 combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
8685 cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
8686 defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
8687 expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
8688 genautomata.c, genconditions.c, genemit.c, genflags.c,
8689 gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
8690 ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
8691 langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
8692 line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
8693 ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
8694 rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
8695 target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
8696 unwind.h, varray.c, varray.h: Update copyright.
8698 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
8700 * config/h8300/coff.h: Update copyright.
8701 * config/h8300/elf.h: Likewise.
8702 * config/h8300/h8300-protos.h: Likewise.
8703 * config/h8300/h8300.c: Likewise.
8704 * config/h8300/h8300.h: Likewise.
8705 * config/h8300/h8300.md: Likewise.
8707 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8709 * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
8710 ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
8711 ultrix_unistd): New hacks.
8712 * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
8713 ULTRIX_CONST2_CHECK): Add checks.
8714 * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
8715 * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
8716 * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
8717 * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
8718 * fixinc/tests/base/locale.h: New file.
8719 * fixinc/fixincl.x: Rebuilt.
8721 2004-01-21 Andreas Jaeger <aj@suse.de>
8722 Michael Matz <matz@suse.de>
8724 * doc/extend.texi (Extended Asm): Clarify memory clobber.
8726 2004-01-21 Jakub Jelinek <jakub@redhat.com>
8728 * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
8729 _Jv_RegisterClasses through a function pointer.
8731 2004-01-21 Falk Hueffner <falk@debian.org>
8734 * config/alpha/alpha.c (alpha_emit_set_const_1): If
8735 no_new_pseudos, use gen_rtx_SET directly for SImode constants
8736 which need multiple instructions to emit.
8738 2004-01-21 Inaoka Kazuhiro <inaoka.kazuhiro@renesas.com>
8740 * config/m32r/m32r.h (CPP_SPEC): Define.
8742 2004-01-21 Zack Weinberg <zack@codesourcery.com>
8744 * c-decl.c (merge_decls): Kill different_binding_level and
8745 different_tu arguments; simplify throughout.
8746 (duplicate_decls): Likewise.
8747 (pushdecl, merge_translation_unit_decls): Update calls to
8750 2004-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8752 * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
8754 (print-rtl1.o): Depend on $(SYSTEM_H).
8756 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
8759 * configure.ac: Delete definition and subsitution of docdir.
8760 Add info, man, srcman and srcinfo to target hooks. Create doc/
8762 * configure: Regenerate.
8763 * Makefile.in: Don't substitute docdir and delete all references
8765 (MAKEINFOFLAGS): Define.
8766 (stmp-docobjdir): Delete.
8767 (INFOFILES, MANFILES): Define.
8768 (info): Call lang.info, srcinfo and lang.srcinfo.
8769 (generated-manpages): Call lang.man, srcman and lang.srcman.
8770 (srcinfo, srcman): New rules to copy back files to source directory.
8771 (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
8772 (install-man): Revamp rule.
8773 (clean): Update dvi directory.
8774 (distclean): Delete TAGS from front end directorys.
8775 (maintainer-clean): Delete all document files in source directory.
8777 objc/Make-lang.in (objc.man, objc.info): Dummy entries.
8778 (objc.srcman, objc.srcinfo): Likewise.
8780 2004-01-20 Bruce Korb <bkorb@gnu.org>
8782 * fixinc/inclhack.def(math_exception): bypass only for glibc.
8783 (matherr_decl): rename & relocate as exception_structure.
8784 This fix must precede the math_exception fix.
8786 2004-01-20 Roger Sayle <roger@eyesopen.com>
8788 * fold-const.c (fold_convert): Rename to fold_convert_const.
8789 (fold_convert_const): Change arguments to take a tree_code,
8790 a type and the operand/expression to be converted. Return
8791 NULL_TREE if no simplification is possible. Add support for
8792 FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
8793 (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
8794 Adjust call to fold_convert to match new fold_convert_const.
8795 Avoid modifying the tree passed to fold in-place.
8797 2004-01-21 Alan Modra <amodra@bigpond.net.au>
8799 * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
8800 * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
8801 * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
8803 2004-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8805 * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
8806 * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
8807 Likewise. Handle frames larger than 0x7fffffff on 64-bit ports.
8808 (emit_move_sequence): Check scratch_reg first in various if statements.
8809 Extend source simplification to handle all 64-bit CONST_INTs.
8810 (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
8812 (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
8813 frame offset calculations.
8814 * pa.h (NEW_HP_ASSEMBLER): Add comment.
8815 (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
8816 LEGITIMATE_64BIT_CONST_INT_P): Define.
8817 (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P. Treat
8818 any CONST_INT as legitimate during and after reload.
8819 (VAL_32_BITS_P, INT_32_BITS): Define.
8820 (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
8822 2004-01-20 Jan Hubicka <jh@suse.cz>
8824 * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
8825 emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
8826 containing hard regs are shared.
8827 (gen_hard_reg_clobber): New function.
8828 (hard_reg_clobbers): New array.
8829 * genemit.c (gen_exp): Use gen_hard_reg_clobber.
8830 (copy_rtx): Do not copy clobbers containing hard regs.
8831 * rtl.h (gen_hard_reg_clobber): Declare.
8833 2004-01-20 Jan Hubicka <jh@suse.cz>
8835 * varray.c: Include hashtab.h
8836 (varray_descriptor): New structure.
8837 (hash_descriptor, eq_descriptor, varray_descriptor,
8838 print_statistics): New static functions
8839 (varray_init, varray_grow): Update statistics
8840 (dump_varray_statistics): New function.
8841 * varray.h (dump_varray_statistics): Declare.
8842 * toplev.c (finalize): Call it.
8843 * Makefile.in (varray.o): Add dependency.
8845 2004-01-20 Jan Hubicka <jh@suse.cz>
8847 * cselib.c: Include alloc-pool.h
8848 (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
8849 (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
8850 (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
8851 unchain_one_elt_loc_list_pool, unchain_one_value,
8852 new_cselib_val): Simplify using allocpool.
8853 (cselib_init): Initialize allocpools.
8854 (cselib_finish): Finish allocpools.
8855 * Makefile.in (cselib.o): Depend on alloc-pool.h
8857 2004-01-20 Richard Sandiford <rsandifo@redhat.com>
8859 * config/mips/mips.c (mips_load_call_address): Make the call insn
8860 use $gp if it could be calling a lazy binding stub.
8862 2004-01-20 Kazu Hirata <kazu@cs.umass.edu>
8864 * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
8865 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8866 (TARGET_STRUCT_VALUE_RTX): Likewise.
8867 * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
8868 (PROMOTE_FUNCTION_RETURN): Remove.
8869 (STRUCT_VALUE): Remove.
8871 2004-01-20 Denis Chertykov <denisc@overta.ru>
8874 * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
8875 register as pointer after reload.
8877 2004-01-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8879 PR optimization/12440
8880 * loop.c: Include ggc.h.
8881 (loop_optimize): Run garbage collector between optimization of loops.
8882 * Makefile.in (loop.o): Add GGC_H dependency.
8884 2004-01-20 Hartmut Penner <hpenner@de.ibm.com>
8886 * gcc/config/rs6000/rs6000.c (function_arg) Handle
8887 vector register special in function without prototype.
8888 (function_arg_advance): Vector parameters get always
8889 GPRs allocated for the linux64 target.
8891 2004-01-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
8893 * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
8894 not TARGET_M32RX_MASK.
8896 2004-01-20 Eric Botcazou <ebotcazou@libertysurf.fr>
8899 * config/sparc/sparc.c (function_arg): Reorder the cases.
8901 2004-01-19 Per Bothner <per@bothner.com>
8903 Move cpp_reader's line_maps field to a shared global.
8904 * cpphash.h (cpp_reader): Rename line_maps field to line_table
8905 and change the type to a pointer rather than a struct.
8906 * cppinit.c (cpp_push_main_field): Adjust accordingly.
8907 * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
8909 * cppfiles.c (validate_pch): Likewise.
8910 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
8912 * cpperror.c (print_location): Likewise.
8913 * cpplib.h (cpp_create_reader): New line_maps pointer parameter.
8914 * cppinit.c (cpp_create_reader): Handle new parameter.
8915 (cpp_destroy): Don't free line_maps - that's no longer our job.
8916 * input.h (line_table): New variable.
8917 * toplev.c (line_table): Declare variable.
8918 (general_init): Initialize line_table.
8919 * c-opts.c (c_common_init_options): Pass line_table to
8921 * fix-header.c (read_scan_file): New local variable line_table.
8922 Initialize, and pass it to cpp_create_reader.
8923 * Makefile.in (LIBS, LIBDEPS): Add libcpp.a.
8924 (C_AND_OBJC_OBJS, fix-header): Remove redundant libcpp.a.
8926 2004-01-19 Per Bothner <per@bothner.com>
8928 Implement a cache for linemap_lookup.
8929 * line-map.h (struct_line_maps): Add cache field.
8930 * line-map.c (linemap_init): Zero cache field.
8931 (linemap_add): Set cache field to offset of newly allocated map.
8932 (linemap_lookup): Use and set cache field.
8934 2004-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
8936 PR optimization/13567
8937 * cse.c (cse_basic_block): Call cse_insn with a non-null
8938 libcall_insn for the last SET insn of a no-confilict block.
8940 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
8942 * Makefile.in (target_noncanonical, program_transform_name): Use
8943 immediate define instead of deferred.
8944 (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
8945 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
8946 GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
8949 2004-01-20 Joseph S. Myers <jsm@polyomino.org.uk>
8951 * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
8952 true unconditionally.
8953 * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
8955 (build_unary_op, build_modify_expr): Don't handle extended
8957 (build_component_ref, build_conditional_expr): Call non_lvalue
8958 instead of pedantic_non_lvalue.
8959 (build_c_cast): Don't condition use of non_lvalue on pedantic.
8960 * fold-const.c (fold): Don't check pedantic directly for
8961 COMPOUND_EXPR. Ensure that results for COMPOUND_EXPR are
8962 passed to pedantic_non_lvalue.
8963 * doc/extend.texi: Remove documentation of extended lvalues.
8965 2004-01-19 Roger Sayle <roger@eyesopen.com>
8967 PR optimization/5263
8968 * simplify-rtx.c (associative_constant_p): Delete.
8969 (simplify_associative_operation): Rewrite to linearize terms, and
8970 attempt to simplify new term against both left and right subterms.
8971 (simplify_binary_operation): Call swap_commutative_operands_p on
8972 op0 and op1, not trueop0 and trueop1. Move the initialization of
8973 trueop0 and trueop1 down to where first needed.
8974 (simplify_relational_operation): Likewise.
8975 * rtlanal.c (commutative_operand_precedence): Also order constant
8976 operands using avoid_constant_pool_reference.
8978 2004-01-19 Richard Henderson <rth@redhat.com>
8980 * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
8981 don't check memory mode.
8982 (unaligned_memory_operand): Likewise.
8983 (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
8984 abort for op0 not MEM.
8986 * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
8987 is not a reg, copy to a scratch first.
8988 (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
8989 unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
8990 unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
8991 (reload_inqi, reload_inhi): Fix mode of op0.
8992 (reload_inqi_help, reload_inhi_help, reload_outqi_help,
8993 reload_outhi_help): Likewise. Use define_insn_and_split.
8995 * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
8996 as well as $29 dead.
8998 2004-01-19 Eric Botcazou <ebotcazou@libertysurf.fr>
9000 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New. Emit
9001 "tls_object" for thread-local objects.
9002 * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
9003 "#tls" for thread-local sections.
9004 * configure.ac (thread-local checks): Specify --fatal-warnings in
9005 every binutils-specific checks. For sparc*-*-*, test whether the
9006 OS is Solaris and the tools are native and act accordingly.
9007 * configure: Rebuild.
9009 2004-01-19 Jeff Law <law@redhat.com>
9011 * contrib.texi: Update Paolo Carlini's entry. New entries for
9012 Jerry Quinn and Petur Runolfsson.
9014 2004-01-19 Roger Sayle <roger@eyesopen.com>
9016 * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
9017 size, don't use the larger zero-extending loads.
9019 2004-01-19 Richard Henderson <rth@redhat.com>
9021 * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
9022 * alpha.md (UNSPEC_NT_LDA): Remove.
9023 (UNSPEC_CVTLQ, cvtlq): New.
9024 (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
9025 (extendsidi2_fix): Remove.
9026 (extendsidi2 splitter): Use cvtlq.
9027 (extendsidi2 fp peepholes): Remove.
9028 (cvtql): Use SFmode instead of SImode.
9029 (fix_trunc?fsi): Update to match.
9030 (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
9031 (movsi): Rename from movsi_nofix, remove f alternatives.
9032 (movsi_nt_vms): Similarly.
9033 (movsi_fix, movsi_nt_vms_fix): Remove.
9035 * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
9037 2004-01-19 Jan Hubicka <jh@suse.cz>
9039 * cgraph.c (cgraph_remove_node): Fix removal from linked list.
9040 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
9042 (cgraph_remove_unreachable_nodes): New function
9043 (cgraph_decide_inlining_of_small_function): Fix pasto.
9044 (cgraph_decide_inlining_incrementally): Fix pasto.
9045 (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
9047 2004-01-19 Steven Bosscher <stevenb@suse.de>
9049 * gengtype.c (header_file): Make it static.
9050 (write_types_process_field, write_enum_defn): Minor whitespace fixes.
9051 * gengtype.h (header_file): No longer extern.
9053 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
9055 * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
9056 * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
9057 * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
9059 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
9061 * stmt.c (HAVE_casesi): Define it not already defined.
9062 (HAVE_tablejump): Likewise.
9063 (expand_end_case_type): Resort to the binary tree method if
9064 neither casesi or tablejump is available.
9066 2004-01-18 Daniel Jacobowitz <drow@mvista.com>
9068 * final.c (final_scan_insn): Make non-static again.
9069 * output.h (final_scan_insn): Re-add prototype.
9070 * config/arc/arc.c (arc_output_function_epilogue): Add NULL
9071 to final_scan_insn call.
9072 * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
9073 * config/mips/mips.c (mips_output_conditional_branch): Likewise.
9074 * config/pa/pa.c (output_lbranch, output_call): Likewise.
9075 * config/sh/sh.c (print_slot): Likewise.
9076 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
9077 (output_sibcall, sparc_flat_function_epilogue): Likewise.
9079 2004-01-18 Jan Hubicka <jh@suse.cz>
9081 * basic-block.h (try_redirect_by_replacing_jump): Declare.
9082 * cfgcleanup.c (try_optimize_cfg): Use it.
9083 * cfgrtl.c (try_redirect_by_replacing_jump): Export.
9084 (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
9086 (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
9089 2004-01-16 Geoffrey Keating <geoffk@apple.com>
9091 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
9092 even after reload, just don't remove the actual jump tables.
9094 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
9096 * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
9098 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
9100 * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
9101 the size of a pointer in bytes.
9103 2004-01-18 Roger Sayle <roger@eyesopen.com>
9105 * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
9106 live "next" variable, which could lead to an infinite loop.
9108 2004-01-18 Andrew Pinski <pinskia@physics.uc.edu>
9110 * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
9113 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
9114 Check for NULL in the chain and remove repeated code.
9116 2004-01-18 Jan Hubicka <jh@suse.cz>
9118 * coverage.c (checksum_string): Rename to ...
9119 (coverage_checksum_string): ... this one, Use crc32_string; recognize
9120 names containing random number and zero the number out in order to get
9123 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
9125 * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
9127 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
9129 * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
9130 doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
9131 doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
9132 doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
9133 doc/trouble.texi: Remove trailing whitespace.
9135 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
9138 * config/mips/mips.c: Include cfglayout.h.
9139 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
9140 (mips_unspec_offset_high): Add temporary register argument.
9141 (mips_load_call_address): New function, split out from...
9142 (mips_expand_call): ...here.
9143 (mips_output_cplocal): New function.
9144 (mips_output_function_prologue, mips_output_function_epilogue): Use it.
9145 (mips_emit_loadgp): New function, split out from...
9146 (mips_expand_prologue): ...here.
9147 (mips_output_mi_thunk): New function.
9149 2004-01-17 Bernardo Innocenti <bernie@develer.com>
9151 * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
9152 mcpu32): Remove redundant checks for implied target predefines.
9154 2004-1-17 Andrew Pinski <pinskia@physics.uc.edu>
9156 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
9157 Return type is unsigned int not int.
9158 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
9161 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
9163 * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
9164 doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
9165 "GNU/Linux" and "Microsoft Windows" terminology.
9167 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
9169 * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
9170 doc/cppopts.texi, doc/extend.texi, doc/install.texi,
9171 doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
9172 doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
9173 @smallexample instead of @example.
9175 2004-01-17 Ziemowit Laski <zlaski@apple.com>
9177 * objc/objc-act.c (build_objc_method_call): Use target
9178 hooks instead of macros to determine if ..._stret
9179 dispatchers should be used (NeXT runtime only).
9181 2004-01-17 Roger Sayle <roger@eyesopen.com>
9183 * builtins.c (expand_builtin_expect_jump): Fix mistake in my
9184 last patch. Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
9186 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
9188 * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
9189 (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
9190 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
9192 * reload1.c (emit_reload_insns): Use them.
9193 * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
9194 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
9197 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
9199 * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
9200 (final_scan_insn): Update to take an additional SEEN argument. Emit
9201 a line note after the prologue. Make static.
9202 (line_note_exists): Remove.
9203 (final): Don't initialize line_note_exists. Update call to
9205 * output.h (final_scan_insn): Remove prologue.
9206 * function.c (set_insn_locators): Update comment.
9207 (thread_prologue_and_epilogue_insns): Add a comment.
9209 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
9212 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
9214 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
9216 * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
9217 * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
9218 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
9220 2004-01-17 Jan Hubicka <jh@suse.cz>
9222 * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
9225 * toplev.c (HAVE_conditional_execution): Provide default.
9226 (rest_of_handle_reorder_blocks): For conditional_execution target
9227 update liveness once after all transformations
9228 (rest_of_compilation): Do crossjumping before ce3.
9230 2004-01-17 Geoffrey Keating <geoffk@apple.com>
9232 * alias.c (new_alias_set): Mark last_alias_set for PCH.
9233 (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
9235 (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
9236 * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
9237 (get_TOC_alias_set): Mark 'set' for PCH.
9239 2004-01-16 Geoffrey Keating <geoffk@apple.com>
9241 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
9242 even after reload, just don't remove the actual jump tables.
9244 2004-01-17 J. Brobecker <brobecker@gnat.com>
9246 * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
9247 Remove checks for is_ada() and TREE_UNSIGNED.
9248 (subrange_type_die): Emit a byte_size attribute if the subrange
9249 type size is different from the base type size.
9250 (modified_type_die): Replace call to is_ada_subrange_type() by
9251 call to is_subrange_type().
9253 2004-01-16 Andrew Pinski <pinskia@physics.uc.edu>
9255 * config/sh/sh.c: Include ggc.h.
9257 2004-01-16 Geoffrey Keating <geoffk@apple.com>
9259 * Makefile.in (MD5_H): New.
9260 (fold-const.o): Depend on md5.h.
9261 (dwarf2out.o): Likewise.
9262 (cppfiles.o): Likewise.
9263 * cppfiles.c: Include md5.h.
9264 (should_stack_file): Check against list read from PCH file.
9265 (struct pchf_data): New.
9266 (pchf): New variable.
9267 (struct pchf_adder_info): New.
9269 (pchf_save_compare): New.
9270 (_cpp_save_file_entries): New.
9271 (_cpp_read_file_entries): New.
9272 (struct pchf_compare_data): New.
9273 (pchf_compare): New.
9274 (check_file_against_entries): New.
9275 * cpphash.h (_cpp_save_file_entries): Prototype.
9276 (_cpp_read_file_entries): Prototype.
9277 * cpppch.c (cpp_write_pch_state): Write the list of headers.
9278 (cpp_read_state): Read the list of headers.
9280 2004-01-17 Jan Hubicka <jh@suse.cz>
9282 * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
9283 builtin_expect specially.
9284 * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
9285 (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
9286 * invoke.texi (max-inline-insns-single): Set to 100.
9287 (large-function-insns): Set to 3000.
9289 2004-01-16 Eric Christopher <echristo@redhat.com>
9290 Chandrakala Chavva <cchavva@redhat.com>
9292 * cppcharset.c (one_iso88591_to_utf8): New function.
9293 (convert_iso88591_utf8): Ditto. Use.
9294 (conversion_tab): Use.
9295 (_cpp_input_to_utf8): New function.
9296 (_cpp_init_iconv_buffer): Ditto.
9297 (_cpp_close_iconv_buffer): Ditto.
9298 * cpphash.h: Prototype new functions.
9299 (cpp_buffer): Add input_cset_desc.
9300 * cppinit.c: Add input_charset default.
9301 * cpplib.c (cpp_push_buffer): Support init and
9303 * cpplib.h (cpp_options): Add input_charset.
9305 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
9307 * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
9308 * config/alpha/unicosmk.h: Remove a commented-out definition
9309 of ASM_OUTPUT_SECTION_NAME.
9310 * config/stormy16/stormy16.h: Likewise.
9312 2004-01-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9314 * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
9315 (alpha___extern_prefix_sys_stat): ... this.
9316 Apply to <sys/mount.h>, too.
9317 Tweak to match more variations.
9318 * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
9320 * fixinc/inclhack.def (alpha___extern_prefix,
9321 alpha___extern_prefix_standards): New hacks to obey
9322 __PRAGMA_EXTERN_PREFIX.
9323 * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
9325 * fixinc/tests/base/standards.h: Likewise.
9327 * fixincl/inclhack.def (alpha_pthread): Tweak to match more
9330 * fixinc/tests/base/pthread.h: Handle it.
9332 * fixincl/inclhack.def (bad_lval): Sort file list.
9333 Add many missing files up to Tru64 UNIX V5.1B.
9334 * gcc/fixinc/tests/base/libgen.h: Renamed to ...
9335 * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
9338 * fixinc/fixincl.x: Regenerate.
9340 2004-01-16 Mark Mitchell <mark@codesourcery.com>
9342 * version.c (version_string): Change to 3.5.0.
9343 * doc/include/gcc-common.texi (version-GCC): Likewise.
9345 2004-01-16 Jan Hubicka <jh@suse.cz>
9347 * i386.md (load_tp_di): Fix pasto.
9350 * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
9352 * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
9353 pp_c_character_constant, pp_c_floating_constant,
9354 pp_c_additive_expression, pp_c_shift_expression,
9355 pp_c_equality_expression, pp_c_and_expression,
9356 pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
9357 pp_c_logical_and_expression): Remove inline modifier.
9358 * dwarf2out.c (get_AT): Likewise.
9359 * et-forest.c (et_splay): Likewise.
9360 * ra.h (ra_alloc, ra_calloc): Likewise
9362 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
9364 * config/frv/frv-protos.h: Fix comment formatting.
9365 * config/frv/frv.c: Likewise.
9366 * config/frv/frv.h: Likewise.
9367 * config/frv/frv.md: Likewise.
9368 * config/frv/frvbegin.c: Likewise.
9369 * config/frv/frvend.c: Likewise.
9371 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
9373 * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
9374 * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
9375 LINKER_DOES_NOT_WORK_WITH_DWARF2.
9376 (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
9378 2004-01-16 J"orn Rennecke <joern.rennecke@superh.com>
9381 * postreload.c (reload_cse_simplify_operands): Don't remove
9382 implicit extension from LOAD_EXTEND_OP.
9384 2004-01-16 Jan Hubicka <jh@suse.cz>
9387 * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
9389 * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
9390 rtl_try_redirect_by_replacing_branch): Likewise.
9392 2004-01-15 Geoffrey Keating <geoffk@apple.com>
9395 * alias.c (struct alias_set_entry): Mark for GC.
9396 (alias_sets): Make static, mark for GC.
9397 (record_alias_subset): Use GC to allocate alias structures.
9398 * varray.c (element): Make generic varrays GCed.
9401 * c-typeck.c (constructor_asmspec): Delete.
9402 (struct initializer_stack): Delete field 'asmspec'.
9403 (start_init): Delete saving of asmspec.
9404 (finish_init): Don't update constructor_asmspec.
9405 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
9406 * stmt.c (expand_asm): Duplicate strings from tree.
9407 (expand_asm_operands): Likewise.
9408 * tree.c (tree_size): Update computation of size of STRING_CST.
9409 (make_node): Don't make STRING_CST nodes.
9410 (build_string): Allocate string with tree node.
9411 * tree.def (STRING_CST): Update comment.
9412 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
9413 (tree_string): Place contents of string in tree node.
9414 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
9417 * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
9420 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
9422 * c-common.h: Fix comment formatting.
9423 * c-cppbuiltin.c: Likewise.
9424 * c-pragma.c: Likewise.
9425 * calls.c: Likewise.
9426 * collect2.c: Likewise.
9427 * cppcharset.c: Likewise.
9428 * cpptrad.c: Likewise.
9429 * dbxout.c: Likewise.
9430 * defaults.h: Likewise.
9431 * dwarf2out.c: Likewise.
9432 * fold-const.c: Likewise.
9433 * genautomata.c: Likewise.
9434 * genconditions.c: Likewise.
9435 * genflags.c: Likewise.
9436 * gengtype.c: Likewise.
9437 * integrate.c: Likewise.
9439 * predict.c: Likewise.
9440 * sdbout.c: Likewise.
9442 2004-01-15 Zack Weinberg <zack@codesourcery.com>
9444 * config/ia64/ia64.md (*movti_internal): C output template
9445 extracted to ia64.c.
9446 (*movti_internal_reg): Delete.
9447 (reload_inti, reload_outti): Use the correct mode on operand 2
9448 in the first place, don't fix it up in the output template.
9449 (movtf, reload_ointf, reload_outtf): New expanders.
9450 (*movtf_internal): New define_insn_and_split.
9451 * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
9452 make static; do not hand TFmode CONST_DOUBLEs to split_double.
9453 (ia64_split_tmode_move): New function, body mostly pulled
9454 from ia64.md:*movti_internal.
9455 (ia64_function_arg_words): New function, extracted common
9456 logic from ia64_function_arg et seq.
9457 (ia64_function_arg_offset): Likewise. Handle correctly the
9458 case of a scalar quantity 16 bytes wide with only 8-byte alignment.
9459 (ia64_function_arg, ia64_function_arg_partial_nregs)
9460 (ia64_function_arg_advance): Use ia64_function_arg_words and
9461 ia64_function_arg_offset.
9462 (ia64_function_value): TCmode does not go in float regs.
9463 (ia64_secondary_reload_class): Also handle TFmode.
9464 * config/ia64/ia64-protos.h: Remove prototype for
9465 ia64_split_timode; add prototype for ia64_split_tmode_move.
9467 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
9469 * Makefile.in (MAINT): Make it an immediate assignment.
9471 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
9473 * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
9475 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
9477 * config/h8300/coff.h: Replace Hitachi with Renesas.
9478 * config/h8300/elf.h: Likewise.
9479 * config/h8300/h8300-protos.h: Likewise.
9480 * config/h8300/h8300.c: Likewise.
9481 * config/h8300/h8300.h: Likewise.
9482 * config/h8300/h8300.md: Likewise.
9483 * config/h8300/lib1funcs.asm: Likewise.
9485 2004-01-15 Andrew Pinski <apinski@apple.com>
9487 * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
9490 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
9492 * config/h8300/h8300.c (h8300_return_in_memory): New.
9493 (TARGET_STRUCT_VALUE_RTX): Likewise.
9494 (TARGET_RETURN_IN_MEMORY): Likewise.
9495 * config/h8300/h8300.h (STRUCT_VALUE): Remove.
9496 (RETURN_IN_MEMORY): Likewise.
9498 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
9500 PR optimization/13375
9501 * gcse.c (handle_avail_expr): Just return if the source is not a
9504 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
9505 Daniel Jacobowitz <drow@mvista.com>
9507 * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
9509 (ARM_FUNC_ALIAS): New macro.
9510 * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
9511 * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
9513 2004-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9515 PR optimization/12372
9516 * calls.c (expand_call): Add call_fusage data for stack arguments in
9519 2004-01-15 Alan Modra <amodra@bigpond.net.au>
9521 * config/rs6000/rs6000.c (uses_TOC): Correct comment. Make static.
9522 (rs6000_elf_declare_function_name): Formatting.
9523 * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
9525 2004-01-15 Jan Hubicka <jh@suse.cz>
9528 * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
9531 2004-01-15 Richard Henderson <rth@redhat.com>
9533 * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
9534 integer regs of the same call-savedness.
9536 2004-01-15 Andreas Schwab <schwab@suse.de>
9539 * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
9540 status for NOTB/NOTW/NEGW methods.
9542 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
9544 * doc/invoke.texi: Update dump file names. Fix a typo.
9546 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
9548 * builtins.c (expand_builtin_va_end): Don't use
9549 EXPAND_BUILTIN_VA_END.
9550 * system.h (EXPAND_BUILTIN_VA_END): Poison.
9551 * config/d30v/d30v.h: Remove a commented-out definition of
9552 EXPAND_BUILTIN_VA_END.
9553 * config/stormy16/stormy16.h: Likewise.
9555 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
9557 * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
9558 * targhooks.c (default_struct_value_rtx): Don't use
9559 STRUCT_VALUE_INCOMING_REGNUM.
9561 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
9564 * configure.in: Revamp enable-generated-files-in-srcdir rule to define
9565 GENINSRC and not parsedir. Define srcextra as a langhook.
9566 * configure: Regenerate.
9567 * Makefile.in: Suppress default .l.c rule. Don't substitute
9568 parsedir and delete all references throughout. Conditionally define
9569 rule for srcextra dependent on GENINSRC.
9570 (stmp-docobjdir): Delete.
9571 (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
9572 (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
9573 and gengtype-yacc.h back to source directory.
9574 (maintainer-clean): Delete all parse files in source directory.
9575 (distclean): Delete generated files.
9577 * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
9578 (objc-parse.c, objc-parse.y): Don't use parsedir.
9579 (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
9580 directory if requested.
9581 (po-generated): Don't use parsedir.
9582 (objc.maintainer-clean): Delete above files from source directory.
9584 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
9586 * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
9588 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
9590 * doc/tm.texi: Replace RETURN_IN_MEMORY with
9591 TARGET_RETURN_IN_MEMORY.
9593 2004-01-15 Jan Hubicka <jh@suse.cz>
9595 * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
9596 * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
9597 functions accepting SSE arguments
9598 (function_arg): Warn only when asked to warn.
9599 * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
9601 2004-01-14 Joseph S. Myers <jsm@polyomino.org.uk>
9603 * c-parse.in (stmts_and_decls): Make label at end of compound
9604 statement a hard error.
9606 2004-01-14 Jan Hubicka <jh@suse.cz>
9608 * cgraph.c (create_edge): Use local.redefined_extern_inline.
9609 * cgraph.h (cgraph_local_info): Sort fields by size; add
9610 redefined_extern_inline
9611 (cgraph_global_info): Sort fields by size.
9612 (cgraph_node): Likewise.
9613 * cgraphunit.c (cgraph_finalize_function): Se
9614 local.redefined_extern_inline on redefinition.
9615 (cgraph_analyze_function): Use it; fix formating.
9617 2004-01-14 Jan Hubicka <jh@suse.cz>
9620 * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
9621 outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
9623 (cache_size): New variable
9624 (add_dependence): Update use; canonize early memory locations
9625 (sched_analyze_1): Likewise.
9626 (sched_analyze_2): Likewise.
9627 (init_dependency_caches): Initialize bitmaps.
9628 (free_dependency_caches): Free bitmaps
9630 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
9632 * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
9633 targetm.calls.strict_argument_naming().
9634 * target.h: Likewise.
9636 2004-01-14 Richard Henderson <rth@redhat.com>
9639 * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
9642 2004-01-14 Richard Henderson <rth@redhat.com>
9645 * except.c (struct eh_region): Add u.fixup.resolved.
9646 (resolve_one_fixup_region): Split out from ...
9647 (resolve_fixup_regions): ... here.
9649 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
9651 * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
9653 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
9655 * config/alpha/alpha.h (STRUCT_VALUE): Remove.
9656 * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
9657 (STRUCT_VALUE): Remove.
9659 2004-01-14 Steven Bosscher <stevenb@suse.de>
9661 * system.h: Poison PROMOTED_MODE
9662 * integrate.c (expand_inline_function): Don't mention the
9664 * loop.c (update_giv_derive): Same.
9665 * tree.h (DECL_RTL): Same.
9667 2004-01-14 J"orn Rennecke <joern.rennecke@superh.com>
9670 * sh.c (gen_block_redirect): Add special handling of RETURN.
9671 (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
9672 far branch target (i.e. it's a return).
9674 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
9676 * regrename.c (find_oldest_value_reg): Fix a warning.
9678 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
9681 * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
9682 Move linux-gas.h and linux-elf.h before aout.h.
9683 * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
9684 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
9686 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
9688 * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
9689 (CONST_INT, VOIDmode, ...).
9691 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
9693 * regrename.c (find_oldest_value_reg): If the replacement uses
9694 multiple hard registers, check that all of them are in CLASS.
9696 2004-01-14 Jan Hubicka <jh@suse.cz>
9698 * alias.c (get_alias_set): Initialize alias set to 0 when subset is
9701 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
9703 * Makefile.in: Define MAINT from --enable-maintainer-mode.
9705 2004-01-14 Hartmut Penner <hpenner@de.ibm.com>
9707 * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
9708 Calculate always vrsave_mask if TARGET_ALTIVEC.
9709 (rs6000_emit_prologue): Emit code for vrsave
9710 only if TARGET_ALTIVEC_VRSAVE.
9711 (rs6000_emit_epilogue): Likewise.
9713 2004-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
9715 * config/sparc/sparc.md (tie_add32): Fix pasto.
9716 (tie_add64): Likewise.
9718 2004-01-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9720 * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
9722 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
9724 * config/iq2000/iq2000-protos.h: Fix comment formatting.
9725 * config/iq2000/iq2000.c: Likewise.
9726 * config/iq2000/iq2000.md: Likewise.
9728 2004-01-14 J. Brobecker <brobecker@gnat.com>
9730 * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
9731 (subrange_type_die): Add handle for nameless subrange types.
9733 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
9735 * config/h8300/h8300-protos.h: Replace do_movsi with
9737 * config/h8300/h8300.c (do_movsi): Change to
9739 * config/h8300/h8300.md (movsi): Replace do_movsi with
9743 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
9745 * config/h8300/h8300.c (dosize): Change to
9746 h8300_emit_stack_adjustment. Update callers.
9748 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
9750 * config/h8300/h8300.md (movstrictqi): Add an alternative with
9751 the source being post_inc. Tighten the predicate for the
9752 destination to register_operand.
9753 (movstricthi): Likewise.
9755 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
9757 * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
9758 * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
9759 * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
9761 2004-01-14 Jan Hubicka <jh@suse.cz>
9763 Partial fix PR c++/12850
9764 * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
9767 2004-01-13 Bernardo Innocenti <bernie@develer.com>
9769 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
9772 2004-01-13 Devang Patel <dpatel@apple.com
9775 * dbxout.c (dbxout_symbol_name): Emit mangled names for
9776 NAMESPACE_DECL memebers.
9778 2004-01-13 Andrew Pinski <pinskia@physics.uc.edu>
9781 * c-common.c (finish_fname_decls): Use the chain only if the
9782 tree is an expr_stmt.
9784 2004-01-13 Vladimir Makarov <vmakarov@redhat.com>
9786 * rtl.def: Add comment about new option in automata_option.
9788 * genautomata.c (PROGRESS_OPTION): New macro.
9789 (progress_flag): New global variable.
9790 (gen_automata_option): Process `progress'.
9791 (transform_insn_regexps, check_unit_distributions_to_automata,
9792 make_automaton, NDFA_to_DFA, build_automaton, create_automata,
9793 expand_automata, write_automata): Print about the progress only if
9794 progress_flag. Remove fflush.
9795 (initiate_automaton_gen): Process command line flag `-progress'.
9797 * doc/md.texi: Describe the new option.
9799 2004-01-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9801 * cfg.c (dump_bb): Dump entry edges.
9803 2004-01-13 Richard Earnshaw <rearnsha@arm.com>
9805 * arm.c (thumb_legitimate_address_p): Only allow constant pool
9806 references from SImode.
9807 * arm.md (thumb_movhi_insn): Don't allow minipool references.
9809 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
9811 * system.h (TEXT_SECTION): Poison.
9812 * varasm.c (text_section): Don't use TEXT_SECTION.
9813 * config/sh/sh.c (sh_file_start): Fix a comment typo.
9814 * doc/tm.texi (TEXT_SECTION): Remove.
9816 2004-01-13 Ben Elliston <bje@wasabisystems.com>
9818 * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
9820 2004-01-12 James E Wilson <wilson@specifixinc.com>
9822 * unwind-libunwind.c: Delete.
9824 2004-01-12 Zack Weinberg <zack@codesourcery.com>
9827 * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
9828 oldtype is set, set *newtypep or *oldtypep too. Do not set
9829 them at the very end.
9830 (validate_proto_after_old_defn): Restructure for comprehensibility;
9831 make error messages clearer.
9833 2004-01-12 Zack Weinberg <zack@codesourcery.com>
9835 * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
9836 (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
9837 * varray.c: No need to prototype error.
9838 (varray_check_failed): Wrap long string onto two lines.
9839 (varray_underflow): New function.
9841 2004-01-13 Steven Bosscher <stevenb@suse.de>
9844 * function.h (struct function): Kill `name' field.
9845 (current_function_name): Make it an extern function.
9846 * function.c (current_function_name): New function.
9847 * graph.c: Update all uses of current_function_name.
9849 * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
9850 config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
9851 * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
9852 instead of a strcmp with "main".
9854 2004-01-13 Jan Hubicka <jh@suse.cz>
9856 * c-decl.c (diagnose_mismatched_decls): Fix warning calls.
9858 * cgraphunit.c (cgraph_optimize_function): Always do
9859 optimize_inline_calls when there is always_inline callee.
9860 (cgraph_decide_inlining): Fix formating.
9861 * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
9863 (expand_call_inline): Likewise.
9864 * toplev.h (sorry): Fix prototype.
9866 2004-01-12 Roger Sayle <roger@eyesopen.com>
9868 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
9869 conditional jumps that drop through to unconditional jumps or the
9870 end of the sequence.
9872 2004-01-13 Jan Hubicka <jh@suse.cz>
9874 * alias.c (new_alias_set): Construct the alias_set varray.
9875 (init_alias_once): Don't do it here.
9877 2004-01-12 Marc Espie <espie@openbsd.org>
9879 * system.h: handle YYBYACC like YYBISON.
9881 2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
9884 * config.gcc: No longer includes conflicting header sparc/sol2.h when
9885 building on sparc64-*-openbsd*.
9887 2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
9890 * dbxout.c (dbxout_type): Protected inheritance is not
9891 private but protected.
9893 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
9895 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
9897 2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
9899 PR optimization/12508.
9900 * combine.c (try_combine): Remove a dead set in a parallel
9901 even if its destination is a subreg.
9904 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
9905 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
9906 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
9908 2004-01-12 Geoffrey Keating <geoffk@apple.com>
9910 * real.c: Update copyright date.
9911 * emit-rtl.c: Likewise.
9913 * dwarf2out.c: Likewise.
9914 * config/rs6000/darwin-ldouble.c: Likewise.
9915 * config/rs6000/rs6000.md: Likewise.
9917 2004-01-12 David Edelsohn <edelsohn@gnu.org>
9919 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
9920 TFmode to SImode libfuncs.
9922 2004-01-12 Roger Sayle <roger@eyesopen.com>
9925 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
9927 2004-01-12 Jan Hubicka <jh@suse.cz>
9930 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
9934 * cfgcleanup.c (label_is_jump_target_p): Move to...
9935 * rtlanal.c (label_is_jump_target_p): ... here.
9936 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
9937 edges unified with branch edges.
9939 2004-01-12 Richard Earnshaw <rearnsha@arm.com>
9941 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
9942 high word of an integral CONST_DOUBLE.
9944 2004-01-12 Paul Brook <paul@codesourcery.com>
9946 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
9948 2004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
9951 * sh-protos.h (check_use_sfunc_addr): Declare.
9952 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
9953 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
9955 2004-01-12 Jan Hubicka <jh@suse.cz>
9957 * alias.c: Invlude varray.h
9958 (alias_sets): Turn into varray.
9959 (get_alias_set_entry): Use VARRAY; mark inline.
9960 (mems_in_disjoint_alias_sets_p): Mark inline.
9961 (record_alias_subset): Use varray.
9962 (init_alias_once): Initialize varray.
9963 (new_alias_set): Grow array.
9964 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
9966 2004-01-12 Jan Hubicka <jh@suse.cz>
9968 Partial fix for PR opt/10776 II
9969 * cselib.c: Include params.h
9970 (cselib_invalidate_mem): Limit amount of nonconflicting memory
9972 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
9973 * Makefile.in (cselib.o): Depend on params.h
9975 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
9977 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
9978 simplify_unary_operation if the operand has a known mode.
9980 2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
9983 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
9984 predicate to handle 'ld' conform addresses.
9985 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
9987 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
9988 are memory contraints.
9989 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
9991 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
9992 Change 'o' to 'Y' constraint.
9993 (*movdf_softfloat64): Ditto.
9995 2004-01-12 Bernardo Innocenti <bernie@develer.com>
9997 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
9998 brace-enclosed syntax in all C output statements.
10000 2004-01-12 David Edelsohn <edelsohn@gnu.org>
10003 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
10004 Objective-C language type value is 14.
10006 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
10009 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
10010 `int' in a number of places to make sure we always have a SImode
10011 and not a HImode. Add a 'L' suffix to a number of constants.
10013 2004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10015 * pa.c: Don't include obstack.h.
10017 * pa.md: Correct constraint in pattern for loading PIC label address.
10019 2004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
10021 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
10024 2004-01-11 Steven Bosscher <stevenb@suse.de>
10027 * toplev.c (rest_of_handle_inline): Also consider functions
10028 for deferral if the language is GNU F77.
10030 2004-01-11 Zack Weinberg <zack@codesourcery.com>
10032 * c-decl.c (diagnose_arglist_conflict): Add missing space to
10033 diagnostic messages.
10035 2004-01-11 Jakub Jelinek <jakub@redhat.com>
10037 PR middle-end/13392
10038 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
10039 to drop through label. Don't fall back to SCC even when conditional
10040 jump has not been found.
10042 2004-01-11 Jan Hubicka <jh@suse.cz>
10044 * invoke.texi: Fix syntax error in previous patch.
10046 Partial fix for PR opt/10776
10047 * Makefile.in (reload.o): Include param.h
10048 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
10049 * reload.c: Include params.h.
10050 (find_equiv_reg): Work limiting check.
10051 * invoke.texi: Document.
10053 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
10055 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
10056 out-of-bounds accesses to string constants. Simplify mips16
10059 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
10061 PR optimization/13469
10062 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
10063 reload_cse_regs (-fnon-call-exceptions only).
10065 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
10067 * config/mcore/lib1.asm: Fix comment formatting.
10068 * config/mcore/mcore-elf.h: Likewise.
10069 * config/mcore/mcore.c: Likewise.
10070 * config/mcore/mcore.h: Likewise.
10071 * config/mcore/mcore.md: Likewise.
10073 2004-01-10 Zack Weinberg <zack@codesourcery.com>
10075 * c-decl.c (duplicate_decls): Break apart into...
10076 (diagnose_arglist_conflict, validate_proto_after_old_defn)
10077 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
10078 ... these new functions. Restructure for comprehensibility.
10079 Remove various archaic special cases. Always report the
10080 location of the previous declaration when a diagnostic is issued.
10081 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
10082 (match_builtin_function_types): Delete unnecessary forward declaration.
10084 2004-01-10 Zack Weinberg <zack@codesourcery.com>
10086 * genautomata.c (make_automaton, NDFA_to_DFA):
10087 Print progress bars with '.' characters instead of '*'.
10088 (build_automaton): Change notes to match.
10090 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
10092 * config/m32r/m32r.md: Use define_constants for unspec and
10095 2004-01-10 Jan Hubicka <jh@suse.cz>
10098 * expr.c (expand_expr_real): More curefully expand union casts.
10100 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
10102 * config/m32r/m32r.md (flush_icache): Use 1 for
10105 2004-01-10 David Edelsohn <edelsohn@gnu.org>
10106 James E Wilson <wilson@specifixinc.com>
10109 * dbxout.c (dbxout_symbol): Remove initialization of
10110 current_sym_code, current_sym_value, and current_sym_addr.
10111 (dbxout_symbol_location): Same.
10112 (dbxout_prepare_symbol): Zero current_sym_code,
10113 current_sym_value, and current_sym_addr.
10115 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
10117 * tree.c (get_unwidened): Reorder conditions so that the null pointer
10118 check is done first.
10120 2004-01-09 Eric Christopher <echristo@redhat.com>
10122 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
10123 if we're running mark_constant_function.
10125 2004-01-09 Jeff Bailey <jbailey@nisa.net>
10128 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
10130 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
10133 * dbxout.c (dbxout_type_fields): Return if any item is
10134 error_mark_node or the type is error_mark_node.
10136 2004-01-09 Geoffrey Keating <geoffk@apple.com>
10138 * config/rs6000/darwin-ldouble.c: Add big comment explaining
10139 exactly what is expected as a 'long double'.
10140 (_xlqadd): When a value to be returned is representable as a
10141 'double', just return it directly, do not construct it using a union.
10142 Also, correct final fixup.
10143 (_xlqmul): Likewise.
10144 (_xlqdiv): Likewise.
10145 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
10147 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
10149 2004-01-09 Richard Henderson <rth@redhat.com>
10151 * recog.c (constrain_operands): Validate mem operands.
10153 2004-01-09 James E Wilson <wilson@specifixinc.com>
10155 * gcc.c (init_spec): Remove -lunwind from shared case.
10156 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
10158 2004-01-09 Steve Ellcey <sje@cup.hp.com>
10160 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
10161 * configure: Regenerate
10163 2004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
10166 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
10167 between function and object pointers.
10168 (digest_init): When comparing a pointer to function type to the
10169 target type, only apply TREE_TYPE once to the pointer to function
10171 * except.c (for_each_eh_label_1): Treat data as a pointer to a
10172 function pointer rather than casting it to a function pointer.
10173 (for_each_eh_label): Update caller.
10174 * recog.h (struct insn_data): Use a struct or union for output.
10175 * genoutput.c (output_insn_data): Update.
10176 * final.c (get_insn_template): Update.
10178 2004-01-09 Mark Mitchell <mark@codesourcery.com>
10180 * expr.h (expand_expr): Make it a macro, not a function.
10181 (expand_expr_real): New function.
10182 * expr.c (store_expr): Adjust logic for deciding whether or not to
10183 copy the value returned by expand_expr.
10184 (expand_expr): Rename to ...
10185 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
10186 calls to language hooks.
10187 * c-common.h (c_expand_expr): Adjust prototype.
10188 * c-common.c (c_expand_expr): Add alt_rtl parameter.
10189 * langhooks-def.h (lhd_expand_expr): Change prototype.
10190 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
10191 * langhooks.h (lang_hooks): Change type of expand_expr.
10192 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
10193 (last_expr_alt_rtl): Likewise.
10194 (expand_expr_stmt_value): Set last_expr_alt_rtl.
10195 (clear_last_expr): Clear it.
10196 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
10197 (expand_end_bindings): Save and restor last_expr_alt_rtl.
10198 * tree.def (RTL_EXPR): Give it an additional operand.
10199 * tree.h (RTL_EXPR_ALT_RTL): New macro.
10201 2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
10203 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
10204 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
10206 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
10209 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
10210 or (ne:SI (reg:CC 17) (const_int 0)).
10211 Be specific about modes wherever possible.
10213 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
10215 * config/m32r/m32r.c (m32r_expand_block_move): Call
10216 gen_movestrsi_internal with two more arguments.
10217 (m32r_output_block_move): Adjust operand numbers.
10218 Properly update the source and destination pointers.
10219 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
10220 'r+'. Change the set detinations to match_operand.
10222 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
10224 * final.c (FIRST_INSN_ADDRESS): Remove.
10225 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
10226 * system.h (FIRST_INSN_ADDRESS): Poison.
10227 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
10228 * config/m32r/m32r-protos.h: Remove the prototype for
10229 m32r_first_insn_address.
10230 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
10231 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
10232 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
10234 2004-01-09 J. Brobecker <brobecker@gnat.com>
10236 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
10238 (is_ada_subrange_type): DIEs for enumeration subtypes should be
10239 emitted as subrange types too.
10240 (subrange_type_die): Add handling of enumeration subtypes.
10242 2004-01-08 Richard Henderson <rth@redhat.com>
10245 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
10246 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
10247 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
10248 (ix86_address_cost): Be prepared for SUBREGed registers.
10249 (legitimate_address_p): Accept SUBREGed registers.
10251 2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
10253 * Makefile.in: Rename configure.in to configure.ac
10254 * doc/sourcebuild.texi: Likewise.
10255 * configure: Regenerate.
10256 * config.in: Regenerate.
10258 2004-01-08 Stuart Hastings <stuart@apple.com>
10260 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
10262 2004-01-08 Jan Hubicka <jh@suse.cz>
10264 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
10266 2004-01-08 Geoffrey Keating <geoffk@apple.com>
10268 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
10269 (UNSPEC_FIX_TRUNC_TF): New constant.
10270 (movtf_internal): Make splitter active only when insn is active.
10271 (extenddftf2): Rewrite to properly load zero into low part.
10272 (extenddftf2_internal): New.
10273 (extendsftf2): Rewrite.
10274 (truncdftf2): Correct length.
10275 (floatditf2): Delete.
10276 (fix_trunc_helper): New.
10277 (fix_trunctfdi2): Use fix_trunc_helper.
10278 (fix_trunctfsi2): Likewise.fix_trunc
10279 (fix_trunctfsi2_internal): New.
10281 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
10282 addresses are legitimate on Darwin even when flag_pic.
10283 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
10284 non-offsettable addresses for loads of TFmode constants.
10286 2004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
10288 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
10289 variables in the appropriate bss section.
10291 2004-01-09 Alan Modra <amodra@bigpond.net.au>
10293 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
10294 target_flags has MASK_POWERPC64 when -m64.
10295 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
10296 to 620, 630, power3, power4 and rs64a entries.
10297 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
10299 2004-01-08 Richard Sandiford <rsandifo@redhat.com>
10301 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
10302 floating-point constants.
10304 2004-01-08 J. Brobecker <brobecker@gnat.com>
10306 * dwarf2out.c (subrange_type_die): Add context_die parameter.
10307 Create the subrange_type DIE using the given context DIE.
10308 (modified_type_die): Update call to subrange_type_die.
10310 2004-01-08 Zack Weinberg <zack@codesourcery.com>
10312 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
10313 Add multiple-include guard.
10315 2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
10317 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
10318 all vector constant loadable by vsplt*.
10319 (output_vec_const_move): Likewise.
10321 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
10324 * c-typeck.c (comptypes): Only treat enumerated types in the same
10325 translation unit as compatible with each other when they are the
10327 * doc/extend.texi: Update.
10329 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
10332 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
10333 array type from the array element type.
10335 2004-01-07 Alan Modra <amodra@bigpond.net.au>
10337 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
10338 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
10339 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
10340 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
10341 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
10343 2004-01-06 Eric Christopher <echristo@redhat.com>
10345 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
10346 (DWARF2_DEBUGGING_INFO): Define.
10347 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
10348 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
10349 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
10351 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
10352 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
10353 * config/mips/iris5gas.h: Ditto.
10354 (DBX_DEBUGGING_INFO): Remove.
10355 (DWARF2_DEBUGGING_INFO): Ditto.
10356 (MIPS_DEBUGGING_INFO): Ditto.
10357 (PREFERRED_DEBUGGING_TYPE): Ditto.
10358 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
10359 (PREFERRED_DEBUGGING_TYPE): Ditto.
10360 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
10361 * config/mips/elf64.h: Ditto.
10363 2004-01-06 Jan Hubicka <jh@suse.cz>
10365 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
10366 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
10368 2004-01-06 Geoffrey Keating <geoffk@apple.com>
10370 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
10371 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
10372 * config/rs6000/darwin-ldouble.c: New.
10374 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
10376 (constant_subword): Delete.
10377 * rtl.h (constant_subword): Delete prototype.
10378 (immed_double_const): Is not in varasm.c.
10379 * simplify-rtx.c (simplify_immed_subreg): New.
10380 (simplify_subreg): Use simplify_immed_subreg.
10382 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
10383 than trying to generate RTL directly.
10384 (fix_trunctfsi2): Use expand_fix rather than trying to generate
10387 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
10389 2004-01-06 David Edelsohn <edelsohn@gnu.org>
10391 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
10392 function into a separate macro.
10393 (read_only_data_section): Add void argument.
10394 (private_data_section): Same.
10395 (read_only_private_data_section): Same.
10396 (toc_section): Same.
10398 2004-01-06 Jan Hubicka <jh@suse.cz>
10400 * invoke.texi: Remove typo in last change.
10403 * config.gcc: Accept opteron and athlon-64 as variants
10405 * i386.c (override_options): Likewise.
10406 * invoke.texi (i386 -mtune): Expand documentation.
10408 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
10410 * alias.c: Fix comment typos.
10411 * builtins.c: Likewise.
10414 * dominance.c: Likewise.
10415 * dwarf2out.c: Likewise.
10416 * emit-rtl.c: Likewise.
10417 * expr.c: Likewise.
10418 * final.c: Likewise.
10419 * fold-const.c: Likewise.
10420 * gcse.c: Likewise.
10421 * genattrtab.c: Likewise.
10422 * genrecog.c: Likewise.
10423 * gensupport.c: Likewise.
10424 * ggc-zone.c: Likewise.
10425 * integrate.c: Likewise.
10426 * local-alloc.c: Likewise.
10427 * loop.c: Likewise.
10428 * recog.c: Likewise.
10429 * regmove.c: Likewise.
10430 * reg-stack.c: Likewise.
10431 * reorg.c: Likewise.
10432 * rtlanal.c: Likewise.
10434 * sched-ebb.c: Likewise.
10435 * simplify-rtx.c: Likewise.
10436 * toplev.c: Likewise.
10437 * varasm.c: Likewise.
10439 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
10441 * doc/install.texi: Fix typos.
10442 * doc/invoke.texi: Likewise.
10443 * doc/md.texi: Likewise.
10445 2004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
10447 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
10449 2004-01-06 Jan Hubicka <jh@suse.cz>
10451 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
10452 (function_arg_advance): Do not pass aggregates in SSE; deal handling
10454 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
10456 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
10457 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
10458 (MMX_REGPARM_MAX): Similarly for -mmmx.
10460 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
10462 * config/sh/linux.h: Fix comment formatting.
10463 * config/sh/netbsd-elf.h: Likewise.
10464 * config/sh/sh.c: Likewise.
10465 * config/sh/sh.h: Likewise.
10466 * config/sh/vxworks.h: Likewise.
10468 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
10470 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
10471 * toplev.c (output_file_directive): Don't use
10472 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
10474 2004-01-05 Steven Bosscher <s.bosscher@student.tudelft.nl>
10476 * toplev.c: Fix broken checkin of 2003-12-30.
10478 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
10480 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
10481 (USING_MMAP): We don't support non-mmap.
10482 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
10484 (struct page_entry): Remove bytes_free.
10485 (struct page_table_chain): Remove.
10486 (struct globals): Remove page_table member.
10487 (loookup_page_table_entry): Function deleted.
10488 (set_page_table_entry): Ditto.
10489 (ggc_allocated_p): No longer need page table lookups.
10490 (ggc_marked_p): Ditto.
10491 (alloc_small_page): Don't care about bytes_free anymore.
10492 (alloc_large_page): Round up size.
10493 (ggc_alloc_zone_1): Mark large objects as such, and calculate
10494 their size the new way.
10495 Remove page table lookups and setting.
10496 (ggc_get_size): Calculate large object size the new way.
10497 (sweep_pages): Redo to account for fact that we no longer have
10499 (ggc_collect): No longer need to reincrement bytes_free.
10500 (ggc_pch_alloc_object): Handle new large objects properly.
10501 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
10503 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
10505 * doc/invoke.texi: Remove a page break.
10507 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
10509 * config/avr/avr.c (avr_output_function_prologue): Remove an
10510 extra pair of curly braces.
10512 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
10514 * config/mn10300/mn10300.c: Fix comment formatting.
10515 * config/mn10300/mn10300.h: Likewise.
10517 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10519 * tree.h: Update documentation on nothrow_flag.
10520 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
10523 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
10525 * doc/invoke.texi: Remove traces of dead ports.
10527 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
10529 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
10532 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
10535 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
10537 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
10538 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
10539 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
10540 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
10541 (mips_symbol_insns): Don't trust the local/global classification.
10542 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
10543 (override_options): Make -mabicalls -fno-unit-at-a-time imply
10544 -mno-explicit-relocs.
10545 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
10546 between local and global symbols.
10548 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
10550 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
10551 (mips_preferred_reload_class): Declare.
10552 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
10553 (EXTRA_CONSTRAINT): Update accordingly.
10554 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
10555 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
10556 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
10557 mips_dangerous_for_la25_p.
10558 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
10559 if mips_dangerous_for_la25_p.
10561 2004-01-05 Bernardo Innocenti <bernie@develer.com>
10563 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
10566 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
10568 * configure.ac: Use AC_PROG_CPP_WERROR.
10569 * configure: Regenerate.
10571 2004-01-04 Zack Weinberg <zack@codesourcery.com>
10573 * .cvsignore: Add autom4te.cache.
10575 2004-01-04 Richard Sandiford <rsandifo@redhat.com>
10577 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
10578 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
10579 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
10580 then architecture options, then ABI options. General rewording.
10582 2004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
10585 * doc/extend.texi: Clarify definition of malloc attribute.
10587 2004-01-04 Jan Hubicka <jh@suse.cz>
10589 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
10590 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
10591 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
10592 (cgraph_inline_p): Add extra argument reason.
10593 * cgraphunit.c: Minor formating fixes.
10594 cgraph_first_inlined_callee): New functions.
10595 (record_call_1): Record builtins too.
10596 (cgraph_analyze_function): Update inline_failed messages.
10597 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
10598 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
10599 (cgraph_check_inline_limits): Likewise; Add argument reason.
10600 (cgraph_set_inline_failed): New static function.
10601 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
10603 (cgraph_inline_p): Add new argument reason.
10604 * tree-inline.c (expand_call_inline): Update warning.
10606 2004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
10608 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
10609 with modern equivalents.
10610 * configure: Regenerate.
10612 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
10613 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
10614 * configure: Regenerate.
10616 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
10618 * configure.in: Rename to configure.ac.
10619 * configure.ac: Renamed from configure.in; make minimum necessary
10620 changes for autoconf 2.5x.
10621 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
10622 * configure: Regenerate with autoconf 2.57.
10624 2004-01-03 Kazu Hirata <kazu@cs.umass.edu>
10626 * config/mips/linux.h: Fix comment formatting.
10627 * config/mips/mips.c: Likewise.
10628 * config/mips/mips.h: Likewise.
10629 * config/mips/mips.md: Likewise.
10630 * config/mips/netbsd.h: Likewise.
10631 * config/mips/windiss.h: Likewise.
10633 2004-01-02 Richard Henderson <rth@redhat.com>
10635 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
10636 for sse and 387; add suppression for mmx.
10638 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
10640 * loop.c (loop_optimize): Free all loops_info's mems.
10642 * c-typeck.c (finish_init): Free spelling_base before
10645 * cfgloop.c (flow_loops_find): Always free the sbitmap
10648 * predict.c (estimate_probability): Free bbs after being
10651 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
10653 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
10654 const_8bit_operand and call_address_operand.
10656 2004-01-02 Jan Hubicka <jh@suse.cz>
10658 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
10659 when there is nothing to inline but warnings are requested.
10660 (cgraph_decide_inlining): Fix memory leak.
10662 2004-01-02 Jan Hubicka <jh@suse.cz>
10664 * expr.c (store_constructor): Fix pasto in previous patch.
10666 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
10668 * config/i386/cygming.h: Fix comment formatting.
10669 * config/i386/djgpp.h: Likewise.
10670 * config/i386/gthr-win32.c: Likewise.
10671 * config/i386/i386-interix.h: Likewise.
10672 * config/i386/i386.c: Likewise.
10673 * config/i386/i386.h: Likewise.
10674 * config/i386/openbsd.h: Likewise.
10675 * config/i386/winnt.c: Likewise.
10676 * config/i386/xm-mingw32.h: Likewise.
10678 2004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
10680 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
10681 copyright and last modification dates.
10683 2004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
10685 * doc/install.texi (Specific): Mention x86_64.
10687 2004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
10689 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
10690 Call force_operand on plus_constant result.
10692 2004-01-01 Jan Hubicka <jh@suse.cz>
10694 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
10695 * expr.c (store_constructor): Use vec_init pattern.
10696 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
10697 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
10698 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
10699 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
10701 (sse2_unpc?pd): Fix pattern.
10702 (sse2_movlpd): Kill.
10703 (sse2_movsd): Deal with movlpd too.
10704 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
10705 (ix86_expand_vector_init): New.
10706 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
10707 * md.texi (vec_set, vec_extract): Document
10709 2003-12-31 Jan Hubicka <jh@suse.cz>
10712 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
10716 * toplev.c (dump_file_index): Reorder ce3 and bbro.
10717 (dump_file): Likewise.
10718 (rest_of_compilation): Likewise.
10721 * cgraph.c (cgraph_function_possibly_inlined): Even with
10722 flag_really_no_inline we inline always_inline functions.
10723 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
10724 for non-always_inline functions when there is flag_really_no_inline.
10725 (cgraph_decide_inlining): Limit work done when not inlining.
10726 (cgraph_decide_inlining_incrementally): Likewise.
10727 (cgraph_optimize_function): Check whether something got inlined.
10728 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
10729 extern inline functions when not inlining.
10731 * opts.c (decode_options): Disable crossjumping at -O1
10732 * invoke.texi (-O1): Document change.
10734 See ChangeLog.10 for earlier changes.