1 2002-04-04 Jakub Jelinek <jakub@redhat.com>
3 * config/sparc/sparc.md (pic): New attribute.
4 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
6 (split after do_builtin_setjmp_setup): New.
8 2002-04-04 Jakub Jelinek <jakub@redhat.com>
11 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
14 2002-04-04 Jakub Jelinek <jakub@redhat.com>
16 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
17 UNITS_PER_WORD for zero sized aggregates.
19 2002-04-03 David S. Miller <davem@redhat.com>
21 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
22 one-character spec for this, just use %(link_gcc_c_sequence).
24 2002-04-03 David S. Miller <davem@redhat.com>
26 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
29 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
31 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
32 (DWARF_FRAME_RETURN_COLUMN): Move.
33 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
34 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
35 * pa.c (except.h, predict.h): Include.
37 (store_reg_modify, set_reg_plus_d): Revise prototypes.
38 (output_ascii): Add cast.
39 (store_reg_modify): Revise to add frame notes.
40 (set_reg_plus_d): Likewise.
41 (compute_frame_size): Include space for eh data registers in frame if
42 the current function calls eh_return.
43 (hppa_expand_prologue): Ensure register %r2 is saved if the current
44 function calls eh_return. Save eh data registers if the current
45 function calls eh_return. Fix code to add frame notes. Emit
46 blockage to prevent insns with frame notes being scheduled in the
48 (hppa_expand_epilogue): Restore eh data registers and do final stack
49 adjustment if the current function calls eh_return. Don't add frame
51 (output_call): Revise for change in length of call insn. Don't do
52 return pointer adjustment for an unconditional jump in the delay slot
53 of a call when using frame notes.
54 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
55 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
56 (ARG_POINTER_CFA_OFFSET): Define.
57 * pa.md (return_external_pic): New pattern.
58 (prologue): Correct formatting. Use return_external_pic if current
59 function calls eh_return.
60 (call_internal_symref, call_value_internal_symref,
61 sibcall_internal_symref, sibcall_value_internal_symref): Change default
62 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
64 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
66 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
67 list of targets to check using "nop" insn.
70 2002-04-04 Alan Modra <amodra@bigpond.net.au>
72 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
74 2002-04-03 David S. Miller <davem@redhat.com>
76 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
77 library sequence passed to the linker.
78 (LINK_COMMAND_SPEC): Use it.
79 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
80 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
81 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
83 2002-04-03 Jason Merrill <jason@redhat.com>
85 * except.c (struct eh_status): Remove protect_list.
86 (begin_protect_partials, end_protect_partials): Remove.
87 (add_partial_entry): Remove.
88 * except.h: Remove prototypes.
90 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
91 expand_decl_cleanup_eh.
94 * tree.h (CLEANUP_EH_ONLY): New macro.
95 * stmt.c (expand_decl_cleanup_eh): New fn.
96 (expand_cleanups): Check CLEANUP_EH_ONLY.
97 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
98 Use expand_decl_cleanup_eh.
99 (expand_stmt): Adjust.
100 * c-common.h: Adjust prototype.
102 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
104 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
105 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
106 (cris_target_asm_function_epilogue): Ditto.
107 (cris_initial_frame_pointer_offset): Ditto.
108 (cris_simple_epilogue): Ditto.
109 (cris_expand_builtin_va_arg): Variable-size types come in
112 2002-04-03 David S. Miller <davem@redhat.com>
114 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
116 (set_fast_math): Correct 'fsr' type.
118 2002-04-03 Richard Henderson <rth@redhat.com>
121 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
122 * toplev.c (check_global_declarations): Use it.
123 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
124 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
125 (LANG_HOOKS_DECLS): Add it.
126 * langhooks.c (lhd_warn_unused_global_decl): New.
127 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
128 * c-objc-common.c (c_warn_unused_global_decl): New.
129 * c-tree.h (c_warn_unused_global_decl): Declare.
130 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
132 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
134 * langhooks-def.h (lhd_set_decl_assembler_name,
135 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
136 (LANG_HOOKS_INITIALIZER): Update.
137 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
138 * langhooks.h (struct lang_hooks): New hook.
139 * tree.c (set_decl_assembler_name): Move to langhooks.c.
140 (lang_set_decl_assembler_name): Remove.
141 (init_obstacks): Don't set hook.
142 (decl_assembler_name): New function.
143 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
144 (decl_assembler_name): New.
145 (lang_set_decl_assembler_name): Remove.
147 2002-04-03 Jakub Jelinek <jakub@redhat.com>
149 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
150 works properly with .hidden symbols.
151 * configure: Rebuilt.
152 * config.in: Rebuilt.
153 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
154 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
155 properly with .hidden symbols.
157 2002-04-03 Jakub Jelinek <jakub@redhat.com>
160 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
163 2002-04-03 Richard Henderson <rth@redhat.com>
166 * sched-rgn.c (sets_likely_spilled): New.
167 (sets_likely_spilled_1): New.
168 (add_branch_dependences): Use it.
170 2002-04-02 Richard Henderson <rth@redhat.com>
173 * loop.h (LOOP_FIRST_PASS): New.
174 * loop.c (strength_reduce): Mind it when deciding to unroll.
175 * toplev.c (rest_of_compilation): Set it.
177 2002-04-02 David S. Miller <davem@redhat.com>
179 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
180 mems_ok_for_ldd_peep when the order of the loads being examined
182 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
183 existing comment to increase comprehension of this situation.
185 2002-04-02 Zack Weinberg <zack@codesourcery.com>
187 * config/sh/sh.md: Don't use union real_extract.
189 2002-04-02 Richard Henderson <rth@redhat.com>
191 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
193 2002-04-02 David O'Brien <obrien@FreeBSD.org>
195 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
196 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
197 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
198 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
199 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
200 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
201 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
202 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
203 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
204 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
205 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
206 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
207 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
208 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
209 Include as many configury headers via tm_file as possible. This
210 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
211 * config/openbsd-oldgas.h: New file.
212 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
213 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
214 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
215 config/i386/i386-coff.h, config/i386/i386-interix.h,
216 config/i386/iscdbx.h, config/i386/linux-aout.h,
217 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
218 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
219 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
220 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
221 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
222 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
223 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
224 config/i386/vxi386.h: Do not directly include configury headers.
225 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
226 Directly include configury headers that are no longer automatically
227 included by the above headers.
228 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
229 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
230 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
231 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
232 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
233 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
234 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
235 (TARGET_VERSION): Define.
236 * config/i386/beos-elf.h, config/i386/freebsd.h,
237 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
238 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
239 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
240 config/i386/sco5.h, config/i386/sysv4.h
241 (TARGET_VERSION): Do not need to protect.
242 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
243 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
244 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
245 config/i386/i386-interix.h, config/i386/linux-aout.h,
246 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
247 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
248 (YES_UNDERSCORES): Do not define - not needed.
249 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
250 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
251 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
252 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
253 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
254 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
255 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
256 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
258 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
259 Richard Henderson <rth@redhat.com>
262 * function.c (assign_temp): Accept either type or decl argument.
263 Detect variables whose size is too large to fit into an integer.
264 * stmt.c (expand_decl): Pass the decl, not the type.
266 2002-04-02 David O'Brien <obrien@FreeBSD.org>
268 * protoize.c: Match include directory usage with cppdefault.c.
270 2002-04-03 Jeffrey A Law (law@redhat.com)
271 Hans-Peter Nilsson <hp@bitrange.com>
273 * combine.c (simplify_comparison): Avoid narrowing a comparison
274 with a paradoxical subreg when doing so would drop signficant bits.
276 2002-04-02 Steve Ellcey <sje@cup.hp.com>
278 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
279 if POINTERS_EXTEND_UNSIGNED is defined.
281 2002-04-02 Richard Henderson <rth@redhat.com>
284 * local-alloc.c (contains_replace_regs): LO_SUM may contain
287 2002-04-02 Richard Henderson <rth@redhat.com>
289 * doc/standards.texi: Document required freestanding libc entry points.
291 2002-04-02 Alan Modra <amodra@bigpond.net.au>
293 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
294 associated splitter. Remove MQ constraint.
295 (ctrdi_internal4): Correct CCmode clobber.
297 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
299 * milli64.S ($$dyncall): New function.
300 * t-linux (LIB1ASMFUNCS): Revise module list.
301 (LIB1ASMSRC): Use pa/milli64.S.
303 2002-04-02 Richard Henderson <rth@redhat.com>
305 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
306 rename solaris_sys_varargs_h.
308 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
310 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
311 the same mode as its component.
313 2002-04-02 Richard Henderson <rth@redhat.com>
316 * final.c (this_is_asm_operands): Export.
317 * output.h (this_is_asm_operands): Declare.
318 * config/i386/i386.c (print_operand): Error odd asm operands.
320 2002-04-02 Richard Henderson <rth@redhat.com>
323 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
325 2002-04-01 Richard Henderson <rth@redhat.com>
328 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
329 * fixinc/fixincl.x: Rebuild.
331 2002-04-01 Richard Henderson <rth@redhat.com>
333 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
334 (atomic_alloc, atomic_free): New.
335 (SIZE, MASK_FOR, PTR_IN): New.
336 (emergency_reg_state, emergency_reg_state_free): New.
337 (emergency_labeled_state, emergency_labeled_state_free): New.
338 (reg_state_alloced, labeled_state_alloced): New.
339 (alloc_reg_state, free_reg_state): New.
340 (alloc_label_state, free_label_state, free_label_states): New.
341 (push, pop, dup_state_stack, free_state_stack): Use them.
342 (desc_label_state): Likewise.
343 (uw_frame_state_for): Free label states and state stack.
344 (uw_update_reg_address): Eliminate warnings.
346 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
348 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
349 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
351 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
353 * c-decl.c (grokdeclarator): Update.
354 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
355 * c-tree.h (c_mark_addressable): New.
356 * c-typeck.c (default_function_array_conversion, build_unary_op,
357 build_array_ref, convert_for_assignment): Update.
358 (mark_addressable): Rename.
359 * calls.c (try_to_integrate, expand_call): Use langhook.
360 * expr.c (expand_expr): Use langhook.
361 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
362 * langhooks.h (struct lang_hooks): New hook.
363 * stmt.c (expand_asm_operands): Use langhook.
364 * tree.h (mark_addressable): Remove.
366 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
368 2002-04-01 Bob Wilson <bob.wilson@acm.org>
370 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
373 2002-04-01 Bob Wilson <bob.wilson@acm.org>
375 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
376 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
378 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
380 * c-common.c (unsigned_conversion_warning, convert_and_check,
381 unsigned_type, signed_type, shorten_compare,
382 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
383 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
384 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
386 * c-decl.c (grokdeclarator): Update.
387 * c-format.c (check_format_types): Update.
388 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
389 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
390 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
391 * convert.c (convert_to_integer): Use new hooks.
392 * expmed.c (make_tree): Use new hooks.
393 * expr.c (store_expr): Use new hooks.
394 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
395 all_ones_mask_p, unextend, fold): Use new hooks.
396 * langhooks.h (struct lang_hooks_for_types): New hooks.
397 * tree.h (signed_or_unsigned_type, signed_type,
398 unsigned_type): Remove.
400 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
401 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
403 2002-03-31 Richard Henderson <rth@redhat.com>
405 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
406 (desc_frgr_mem): Fix reference to f16-f31.
408 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
410 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
411 RTVEC_ELT): Const-ify.
412 * varray.h (VARRAY_CHECK): Const-ify.
413 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
414 ggc_mark_rtvec, ggc_mark): Const-ify.
416 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
418 * diagnostic.c: Include langhooks-def.h.
419 * Makefile.in (diagnostic.o): Update.
421 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
423 * c-common.c (c_unsafe_for_reeval): Rename.
424 * c-common.h (c_unsafe_for_reeval): Rename.
425 * c-decl.c (finish_incomplete_decl): Rename.
426 (c_init_decl_processing): Don't set langhook.
427 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
428 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
429 * c-objc-common.c (c_objc_common_init): Don't set langhook.
430 * c-tree.h (finish_incomplete_decl): Rename.
431 * langhooks-def.h (lhd_unsafe_for_reeval): New.
432 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
433 (LANG_HOOKS_INITIALIZER): Update.
434 * langhooks.c (lhd_unsafe_For_reeval): New.
435 * langhooks.h (struct langhooks): New hooks.
436 * toplev.c (incomplete_decl_finalize_hook): Remove.
437 (wrapup_global_declarations): Update.
438 * tree.c (lang_unsafe_for_reeval): Remove.
439 (unsafe_for_reeval): Update.
440 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
443 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
444 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
446 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
448 * diagnostic.c (print_error_function): Remove.
449 (default_print_error_function): Rename.
450 (report_error_function): Update.
451 * diagnostic.h (print_error_function): Remove.
452 (default_print_error_function): Remove.
453 * langhooks-def.h (struct diagnostic_context): Predeclare.
454 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
455 (LANG_HOOKS_INITIALIZER): Update.
456 * langhooks.h (struct diagnostic context): Predeclare.
457 (struct lang_hooks): New hook.
459 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
461 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
462 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
464 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
465 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
466 of PIC_OFFSET_TABLE_REGNUM thruout.
467 * config/rs6000/rs6000.md: Likewise.
468 * config/rs6000/darwin.h: Likewise.
470 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
472 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
473 unsigned HOST_WIDE_INT, not unsigned int.
475 2002-03-31 Jakub Jelinek <jakub@redhat.com>
477 PR middle-end/6096, middle-end/6098, middle-end/6099
478 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
480 (fill_slots_from_thread): Likewise.
482 2002-03-31 Jakub Jelinek <jakub@redhat.com>
484 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
485 floating fields in float regs.
486 (function_arg_record_value_2): Likewise.
488 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
490 * config/mmix/mmix.md (define_constants): Remove misleading
491 FIXME. Add MMIX_fp_rO_OFFSET.
492 ("nonlocal_goto_receiver"): Don't have stack-frame address of
493 saved rO as part of the pattern. Remove FIXME.
494 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
495 here, at output-time.
497 2002-03-31 Jakub Jelinek <jakub@redhat.com>
500 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
502 (output_v9branch): Likewise.
504 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
506 * gcc.c: Revert previous patch for now.
507 * config/i386/djgpp.h: Likewise.
509 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
511 * config/mmix/crti.asm (_init): Register _fini with atexit.
512 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
514 2002-03-31 Richard Henderson <rth@redhat.com>
517 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
518 (ASM_OUTPUT_DEF_FROM_DECLS): New.
520 2002-03-31 Richard Henderson <rth@redhat.com>
522 * libgcc2.c (__bb_exit_func): Make static.
524 * config/alpha/alpha.md (trap): New.
526 2002-03-31 Richard Henderson <rth@redhat.com>
528 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
529 promoted argument types; build trap.
530 (expand_builtin_trap): New.
531 (expand_builtin): Use it.
532 * stmt.c (expand_nl_goto_receivers): Likewise.
533 * expr.h (expand_builtin_trap): Declare.
534 * libfuncs.h (LTI_abort, abort_libfunc): New.
535 * optabs.c (init_optabs): Init abort_libfunc.
537 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
539 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
540 (LINK_COMMAND_SPEC): ... from here.
541 (init_gcc_specs): Duplicate it here too, omitting
542 shared_name in the second copy.
543 (init_spec): Test for duplicate
544 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
546 2002-03-30 David S. Miller <davem@redhat.com>
548 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
549 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
551 2002-03-30 Roger Sayle <roger@eyesopen.com>
552 Richard Henderson <rth@redhat.com>
554 * regmove.c (combine_stack_adjustments_for_block): Avoid
555 emitting a stack adjustment of zero bytes. Let delete_insn
558 2002-03-30 Richard Henderson <rth@redhat.com>
560 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
561 (sparc_emitting_epilogue): New.
562 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
563 * config/sparc/sparc-protos.h: Update.
564 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
565 (TARGET_SWITCHES): Update.
566 * config/sparc/sparc.md (return): Remove.
567 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
568 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
569 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
570 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
571 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
572 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
573 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
574 Remove MASK_EPILOGUE.
575 * doc/invoke.texi: Update.
577 2002-03-30 Daniel Berlin <dan@dberlin.org>
579 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
580 CPP will start the file for us.
582 2002-03-30 Richard Henderson <rth@redhat.com>
585 * config/ia64/ia64.c (group_barrier_needed_p): Special case
586 prologue_allocate_stack.
587 (ia64_single_set): Use insn codes for recognition of special
588 cases, not rtl matching.
589 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
591 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
593 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
595 2002-03-30 Richard Henderson <rth@redhat.com>
598 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
599 or -fomit-frame-pointer with profiling.
600 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
601 (FUNCTION_PROFILER): Do nothing.
603 * config/sparc/sparc.c (sparc_override_options): Don't check
604 code models for profiling.
605 (sparc_function_profiler): Remove.
606 (sparc_profile_hook): New.
607 * config/sparc/sparc-protos.h: Update.
609 2002-03-30 Jakub Jelinek <jakub@redhat.com>
612 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
613 of SUBREG of volatile MEM or because the MEM was mode dependent,
614 return CLOBBER instead of unmodified SUBREG.
616 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
618 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
621 * toplev.c (rest_of_compilation): Cann mark_constant_function
622 only when optimizing.
624 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
627 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
628 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
629 (try_optimize_cfg): clear all AUX fields.
631 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
632 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
633 (ix86_address_cost): Be prepared for SUBREGed registers.
634 (legitimate_address_p): Accept SUBREGed registers.
636 2002-03-29 Richard Henderson <rth@redhat.com>
639 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
641 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
643 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
644 for aggregate and TFmode types.
646 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
648 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
650 2002-03-29 Richard Henderson <rth@redhat.com>
653 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
654 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
656 2002-03-29 Richard Henderson <rth@redhat.com>
659 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
660 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
661 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
662 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
664 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
666 2002-03-29 Dale Johannesen <dalej@apple.com>
668 * loop.c (combine_movables): Do allow combination of pseudos.
670 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
672 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
673 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
674 No functional change except ...
675 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
676 * doc/install.texi (*-*-freebsd*): Document port configuration.
678 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
680 * Makefile.in (convert.o, calls.o, expmed.o): Update.
681 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
683 * builtin-types.def (BT_PTRMODE): Update.
684 * c-common.c (type_for_size): Rename c_common_type_for_size.
685 (type_for_mode): Similarly.
686 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
688 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
689 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
690 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
692 * c-typeck.c (common_type, comptypes, default_conversion):
694 * calls.c: Include langhooks.h.
695 (emit_library_call_value_1): Use new hooks. Avoid redundant
697 * convert.c: Include langhooks.h
698 (convert_to_pointer, convert_to_integer): Use new hooks.
699 * except.c (init_eh): Similarly.
700 * expmed.c: Include langhooks.h.
701 (expand_mult_add): Use new hooks.
702 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
703 try_casesi): Similarly.
704 * fold-const.c (optimize_bit_field_compare, make_range,
705 decode_field_reference, fold_truthop, fold): Similarly.
706 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
707 put_var_into_stack): Similarly.
708 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
709 LANG_HOOKS_TYPE_FOR_SIZE): New.
710 (LANG_HOOKS_TYPES_INITIALIZER): Update.
711 * langhooks.h (lang_hooks_for_types): New hooks.
712 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
713 * tree.c (get_unwidened, get_narrower): Similarly.
714 * tree.h (type_for_mode, type_for_size): Remove.
715 * varasm.c (force_const_mem): Use new hooks.
716 * utils2.c (nonbinary_modular_operation): Update.
718 * objc-act.c (handle_impent): Update.
719 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
722 2002-03-29 Steve Ellcey <sje@cup.hp.com>
724 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
725 * config/ia64/ia64.c (basereg_operand): New.
726 * config/ia64/ia64-protos.h (basereg_operand): Declare.
727 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
729 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
731 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
732 unwind information when frame_pointer_needed.
733 (mmix_assemble_integer): Tweak wording in comment.
735 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
737 * Makefile.in (except.o): Update.
738 * except.c: Include langhooks.h.
739 (init_eh): Use langhook.
740 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
741 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
742 (LANG_HOOKS_INITIALIZER): Update.
743 * langhooks.h (lang_hooks_for_types): New.
744 (struct lang_hooks): Add it.
745 * tree.c (make_lang_type_fn, make_lang_type): Remove.
746 * tree.h (make_lang_type_fn, make_lang_type): Remove.
748 * alpha/alpha.c: Include langhooks.h.
749 (alpha_build_va_list): Use langhook.
750 * d30v/d30v.c: Include langhooks.h.
751 (d30v_build_va_list): Use langhook.
752 * i386/i386.c: Include langhooks.h.
753 (ix86_build_va_list): Use langhook.
754 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
755 * s390/s390.c: Include langhooks.h.
756 (s390_build_va_list): Use langhook.
757 * stormy16/stormy16.c: Include langhooks.h.
758 (stormy16_build_va_list): Use langhook.
760 2002-03-29 Jakub Jelinek <jakub@redhat.com>
763 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
765 (length): Compute variable length for branches/calls/jumps here.
766 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
767 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
768 define branch_type attribute.
769 (divsi3_sp32): Maximum length is 6 not 7.
770 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
771 call_address_untyped_struct_value_sp32,
772 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
773 * config/sparc/sparc.c (empty_delay_slot): New function.
774 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
775 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
777 2002-03-29 Jakub Jelinek <jakub@redhat.com>
779 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
780 nonzero_bits if not needed.
781 (nonzero_bits) [XOR]: Likewise.
782 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
783 reg_last_set_mode and mode are both MODE_INT, but not equal.
784 (record_value_for_reg): Compute reg_last_set_nonzero_bits
785 in nonzero_bits_mode for MODE_INT modes.
787 2002-03-28 Richard Henderson <rth@redhat.com>
790 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
791 to GAS. Correct drift between alternatives.
793 2002-03-28 Richard Henderson <rth@redhat.com>
796 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
798 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
800 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
801 emulation to the linker.
803 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
805 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
806 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
808 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
810 * combine.c (simplify_and_const_int): Make sure to apply mask
811 when force_to_mode returns a constant integer. PR3311.
813 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
815 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
817 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
819 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
820 and Objective-C Dialect Options.
822 2002-03-28 Richard Henderson <rth@redhat.com>
824 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
825 comparison should be done vs !=0 not >0 return code. Tidy cases.
827 2002-03-28 Richard Henderson <rth@redhat.com>
829 * c-decl.c (finish_function): New arg can_defer_p. Pass it
831 * c-tree.h (finish_function): Update decl.
832 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
834 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
836 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
838 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
840 * rtlanal.c: Include flags.h
841 (may_trap_p): Do not mark FP operations if trapping
842 if !flag_trapping_math
843 * Makefile.in (rtlanal.o): Add dependency on flag.h
844 * ifcvt.c (noce_operand_ok): Avoid the lameness.
846 2002-03-27 Zack Weinberg <zack@codesourcery.com>
848 * mips.md: Use dconst1, not 1.0, as first argument of
849 REAL_VALUE_LDEXP. Don't use union real_extract.
851 2002-03-28 Alan Modra <amodra@bigpond.net.au>
853 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
854 rather than $target. Heed program_prefix and
855 program_transform_name. Search for gas in cross-compiler case too.
856 "test -x" rather than "test -f".
857 (gcc_cv_ld): Likewise.
858 (gcc_cv_nm): Heed program_prefix and program_transform_name.
859 (gcc_cv_objdump): Likewise.
860 * configure: Regenerate.
862 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
864 * Makefile.in (attribs.o): Update.
865 * attribs.c: Include langhooks.h.
866 (decl_attributes): Use langhook.
867 * c-decl.c (insert_default_attributes): Rename.
868 * c-tree.h (c_insert_default_attributes): New.
869 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
870 (LANG_HOOKS_INITIALIZER): Update.
871 * langhooks.h (struct lang_hooks): New hook.
872 * tree.h (insert_default_attributes): Remove.
874 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
876 2002-03-27 Andreas Schwab <schwab@suse.de>
878 * config/i386/i386.c (classify_argument): Also check for
881 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
883 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
886 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
888 * i960.md (ret): Set PC.
889 (nonlocal_goto): Fix expander.
890 * builtins.c (epxand_builin_longjmp): Check that we've emitted
893 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
895 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
898 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
900 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
901 assigning to BLOCK_FOR_INSN directly.
903 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
905 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
907 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
909 * c-common.c (c_expand_expr): Fix prototype.
910 * c-common.h (c_expand_expr): Always declare, update.
911 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
912 * c-objc-common.c (c_objc_common_init): No global hook.
913 * expr.c (expand_expr): Use langhook.
914 * expr.h (enum expand_modifier): Conditionally declare.
915 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
916 (LANG_HOOKS_INITIALIZER): Update.
917 * langhooks.c (lhd_expand_expr): New.
918 * langhooks.h (struct lang_hooks): New hook.
919 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
920 (lang_independent_init): Don't default hook.
922 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
924 2002-03-27 Richard Henderson <rth@redhat.com>
927 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
928 TARGET_CONST_GP. Simplify conditions.
930 2002-03-27 Richard Henderson <rth@redhat.com>
932 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
933 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
934 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
936 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
938 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
939 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
940 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
941 Remove unnecessary masks.
942 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
943 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
944 -mwindows, -mdll switches and their negations.
946 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
948 * gcc-common.c (lang_mark_false_label_stack): Remove.
949 * ggc.h (lang_mark_false_label_stack): Similarly.
951 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
953 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
955 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
956 or __rtems_ is defined.
958 2002-03-26 Richard Henderson <rth@redhat.com>
960 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
961 if a non-trivial load was emitted.
962 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
963 in high+extra+low case.
965 2002-03-26 Richard Henderson <rth@redhat.com>
967 * config.gcc (sparc*-solaris): Use float_format=sparc.
969 2002-03-26 Richard Henderson <rth@redhat.com>
971 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
972 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
973 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
974 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
975 (WINT_TYPE_SIZE): Fix at 32.
977 2002-03-26 Richard Henderson <rth@redhat.com>
979 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
980 until after eh landing pad generation.
981 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
982 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
984 2002-03-26 Richard Henderson <rth@redhat.com>
986 * expr.h (ADD_PARM_SIZE): One more convert for INC.
988 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
990 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
991 and warning switches.
992 (cc1_options): Likewise.
994 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
996 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
997 Restore more of the signal context. Set no_reg_stack_frame.
998 * config/ia64/unwind-ia64.c (unw_state_record):
999 Add no_reg_stack_frame, comments.
1000 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
1001 (uw_update_context): Adjust bsp when unwinding from leaf,
1002 but not signal frame.
1004 2002-03-26 David Edelsohn <edelsohn@gnu.org>
1006 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
1008 2002-03-26 Bob Wilson <bob.wilson@acm.org>
1010 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
1012 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
1015 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
1016 "Add a pool_range attribute", which was lost during the ARM/Thumb
1019 2002-03-26 Bob Wilson <bob.wilson@acm.org>
1021 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
1022 a register into the MAC16 accumulator.
1024 2002-03-26 Andrew Cagney <ac131313@redhat.com>
1026 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
1027 (Warning Options): Document -Wswitch-enum.
1028 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
1030 (warn_switch_enum): Define variables.
1031 * flags.h (warn_switch_enum): Declare variables.
1032 * stmt.c (expand_end_case_type): When warn_switch_enum /
1033 -Wswitch-enum, perform switch checks.
1036 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
1038 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
1039 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
1040 (reload_muladdsi_compare0_scratch): Delete.
1042 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
1044 * doc/install.texi (*-*-freebsd*): Update.
1046 2002-03-26 Richard Henderson <rth@redhat.com>
1048 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
1049 (SUB_PARM_SIZE): Cast DEC to ssizetype.
1051 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
1052 types from the normal argument frame.
1054 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
1055 variable sized objects by reference.
1056 (sparc_va_arg): Receive them by reference too.
1058 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
1060 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
1061 code to not restoring global registers.
1063 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
1065 * Makefile.in (ggc-common.o): Update.
1066 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
1067 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
1068 * c-tree.h (c_mark_tree): New.
1069 * ggc-common.c: Include langhooks.h.
1070 (gcc_mark_trees): Use new langhook.
1071 * ggc-callbacks.c: Delete file.
1072 * ggc.h (lang_mark_tree): Remove.
1073 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
1074 (LANG_HOOKS_INITIALIZER): Update.
1075 * langhooks.h (struct lang_hooks): New hook.
1077 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
1079 2002-03-25 Zack Weinberg <zack@codesourcery.com>
1081 * doc/cpp.texi: Exclude entire Top node from printed manual.
1082 Move option index after directive index. Insert page breaks
1083 before GFDL and concept index. Index environment variables
1084 with command line options.
1085 * doc/cppenv.texi: Use @vtable for environment variable list.
1086 Add paragraph explaining semantics of empty elements in path
1087 variables. Exclude a cross-reference to Fishkill from the
1088 manpage. Remove an unnecessary cross-reference of the entry
1089 right above the referer. Don't use @anchor in text that goes
1091 * doc/cppopts.texi: Cross-reference the environment variables
1092 section, not the specific environment variable, for consistency.
1094 2002-03-25 Richard Henderson <rth@redhat.com>
1096 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
1097 anywhere in the block. Don't refer to insns that have been
1098 removed from the chain. Iterate backward through the new insns.
1099 Don't refer to edges that have been removed.
1101 2002-03-26 Alan Modra <amodra@bigpond.net.au>
1103 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
1104 test for overflow of constant.
1106 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
1109 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
1110 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
1111 these patterns on arm_archv4.
1113 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
1115 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
1118 2002-03-25 Zack Weinberg <zack@codesourcery.com>
1120 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
1121 float_handled, float_handler, float_signal, set_float_handler,
1122 and do_float_handler. Set handler for SIGFPE to crash_signal.
1123 * toplev.h: Don't prototype do_float_handler.
1125 * c-lex.c: Fold parse_float into lex_number. Make warning
1126 about portability of hex float constants more informative, and
1127 don't issue it on top of a syntax error.
1128 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
1130 * real.h: Define REAL_VALUE_ABS here...
1131 * simplify-rtx.c: ... not here. Fold check_fold_consts,
1132 simplify_unary_real, simplify_binary_real, and
1133 simplify_binary_is2orm1 into their callers.
1134 * tree.c: Fold build_real_from_int_cst_1 into caller.
1136 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
1138 * tsystem.h: Include float.h here...
1139 * libgcc2.c: ... not here.
1141 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
1143 Fixes for: PR bootstrap/3591, target/5676
1144 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
1145 defined. Do not disable exceptions or rtti.
1146 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
1147 mcore.h. Disable exceptions and rtti, since they are not
1150 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
1152 * c-decl.c (maybe_build_cleanup): Remove.
1153 * expr.c (expand_expr): Use langhook.
1154 * langhooks-def.h (lhd_return_null_tree,
1155 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
1156 (LANGHOOKS_INITIALIZER): Update.
1157 * langhooks.c (lhd_return_null_tree): New.
1158 * langhooks.h (struct lang_hooks): New hook.
1159 * tree-inline.c (initialize_inlined_parameters): Use langhook.
1160 * tree.h (maybe_build_cleanup): Remove.
1162 2002-03-25 Jakub Jelinek <jakub@redhat.com>
1164 * regrename.c (build_def_use): Move recog_memoized
1165 before extract_insn.
1167 2002-03-25 Jakub Jelinek <jakub@redhat.com>
1170 * expr.c (emit_group_store): Handle storing into CONCAT.
1172 2002-03-25 Jakub Jelinek <jakub@redhat.com>
1174 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
1175 corresponding MATCH_DUP.
1177 2002-03-24 Richard Henderson <rth@redhat.com>
1179 * unroll.c (unroll_loop): Zero label_map.
1181 * gcse.c: Include except.h.
1182 * Makefile.in (gcse.o): Update.
1184 2002-03-24 Richard Henderson <rth@redhat.com>
1186 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
1187 Do resolve_unique_section before shared data clause.
1189 2002-03-24 Richard Henderson <rth@redhat.com>
1191 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
1193 2002-03-24 Richard Henderson <rth@redhat.com>
1195 * recog.c (peephole2_optimize): Split blocks when EH insns are
1196 generated in the middle of a block. Do global life update if
1199 2002-03-24 Richard Henderson <rth@redhat.com>
1201 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
1203 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
1206 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
1207 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
1208 (init_dependency_output): Don't make no_output decision here.
1210 2002-03-24 Andrew Cagney <ac131313@redhat.com>
1212 * stmt.c (check_for_full_enumeration_handling): Remove tests of
1213 warn_switch. Update description.
1214 (expand_end_case_type): Call check_for_full_enumeration_handling
1217 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1219 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
1220 (m68hc11_split_move): Call it to see if the source and destination
1221 operands use the same direction auto inc/dec mode, otherwise make the
1222 source an offsetable memory operand and generate an add.
1224 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1226 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
1227 register for operand 2.
1228 ("*subsi3_zero_extendqi"): Likewise.
1229 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
1230 bits so that it is compatible with a pop.
1231 ("*andhi3_gen"): Likewise.
1232 ("xorhi3"): Likewise.
1234 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
1236 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
1238 (cpp_post_options): ... not here.
1240 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
1241 Aldy Hernandez <aldyh@redhat.com>
1243 Removal of separate preprocessor cpp0.
1245 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
1246 cpp0, install-common): Update.
1247 * c-common.c (flag_preprocess_only): New.
1248 (c_common_init): Preprocess for -E.
1249 * c-common.h (flag_preprocess_only): New.
1250 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
1251 * c-objc-common.c (c_init_decl_processing): Exit quickly
1252 for NULL return from c_common_init.
1253 * cpplib.h (cpp_preprocess_file): New.
1254 * cppmain.c (main, general_init, pfile, progname): Remove.
1255 (do_preprocessing): Rename cpp_preprocess_file, don't call
1256 cpp_finish. Don't close stdout here.
1257 (setup_callbacks): Update prototype.
1258 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
1260 * tradcpp.c (main): Ignore -quiet.
1262 * lang-specs.h (default_compilers): Preprocess with cc1obj.
1264 2002-03-24 Richard Henderson <rth@redhat.com>
1266 PR optimization/5742
1267 * machmode.def: Add inner mode field to complex modes.
1268 * config/mips/mips.c (mips_function_value): Always define. Add
1269 new argument to handle libcalls.
1270 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
1271 (FUNCTION_VALUE): Likewise.
1272 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
1273 * config/mips/mips-protos.h: Update.
1275 2002-03-23 Richard Henderson <rth@redhat.com>
1277 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
1278 * config/sparc/sparc-protos.h: Update.
1279 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
1281 2002-03-23 Richard Henderson <rth@redhat.com>
1283 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
1284 _start or _init begins the text segment.
1286 2002-03-23 David Edelsohn <edelsohn@gnu.org>
1288 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
1289 not HOST_WIDEST_INT.
1290 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
1292 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
1295 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
1296 operand argument to output_return_instruction.
1297 * arm.c (arm_print_operand, case 'd'): If the operand is
1298 const_true_rtx then just return.
1299 (arm_print_operand, case 'D'): If the operand is const_true_rtx
1302 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1304 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
1305 (Warning Options): Document -Wswitch-default.
1306 * toplev.c (W_options): Add -Wswitch-default. Update comment on
1308 (warn_switch_default): Define variable.
1309 (warn_switch): Update comment.
1310 * flags.h (warn_switch_default): Declare variable.
1311 (warn_switch): Update comment.
1312 * stmt.c (expand_end_case): Check for and, when
1313 warn_switch_no_default, warn of a missing default case.
1315 2002-03-23 Alan Modra <amodra@bigpond.net.au>
1317 * real.h (N): Special case 128 bit doubles.
1319 * combine.c (simplify_comparison): When widening modes, ignore
1320 sign extension on CONST_INTs.
1322 2002-03-22 Bob Wilson <bob.wilson@acm.org>
1324 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
1325 passed to adjust_address. Fix comment formatting.
1328 2002-03-22 Zack Weinberg <zack@codesourcery.com>
1330 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
1331 Always make REAL_VALUE_TYPE a struct containing an array of
1332 HOST_WIDE_INT, not a double. Tidy up the code deciding how
1333 big it is. Don't declare or use union real_extract.
1335 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
1336 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
1337 (print_operand), config/arm/arm.c (output_move_double),
1338 config/arm/arm.md (consttable_4, consttable_8),
1339 config/romp/romp.c (output_fpops), config/s390/s390.h
1340 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
1341 (xtensa_output_literal): Don't use union real_extract.
1343 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
1344 (sfmode_constant_to_ulong), config/ns32k/merlin.h
1345 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
1346 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
1347 (PRINT_OPERAND): Don't use local version of union
1350 * config/convex/convex.c (check_float_value), config/vax/vax.c
1351 (vax_float_literal), config/m88k/m88k.md (divdf3),
1352 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
1353 config/pdp11/pdp11.c (output_move_quad): Don't do host
1354 arithmetic on target floating point quantities.
1356 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
1357 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
1359 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
1360 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
1362 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
1363 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
1365 * print-rtl.c (print_rtx): Disable code which needs
1366 floating-point emulator.
1367 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
1368 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
1369 depending on HOST_FLOAT_FORMAT to be defined properly.
1371 * config/1750a/1750a.c (get_double, float_label): Delete.
1372 (print_operand): Delete huge commented-out chunk. Use
1373 REAL_VALUE_TO_DECIMAL.
1374 * config/1750a/1750a-protos.h: Delete prototypes of deleted
1376 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
1378 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
1379 Use REAL_VALUE_TO_DECIMAL as ELF version does.
1380 * config/m88k/m88k.c (real_power_of_2_operand,
1381 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
1382 real_extract out of the union; run the input through
1383 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
1384 from that into the union.
1385 * config/pdp11/pdp11.c (output_move_double): Rearrange
1386 parentheses to make automatic indenter happy.
1388 * doc/tm.texi (Cross-compilation): Rename node to "Floating
1389 Point" and rewrite to describe current situation. Also adjust
1390 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
1392 * doc/rtl.texi: Adjust cross reference.
1394 2002-03-22 Bob Wilson <bob.wilson@acm.org>
1396 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
1397 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
1398 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
1399 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
1400 prevent use of sp as a reload register.
1401 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
1402 non_acc_reg_operand.
1403 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
1404 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
1405 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
1406 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
1408 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
1410 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
1411 * cpplex.c (unterminated): Delete.
1412 (parse_string): No string literal may extend over multiple
1413 lines. Suppress the error when preprocessing assembly.
1414 * cppmain.c (scan_translation_unit): Strings are single-line.
1416 * doc/cpp.texi: Update to match.
1418 2002-03-22 Jakub Jelinek <jakub@redhat.com>
1420 PR optimization/5854
1421 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
1423 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
1424 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
1425 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
1426 const0 if scratch register was not allocated.
1427 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
1428 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
1430 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
1431 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
1432 with GEN_INT (...) everywhere. Remove constraints in define_split
1434 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
1435 require scratch register for setting 0 into regs/non-pushable memory.
1437 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
1439 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
1440 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
1442 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
1444 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
1445 * cppinit.c (cpp_create_reader): On by default.
1446 (cpp_handle_option): Handle -W[no-]endif-labels.
1447 (cpp_post_options): Also enable if -pedantic.
1448 * cpplib.c (do_else): Use it.
1449 (do_endif): Likewise.
1450 * doc/cppopts.texi: Document new option.
1451 * doc/invoke.texi: Document new option.
1453 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
1455 * config/i386/i386.c, config/i386/i386.md: Change all occurences
1456 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
1458 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
1460 * flow.c (calculate_global_regs_live): Clear aux fields of
1463 2002-03-22 Jakub Jelinek <jakub@redhat.com>
1465 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
1466 REG or MEM subregs, pass rtx * instead of rtx to it.
1467 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
1468 rtx * instead of rtx to alter_subreg.
1469 * config/m32r/m32r.c (gen_split_move_double): Likewise.
1470 * config/pj/pj.c (pj_output_rval): Likewise.
1472 2002-03-22 Richard Henderson <rth@redhat.com>
1475 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
1476 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
1477 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
1478 (ia64_expand_prologue): Look at int_regs, not words, for number
1479 of incomming int regs.
1481 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
1483 * expr.c (expand_expr): A RESULT_DECL is part of a call.
1485 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
1487 * toplev.c (flag_loop_optimize, flag_crossjumping):
1488 New static variables.
1489 (rest_of_compilation): Conditionalize crossjumping and
1491 (parse_options_and_default_flags): Default loop_optimize and
1493 (lang_independent_options): Add -fcrossjumping and -floop-optimize
1494 * invoke.texi (crossjumping, loop-optimize): Document.
1496 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
1498 * real.c (eiisneg): Move outside #ifdef NANS.
1500 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
1502 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
1503 frequencies match; avoid match on different loop depths.
1504 (try_crossjump_to_bb): Kill tests that no longer brings time
1506 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
1508 (split_edge): Likewise.
1510 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
1513 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
1514 * cfgrtl.c: Include insn-config.h
1515 (split_block) Dirtify block in presence of conditional execution
1517 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
1519 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
1520 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
1521 (function_arg): Constify CUMULATIVE_ARGS.
1522 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
1523 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
1524 (UNITS_PER_DOUBLE): New macro.
1525 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
1526 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
1527 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
1528 fp_regs and stack_words.
1529 (EABI_FLOAT_VARARGS_P): New macro.
1530 * config/mips/mips.c (struct mips_arg_info): New.
1531 (mips_arg_info): New function.
1532 (function_arg_advance): Use it. Add adjustment instructions here
1533 rather than in function_arg.
1534 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
1535 for VOIDmode at the beginning of the function.
1536 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
1537 (function_arg_pass_by_reference): Likewise.
1538 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
1539 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
1540 (mips_va_start): Likewise. Use the new stack_words field of
1541 CUMULATIVE_ARGS to set up overflow area. Reformat.
1542 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
1543 doubles and other types, aligning the overflow pointer for non-doubles
1544 too. Remove some code duplication. Replace hard-coded constants.
1546 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
1548 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
1549 (CLASS_UNITS): Undefine.
1550 (CLASS_MAX_NREGS): Use FP_INC.
1551 * config/mips/mips.c (compute_frame_size): Likewise.
1552 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
1554 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
1556 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
1557 prototype, and handle lexing numbers and identifiers.
1558 (parse_identifier): Update to new form of parse_slow.
1559 (parse_number): Fast path only, use parse_slow otherwise.
1560 (_cpp_lex_direct): Update calls to parse_number.
1562 2002-03-21 DJ Delorie <dj@redhat.com>
1564 * bb-reorder.c (make_reorder_chain_1): Protect against
1565 when redundant edges are omitted.
1566 * predict.c (dump_prediction): Likewise.
1568 2002-03-21 Richard Henderson <rth@redhat.com>
1571 * fixinc/inclhack.def (solaris_stdio_tag): New.
1572 * fixinc/fixincl.x: Regenerate.
1574 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
1577 * c-typeck.c (process_init_element): Flag non-static
1578 initialization of a flexible array member as illegal.
1580 2002-03-22 Alan Modra <amodra@bigpond.net.au>
1582 * config/rs6000/t-linux64: New.
1583 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
1584 t-ppccomm. Use t-rs6000 and t-linux64.
1585 (powerpc64-*-gnu* <tmake_file>): Likewise.
1586 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
1587 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
1588 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
1590 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
1592 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
1593 flag_really_no_inline instead of optimize == 0.
1595 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
1597 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
1599 * flags.h (flag_really_no_inline): New.
1601 * c-common.c (c_common_post_options): Initialize
1602 flag_really_no_inline.
1604 * toplev.c (flag_really_no_inline): New.
1606 2002-03-21 Jakub Jelinek <jakub@redhat.com>
1608 * config/avr/avr.md (length): Fix length computation for
1609 conditional branches.
1611 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
1613 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
1614 sdbout.o, profile.o): Update.
1615 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
1617 * c-common.h (gettags): Move here from tree.h.
1618 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
1619 insert_block, getdecls, kept_level_p, global_bindings_p): New.
1620 * dbxout.c (dbxout_init): Use getdecls langhook.
1621 * expr.c (expand_expr): Use insert_block langhook.
1622 * fold-const.c: Include langhooks.h.
1623 (fold_range_test, fold_binary_op_with_conditional_arg,
1624 fold): Use global_bindings_p langhook.
1625 * integrate.c (expand_inline_function): Use insert_block langhook.
1626 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
1627 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
1628 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
1629 LANG_HOOKS_GETDECLS): New.
1630 (LANG_HOOKS_INITIALIZER): Update.
1631 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
1633 * langhooks.h (struct lang_hooks_for_decls): New.
1634 (struct lang_hooks): Update.
1635 * profile.c: Include langhooks.h.
1636 (output_func_start_profiler): Use new langhooks.
1637 * sdbout.c: Include langhooks.h.
1638 (sdbout_init, sdbout_finish): Use getdecls langhook.
1639 * stmt.c: Include langhooks.h.
1640 (expand_fixup, fixup_gotos): Use new langhooks.
1641 * stor-layout.c: Include langhooks.h.
1642 (variable_size): Use global_bindings_p langhook.
1643 * toplev.c (compile_file): Use getdecls langhook.
1644 * tree-inline.c (remap_block): Use insert_block langhook.
1645 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
1646 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
1648 2002-03-21 Richard Henderson <rth@redhat.com>
1650 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
1651 constants in .data when -fpic.
1653 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1655 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
1658 2002-03-21 Tom Tromey <tromey@redhat.com>
1660 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
1662 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1664 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
1666 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
1668 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
1669 Richard Henderson <rth@redhat.com>
1672 * c-common.c (c_expand_expr): Preserve result of a statement
1673 expression if needed.
1675 2002-03-21 Jakub Jelinek <jakub@redhat.com>
1678 * genrecog.c (maybe_both_true_mode): Remove.
1679 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
1680 * machmode.def (Pmode): Likewise.
1682 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
1684 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
1685 (nonlocal_mentioned_p_1): New function.
1686 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
1687 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
1688 (mark_constant_function): Recognize pure functions.
1689 * rtl.h (global_reg_mentioned_p): New prototype.
1690 * rtlanal.c (global_reg_mentioned_p,
1691 global_reg_mentioned_p_1): New function.
1693 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1695 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
1697 * fixinc/fixincl.x: Regenerate.
1699 2002-03-20 Jason Merrill <jason@redhat.com>
1701 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
1703 2002-03-20 Michael Meissner <meissner@redhat.com>
1705 * doc/invoke.texi (Optimize Options): Document that -O2 sets
1708 2002-03-20 Bob Wilson <bob.wilson@acm.org>
1710 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
1711 ".literal_position" directive before the constant pool.
1713 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1715 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
1716 Add Craig Rodrigues.
1717 Add Brad Lucier to testers.
1719 2002-03-20 Jakub Jelinek <jakub@redhat.com>
1722 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
1724 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
1725 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
1726 instead of insn_extract.
1728 2002-03-20 Jakub Jelinek <jakub@redhat.com>
1731 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
1733 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
1734 stmt if some case has been output.
1736 2002-03-20 Jakub Jelinek <jakub@redhat.com>
1739 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
1740 movsfcc_1, movdfcc_1): Add %O2.
1741 * config/i386/i386.c (print_operand): Handle %ON.
1742 Print . before float condition codes in Sun as cmov syntax.
1743 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
1744 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
1747 2002-03-20 Philip Blundell <pb@nexus.co.uk>
1749 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
1750 return instruction if PC was popped.
1752 2002-03-20 Bob Wilson <bob.wilson@acm.org>
1754 * config/xtensa/xtensa.md: Remove unused type attributes.
1755 (adddi_carry, subddi_carry): Change type attribute to "multi".
1757 2002-03-19 Dale Johannesen <dalej@apple.com>
1759 PR optimization/5999, middle-end/5731
1760 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
1761 multiplications by reciprocals.
1763 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
1765 * Makefile.in: Update.
1766 * c-common.c: Include langhooks.h.
1767 (inline_forbidden_p): Use new hook.
1768 * diagnostic.c: Include langhooks.h.
1769 (format_with_decl, announce_function,
1770 default_print_error_function): Use new hook.
1771 * dwarf2out.c (dwarf2_name): Use new hook.
1772 * function.c: Include langhooks.h.
1773 (init_function_start): Use new hook.
1774 * langhooks-def.h (lhd_decl_printable_name): New.
1775 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
1776 (LANGHOOKS_INITIALIZER): Update.
1777 * langhooks.c (lhd_decl_printable_name): New.
1778 * langhooks.h (struct lang_hooks): New hook.
1779 * toplev.c (decl_name, decl_printable_name): Remove.
1780 (open_dump_file): Use new hook.
1781 (process_options): Remove old hook.
1782 * tree.h (decl_printable_name): Remove.
1784 * objc-act.c (objc_init): Remove old hook.
1785 (objc_printable_name): Export.
1786 * objc-act.h (objc_printable_name): New.
1787 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
1789 2002-03-19 Jim Blandy <jimb@redhat.com>
1791 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
1792 the start_source_file debug hook, not the current line number.
1794 2002-03-19 Richard Henderson <rth@redhat.com>
1796 * flow.c (EH_USES): Provide default.
1797 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
1798 * doc/tm.texi (EH_USES): New.
1800 * config/ia64/ia64.c (ia64_eh_uses): New.
1801 * config/ia64/ia64-protos.h: Update.
1802 * config/ia64/ia64.h (EH_USES): New.
1804 2002-03-19 Richard Henderson <rth@redhat.com>
1806 * varasm.c (output_constant_def): Fix stupid typo.
1808 2002-03-19 Richard Henderson <rth@redhat.com>
1811 * except.c (current_function_has_exception_handlers): New.
1812 * except.h: Declare it.
1813 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
1814 Combine tests that disable all sibcalls for the function.
1816 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
1818 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
1821 2002-03-19 Richard Henderson <rth@redhat.com>
1824 * config/ia64/ia64.c: Revert 2002-03-01 patch.
1825 * config/ia64/ia64.h (INIT_EXPANDERS): New.
1827 2002-03-19 Jim Blandy <jimb@redhat.com>
1829 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
1830 name, even if the replacement list contains no tokens, as required
1833 2002-03-19 Jason Merrill <jason@redhat.com>
1835 * varasm.c (globalize_decl): Get the name from the RTL, not
1836 DECL_ASSEMBLER_NAME.
1838 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
1840 2002-03-19 Bob Wilson <bob.wilson@acm.org>
1842 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
1843 subdi_carry): Define.
1845 2002-03-19 David Edelsohn <edelsohn@gnu.org>
1847 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
1848 about -fpic/-fPIC if extra_warnings set.
1850 2002-03-19 David Edelsohn <edelsohn@gnu.org>
1852 * expr.c (expand_expr): Sign-extend CONST_INT generated from
1853 TREE_STRING_POINTER.
1854 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
1856 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1858 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
1859 in favor of SP if FRAME_POINTER_REQUIRED is false.
1861 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
1863 * emit-rtl.c (gen_int_mode): New function.
1864 * rtl.h: Prototype for it.
1865 * combine.c (make_extraction, simplify_comparison), expmed.c
1866 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
1867 (convert_modes, store_field), optabs.c (expand_fix),
1868 simplify-rtx.c (neg_const_int, simplify_unary_real),
1870 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
1871 Use it instead of GEN_INT (trunc_int_for_mode (...)).
1873 2002-03-19 Jakub Jelinek <jakub@redhat.com>
1876 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
1877 convert_parm_for_inlining.
1878 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
1880 * langhooks-def.h: Likewise.
1881 * objc/objc-lang.c: Likewise.
1882 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
1884 * tree-inline.c (initialize_inlined_parameters):
1885 Call convert_parm_for_inlining lang hook if needed.
1886 * c-typeck.c (c_convert_parm_for_inlining): New function.
1887 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
1889 2002-03-18 Mark Mitchell <mark@codesourcery.com>
1891 * calls.c (precompute_arguments): Do not assume that temporaries
1892 can be destroyed after expanding the argument.
1893 (expand_call): Likewise.
1895 2002-03-15 Eric Christopher <echristo@redhat.com>
1897 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
1898 Fix register preference on last change.
1899 * config/mips/mips.c (mips_return_in_memory): New function.
1900 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
1901 * config/mips/mips-protos.h: Declare.
1902 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
1903 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
1905 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
1907 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
1909 (anddi3, iorsi3): Likewise.
1911 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
1912 use %gprel for symbols that are going to be placed in linkonce
1915 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
1916 RETURN_ADDRESS_POINTER_REGNUM to $ra.
1917 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
1918 not needed. Disregard leaf_function_p().
1919 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
1920 mips16 frame pointer.
1921 * config/mips/mips.md (store ra): Only to small SP offsets.
1922 2001-08-22 Graham Stott <grahams@redhat.com>
1923 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
1924 return a REG rtx for the return address register.
1926 2002-03-18 Bob Wilson <bob.wilson@acm.org>
1928 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
1929 constant-pool addresses as "mode-dependent".
1930 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
1932 2002-03-18 Jakub Jelinek <jakub@redhat.com>
1935 * expr.c (emit_group_load): Use extract_bit_field if
1936 needed for CONCAT arguments.
1938 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
1941 * arm.md (tablejump): Make this a define_expand. For PIC add the
1942 offset to the base of the table.
1943 (thumb_tablejump): Matcher for Thumb tablejump insn.
1944 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
1945 as the difference of two labels.
1946 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
1947 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
1949 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
1950 * arm.c (get_jump_table_size): If the table is not in the text
1951 section, return zero.
1953 2002-03-18 Bernd Schmidt <bernds@redhat.com>
1955 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
1957 (arm_reload_out_hi): Use gen_lowpart instead of
1958 gen_rtx_SUBREG to access QImode components.
1959 * config/arm/arm.md: Disable zero_extend split for QImode
1960 subregs in BIG_ENDIAN mode.
1961 (storehi_bigend): Match use of least significant byte.
1962 (storeinthi): Remove extraneous SUBREG.
1963 Add missing construction of operands[2].
1964 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
1965 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
1966 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
1968 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
1970 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
1973 2002-03-17 Richard Henderson <rth@redhat.com>
1975 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
1978 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
1980 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
1981 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
1983 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1985 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
1987 * predict.c (estimate_bb_frequencies): Delete unused variables.
1989 2002-03-17 Richard Henderson <rth@redhat.com>
1991 * config/ia64/ia64.c (ia64_attribute_table): Move before
1992 targetm definition. Make static.
1994 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
1996 * c-common.h (yyparse, c_common_parse_file): New.
1997 * c-lang.c: Include c-common.h.
1998 (LANG_HOOKS_PARSE_FILE): Redefine.
1999 * c-lex.c: Include c-common.h.
2000 (yyparse): Rename c_common_parse_file. Call yyparse.
2001 * c-parse.in (yyparse): Remove macro.
2002 * c-tree.h (yyparse_1): Remove.
2003 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
2004 (LANG_HOOKS_INITIALIZER): Update.
2005 * langhooks.h (struct lang_hoooks): New hook parse_file.
2006 * toplev.c (compile_file): Use parse_file hook.
2007 * tree.h (yyparse): Remove.
2008 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
2010 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
2012 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
2013 float_truncate, not fix.
2014 ("*truncdfsf2_real"): Ditto.
2015 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
2017 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
2019 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
2021 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
2022 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
2023 where appropriate. Make the second reference to
2024 leaf_function_p a function call, as intended. Reindented.
2026 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
2027 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
2029 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
2030 add register to non-constant into sp.
2032 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
2033 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
2034 (mips16_gp_pseudo_rtx): Lose.
2035 (INIT_EXPANDERS): Deleted.
2036 * config/mips/mips.c (mips_init_machine_status): New.
2037 (mips_free_machine_status): New.
2038 (mips_mark_machine_status): New.
2039 (override_options): Set them.
2040 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
2041 (struct machine_function): ... new. Replaced all references.
2042 (mips_add_gc_roots): Don't mark them.
2043 (embedded_pic_fnaddr_reg): New, extracted from...
2044 (embedded_pic_offset): ... here.
2045 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
2048 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
2050 * cppinit.c: Revert -MD removal.
2052 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2054 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
2055 soft registers by default for 68HC12.
2056 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
2057 when compiling with -fomit-frame-pointer.
2058 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
2059 (expand_epilogue): Likewise.
2060 (m68hc11_gen_rotate): Use exg when rotating by 8.
2062 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2064 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
2065 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
2066 (splits): Remove unused add splits.
2067 ("*addhi3_68hc12"): Tune constraints.
2068 ("addhi_sp"): Try to use X instead of Y in all cases and if the
2069 constant fits in 8-bits and D is dead use abx/aby instructions.
2070 ("*addhi3"): Remove extern declaration of ix_reg.
2071 ("*subsi3"): Optimize and provide new split.
2072 ("subhi3"): Cleanup.
2073 ("*subhi3_sp"): Avoid saving X if we know it is dead.
2074 (arith splits): For 68hc12 save the address register on the stack
2075 and do the arithmetic operation with a pop.
2077 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2079 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
2080 allocating QImode in address registers.
2081 ("*movqi_m68hc11"): Likewise.
2083 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
2085 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
2087 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
2089 * cppinit.c (print_help): Display -MD and -MMD.
2090 Don't display usage string. Update assertion syntax and
2092 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
2093 (cpp_handle_option): Update.
2095 2002-03-15 Chris Demetriou <cgd@broadcom.com>
2097 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
2098 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
2099 and define it so that regardless of target CPU size,
2100 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
2101 of "int" rather than "long."
2103 2002-03-15 Richard Henderson <rth@redhat.com>
2105 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
2108 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2110 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
2111 ("tstqi" split): Avoid using memory for tstqi on address register.
2112 (splits): Remove constraints.
2113 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
2114 ("cmpdf", "cmpsf"): Remove since not used.
2115 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
2116 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
2118 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2120 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
2121 ("neghi2"): Tighten constraints.
2122 ("one_cmplsi2"): Optimize and simplify split.
2123 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
2125 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2127 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
2128 and split of AND operation to clear the upper bits.
2129 ("*logicalsi3_zextqi"): Likewise.
2130 ("*logicallhi3_zexthi_ashift8"): Likewise.
2131 ("*logicalsi3_silshr16"): Likewise.
2132 ("logicalsi3_silshl16"): Likewise.
2133 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
2135 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2137 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
2138 (m68hc11_indirect_p): New function.
2139 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
2140 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
2142 (asm_print_register): Likewise.
2143 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
2144 (m68hc11_indirect_p): Declare.
2145 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
2146 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
2147 (TARGET_SWITCHES): New option -mrelax.
2148 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
2150 ("iorsi3", "xorsi3"): Likewise.
2151 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
2152 ("*andhi3_mem"): New to handle destination in memory with bclr
2153 and a scratch register.
2154 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
2155 ("*andhi3_const"): New when operand2 is constant.
2156 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
2157 ("*andhi3_gen"): Cleanup of the old "andhi3".
2158 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
2159 ("xorqi3"): Update constraints.
2161 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2163 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
2164 for reg_equiv_memory_loc when the operand is a register that does
2165 not get a hard register (stack location).
2166 (tst_operand): After reload, accept all memory operand.
2167 (symbolic_memory_operand): Fix detection of symbolic references.
2168 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
2169 accept symbols and any constant.
2171 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2173 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
2174 note on the insn that sets the soft frame register.
2175 (must_parenthesize): ix and iy are also reserved names.
2176 (print_operand_address): One more place where parenthesis are required
2177 to avoid confusion with register names.
2178 (m68hc11_gen_movhi): Allow push of stack pointer.
2179 (m68hc11_check_z_replacement): Fix handling of parallel with a
2181 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
2182 the replacement register is.
2183 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
2184 and D8_REGS classes.
2185 (MODES_TIEABLE_P): All modes are tieable except QImode.
2187 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2189 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
2190 (___subdi3): Likewise.
2191 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
2192 (__map_data_section): Optimize 68hc11 case.
2194 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2196 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
2197 than a shift to avoid adding a register with itself.
2198 (m68hc11_memory_move_cost): Take into account NO_REGS.
2199 (m68hc11_register_move_cost): Update and use memory move cost
2201 (m68hc11_address_cost): Make cost of valid offset not 0 so that
2202 it gives more opportunities to cse to optimize.
2203 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
2204 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
2206 2002-03-15 Mark Mitchell <mark@codesourcery.com>
2208 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
2209 * c-common.def (CLEANUP_STMT): New tree node.
2210 * c-common.h (CLEANUP_DECL): New macro.
2211 (CLEANUP_EXPR): Likewise.
2212 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
2213 * expr.c (expand_expr): Tidy.
2214 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
2215 * tree-inline.c (initialize_inlined_parameters): Clean up
2216 new local variables.
2218 2002-03-15 Jakub Jelinek <jakub@redhat.com>
2221 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
2222 before movrXX only, use reg_overlap_mentioned_p.
2223 Only special case NE if just one insn can be generated.
2225 2002-03-15 Jason Merrill <jason@redhat.com>
2227 * varasm.c (assemble_variable): Call resolve_unique_section before
2228 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
2231 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
2234 * arm.md (split pattern for thumb shiftable immediates): Add comment
2235 explaining non-obvious test.
2237 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
2240 * arm.md (movaddr, movaddr_insn): Delete.
2242 2002-03-15 Jason Merrill <jason@redhat.com>
2244 * toplev.c (wrapup_global_declarations): Clarify variable handling.
2245 -fkeep-static-consts doesn't apply to comdats.
2247 2002-03-14 Richard Henderson <rth@redhat.com>
2249 * c-decl.c: Include c-pragma.h.
2250 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
2251 (finish_function): Tidy.
2252 * c-pragma.c: Include c-common.h.
2253 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
2254 (handle_pragma_weak): Use them.
2255 (init_pragma): Register pending_weaks.
2256 * c-pragma.h (maybe_apply_pragma_weak): Declare.
2257 * print-tree.c (print_node): Print DECL_WEAK.
2258 * varasm.c (mark_weak_decls): Remove.
2259 (remove_from_pending_weak_list): Remove.
2261 (asm_emit_uninitialised): Call globalize_decl for weak commons.
2262 (weak_decls): Make a tree_list.
2263 (declare_weak): Cons weak_decls directly.
2264 (globalize_decl): Remove weak_decls elements directly.
2265 (weak_finish): Simplify weak_decls walk. Don't weaken unused
2266 symbols. Don't pretend to handle aliases.
2267 (init_varasm_once): Update weak_decls registry.
2268 * Makefile.in: Update dependencies.
2270 2002-03-14 Richard Henderson <rth@redhat.com>
2273 * config/ia64/ia64.c: Include tm_p.h last.
2274 (gen_nop_type): Remove duplicate definition.
2275 (cycle_end_fill_slots): Set sched_data for second L slot.
2276 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
2277 (nop_cycles_until): Fix typos.
2279 2002-03-15 Jakub Jelinek <jakub@redhat.com>
2281 PR optimization/5891
2282 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
2284 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
2286 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
2287 descriptors correctly.
2289 2002-03-14 Michael Meissner <meissner@redhat.com>
2291 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
2292 100, allowing MAX_UNROLLED_INSNS to be overridden.
2294 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
2297 * unroll.c (params.h): Include.
2298 (MAX_UNROLLED_INSNS): Delete, now in params.h.
2300 * doc/invoke.texi (--param max-unroll-insns): Document.
2302 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
2304 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
2306 * arm.md: Fix warnings about constraints in peepholes and splits.
2308 2002-03-14 Zack Weinberg <zack@codesourcery.com>
2310 * cpphash.h (struct lexer_state): Remove line_extension member.
2311 * cpplib.c (dequote_string, do_linemarker): New functions.
2312 (linemarker_dir): New data object.
2313 (DIRECTIVE_TABLE): No longer need to interpret #line in
2314 preprocessed source. Delete obsolete comment about return
2316 (end_directive, directive_diagnostics, _cpp_handle_directive):
2317 Don't muck with line_extension.
2318 (directive_diagnostics): No need to issue warnings for
2320 (_cpp_handle_directive): Issue warnings for linemarkers here,
2321 when appropriate. Dispatch linemarkers to do_linemarker, not
2323 (do_line): Code to handle linemarkers split out to do_linemarker.
2324 Convert escape sequences in filename argument, both places.
2326 * cppmacro.c (quote_string): Rename cpp_quote_string and
2327 export. All callers changed.
2328 * cpplib.h (cpp_quote_string): Prototype.
2329 * cppmain.c (print_line): Call cpp_quote_string on to_file
2332 * doc/cpp.texi: Document that escapes are now interpreted in
2333 #line and in linemarkers, and that non-printing characters are
2334 converted to octal escapes when linemarkers are generated.
2336 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
2338 * emit-rtl.c (try_split): Use delete_insns.
2339 * recog.c (split_all_insns): Fix terminating condition.
2341 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
2342 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
2345 * arm.c (arm_output_epilogue): Fix floating-point register save
2346 adjustment when using a frame pointer.
2348 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
2350 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
2351 * config/mips/mips.c (compute_frame_size): Retrofit them here.
2352 (save_restore_insns, mips_expand_epilogue): And here.
2353 (build_mips16_call_stub): And here.
2354 (mips_function_value): Use the new macros to decide whether a single
2355 or complex float can be returned in floating-point registers. Return
2356 a parallel rtx in the complex case.
2358 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
2360 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
2361 call after liveness analysis.
2363 * recog.c (split_insn): Use delete_insn_and_edges.
2365 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
2366 instructions to have branch prediction notes.
2367 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
2369 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
2371 * configure.in: Don't pass -Wno-long-long to a ADA compiler
2372 that doesn't support it.
2373 * configure: Regenerate.
2375 2002-03-13 Jakub Jelinek <jakub@redhat.com>
2378 * config/sparc/sparc.md (normal_branch, inverted_branch,
2379 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
2380 inverted_fp_branch): Adjust calls to output_cbranch.
2381 Set length attribute.
2382 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
2383 output_v9branch. Set length attribute.
2384 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
2386 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
2387 (output_cbranch): Likewise. Handle far branches.
2388 (output_v9branch): Handle far branches.
2389 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
2391 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
2392 noov_compare64_op predicates.
2394 2002-03-13 Jason Merrill <jason@redhat.com>
2396 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
2397 into the function and constify it.
2398 * gthr-dce.h, gthr-solaris.h: Likewise.
2400 2002-03-13 David Edelsohn <edelsohn@gnu.org>
2402 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
2403 * config/rs6000/rs6000.c (rs6000_va_arg): Use
2404 std_expand_builtin_va_arg if not ABI_V4.
2406 2002-03-13 Jason Merrill <jason@redhat.com>
2408 * varasm.c (globalize_decl): New fn.
2409 (assemble_start_function): Use it.
2410 (asm_emit_uninitialized): Use it.
2411 (assemble_alias): Use it.
2412 (assemble_variable): Use it.
2414 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
2416 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
2417 2002-03-12 internal visibility change.
2418 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
2419 visibility into SYMBOL_REF_FLAG.
2421 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
2423 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
2424 VOIDmode operand. Add compile-time optimization for constant results.
2426 2002-03-12 Jason Merrill <jason@redhat.com>
2428 * c-typeck.c (convert_for_assignment): Don't allow conversions
2429 between pointers and references. Only allow lvalues to convert to
2432 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
2434 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
2435 before prologue, to avoid scheduling problems.
2437 2002-03-13 Jakub Jelinek <jakub@redhat.com>
2439 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
2440 (ELIMINABLE_REGS): Add sfp->sp.
2441 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
2443 2002-03-13 Jakub Jelinek <jakub@redhat.com>
2445 PR optimization/5892
2446 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
2448 2002-03-13 Jakub Jelinek <jakub@redhat.com>
2450 * loop.c (basic_induction_var): Don't call convert_modes if mode
2451 classes are different.
2453 2002-03-12 Richard Henderson <rth@redhat.com>
2455 PR optimization/5901
2456 * function.c (reposition_prologue_and_epilogue_notes): Position
2457 the markers after/before the last/first insn not deleted.
2459 2002-03-12 Richard Henderson <rth@redhat.com>
2461 PR optimization/5878
2462 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
2463 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
2464 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
2466 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
2467 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
2468 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
2470 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
2471 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
2472 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
2473 also. Don't set it if not flag_pic.
2474 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
2475 to be INVALID_REGNUM when not used.
2477 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
2479 * expmed.c (store_bit_field): Reset alias set for memory.
2480 (extract_bit_field): Same.
2482 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2484 * c-common.c (c_tree_code_type, c_tree_code_length,
2485 c_tree_code_name, add_c_tree_codes): Delete.
2486 * c-common.h (add_c_tree_codes): Delete.
2487 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
2489 * c-objc-common.c (c_objc_common_init): Don't call
2490 add_c_tree_codes, instead set lang_unsafe_for_reeval.
2491 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
2492 objc_tree_code_name, add_objc_tree_codes): Delete.
2493 (objc_init): Don't call add_objc_tree_codes.
2494 * objc/objc-lang.c (tree_code_type, tree_code_length,
2495 tree_code_name): Define.
2496 * toplev.c (lang_independent_init): Don't set
2497 tree_code_length[IDENTIFIER_NODE].
2498 * tree.c (tree_code_type, tree_code_length, tree_code_name):
2499 Delete definitions, moved to language front-ends.
2500 * tree.def (IDENTIFIER_NODE): Hardwire the length.
2501 * tree.h (tree_code_type, tree_code_length, tree_code_name):
2503 (tree_code_length): Change type to unsigned char.
2505 2002-03-12 Richard Henderson <rth@redhat.com>
2507 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
2508 internal visibility change.
2510 2002-03-12 Bob Wilson <bob.wilson@acm.org>
2512 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
2513 validize_mem() instead of change_address to avoid clobbering
2516 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
2518 * c-lex.h (position_after_whitespace): Remove.
2520 2002-03-12 Jakub Jelinek <jakub@redhat.com>
2522 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
2523 (lex_string): Use unsigned char pointers.
2525 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
2527 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
2528 is not a valid memory_operand.
2530 2002-03-12 Bob Wilson <bob.wilson@acm.org>
2532 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
2533 * config/xtensa/lib1funcs.asm: Fix copyright to include
2534 special case for libgcc files.
2535 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
2536 (__divsi3): Likewise.
2537 (__umodsi3): Likewise.
2538 (__modsi3): Likewise.
2539 * config/xtensa/lib2funcs.S: Fix copyright to include
2540 special case for libgcc files.
2542 2002-03-12 Tom Rix <trix@redhat.com>
2544 * collect2.c (resolve_lib_name): Move outside of
2545 OBJECT_FORMAT_COFF ifdef.
2546 (ignore_library): Same.
2548 2002-03-12 Bob Wilson <bob.wilson@acm.org>
2550 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
2552 2002-03-12 Bob Wilson <bob.wilson@acm.org>
2554 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
2555 to function_section before writing out the constant pool.
2557 2002-03-12 David Edelsohn <edelsohn@gnu.org>
2559 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
2561 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
2563 2002-03-12 Alan Modra <amodra@bigpond.net.au>
2565 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
2569 (cmpsi splitter): Likewise.
2570 (modsi3): Fail if <= 0.
2571 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
2572 redundant test when HOST_BITS_PER_WIDE_INT != 32.
2573 (reg_or_sub_cint64_operand): Likewise.
2574 (num_insns_constant_wide): Optimize sign extension.
2575 (rs6000_legitimize_address): Likewise.
2577 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
2579 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2580 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2582 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
2584 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
2585 address calculation.
2587 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
2589 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
2590 scratch register to DImode / TImode.
2591 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
2592 register used does not overlap the target.
2594 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2596 * Makefile.in (debug.o): Depend on debug.h.
2597 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
2598 * debug.c (do_nothing_debug_hooks): Likewise.
2599 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
2600 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
2601 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
2602 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
2603 * dwarfout.c (dwarf_debug_hooks): Likewise.
2604 * integrate.c (output_inline_function): Likewise.
2605 * objc/objc-act.c (synth_module_prologue): Likewise.
2606 * sdbout.c (sdb_debug_hooks): Likewise.
2607 * toplev.c (debug_hooks): Likewise.
2608 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2610 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2612 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
2613 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
2614 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
2615 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
2616 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
2617 * defaults.h (POINTER_SIZE): Define.
2618 * doc/tm.texi (POINTER_SIZE): Document default.
2620 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2622 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
2624 2002-03-11 Richard Henderson <rth@redhat.com>
2626 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
2627 if rebuild_label_notes_after_reload.
2629 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
2631 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
2632 emit pic register load if "internal" visibility.
2633 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
2634 (cris_expand_builtin_va_arg): Do all computations on trees.
2636 2002-03-11 Richard Henderson <rth@redhat.com>
2638 * rtlanal.c: Include recog.h.
2639 (keep_with_call_p): Fix thinko.
2640 * Makefile.in (rtlanal.o): Update dependencies.
2642 2002-03-11 Chris Meyer <cmeyer@gatan.com>
2644 * genflags.c (gen_insn): Use IS_VSPACE.
2645 * genoutput.c (output_insn_data): Likewise.
2646 (process_template): Likewise.
2648 2002-03-11 Richard Henderson <rth@redhat.com>
2650 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
2652 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
2654 * Makefile.in: Update.
2655 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
2656 Update documentation.
2657 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
2658 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
2660 2002-03-11 Zack Weinberg <zack@codesourcery.com>
2662 * Makefile.in: Give texi2pod its input file as a command line
2663 argument, not on stdin.
2665 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
2666 Daniel Berlin <dan@dberlin.org>
2668 C++ alias analysis improvement.
2669 * alias.c (record_component_aliases): Record aliases for base
2672 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
2674 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
2676 2002-03-11 Douglas B Rupp <rupp@gnat.com>
2678 * toplev.c (vms_fopen): Remove, not needed.
2680 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
2682 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
2684 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
2685 for FP, already done later.
2687 * toplev.c (debug_args): Add entry for VMS_DEBUG.
2688 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
2690 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
2692 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
2693 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
2694 LARGEST_EXPONENT_IS_NORMAL for the given mode.
2695 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
2696 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
2697 (ediv, emul, eldexp, esqrt): Likewise.
2698 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
2699 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
2700 (saturate): New function.
2701 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
2702 (make_nan): Use a saturation value instead of a NaN if
2703 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
2704 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
2705 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
2706 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
2707 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
2708 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
2709 !ROUND_TOWARDS_ZERO.
2710 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
2711 (ROUND_TOWARDS_ZERO): Document.
2713 2002-03-11 Andreas Jaeger <aj@suse.de>
2715 * cfg.c (dump_flow_info): Remove unused variable.
2717 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
2719 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
2720 computations on trees.
2722 2002-03-10 Richard Henderson <rth@redhat.com>
2725 * reload.c (copy_replacements_1): New.
2726 (copy_replacements): Use it to recurse through the rtx.
2728 2002-03-10 Richard Henderson <rth@redhat.com>
2730 * loop.c (strength_reduce): Compute number of iterations as
2731 unsigned HOST_WIDE_INT.
2733 2002-03-10 Richard Henderson <rth@redhat.com>
2735 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
2736 to move away from the end of the block.
2738 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
2740 PR preprocessor/5899
2741 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
2743 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2745 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
2747 * attribs.c (decl_attributes): Fix signed/unsigned warning.
2749 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
2751 * config/mmix/mmix.c: Improve comments.
2752 (mmix_target_asm_function_prologue): Drop variable
2753 empty_stack_frame. Don't allocate unused slot above fp.
2754 (mmix_target_asm_function_epilogue): Mirror prologue changes.
2755 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
2756 brace in first column.
2757 (enum reg_class): Ditto.
2758 (FIRST_PARM_OFFSET): Now 0.
2759 (USER_LABEL_PREFIX): Remove #if 0:d definition.
2761 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2763 * combine.c (make_extraction): Fix error in last change.
2765 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2767 * c4x.c (c4x_fp_reglist): Const-ify.
2768 * cris.c (cris_print_operand): Likewise.
2769 * i386.c (ix86_va_arg): Likewise.
2770 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
2771 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
2772 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
2773 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
2774 * mcore.h (regno_reg_class): Likewise.
2775 * mips.c (gen_int_relational): Likewise.
2776 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
2777 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
2778 * pdp11.c (move_costs): Likewise.
2779 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
2780 * s390.c (s390_branch_condition_mnemonic, regclass_map):
2782 * s390.h (regclass_map): Likewise.
2783 * sh.c (shift_amounts): Likewise.
2784 * sh.md (rotlsi3): Likewise.
2786 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
2788 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
2789 (ne0+5): Use new clobber to generate proper shift pattern.
2790 Patch by Michael Matz <matz@kde.org>.
2792 2002-03-09 Andreas Schwab <schwab@suse.de>
2794 * gcc.c (validate_all_switches): Also handle `%W{...}'.
2796 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
2798 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
2800 2002-03-09 Jakub Jelinek <jakub@redhat.com>
2803 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
2804 even for non-representable constants.
2806 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2808 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
2809 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
2810 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
2811 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
2812 (pop_function_context): Compute MAY_SHARE parameter for
2814 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
2815 (gen_mem_addressof): Call fixup_var_refs with new parm.
2817 * combine.c (make_extraction): Don't make extension of CONST_INT.
2819 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
2821 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
2822 in o32 and o64 ABIs.
2823 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
2824 but getting fixed-size structs passed in registers regardless of
2825 padding in o32 and o64 ABIs.
2827 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
2828 offset before loading address of argument passed by transparent
2831 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
2833 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
2835 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
2837 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
2838 marker such that registers after it are saved.
2840 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2842 * sparc.c (arith_4096_operand): Fix error in last change.
2844 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
2846 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
2849 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
2851 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
2854 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
2856 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
2858 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
2860 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
2861 removed; fix return value.
2862 * combine.c (combine_instructions): Dirtify blocks where we failed to
2863 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
2864 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
2866 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2868 * gcse.c (insert_insn_end_bb): Fix typo in last change.
2870 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
2872 * recog.c (peephole2_optimize): Re-distribute EH edges.
2874 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
2876 * expr.c (expand_expr): Use unsave lang hook.
2877 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
2878 (LANG_HOOKS_INITIALIZER): Update.
2879 * langhooks.h (struct lang_hooks): New hook unsave.
2880 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
2881 (unsave_expr_1): Remove unused lang_unsave_expr_now.
2882 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
2883 (unsave_expr_now): Remove.
2884 * tree.h (unsave_expr_now, lang_unsave,
2885 lang_unsave_expr_now): Remove.
2888 2002-03-08 Andreas Jaeger <aj@suse.de>
2890 * flow.c (propagate_block_delete_insn): Remove unused variable.
2892 2002-03-08 Kazu Hirata <kazu@hxi.com>
2894 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
2895 insn length for memory load/store.
2897 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
2899 * doc/install.texi (--with-libiconv-prefix): Document.
2901 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
2903 * doc/sourcebuild.texi: Fix typo.
2905 2002-03-08 Jakub Jelinek <jakub@redhat.com>
2908 * builtins.c (std_expand_builtin_va_arg): Do all computations on
2911 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2913 * rtl.c (copy_most_rtx): Move from here ...
2914 * emit-rtl.c (copy_most_rtx): ... to here.
2916 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
2918 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
2919 SUBTARGET_CPP_SIZE_SPEC.
2920 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
2922 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
2924 2002-03-07 Matt Hiller <hiller@redhat.com>
2926 * gensupport.c (first_dir_md_include): Renamed from include;
2927 change all references.
2928 (last_dir_md_include): Renamed from last_include; change all
2930 (init_md_reader): Unconditionally initialize base_dir whether or
2931 not filename is a relative path.
2933 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
2935 * config/fp-bit.c (_unord_f2): Compile it in even if
2936 US_SOFTWARE_GOFAST is enabled.
2938 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
2939 NULL_RTX. Set all HFmode operations as NULL_RTX.
2940 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
2941 NULL_RTX, try reversing the comparison and the operands.
2943 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
2945 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
2946 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
2949 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
2951 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
2953 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
2955 * basic-block.h (fixup_abnormal_edges): Declare.
2956 * reload1.c (fixup_abnormal_edges): New function.
2957 * reg-stack.c (convert_regs): Use it.
2959 * gcse.c (insert_insn_end_bb): Handle trapping insns.
2961 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
2963 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
2965 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
2966 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
2967 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
2968 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
2969 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
2970 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
2971 unless x and y could be infinite.
2972 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
2973 Check that the common type of both arguments is a real, even for
2974 targets without unordered comparisons. Allow an integer argument
2975 to be compared against a real.
2976 (expand_tree_builtin): Use expand_unordered_cmp.
2977 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
2978 * cse.c (fold_rtx): Likewise. Fix indentation.
2979 * fold-const.c (fold_real_zero_addition_p): New.
2980 (fold): Use it, and the new HONOR_... macros.
2981 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
2982 * jump.c (reversed_comparison_code_parts): After searching for
2983 the true comparison mode, use HONOR_NANS to decide whether it
2984 can be safely reversed.
2985 (reverse_condition_maybe_unordered): Remove IEEE check.
2986 * simplify-rtx.c (simplify_binary_operation): Use the new macros
2987 to decide which simplifications are valid. Allow the following
2988 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
2989 and (a - -b) to (a + b).
2990 (simplify_relational_operation): Use HONOR_NANS.
2991 * doc/tm.texi: Document the MODE_HAS_... macros.
2993 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
2995 * combine.c (simplify_comparison): If simplifying a logical shift
2996 right and compare with constant, force the comparison to unsigned.
2998 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
3000 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
3002 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
3004 (alt_reg_names): Remove % for vrsave.
3006 2002-03-06 Richard Henderson <rth@redhat.com>
3008 PR optimization/5844
3009 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
3010 if used indicates we've already emitted one copy of an operand.
3011 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
3012 (gen_split): Supply a non-null used.
3014 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
3016 * reload1.c (reload): Unshare all rtl after reload is done.
3018 * simplify-rtx.c (simplify_plus_minus): Do not abort,
3019 but simply fail if the expression is too complex to simplify.
3020 (simplify_gen_binary): Handle simplify_plus_minus failures.
3022 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
3024 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
3025 consistently call delete_trivially_dead_insns after CSE and GCSE;
3026 fix DFI_life dumping; do jump threading after liveness; do crossjumping
3027 after liveness2; update comment in last crossjumping.
3028 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
3030 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
3032 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
3033 after completing fast dead code elimination.
3035 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
3038 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
3040 * version.c: Fix misplaced leading blanks on first line.
3042 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
3044 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
3046 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
3048 * cfgcleanup.c (mentions_nonequal_regs): New function.
3049 (thread_jump): Use it.
3050 * toplev.c (rest_of_compilation): Run jump threading after
3053 2002-03-06 Jakub Jelinek <jakub@redhat.com>
3055 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
3058 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
3060 * predict.c (estimate_bb_frequencies): Do not reload the
3061 frequencies from notes.
3063 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
3065 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
3066 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
3068 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
3069 delete_noop_moves): Return indeger.
3070 * flow.c (ndead): New variable.
3071 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
3072 BB argument; update callers.
3073 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
3074 (life_analysis): Do not call purge_all_dead_edges.
3075 (update_life_info): Return number of deleted insns; print statistics.
3076 (update_life_info_in_dirty_blocks): likewise.
3077 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
3078 return number of insns deleted.
3080 * cse.c: Include timevar.h
3081 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
3082 iterate until stabilizes; print statistics; return number of killed
3084 * Makefile.in: (cse.o): Add timevar.h dependency
3085 * rtl.h (delete_trivially_dead_insns): New.
3086 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
3087 * toplev.c (rest_of_compilation): Update callers.
3089 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
3090 (try_optimize_cfg): Do not update liveness.
3091 (cleanup-cfg): Loop until try_optimize_cfg and dead code
3092 removal stabilizes; use delete_trivially_dead_insns.
3094 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
3096 2002-03-05 Zack Weinberg <zack@codesourcery.com>
3098 * cppmain.c (setup_callbacks): Disable #pragma and #ident
3099 callbacks when processing assembly language.
3101 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3103 * pa.h (ASM_FILE_END): Define.
3104 * som.h (ASM_FILE_END): Delete.
3106 * pa.c (function_arg): Don't pass floats in general registers in
3107 indirect calls if TARGET_ELF32.
3109 2002-03-05 Richard Henderson <rth@redhat.com>
3111 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
3113 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
3115 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
3117 2002-03-05 Jakub Jelinek <jakub@redhat.com>
3119 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
3120 -r command line. Don't hide any symbols if not building
3123 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
3125 * cfg.c (dump_flow_info): Warn about profile mismatches.
3126 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
3127 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
3129 2002-03-05 Jakub Jelinek <jakub@redhat.com>
3131 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
3132 wide volatile memory by parts.
3134 2002-03-05 Jakub Jelinek <jakub@redhat.com>
3136 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
3139 2002-03-05 Richard Henderson <rth@redhat.com>
3141 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
3143 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
3145 * toplev.c (documented_lang_options): Document more
3146 language-specific options.
3147 * doc/invoke.texi (Warning Options): Correct documentation for
3148 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
3149 * c-decl.c (c_decode_option): Use a table to handle warning options.
3151 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
3153 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
3154 parameter to mmix_encode_section_info.
3155 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
3156 relocatably. Always produce ELF, not mmo if linking relocatably.
3157 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
3158 first is non-zero, don't add symbol prefix.
3159 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
3160 prototype accordingly.
3162 2002-03-04 Krister Walfridsson <cato@df.lth.se>
3164 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
3166 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
3168 * configure.in: Increase required makeinfo version to 4.1.
3169 * configure: Regenerate.
3171 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
3173 * .cvsignore: Remove *.info* and genrtl*; these files are generated
3176 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
3178 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
3179 * doc/invoke.texi: Fix @math uses.
3181 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
3183 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
3186 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
3188 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
3189 (powerpc-*-eabisimaltivec*): Same.
3191 * config/rs6000/t-ppcendian: New.
3193 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
3195 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
3196 nonimmediate_src_operand and nonimmediate_lsrc_operand to
3197 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
3199 2002-03-03 Richard Henderson <rth@redhat.com>
3201 * toplev.c (rest_of_decl_compilation): Revert last two changes.
3203 2002-03-03 Zack Weinberg <zack@codesourcery.com>
3205 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
3206 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
3207 tree.c, config/m68k/m68k.c:
3208 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
3209 REAL_ARITHMETIC blocks unconditional. Delete some further
3210 #ifdef blocks predicated on REAL_ARITHMETIC.
3211 * flags.h, toplev.c: Delete remaining references to
3214 * doc/invoke.texi: Remove documentation of -fpretend-float.
3215 * doc/tm.texi: Describe the various REAL_* macros as provided by
3216 real.h, not by the target configuration files.
3218 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
3219 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
3220 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
3221 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
3222 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
3223 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
3224 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
3225 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
3226 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
3227 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
3228 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
3229 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3230 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
3231 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
3232 config/xtensa/xtensa.h:
3233 Do not define, undefine, or mention in comments any of
3234 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
3235 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
3236 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
3237 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
3238 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
3239 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
3240 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
3241 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
3242 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
3244 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3246 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
3247 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
3248 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
3249 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
3250 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
3251 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
3253 * defaults.h (BITS_PER_WORD): Define.
3254 * doc/tm.texi (BITS_PER_WORD): Document default value.
3256 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
3257 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
3258 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
3260 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3262 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
3263 lieu of explicit sizeof/sizeof.
3264 * i386.c (override_options, ix86_init_mmx_sse_builtins,
3265 ix86_expand_builtin): Likewise.
3266 * mips.c (mips_add_gc_roots): Likewise.
3267 * mmix.c (mmix_output_condition): Likewise.
3268 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
3269 altivec_init_builtins): Likewise.
3270 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
3271 * cppexp.c (Nsuff, parse_number): Likewise.
3272 * cppinit.c (builtin_array_end): Likewise.
3273 * gcc.c (n_default_compilers, process_command): Likewise.
3274 * genpreds.c (output_predicate_decls): Likewise.
3275 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
3276 * lcm.c (N_ENTITIES): Likewise.
3277 * stor-layout.c (set_sizetype): Likewise.
3279 2002-03-03 Richard Henderson <rth@redhat.com>
3281 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
3282 for types or labels.
3284 2002-03-03 Richard Henderson <rth@redhat.com>
3286 * c-decl.c (start_decl): Initialized variables are not common.
3288 2002-03-02 Per Bothner <per@bothner.com>
3290 * gcc.c (option_map): Suport new --bootclasspath option.
3291 --CLASSPATH is now just an alias for --classpath.
3293 2002-03-02 Richard Henderson <rth@redhat.com>
3295 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
3296 load if "internal" visibility.
3297 * doc/extend.texi: Document visibility meanings.
3299 2002-03-02 Richard Henderson <rth@redhat.com>
3301 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
3302 to functions as well.
3304 2002-03-02 Richard Henderson <rth@redhat.com>
3306 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
3307 (handle_visibility_attribute): Don't call assemble_visibility.
3308 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
3309 without asmspec. Invoke assemble_alias when needed.
3310 * varasm.c (maybe_assemble_visibility): New.
3311 (assemble_start_function, assemble_variable, assemble_alias): Use it.
3313 2002-03-02 Richard Henderson <rth@redhat.com>
3315 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
3316 invoke ENCODE_SECTION_INFO with first call flag.
3318 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
3319 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
3320 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
3321 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
3322 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
3323 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
3324 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
3325 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
3326 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
3327 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
3328 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
3329 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
3330 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
3331 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
3332 config/mcore/mcore-protos.h, config/mcore/mcore.c,
3333 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
3334 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
3335 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
3336 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
3337 config/sh/sh.h, config/sparc/sparc.h,
3338 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
3339 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
3340 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
3341 FIRST argument. As needed, examine it and do nothing.
3343 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
3344 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
3345 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
3347 * config/arm/t-pe (pe.o): Add dependencies.
3349 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3351 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
3352 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
3353 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
3354 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
3355 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
3356 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
3357 * defaults.h (BITS_PER_UNIT): Define.
3358 * doc/tm.texi (BITS_PER_UNIT): Document default value.
3360 2002-03-02 Kazu Hirata <kazu@hxi.com>
3362 * config/h8300/h8300-protos.h: Add a prototype for
3363 compute_a_shift_length.
3364 * config/h8300/h8300.c (h8300_asm_insn_count): New.
3365 (compute_a_shift_length): Likewise.
3366 (h8300_adjust_insn_length): Do not adjust insn length of shift
3368 * config/h8300/h8300.md (anonymous shift patterns): Use
3369 compute_a_shift_length.
3371 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3373 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
3376 * emit-rtl.c (offset_address): Call update_temp_slot_address.
3378 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3380 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
3381 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
3382 * flags.h (flag_zero_initialized_in_bss): Declare.
3383 * toplev.c (flag_zero_initialized_in_bss): New flag.
3384 (lang_independent_options): Add flag_zero_initialized_in_bss.
3385 * tree.c (initializer_zerop): New function.
3386 * tree.h (initializer_zerop): Declare.
3387 * varasm.c (assemble_variable): If we can emit bss, put zero
3388 initializers in the bss section.
3390 2002-03-02 Alan Modra <amodra@bigpond.net.au>
3392 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
3393 like more than one symbol per .weak directive.
3395 2002-03-01 Richard Henderson <rth@redhat.com>
3397 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
3398 adjust argument_pointer by pretend_args_size.
3399 (ia64_va_start): Adjust va_start address by -pretend_args_size.
3401 2002-03-01 Kazu Hirata <kazu@hxi.com>
3403 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
3405 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
3407 * toplev.c (rest_of_compilation): Delete dead jumptables before
3409 * flow.c (delete_dead_jumptables): Make global.
3410 * rtl.h (delete_dead_jumptables): Declare.
3412 2002-03-01 David Edelsohn <edelsohn@gnu.org>
3414 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
3415 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
3416 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
3418 2002-03-01 Kazu Hirata <kazu@hxi.com>
3420 * config/h8300/h8300-protos.h: Fix formatting.
3421 * config/h8300/h8300.c: Likewise.
3422 * config/h8300/h8300.h: Likewise.
3424 2002-03-01 Kazu Hirata <kazu@hxi.com>
3426 * config/h8300/h8300.c (print_operand): Support 16-bit
3428 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
3430 2002-02-28 Richard Henderson <rth@redhat.com>
3432 * expmed.c (store_bit_field): Prevent generation of CONCATs;
3433 pun complex values as integers; use gen_lowpart instead of
3435 (extract_bit_field): Likewise.
3437 2002-03-01 Alan Modra <amodra@bigpond.net.au>
3438 David Edelsohn <edelsohn@gnu.org>
3440 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
3441 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
3442 (SUPPORTS_WEAK): Likewise.
3443 * output.h (add_weak): Add tree param.
3444 * varasm.c (add_weak): Likewise. Save decl.
3445 (struct weak_syms): Add decl field.
3446 (mark_weak_decls): New function.
3447 (init_varasm_once): ggc_add_root mark_weak_decls.
3448 (assemble_start_function): Use ASM_WEAKEN_DECL.
3449 (assemble_variable): Likewise.
3450 (assemble_alias): Likewise.
3451 (declare_weak): Pass decl to add_weak.
3452 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
3453 (remove_from_pending_weak_list): Declare and define for
3455 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
3456 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
3457 * defaults.h (SUPPORTS_WEAK): Likewise.
3458 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
3459 .weak for code sym. Do emit .size for descriptor sym.
3460 (ASM_DECLARE_FUNCTION_SIZE): Define.
3461 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
3462 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
3463 .lglobl unless TARGET_XCOFF. Formatting fixes.
3464 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
3466 (HANDLE_PRAGMA_WEAK): Remove.
3467 (ASM_WEAKEN_LABEL): Remove.
3468 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
3470 2002-03-01 Jason Merrill <jason@redhat.com>
3472 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
3473 (TARGET_EXPR_CLEANUP): New macro.
3475 2002-02-28 Steve Ellcey <sje@cup.hp.com>
3477 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
3478 to take ptr_extend into account as third type of extension.
3479 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
3480 fields used by SUBREG_PROMOTED_UNSIGNED_P.
3481 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
3482 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
3483 * calls.c (precompute_arguments): Use new macro.
3484 (expand_call): Ditto.
3485 * combine.c (nonzero_bits): Ditto.
3486 (record_promoted_value): Ditto.
3487 * expr.c (store_expr): Ditto.
3488 (expand_expr): Ditto.
3489 * function.c (assign_parms): Ditto.
3491 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
3493 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
3494 override -shared and -shared-libgcc.
3496 2002-02-28 David O'Brien <obrien@FreeBSD.org>
3498 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
3500 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
3503 2002-02-28 Richard Henderson <rth@redhat.com>
3505 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
3506 4 cycle latency from MM producers.
3507 (ia64_internal_sched_reorder): Likewise with pipeline flush.
3509 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3511 * mklibgcc.in: Don't use GNU make extension.
3513 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
3515 * c-parse.in (STATIC): New terminal.
3516 (scspec): New non-terminal. Update productions accordingly.
3517 (program): Remove bogus ifc / end ifc.
3518 (array_declarator): Simplify production using STATIC.
3520 2002-02-28 Jim Meyering <meyering@lucent.com>
3522 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
3523 \a still means TARGET_BELL.
3525 2002-02-28 Richard Henderson <rth@redhat.com>
3527 * haifa-sched.c (sched_emit_insn): New.
3528 (schedule_block): Use last_scheduled_insn to track last insn.
3529 * sched-int.h (sched_emit_insn): Prototype.
3530 * config/ia64/ia64.c (last_issued): Remove.
3531 (ia64_variable_issue): Don't set it.
3532 (nop_cycles_until): Use sched_emit_insn.
3534 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
3536 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
3539 2002-02-28 Kazu Hirata <kazu@hxi.com>
3541 * config/h8300/h8300.c: Fix formatting.
3542 * config/h8300/h8300.h: Likewise.
3544 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
3546 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
3547 which may overwrite the high byte of the frame pointer.
3549 2002-02-28 Bo Thorsen <bo@suse.de>
3551 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
3552 (STARTFILE_SPEC): Add 64 bit files.
3553 (ENDFILE_SPEC): Likewise.
3555 2002-02-28 Jason Merrill <jason@redhat.com>
3557 * c-decl.c (finish_function): Only warn about missing return
3558 statement with -Wreturn-type.
3560 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
3562 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
3564 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
3565 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
3567 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
3569 * basic-block.h (BB_REACHABLE): Renumber.
3570 (BB_DIRTY, BB_NEW): New flags.
3571 (clear_bb_flags): Declare.
3572 (update_life_info_in_dirty_blocks): Declare.
3573 * cfg.c (clear_bb_flags): New function.
3574 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
3575 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
3576 reorder_insns, emit_insn_after): Mark block as dirty.
3577 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
3578 (update_life_info_in_dirty_blocks): New function.
3579 * recog.c (apply_change_group): Dirtify block.
3581 * cse.c (cse_insn): Reorder emitting of jump insn to keep
3583 * gcse.c (delete_null_pointer_checks): Likewise.
3585 * toplev.c (dump_file_index): Move cse2 after bp,
3587 (dump_file_info): Similary.
3588 (rest_of_compilation): Avoid most of CFG rebuilds;
3589 do first if converision after null pointer checks, do cse2
3590 after branch prediction; avoid full liveness rebuild after
3591 initializing subregs.
3592 * invoke.texi (-d options): Document -du, renumber.
3594 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
3595 (notice_new_block): Do not set BB_UPDATE_LIFE.
3596 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
3597 merge_blocks_move_successor_nojumps, merge_blocks,
3598 try_crossjump_to_edge): Likewise.
3599 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
3600 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
3601 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
3602 (merge_of_block): Do not use life_data_ok.
3603 (find_if_case_1): Do not use SET_UPDATE_LIFE.
3604 (if_convert): Use BB_DIRTY mechanizm to update life.
3605 * lcm.c (optimize_mode_switching): Update
3606 update_life_info_in_dirty_blocks
3608 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
3610 * Makefile.in (integrate.o): Update.
3611 * c-decl.c (copy_lang_decl): Rename.
3612 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
3613 * integrate.c: Include langhooks.h.
3614 (copy_decl_for_inlining): Update to use langhook.
3615 * langhooks-def.h (lhd_do_nothing_t,
3616 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
3617 (LANG_HOOKS_INITIALIZER): Update.
3618 * langhooks.c (lhd_do_nothing_t): New.
3619 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
3620 * tree.h (copy_lang_decl): Remove.
3622 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
3624 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
3626 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
3627 POST_DEC, and POST_MODIFY.
3629 2002-02-27 Zack Weinberg <zack@codesourcery.com>
3631 * c-typeck.c (digest_init): Remove unused parameter; all
3634 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
3636 * expmed.c (expand_shift): Correctly test for low part of a
3639 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
3641 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
3642 insn UIDs with insn addresses.
3644 2002-02-27 Zack Weinberg <zack@codesourcery.com>
3646 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
3647 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
3648 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
3649 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
3650 gcc.c, toplev.c: Delete code implementing -traditional mode.
3652 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
3653 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
3654 Document removal of -traditional mode for compilation, and
3655 remove documentation only relevant to that mode.
3657 * config/nextstep.h, config/ptx4.h, config/svr4.h,
3658 config/convex/convex.h, config/d30v/d30v.h,
3659 config/i386/dgux.h, config/i386/osf1elf.h,
3660 config/i386/osfelf.h, config/i386/osfrose.h,
3661 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
3662 config/m68k/hp310.h, config/m88k/dgux.h,
3663 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
3664 config/m88k/m88k.h, config/m88k/openbsd.h,
3665 config/mips/abi64.h, config/mips/osfrose.h,
3666 config/mips/svr4-5.h, config/mips/svr4-t.h,
3667 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
3668 config/stormy16/stormy16.h: Remove all references to
3669 -traditional from target specs. Delete all mention of the
3670 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
3671 delete a couple of commented-out definitions of
3672 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
3675 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
3676 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
3678 2002-02-27 Zack Weinberg <zack@codesourcery.com>
3680 * mklibgcc.in: Don't use \n in a line subject to
3681 interpretation by echo.
3683 2002-02-27 Graham Stott <grahams@redhat.com>
3685 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
3688 * loop.c (prescan_loop): Handle PARALLEL.
3690 * unroll.c (loop_iterations): Return 0 if the add_val for
3693 * final.c (output_operand_lossage): Constify PFX_STR.
3695 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
3697 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
3699 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
3700 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
3702 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
3704 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
3706 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
3708 * cpplex.c (_cpp_lex_token): Handle directives in macro
3710 * cpplib.c (_cpp_handle_directive): Save and restore state
3711 if parsing macro args when entering a directive.
3712 * cppmacro.c (collect_args): No need to handle directives
3714 (enter_macro_context, replace_args): Use the original macro
3715 definition in case it was redefined whilst collecting arguments.
3719 2002-02-26 David Edelsohn <edelsohn@gnu.org>
3721 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
3722 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
3723 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
3725 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
3726 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
3727 (load_toc_v4_PIC_2): Same.
3729 2002-02-26 Alan Modra <amodra@bigpond.net.au>
3731 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
3733 2002-02-26 Richard Henderson <rth@redhat.com>
3735 * config/alpha/alpha.md (ashldi_se): Re-enable.
3737 2002-02-26 Richard Henderson <rth@redhat.com>
3739 * config/alpha/alpha.c (alpha_encode_section_info): Examine
3740 MODULE_LOCAL_P; improve commentary.
3742 2002-02-26 Zack Weinberg <zack@codesourcery.com>
3744 * doc/cpp.texi: Clarify documentation of relationship between
3747 2002-02-26 Kazu Hirata <kazu@hxi.com>
3749 * config/h8300/h8300-protos.h: Update the prototype for
3750 compute_logical_op_length. Add the prototype for
3751 compute_logical_op_cc.
3752 * config/h8300/h8300.c (compute_logical_op_length): Figure out
3754 (compute_logical_op_cc): New.
3755 * config/h8300/h8300.md: Combine all the logical op patterns
3756 in HImode and SImode. Use compute_logical_op_cc.
3758 2002-02-26 Kelley Cook <kelleycook@comcast.net>
3760 * config/i386/i386.c (print_operand): Don't append ATT-style
3761 length suffixs to x87 opcodes when in Intel mode.
3763 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
3765 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
3766 (init_emit_once): Update calls.
3767 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
3768 (init_syntax_once): Prototype.
3770 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
3772 * pa-linux.h (LIB_SPEC): Update definition.
3773 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
3775 2002-02-26 Richard Henderson <rth@redhat.com>
3777 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
3778 if we emitted a stop bit.
3780 2002-02-26 Jakub Jelinek <jakub@redhat.com>
3782 * configure.in (libgcc_visibility): Substitute.
3783 * configure: Rebuilt.
3784 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
3785 defined symbols .hidden.
3787 2002-02-26 Jakub Jelinek <jakub@redhat.com>
3789 * attribs.c (c_common_attribute_table): Add visibility.
3790 (handle_visibility_attribute): New function.
3791 * varasm.c (assemble_visibility): New function.
3792 * output.h (assemble_visibility): Add prototype.
3793 * tree.h (MODULE_LOCAL_P): Define.
3794 * crtstuff.c (__dso_handle): Use visibility attribute.
3795 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
3796 for MODULE_LOCAL_P symbols too.
3797 * config/ia64/ia64.c (ia64_encode_section_info): Handle
3798 MODULE_LOCAL_P symbols the same way as local symbols.
3799 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
3800 into .sdata/.sbss by the user.
3801 * doc/extend.texi (Function Attributes): Document visibility
3804 2002-02-26 Jakub Jelinek <jakub@redhat.com>
3807 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
3808 STRING_CST initializer spanning the whole variable without
3810 If expand_expr returned MEM, don't use it.
3812 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
3814 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
3815 generate a die for the lexical block.
3817 2002-02-26 Kazu Hirata <kazu@hxi.com>
3819 * config/h8300/h8300-protos.h: Add a prototype for
3820 compute_logical_op_length.
3821 * config/h8300/h8300.c (compute_logical_op_length): New.
3822 * config/h8300/h8300.md (anonymous logical patterns): Use
3823 compute_logical_op_length for length.
3825 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
3827 * dwarf2out.c (modified_type_die): Do not call type_main_variant
3829 (gen_type_die): Same.
3831 * attribs.c (handle_vector_size_attribute): Set debug information.
3833 2002-02-26 Daniel Egger <degger@fhm.edu>
3835 * config/rs6000/rs6000.md: Swap define_insn attributes to
3836 fix incorrect generation of merge high instructions instead
3839 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
3841 * c-typeck.c (really_start_incremental_init): Use
3842 bitsize_zero_node for vectors.
3844 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
3846 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
3847 ("*set_vrsave_internal"): Same.
3849 2002-02-25 Richard Henderson <rth@redhat.com>
3851 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
3852 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
3854 2002-02-25 Jakub Jelinek <jakub@redhat.com>
3857 * config/i386/i386.c (ix86_return_pops_args): Only pop
3858 fake structure return argument if it was passed on the stack.
3860 2002-02-25 Jason Merrill <jason@redhat.com>
3862 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
3865 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
3867 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
3868 link with shared_name only.
3869 * doc/invoke.texi (Link Options): Document new behavior.
3871 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
3873 * c-typeck.c (push_init_level): Handle vectors.
3875 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
3877 * config/sparc/sparc.c (const64_high_operand): Zero-extend
3878 operands of SPARC_SETHI_P.
3879 (input_operand): Likewise.
3880 (sparc_emit_set_const32): Likewise.
3881 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
3882 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
3883 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
3884 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
3885 (movdi_insn_sp64_vis): Likewise.
3886 (movdi split, movdf split): Use SETHI32.
3887 * doc/md.texi: Document SPARC constraints L, M and N.
3889 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
3891 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
3892 ("*set_vrsave_internal"): use mfspr for Darwin.
3894 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
3895 gen_get_vrsave_internal.
3897 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3899 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
3901 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
3903 * cpplex.c (cpp_interpret_charconst): Get signedness or
3904 otherwise of wide character constants correct.
3905 * cppexp.c (lex): Get signedness of wide charconsts correct.
3907 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3909 * optabs.c (widen_operand): Only call convert_modes for
3910 promoted SUBREG if signedness matches.
3911 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
3913 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
3915 * cpplib.c (glue_header_name): Use local buffer to build up
3918 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
3920 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
3922 2002-02-23 Kazu Hirata <kazu@hxi.com>
3924 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
3925 H8/300[HS] separately.
3926 * config/h8300/h8300.md: Remove the early clobber constraint
3927 from bit field patterns.
3929 2002-02-23 Kazu Hirata <kazu@hxi.com>
3931 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
3933 (mulhisi3): Likewise.
3934 (umulqisi3): Likewise.
3935 (umulhisi3): Likewise.
3937 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
3939 * cppinit.c (output_deps): Correct test for stdout output.
3940 (init_dependency_output): Cure warning.
3942 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3944 * expr.c (store_expr): When converting expression to promoted
3945 equivalent type, allow using SUBREG_REG of TARGET as the target
3946 of the expansion of EXP.
3947 * loop.c (basic_induction_var, case SUBREG): Always look inside.
3948 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
3949 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
3950 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
3951 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
3953 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
3955 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
3956 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
3957 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
3959 2002-02-23 Jakub Jelinek <jakub@redhat.com>
3961 PR optimization/5747
3962 * loop.c (scan_loop): Update reg info if move_movables created new
3965 2002-02-23 David Edelsohn <edelsohn@gnu.org>
3967 * gcc.c (init_gcc_spec): Revert last change.
3969 2002-02-23 David Edelsohn <edelsohn@gnu.org>
3971 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
3972 gpc_reg_operand constraint.
3974 2002-02-23 Alan Modra <amodra@bigpond.net.au>
3976 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
3977 Simplify comparison of `low'.
3978 (add_operand): Fix formatting.
3979 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
3980 (mask_operand): Disallow mask to wrap in 64-bit mode.
3981 (rs6000_stack_info): Remove redundant test setting push_p.
3982 (output_toc): Fix formatting.
3983 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
3984 cc_reg_not_cr0_operand constraint.
3985 (booldi3, boolcdi3 splitters): Same.
3987 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
3989 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
3991 2002-02-22 David Edelsohn <edelsohn@gnu.org>
3993 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
3994 gcc invoked with -shared-libgcc.
3996 2002-02-22 Jakub Jelinek <jakub@redhat.com>
3999 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
4000 decl if any of elements was TREE_USED.
4002 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
4004 * config/sparc/sol2.h: Don't include sys/mman.h.
4005 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
4006 (arith_4096_operand): Don't throw high bits away.
4007 (const64_operand): Take sign extension of CONST_INTs into account.
4008 (const64_high_operand, sparc_emit_set_const32): Likewise.
4009 (GEN_HIGHINT64): Likewise.
4010 (sparc_emit_set_const64_quick1): Likewise.
4011 (const64_is_2insns): Likewise.
4012 (print_operand): Use trunc_int_for_mode for sign extension.
4013 * config/sparc/sparc.h (SMALL_INT32): Likewise.
4014 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
4015 chars. Assume CONST_INT is already properly sign-extended.
4016 (movdi split): Sign-extend each SImode part.
4017 (andsi3 split): Don't mask high bits off, so that result
4018 remains properly sign-extend.
4019 (iorsi3 split): Likewise.
4020 (xorsi3 split): Likewise.
4022 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
4024 * fold-const.c (fold): Fix typo in comments.
4026 2002-02-21 Diego Novillo <dnovillo@redhat.com>
4028 * Makefile.in (langhooks.o): Update dependencies.
4030 2002-02-21 Diego Novillo <dnovillo@redhat.com>
4032 * langhooks.c: Include flags.h.
4034 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
4036 * testsuite/gcc.dg/attr-alwaysinline.c: New.
4038 * c-common.c (c_common_post_options): Set inline trees by
4041 * doc/extend.texi (Function Attributes): Document always_inline
4043 Update documentation about inlining when not optimizing.
4045 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
4047 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
4048 unless DECL_ALWAYS_INLINE.
4050 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
4051 unless DECL_ALWAYS_INLINE.
4052 (c_disregard_inline_limits): Disregard if always_inline set.
4054 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
4055 Disregard if always_inline set.
4056 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
4057 unless DECL_ALWAYS_INLINE.
4059 * attribs.c (handle_always_inline_attribute): New.
4060 (c_common_attribute_table): Add always_inline.
4062 * config/rs6000/altivec.h: Add prototypes for builtins
4063 requiring the always_inline attribute.
4065 2002-02-21 Eric Christopher <echristo@redhat.com>
4067 * expmed.c (store_bit_field): Try to simplify the subreg
4068 before generating a new one when when the mode size of
4069 value is less than maxmode.
4071 2002-02-21 Richard Henderson <rth@redhat.com>
4073 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
4074 than gen_rtx_PLUS to form the sum.
4075 * explow.c (force_reg): Rearrange to not allocate new pseudo
4076 when force_operand returns a register.
4077 * expr.c (expand_assignment): Allow offset_rtx expansion to
4078 return a sum. Do not force addresses into registers.
4079 (expand_expr): Likewise.
4080 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
4081 to canonicalize arithmetic that didn't simpify.
4082 (simplify_plus_minus): New argument force; update
4083 all callers. Don't split CONST unless we can do something with it,
4084 and wouldn't lose the constness of the operands.
4086 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
4087 that we generated earlier.
4089 2002-02-21 Tom Tromey <tromey@redhat.com>
4091 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4092 (output_line_info): Use constant `1', with a long explanatory
4094 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
4096 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
4098 * jump.c (redirect_jump): If old label has no UID, don't try to
4101 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
4103 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
4104 If input is constant, do shifts at compile time.
4106 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
4108 * doc/extend.texi: Fix some more overfull hboxes.
4110 2002-02-21 Jakub Jelinek <jakub@redhat.com>
4112 PR optimization/4994
4113 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
4116 2002-02-21 Jakub Jelinek <jakub@redhat.com>
4119 * expr.h (expand_and): Add mode argument.
4120 * expmed.c (expand_and): Add mode argument.
4121 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
4122 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
4123 * except.c (expand_builtin_extract_return_addr): Likewise.
4124 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
4125 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4126 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
4127 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
4128 * config/c4x/c4x.md: Use GEN_INT (x) instead of
4129 gen_rtx (CONST_INT, VOIDmode, x).
4131 2002-02-21 Jakub Jelinek <jakub@redhat.com>
4134 * stmt.c (warn_if_unused_value): Move side effects test once more.
4136 2002-02-20 Torbjorn Granlund <tege@swox.com>
4138 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
4139 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
4141 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
4143 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
4144 SUBREG or ZERO_EXTEND.
4146 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
4148 * sh.h (current_function_anonymous_args): Remove.
4149 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
4150 of current_function_varargs and current_function_stdarg is set.
4151 * sh.c (sh_expand_prologue): Check current_function_varargs /
4152 current_function_stdarg / TARGET_SH5 instead of
4153 current_function_anonymous_args.
4155 * sh64.h (TARGET_VERSION): Define.
4157 2002-02-20 David Edelsohn <edelsohn@gnu.org>
4159 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
4160 VRSAVE_REGNO on TARGET_ALTIVEC.
4162 2002-02-20 Alan Modra <amodra@bigpond.net.au>
4164 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
4165 bits of SImode const_int.
4166 (includes_rshift_p): Likewise.
4167 (print_operand): Call mask_operand and mask64_operand with correct
4169 (rs6000_output_function_epilogue): Pad traceback table to word.
4170 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
4171 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
4172 mask64_operand with correct mode.
4173 (FUNCTION_ARG_REGNO_P): Correct parentheses.
4175 2002-02-20 Jakub Jelinek <jakub@redhat.com>
4178 * varasm.c (get_pool_constant_mark): New.
4179 * rtl.h (get_pool_constant_mark): Add prototype.
4180 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
4181 be represented if it has not been output.
4183 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
4185 * combine.c (do_SUBST): Sanity check substitutions of
4186 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
4187 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
4188 CONST_INT into its operand.
4189 (known_cond): Likewise, for ZERO_EXTEND.
4190 * simplify-rtx.c (simplify_unary_operation): Fix condition to
4191 allow for simplification of wide modes. Reject CONST_INTs in
4192 ZERO_EXTEND when their actual mode is not given.
4194 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
4196 * c-decl.c (pushdecl): If no global declaration is found for an
4197 extern declaration in block scope, try a limbo one.
4199 2002-02-20 Jakub Jelinek <jakub@redhat.com>
4202 * c-common.c (pointer_int_sum): Moved from...
4203 * c-typeck.c (pointer_int_sum): ...here.
4204 * c-common.h (pointer_int_sum): Add prototype.
4206 2002-02-20 Jakub Jelinek <jakub@redhat.com>
4209 * c-decl.c (duplicate_decls): Return 0 if issued error about
4212 2002-02-20 Roger Sayle <roger@eyesopen.com>
4213 Jakub Jelinek <jakub@redhat.com>
4216 * tree.c (host_integerp): Ensure that the constant integer is
4217 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
4218 when pos is zero or non-zero respectively. Clarify comment.
4219 * c-format.c (check_format_info_recurse): Fix host_integerp
4220 usage; the pos argument should be zero when assigning to a
4221 signed HOST_WIDE_INT.
4223 2002-02-20 Richard Henderson <rth@redhat.com>
4225 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
4226 of the operand, rather than assuming TImode.
4227 (ix86_expand_binop_builtin): Cope with commutative patterns
4228 using nonimmediate_operand for both operands.
4229 (ix86_expand_timode_binop_builtin): Likewise.
4230 (ix86_expand_store_builtin): Validate operand 1.
4231 (ix86_expand_unop1_builtin): Likewise.
4233 2002-02-20 Philip Blundell <philb@gnu.org>
4236 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
4238 2002-02-20 Richard Henderson <rth@redhat.com>
4241 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
4243 2002-02-20 Tom Tromey <tromey@redhat.com>
4245 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4246 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4247 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4248 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4249 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
4252 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
4254 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
4255 for (const_int 0) in X not just INTVAL.
4257 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
4259 * doc/extend.texi: Avoid or reduce overfull hboxes.
4261 2002-02-20 Diego Novillo <dnovillo@redhat.com>
4263 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
4264 operations if the field does not start at a mode boundary.
4266 2001-02-20 Joel Sherrill <joel@OARcorp.com>
4268 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
4269 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
4270 Also done for -Acpu and -Amachine.
4272 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
4274 * cppinit.c (init_dependency_output): Take deps output file
4275 from -o if none given with -MF. Suppress normal output.
4276 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
4277 * doc/cpp.texi, doc/invoke.texi: Update.
4279 2002-02-19 Zack Weinberg <zack@codesourcery.com>
4281 * toplev.c (output_quoted_string): Write unprintable
4282 characters with octal escapes.
4284 2002-02-19 David Edelsohn <edelsohn@gnu.org>
4286 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
4287 really_call_used[VRSAVE_REGNO] if not Altivec.
4289 2002-02-19 Alan Modra <amodra@bigpond.net.au>
4291 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
4293 (constant_pool_expr_1): Fix formatting.
4294 (rs6000_legitimize_reload_address): Likewise.
4296 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4298 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
4299 now that we have one.
4301 2002-02-19 Zack Weinberg <zack@codesourcery.com>
4303 * tree.h (struct tree_common): Remove aux. Add unused_0 at
4304 end of first block of bitfields (which was only seven bits);
4305 rename dummy to unused_1; remove comment which is no longer true.
4307 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
4309 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
4311 2002-02-19 Philip Blundell <pb@nexus.co.uk>
4314 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
4318 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
4319 arm_is_longcall_p rather than inspecting call-type cookie
4321 (call_value_insn) [TARGET_THUMB]: Likewise.
4323 2002-02-19 Graham Stott <grahams@redhat.com>
4325 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
4327 2002-02-19 David Edelsohn <edelsohn@gnu.org>
4329 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
4330 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
4331 (FP_SAVE_INLINE): Delete.
4333 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
4334 * config/rs6000/eabi.asm: Remove ABI save restore routines.
4335 * config/rs6000/t-ppccomm: Build crtsavres.o.
4336 * config/rs6000/crtsavres.asm: New file.
4338 2002-02-19 Philip Blundell <philb@gnu.org>
4340 * config/arm/arm.c (use_return_insn): Don't reject interrupt
4342 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
4343 (output_return_instruction): Allow interrupt functions to return with
4344 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
4345 (arm_expand_prologue): Subtract 4 before stacking LR in an
4348 2002-02-19 Philip Blundell <pb@nexus.co.uk>
4350 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
4351 decl, not just FUNCTION_DECL.
4352 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
4353 (arm_assemble_integer): Likewise.
4354 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
4357 2002-02-19 matthew green <mrg@eterna.com.au>
4359 * config.gcc (sparc-*-netbsdelf*): Enable target.
4360 (sparc64-*-netbsd*): New target.
4361 * config/sparc/netbsd-elf.h: New file.
4362 * config/sparc/t-netbsd64: New file.
4364 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
4366 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
4368 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
4370 * doc/invoke.texi: explicitly list the style guidelines that
4371 -Weffc++ checks for.
4373 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
4375 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
4377 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
4380 * gcc.c (cpp_unique_options): Treat -o as indicating object file
4381 only if not -E. If -E, pass -o through to the preprocessor.
4383 2002-02-19 Kazu Hirata <kazu@hxi.com>
4385 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
4386 register number with an appropriate macro.
4388 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
4390 * doc/rtl.texi (Constants): Close @code tag.
4392 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
4394 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
4395 ("mmx_uavgv4hi3"): Same.
4396 ("pmulhrwv4hi3"): Same.
4398 * tree-inline.c (walk_tree): Handle vectors.
4400 * c-common.c (constant_expression_warning): Handle vectors.
4401 (overflow_warning): Same.
4403 * sched-deps.c (sched_analyze_2): Handle vectors.
4405 * rtlanal.c (rtx_unstable_p): Handle vectors.
4406 (rtx_varies_p): Same.
4407 (count_occurrences): Same.
4408 (regs_set_between_p): Same.
4409 (modified_between_p): Same.
4410 (modified_in_p): Same.
4411 (volatile_insn_p): Same.
4412 (volatile_refs_p): Same.
4413 (side_effects_p): Same.
4415 (inequality_comparisons_p): Same.
4416 (replace_regs): Same.
4417 (computed_jump_p_1): Same.
4419 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
4421 (inner_mode_array): New.
4422 (copy_rtx): Handle vectors.
4423 (copy_most_rtx): Same.
4424 (rtx_equal_p): Same.
4425 (get_mode_alignment): Adjust for vectors.
4427 * resource.c (mark_referenced_resources): Handle vectors.
4428 (mark_set_resources): Same.
4430 * reload1.c (eliminate_regs): Handle vectors.
4431 (elimination_effects): Same.
4432 (scan_paradoxical_subregs): Same.
4434 * reload.c (subst_reg_equivs): Handle vectors.
4436 * regrename.c (scan_rtx): Handle vectors.
4438 * regclass.c (reg_scan_mark_refs): Handle vectors.
4440 * recog.c (find_single_use_1): Handle vectors.
4442 * local-alloc.c (equiv_init_varies_p): Handle vectors.
4443 (contains_replace_regs): Same.
4444 (memref_referenced_p): Same.
4446 * integrate.c (copy_rtx_and_substitute): Handle vectors.
4447 (subst_constants): Same.
4449 * genattrtab.c (attr_copy_rtx): Handle vectors.
4450 (encode_units_mask): Same.
4451 (clear_struct_flag): Same.
4452 (count_sub_rtxs): Same.
4454 * gcse.c (want_to_gcse_p): Handle vectors.
4455 (oprs_unchanged_p): Same.
4456 (hash_expr_1): Same.
4457 (oprs_not_set_p): Same.
4458 (expr_killed_p): Same.
4459 (compute_transp): Same.
4460 (store_ops_ok): Same.
4462 * function.c (purge_addressof_1): Do not allow paradoxical subregs
4464 (fixup_var_refs_1): Same.
4465 (instantiate_virtual_regs_1): Same.
4467 * fold-const.c (operand_equal_p): Handle vectors.
4469 (rtl_expr_nonnegative_p): Same.
4471 * flow.c (mark_used_regs): Handle vectors.
4473 * df.c (df_uses_record): Handle vectors.
4475 * cselib.c (cselib_subst_to_values): Handle vectors.
4476 (cselib_mem_conflict_p): Same.
4479 * cse.c (canon_reg): Handle vectors.
4481 (cse_process_notes): Same.
4482 (count_reg_usage): Same.
4485 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
4487 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
4489 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
4490 (gen_rtx): Handle CONST_VECTOR.
4491 (gen_const_vector_0): New.
4492 (copy_rtx_if_shared): CONST_VECTORs can be shared.
4493 (reset_used_flags): Same.
4494 (copy_insn_1): Same.
4495 (initializer_constant_valid_p): Handle VECTOR_CST.
4497 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
4499 * doc/rtl.texi (Constants): Document const_vector.
4500 (CONST0_RTX): Update for vectors.
4501 (RTL sharing): Same.
4503 * print-tree.c (print_node): Add case for VECTOR_CST.
4505 * tree.h (TREE_VECTOR_CST_ELTS): New.
4506 (struct tree_vector): New.
4507 (union tree_node): Add vector node.
4508 (build_vector): Add prototype.
4510 * tree.def (VECTOR_CST): New.
4512 * tree.c (build_vector): New.
4514 * expmed.c (make_tree): Handle CONST_VECTOR.
4516 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
4517 (CONST_VECTOR_ELT): New.
4518 (CONST_VECTOR_NUNITS): New.
4520 * machmode.h (GET_MODE_INNER): New.
4521 (DEF_MACHMODE): Accept 8th arg.
4523 * machmode.def: Add 8th argument for vector inner mode.
4524 Add inner vector modes for vectors.
4526 * rtl.def (VEC_CONST): Remove.
4527 (CONST_VECTOR): New.
4529 * expr.c (clear_storage): Allow vectors.
4530 (is_zeros_p): Handle VECTOR_CST.
4532 * varasm.c (output_constant_pool): Handle vectors.
4533 (rtx_const): Add veclo and vechi fields.
4534 (kind): Add RTX_VECTOR.
4535 (decode_rtx_const): Add case for vector.
4537 * config/rs6000/rs6000-protos.h: Add zero_constant.
4539 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
4540 constants. Force easy vector constants into memory.
4541 (easy_vector_constant): New.
4542 (emit_easy_vector_constant): New.
4543 (rs6000_legitimize_reload_address): Do not generate bad reloads on
4546 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
4548 ("altivec_lvxl"): Same.
4549 (altivec_lvebx): Same.
4550 (altivec_lvehx): Same.
4551 (altivec_lvewx): Same.
4552 ("*movv4si_const0"): New.
4553 ("*movv4sf_const0"): New.
4554 ("*movv8hi_const0"): New.
4555 ("*movv16qi_const0"): New.
4557 2002-02-18 Kazu Hirata <kazu@hxi.com>
4559 * config/h8300/h8300.c (notice_update_cc): Use
4562 2002-02-18 Kazu Hirata <kazu@hxi.com>
4564 * config/h8300/h8300.md (divmod patterns): Change the
4565 constraints for operands[1] to register_operand.
4567 2002-02-18 Kazu Hirata <kazu@hxi.com>
4569 * config/h8300/h8300-protos.h: Remove the prototype for
4571 * config/h8300/h8300.c (p_operand): Remove.
4572 * config/h8300/h8300.md: Replace p_operand with
4575 2002-02-18 Philip Blundell <pb@nexus.co.uk>
4577 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
4579 (output_return_instruction): Allow use of LDR to unstack
4580 return addresss even for interrupt handlers or when
4581 interworking. If compiling for ARMv5, use interworking-safe
4582 return instructions by default. Remove duplicated code and
4583 lengthy "strcat" sequences.
4585 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4587 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
4588 (LINK_EH_SPEC): Define.
4589 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
4591 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
4593 * config/s390/s390.c (s390_emit_prologue): Do not set the
4594 frame_related flag for call-clobbered registers.
4596 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
4598 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
4599 (construct_container): Fix handling of SSE operands.
4600 (ix86_expand_builtin): Fix handling of 64bit pointers.
4601 (mmx_maskmovq_rex): New pattern.
4603 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
4605 * regrename.c (kill_set_value): Handle subregs properly.
4607 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
4609 * objc/objc-act.c (handle_impent): Remove leading '*'
4610 from objc_class_name.
4612 2002-02-17 Richard Henderson <rth@redhat.com>
4614 * config/alpha/alpha.c (some_small_symbolic_operand,
4615 some_small_symbolic_operand_1, split_small_symbolic_operand,
4616 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
4617 Handle small SYMBOL_REFs anywhere, not just inside memories.
4618 * config/alpha/alpha-protos.h: Update.
4619 * config/alpha/alpha.h (PREDICATE_CODES): Update.
4620 * config/alpha/alpha.md (small symbolic operand splitter): Update.
4622 2002-02-17 Roland McGrath <roland@frob.com>
4624 * config.gcc (powerpc-*-gnu-gnualtivec*,
4625 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
4626 * config/rs6000/gnu.h: New file.
4627 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
4628 Grok "gnu" in rs6000_abi_name.
4629 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
4630 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
4631 Grok -mcall-gnu analogous to -mcall-linux et al.
4632 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
4633 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
4634 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
4636 2002-02-17 Jakub Jelinek <jakub@redhat.com>
4639 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
4642 2002-02-17 Philipp Thomas <pthomas@suse.de>
4644 * config/cris/cris.h: Undefine STARTFILE_SPEC and
4645 ENDFILE_SPEC before (re)defining them.
4647 2002-02-17 Kazu Hirata <kazu@hxi.com>
4649 * config/h8300/h8300.c: Fix formatting.
4650 * config/h8300/h8300.h: Likewise.
4652 2002-02-17 Philipp Thomas <pthomas@suse.de>
4654 * doc/tm.texi: Explain why empty strings should not be
4655 marked for translation.
4657 2002-02-17 Philipp Thomas <pthomas@suse.de>
4659 * final.c (output_operand_lossage): Changed to accept
4660 printf style arguments. Change calls where necessary.
4661 * output.h (output_operand_lossage): Change declaration
4662 accordingly. Update copyright.
4663 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
4664 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
4665 Update copyright date where necessary.
4667 * config/i386/i386.c (print_operand): Likewise. Remove use of
4670 * config/cris/cris.c (cris_operand_lossage): Likewise.
4671 Rename parameter so that exgettext recognizes it as
4672 translatable message.
4673 (LOSE_AND_RETURN): Rename parameter to msgid.
4675 2002-02-17 Kazu Hirata <kazu@hxi.com>
4677 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
4678 hard coded register number with an appropriate macro.
4679 (HARD_REGNO_MODE_OK): Likewise.
4680 (ARG_POINTER_REGNUM): Likewise.
4681 (STATIC_CHAIN_REGNUM): Likewise.
4682 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
4683 * config/h8300/h8300.md (define_constants): Define more
4686 2002-02-17 Philipp Thomas <pthomas@suse.de>
4688 * config/i386/i386.h: Don't mark empty strings for translation.
4690 2002-02-16 H.J. Lu <hjl@gnu.org>
4692 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
4694 2002-02-16 Zack Weinberg <zack@codesourcery.com>
4696 * cppinit.c (merge_include_chains): Check for brack being
4697 NULL before attempting to merge it with qtail.
4699 2002-02-16 Andrew Cagney <ac131313@redhat.com>
4701 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
4704 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
4706 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
4708 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
4710 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
4711 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
4712 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
4714 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4716 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
4717 now only if !TARGET_FIX.
4718 (*movsi_nt_vms_fix): New pattern.
4720 2002-02-16 Douglas B Rupp <rupp@gnat.com>
4722 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
4723 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
4724 (alpha_sa_mask, alpha_sa_size): Reflect above change.
4725 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
4726 (alpha_start_function, alpha_expand_epilogue): Likewise.
4727 (unicosmk_gen_dsib): Likewise.
4729 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4731 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
4733 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
4735 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
4736 check_and_change_labels, s390_final_chunkify): Delete.
4737 (s390_split_branches, s390_chunkify_pool): New functions.
4738 (s390_function_prologue): Call them.
4740 * config/s390/s390.h (S390_REL_MAX): Delete.
4741 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
4743 * config/s390/s390.md (cjump, icjump, jump): Fix length
4744 attribute calculation.
4747 2002-02-15 David Edelsohn <edelsohn@gnu.org>
4749 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
4750 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
4752 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
4754 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
4755 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
4756 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
4758 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
4760 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
4762 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
4764 * reload.c (find_dummy_reload): Check that an output register
4765 is valid for its mode.
4767 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
4769 * combine.c (known_cond): After replacing the REG of a SUBREG, try
4772 * function.c (assign_parms): Demote promoted argument passed by
4773 transparent reference.
4775 2001-02-14 Joel Sherrill <joel@OARcorp.com>
4777 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
4778 -Acpu() and -Amachine() to eliminate warnings.
4780 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
4782 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
4784 2002-02-14 Kazu Hirata <kazu@hxi.com>
4786 * config/h8300/h8300-protos.h: Update the prototype for
4788 * config/h8300/h8300.c (const_costs): Treat SET as a little
4789 more expensive operation.
4790 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
4791 reference to const_costs.
4793 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
4795 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
4797 2002-02-14 Jakub Jelinek <jakub@redhat.com>
4800 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
4801 use arguments from newtype.
4803 2002-02-13 Eric Christopher <echristo@redhat.com>
4805 * config/mips/mips.c (override_options): Add check for march/mipsX
4806 on the same command line. Fix error message in cpu processing.
4807 Remove architecture and ISA checks.
4809 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
4811 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
4813 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
4815 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
4817 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
4819 ("*movv8hi_internal1"): Same.
4820 ("*movv16qi_internal1"): Same.
4821 ("*movv4sf_internal1"): Same.
4823 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
4824 not push_reload for altivec modes.
4826 2002-02-13 Joel Sherrill <joel@OARcorp.com>
4828 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
4829 all RTEMS targets including removal of #includes from config/*/rtems*.h
4830 file and adding them to tm_file setting. Added xm_defines=POSIX to
4832 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
4833 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
4834 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
4835 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
4836 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
4837 config/m68k/rtemself.h: Ditto.
4838 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
4839 config/mips/rtems64.h: Ditto.
4840 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
4841 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
4843 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
4844 config/sparc/rtemself.h: Ditto.
4845 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
4846 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
4847 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
4849 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
4850 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
4851 target made more similar to i386-elf.
4852 * config/i386/t-rtems-i386: Added soft float support and multilibs.
4853 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
4854 be similar to config/m68k/t-m68kelf.
4855 * gthr-rtems.h: Encapsulate with extern "C" for C++.
4857 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
4859 * regmove.c (kill_value): Handle subregs.
4861 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
4863 * i386.md (mul patterns): Allow memory operand to be first;
4864 add expanders where needed; fix constraints.
4865 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
4866 Allow memory operand to be the first.
4868 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
4871 2002-02-13 Jakub Jelinek <jakub@redhat.com>
4874 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
4877 2002-02-13 Jakub Jelinek <jakub@redhat.com>
4879 PR optimization/5547:
4880 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
4881 all valid IA-32 address modes involving non-scaled %ebx and
4882 GOT/GOTOFF as displacement.
4884 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
4886 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
4887 after emitting ltorg insns.
4889 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
4890 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
4891 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
4892 *abssf2): Fix "op_type" attribute.
4894 2002-02-13 Douglas B Rupp <rupp@gnat.com>
4896 * mkconfig.sh: Avoid using a subshell redirect.
4897 ($output.T): Change to $(output)T.
4898 (ENABLE_NLS): Remove unneeded undef.
4900 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
4901 * config/alpha/x-vms (libsubdir): Define.
4903 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
4904 register frame procedures. Optimize retrieving context.
4906 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
4907 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
4908 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
4910 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4912 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
4913 Make same change as for find_base_value.
4915 2002-02-13 Kazu Hirata <kazu@hxi.com>
4917 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
4918 of QImode and SImode.
4920 2002-02-13 Kazu Hirata <kazu@hxi.com>
4922 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
4923 length computation of movsi.
4924 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
4926 2002-02-13 Kazu Hirata <kazu@hxi.com>
4928 * config/h8300/h8300.md (subqi3): Tighten the predicate for
4929 operands[2] to register_operand.
4931 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
4933 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
4935 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
4937 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
4938 for altivec_lvx* and altivec_stvx*.
4939 ("*movv4si_internal"): Add constraint for loading from GPRs.
4940 ("*movv8hi_internal1"): Same.
4941 ("*movv16qi_internal1"): Same.
4942 ("*movv4sf_internal1"): Same.
4944 * config/rs6000/rs6000.c (altivec_register_operand): New.
4946 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
4947 altivec_register_operand.
4949 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
4951 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
4954 2002-02-13 Stan Shebs <shebs@apple.com>
4956 * c-typeck.c (digest_init): Handle vectors.
4957 (really_start_incremental_init): Same.
4958 (pop_init_level): Same.
4959 (process_init_element): Same.
4961 * varasm.c (output_constant): Same.
4963 * expr.c (clear_storage): Same.
4964 (store_constructor): Same.
4966 2002-02-12 Eric Christopher <echristo@redhat.com>
4968 * explow.c (hard_function_value): Add comment explaining
4969 signed/unsigned comparison.
4971 2002-02-12 Jakub Jelinek <jakub@redhat.com>
4973 * jump.c (never_reached_warning): Add finish argument.
4974 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
4975 real insn after end.
4976 * rtl.h (never_reached_warning): Adjust prototype.
4977 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
4978 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
4979 never_reached_warning.
4981 2002-02-12 Graham Stott <grahams@redhat.com>
4983 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
4985 2002-02-12 Kazu Hirata <kazu@hxi.com>
4987 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
4988 logical shifts on H8/300.
4989 (shift_alg_si): Improve several shifts on H8/300.
4990 (get_shift_alg): Likewise.
4992 2002-02-12 Graham Stott <grahams@redhat.com>
4994 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
4996 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4998 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
4999 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
5001 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
5003 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
5004 non-CONST_INT through default_assemble_integer.
5005 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
5006 <case 8>: Abort for CONST_DOUBLE.
5008 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5010 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
5012 * config/pa/pa-linux.h (LIB_SPEC): Delete.
5013 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5015 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
5017 * config/stormy16/stormy16.md (zero_extendqihi2): New.
5019 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
5021 * regrename.c (regrename_optimize): Don't accept a
5022 part-clobbered register if the replaced register is not part
5025 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
5026 take padding into account when computing the argument value.
5028 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
5030 * combine.c (try_combine): Apply substitutions in
5031 CALL_INSN_FUNCTION_USAGE too.
5033 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
5035 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
5036 __builtin_altivec_abs*.
5039 * config/rs6000/rs6000.h (rs6000_builtins): Add
5040 ALTIVEC_BUILTIN_ABS*.
5042 * config/rs6000/altivec.h: Use const char for builtins expecting
5044 (vec_abs): New versions for C and C++.
5047 2002-02-10 Kazu Hirata <kazu@hxi.com>
5049 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
5052 2002-02-10 Kazu Hirata <kazu@hxi.com>
5054 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
5055 constant definition from h8300.md.
5056 (FRAME_POINTER_REGNUM): Likewise.
5057 * config/h8300/h8300.md (define_constants): Add FP_REG.
5059 2002-02-10 Kazu Hirata <kazu@hxi.com>
5061 * config/h8300/h8300.c (print_operand): Remove redundant code.
5063 2002-02-10 Kazu Hirata <kazu@hxi.com>
5065 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
5066 * config/h8300/h8300.c (byte_reg): Make it static.
5068 2002-02-10 Richard Henderson <rth@redhat.com>
5071 * c-typeck.c (incomplete_type_error): Handle flexible array members.
5073 2002-02-10 Richard Henderson <rth@redhat.com>
5076 * tree.c (append_random_chars): Don't abort if main_input_filename
5079 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
5081 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
5083 2002-02-10 Kazu Hirata <kazu@hxi.com>
5085 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
5086 (pushhi1): Likewise.
5088 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
5090 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
5091 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
5093 2002-02-09 David O'Brien <obrien@FreeBSD.org>
5095 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
5097 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
5099 2002-02-09 Kazu Hirata <kazu@hxi.com>
5101 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
5102 a half of an SImode register on H8/300.
5104 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
5106 * i386.md (movdi_2): Add missing '!'.
5108 2002-02-09 Kazu Hirata <kazu@hxi.com>
5110 * config/h8300/h8300.h: Fix formatting. Remove commented-out
5113 2002-02-09 Kazu Hirata <kazu@hxi.com>
5115 * config/h8300/h8300.md (length): Correct the distance valid
5116 for the short branch.
5118 2002-02-09 Kazu Hirata <kazu@hxi.com>
5120 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
5122 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
5124 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
5125 registers in SImode.
5126 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
5129 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
5132 Contribute sh64-elf.
5133 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
5134 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
5135 (sh_cannot_modify_jumps_p): New function.
5136 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
5137 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
5138 (sh_ms_bitfield_layout_p): New function.
5139 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
5140 Zack Weinberg <zack@codesourcery.com>
5141 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
5142 expand_simple_binop instead of expand_binop.
5143 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
5144 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
5145 use of .quad and .uaquad.
5146 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
5147 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
5148 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5149 * config/sh/sh.md (movdi_const, movdi_const_32bit,
5150 movdi_const_16bit): Make sure all CONSTs have modes.
5151 (sym2PIC): Ditto, but by adjusting all callers.
5152 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
5153 if the prologue calls the SHmedia argument decoder or register
5155 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5156 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
5157 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
5158 (sh_expand_epilogue): Don't emit USE of return target register.
5159 (prepare_move_operands): Legitimize DImode PIC addresses.
5160 (sh_media_register_for_return): Skip tr0, used to initialize the
5162 (sh_expand_prologue): Remove explicit USE of return register.
5163 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
5164 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
5165 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
5166 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
5167 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
5169 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
5170 (MOVI_SHORI_BASE_OPERAND_P): New.
5171 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
5172 (EXTRA_CONSTRAINT_T): Define in terms of them.
5173 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
5174 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
5175 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
5176 alternatives supporting TARGET_REGS.
5177 (UNSPEC_GOTPLT): New constant.
5178 (movdi split): Move incrementing of LABEL_NUSES...
5179 (movdi_const, movdi_const_32bit): Here. Use
5180 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
5181 (movdi_const_16bit): New.
5182 (call, call_value) [flag_pic]: Use GOTPLT.
5183 (call_pop, call_value_pop): New expands.
5184 (call_pop_compact, call_pop_rettramp): New insns.
5185 (call_value_pop_compact, call_value_pop_rettramp): New insns.
5186 (sibcall) [flag_pic]: Use GOT.
5187 (builtint_setjmp_receiver): Remove bogus, unused expand.
5188 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
5189 (*pt, *ptb, ptrel): New insns.
5190 (sym2GOT): Handle DImode GOT.
5191 (sym2GOTPLT, symGOTPLT2reg): New expands.
5192 (sym2PIC): New expand.
5193 (shcompact_return_tramp): Use GOTPLT to return trampoline.
5194 (shcompact_return_tramp_i): Use return register explicitly.
5195 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
5196 disable flag_reorder_blocks.
5197 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
5198 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
5199 clobbers, for clarity.
5200 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
5201 restoring of r0 in macl as MAYBE_DEAD.
5202 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
5203 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
5204 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
5205 alter_subreg all over.
5206 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
5207 reload, instead of emitting instructions that would require
5209 (casesi_load_media): Add missing modes.
5210 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
5211 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
5212 as used if the argument decoder is called.
5213 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
5214 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
5215 Pmode, then extend it to DImode if necessary.
5216 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
5217 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
5218 constants in FPU-enabled SHmedia, let them be loaded from memory.
5219 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
5220 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
5221 Adjust whitespace in assembly output templates.
5222 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
5223 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
5224 mode of if_then_else.
5225 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
5226 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
5228 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
5229 Joern Rennecke <amylaar@redhat.com>
5230 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
5231 (SUBTARGET_CPP_PTR_SPEC): New.
5232 (SUBTARGET_CPP_SPEC): Remove.
5233 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
5234 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
5235 Fix typo in previous checkin.
5236 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
5237 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
5238 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
5239 Alexandre Oliva <aoliva@redhat.com>
5240 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
5241 what single FP register can hold for SHmedia target.
5242 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
5243 Alexandre Oliva <aoliva@redhat.com>
5244 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
5245 Do not split into SUBREG.
5246 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
5247 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
5248 and added new functions as specified in SH5 ABI r9.
5249 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
5250 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
5252 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
5253 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
5254 gen_consttable_4 and gen_consttable_8. Emit multiple labels
5255 and consttable_window_ends.
5256 2001-06-03 Graham Stott <grahams@redhat,com>
5257 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
5258 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
5259 * config/sh/sh.c (print_operand): Handle floating-point pair,
5260 vector and matrix registers.
5261 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
5262 vector modes into account.
5263 * config/sh/sh.md (movv2sf): Split move between registers into
5265 (movv4sf, movv16sf): Introduce insns that get split only after
5267 * config/sh/shmedia.h: Fix Copyright dates.
5268 * config/sh/ushmedia.h: Likewise. Move loop counter
5269 declarations into conditionals that uses them.
5270 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
5272 * config/sh/sshmedia.h: Fix Copyright dates.
5273 (sh_media_PUTCFG): Fix constraints.
5274 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
5275 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
5276 ptrmemfunc_vbit_in_delta for SH5.
5277 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
5278 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
5279 * invoke.texi: Likewise.
5280 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
5281 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
5282 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
5283 GCC_pop_shmedia_regs_nofpu): New global symbols.
5284 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
5285 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
5286 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
5287 compact function with nonlocal labels.
5288 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
5289 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
5290 (initial_elimination_offset): Account for their stack space.
5291 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
5292 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
5293 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
5294 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
5295 least one of the operands to be a register.
5296 (movv2sf): Likewise. Renamed to movv2sf_i.
5297 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
5298 prepare_move_operands() before emitting SHmedia insns.
5299 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
5300 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
5301 Don't save nor initialize r12. Don't mis-align the stack.
5302 Pad the code with a nop.
5303 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
5305 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
5306 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
5307 [__SHMEDIA__]: Implement.
5308 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
5309 * config/sh/sh.md: Set latency of `pt' closer to reality.
5310 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
5311 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
5312 Set move, load and store type attributes.
5313 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
5314 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
5316 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
5317 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
5318 * config/sh/sh.c (sh_media_register_for_return): New function.
5319 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
5320 branch-target register.
5321 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
5322 * config/sh/sh.md (return_media_i): Use any call-clobbered
5323 branch-target register.
5324 (return_media): If r18 wasn't copied in the prologue, copy it
5326 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
5327 Clear class FP0_REGS.
5328 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
5330 2001-03-08 DJ Delorie <dj@redhat.com>
5331 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
5332 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
5333 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
5334 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
5335 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
5336 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
5337 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
5338 return value correctly for call_cookie.
5339 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
5340 * config/sh/crt1.asm (start): Modified so as to call
5341 ___setup_argv_and_call_main.
5342 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
5343 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
5345 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
5346 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
5347 (STRIP_NAME_ENCODING): Use it.
5348 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
5349 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
5350 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
5351 prepare_scc_operands().
5352 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
5353 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
5354 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
5355 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
5356 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
5357 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
5358 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
5359 used in shcompact_incoming_args.
5360 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
5362 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
5364 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
5366 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
5367 Simplify. Adjust. Add sanity check.
5368 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
5370 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
5372 (udivsi3, divsi3): Use them.
5373 (force_mode_for_call): New insn.
5374 (call, call_value, sibcall_value): Emit it before SHcompact
5376 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
5377 * config/sh/sh.md (call, call_value, sibcall): Make sure the
5378 call cookie is non-NULL before taking its value.
5379 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
5380 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
5381 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
5382 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
5384 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
5385 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
5386 temporary for stack adjusts. Use MACL and MACH to pass
5387 arguments to shcompact_incoming_args.
5388 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
5390 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
5391 (nested_trampoline): Load static chain address into r1.
5392 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
5393 2001-01-07 Alexandre Oliva <aoliva@redhat.com
5394 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
5395 fp_arith_reg_operand().
5396 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
5397 * config/sh/sh.md (casesi): Sign-extend the first two operands,
5398 and use signed compares for them.
5399 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
5400 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
5401 ones properly aligned.
5402 (find_barrier): Account for extra alignment needed for 8-byte wide
5404 (machine_dependent_reorg): Require a label for the second 4-byte
5405 constant after an 8-byte one.
5406 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
5408 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
5409 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
5410 last_float when switching float modes.
5411 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
5412 auto-increment for general-purpose registers.
5413 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
5415 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
5417 * config/sh/sh.c (sh_builtin_saveregs): Support using all
5418 registers for varargs.
5419 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
5420 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
5421 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
5422 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
5423 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
5424 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
5425 call_cookie accordingly.
5426 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
5427 (SHCOMPACT_BYREF): Likewise.
5428 (SHCOMPACT_FORCE_ON_STACK): New macro.
5429 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
5430 (sh_builtin_saveregs): Likewise.
5431 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
5432 shcompact_incoming_args): Use new shift values. Support
5433 sequences of consecutive and non-consecutive pushes/pops.
5434 * config/sh/sh.md (return): Don't explicitly use PR_REG.
5435 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
5436 * config/sh/sh.h (TEXT_SECTION): Define.
5437 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
5438 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
5439 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
5440 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
5441 return values on FPU-enabled SHmedia.
5442 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
5443 FPU-enabled SHmedia.
5444 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
5445 value is returned in a non-FP reg and is not returned by
5447 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
5449 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
5450 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
5451 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
5452 quad-aligned to be passed by callee-copy reference.
5453 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
5454 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
5455 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
5456 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
5457 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
5458 copying low-numbered FP regs to r7 and r8.
5459 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
5460 FP regs to general-purpose regs only if the copy was passed on the
5462 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
5463 copying FP reg to r9.
5464 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
5465 copy FP regs to general-purpose regs only in outgoing calls.
5466 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
5467 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
5469 * config/sh/sh.h (struct sh_args): Document all fields.
5470 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
5471 passed partially on the stack should not consider making
5473 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
5474 stack_regs only for incoming calls. When passing FP args,
5475 make sure there are FP regs available before modifying
5477 (SHCOMPACT_BYREF): Pass double args in general-purpose
5478 registers by reference.
5479 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
5480 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
5481 attempt to generate sibcalls if the caller got any arguments
5483 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
5484 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
5485 to 8-byte boundaries.
5486 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
5487 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
5488 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
5489 stored in the stack.
5490 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
5491 for the offsets to have the ISA bit set.
5492 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
5493 invocation. Use beq instead of bgt to mark end of sequence of
5495 (shcompact_incoming_args): Fix store of r2. Use beq instead of
5496 bgt to mark end of sequence of stores.
5497 * config/sh/sh.c (arith_operand): Don't check whether
5498 CONST_OK_FOR_J for now.
5499 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
5500 instead of long for conversion.
5501 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
5502 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
5503 before passing it to fprintf.
5504 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
5505 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
5506 Call set_fpscr before reading/writing SR.
5507 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
5509 * config/sh/lib1funcs.asm: Add `.align 2' directives before
5511 (FMOVD_WORKS): Define on SH5 with FPU.
5512 (set_fpscr): Define on SH5. Remove separate _fpscr_values
5514 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
5516 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
5517 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
5519 (ia_main_table): Ditto.
5520 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
5521 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
5522 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
5523 the definitions from sh.h.
5524 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
5526 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
5527 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
5528 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
5529 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
5530 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
5531 Increment LABEL_NUSES.
5533 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
5535 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
5537 * config/sh/elf.h (SIZE_TYPE): Likewise.
5538 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
5539 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
5540 shcompact_incoming_args): Load switch table addresses using
5542 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
5543 (NO_BUILTIN_SIZE_TYPE): Define.
5544 (SIZE_TYPE): Don't define.
5545 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
5546 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
5547 definition of __SH5__=32 for -m5-compact-nofpu.
5548 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
5550 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
5551 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
5552 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
5553 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
5554 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
5555 (INSN_LENGTH_ALIGNMENT): Likewise.
5556 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
5557 * config/sh/sh.md (call, call_value, sibcall): Simplify
5558 copying of non-branch-target register.
5559 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
5560 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
5561 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
5562 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
5563 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
5564 floating-point values as structs.
5565 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
5566 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
5567 general-purpose register.
5568 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
5569 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
5570 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
5571 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
5572 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
5573 (ENCODE_SECTION_INFO): Enclose variables and constants in
5575 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
5576 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
5577 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
5578 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
5579 only for LABEL_REFs. For SYMBOL_REFs, prepend
5580 SH_DATALABEL_ENCODING to the symbol name.
5581 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
5583 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
5584 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
5586 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
5587 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
5588 (DATALABEL_REF_P): Don't require CONST.
5589 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
5591 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
5592 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
5594 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
5595 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
5596 Use shallow_copy_rtx and PUT_MODE to change the mode of
5597 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
5598 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
5599 on SHmedia using GENERAL_REGs.
5600 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
5601 bltu_media_i): Fix reversion of conditions.
5602 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
5603 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
5604 * config/sh/sh.c (output_far_jump): Save r13 in macl.
5605 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
5606 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
5607 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
5608 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
5609 (GCC_nested_trampoline): Likewise.
5610 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
5611 * config/sh/sh.c (gen_datalabel_ref): Define.
5612 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
5613 (INITIALIZE_TRAMPOLINE): Likewise.
5614 (TRAMPOLINE_ADJUST_ADDRESS): Define.
5615 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
5616 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
5617 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
5618 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
5619 (ic_invalidate): Adjust for SH5.
5620 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
5621 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
5623 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
5624 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
5625 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
5626 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
5627 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
5628 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
5629 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
5630 * config/sh/sh.c (target_reg_operand): Match only target-branch
5631 registers and pseudos that aren't virtual registers.
5632 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
5633 Copy operands that don't match target_reg_operand to pseudos.
5634 (call_media, call_value_media, sibcall_media): Use
5635 target_reg_operand instead of target_operand.
5636 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
5637 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
5638 * config/sh/sh.c (target_reg_operand): Match hardware registers
5639 other than branch-target registers.
5640 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
5641 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
5642 (fpscr_values) [SH5 == 32]: Define.
5643 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
5644 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
5645 Handle function addresses coming in SUBREGs.
5646 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
5647 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
5648 shcompact_return_trampoline): Use datalabel where appropriate.
5649 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
5650 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
5651 general-purpose register to copy one branch-target register to
5653 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
5654 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
5655 SYMBOL_REFs with VOIDmode.
5656 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
5657 bltu_media_i): New insns.
5658 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
5659 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
5660 (INIT_CUMULATIVE_ARGS): Likewise.
5661 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
5662 * machmode.def (V16SFmode): New mode.
5663 * c-common.c (type_for_mode): Support V2SF and V16SF.
5664 * tree.c (build_common_tree_nodes_2): Likewise.
5665 * tree.h (tree_index): Likewise.
5666 * calls.c (emit_call_1): Take args_so_far. Adjust all
5667 callers. Introduce CALL_POPS_ARGS.
5668 * tm.texi (CALL_POPS_ARGS): Document.
5669 * config/sh/crt1.asm: Implement in SHmedia mode.
5670 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
5671 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
5672 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
5673 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
5674 Implement divsi and udivsi in SHmedia mode. Introduce
5675 SHcompact trampolines.
5676 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
5678 (regno_reg_class): Rewrite.
5679 (fp_reg_names): Remove.
5680 (sh_register_names, sh_additional_register_names): New.
5681 (print_operand): Added `u'. Support SUBREGs in addresses.
5682 Add parentheses around shifted CONSTs.
5683 (output_file_start): Output .mode and .abi directives.
5684 (shiftcosts, addsubcosts, multcosts): Adjust.
5685 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
5686 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
5687 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
5688 bytes, not registers. Take into account the need for the
5689 SHcompact incoming args trampoline. Adjust all callers.
5690 (sh_expand_prologue): Take stack_regs into account. Call
5691 incoming args trampoline. Keep stack aligned as per SH5 ABI.
5692 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
5693 stack aligned as per SH5 ABI.
5694 (sh_builtin_saveregs): Support SH5 ABI.
5695 (sh_build_va_list, sh_va_start): Likewise.
5696 (initial_elimination_offset): Take alignment into account.
5697 Compute location of PR according to the SH5 stack frame.
5698 (arith_reg_operand): Reject branch-target registers.
5699 (shmedia_6bit_operand): New.
5700 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
5701 (target_reg_operand): Match DImode only. Accept SUBREGs.
5702 (target_operand): New.
5703 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
5704 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
5705 SIBCALL_REGS for SHmedia.
5706 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
5707 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
5708 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
5709 (TARGET_SWITCHES): New SH5 flags.
5710 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
5711 VALID_REGISTER_P to disable unsupported registers.
5712 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
5713 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
5714 (FUNCTION_ARG_PADDING): Define.
5715 (FASTEST_ALIGNMENT): Adjust.
5716 (SH_REGISTER_NAMES_INITIALIZER): New.
5717 (sh_register_names): Declare.
5718 (DEBUG_REGISTER_NAMES): Define.
5719 (REGISTER_NAMES): Define based on sh_register_names.
5720 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
5721 (sh_additional_register_names): Declare.
5722 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
5723 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
5724 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
5725 (REGISTER_NATURAL_MODE): Define.
5726 (FIRST_PSEUDO_REGISTER): Adjust.
5727 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
5728 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
5729 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
5730 (VECTOR_MODE_SUPPORTED_P): Define.
5731 (REG_CLASS_CONTENTS): Adjust.
5732 (SMALL_REGISTER_CLASSES): Adjust.
5733 (REG_ALLOC_ORDER): Adjust.
5734 (INDEX_REG_CLASS): Adjust.
5735 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
5736 (CONST_OK_FOR_LETTER_P): Adjust.
5737 (PREFERRED_RELOAD_CLASS): Adjust.
5738 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
5739 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
5740 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
5741 (FIRST_FP_PARM_REG): Adjust.
5742 (CALL_POPS_ARGS): Define.
5743 (FUNCTION_ARG_REGNO_P): Adjust.
5744 (struct sh_args): New fields.
5745 (GET_SH_ARG_CLASS): Adjust.
5746 (INIT_CUMULATIVE_ARGS): Adjust.
5747 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
5748 (FUNCTION_ARG_ADVANCE): Adjust.
5749 (FUNCTION_ARG): Adjust.
5750 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
5751 (FUNCTION_ARG_CALLEE_COPIES): Define.
5752 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
5753 (STRICT_ARGUMENT_NAMING): Define.
5754 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
5755 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
5756 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
5757 (SETUP_INCOMING_VARARGS): Adjust.
5758 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
5759 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
5760 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
5761 (SUBREG_OK_FOR_INDEX_P): Adjust.
5762 (EXTRA_CONSTRAINT_S): Update.
5763 (EXTRA_CONSTRAINT_T): New.
5764 (EXTRA_CONSTRAINT): Adjust.
5765 (GO_IF_LEGITIMATE_INDEX): Adjust.
5766 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
5767 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
5769 (MAX_MOVE_MAX): Define.
5771 (CONST_COSTS): Adjust.
5772 (REGISTER_MOVE_COST): Adjust.
5773 (BRANCH_COST): Adjust.
5774 (TEXT_SECTION_ASM_OP): Adjust.
5775 (DBX_REGISTER_NUMBER): Adjust.
5776 (ASM_OUTPUT_DOUBLE_INT): New.
5777 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
5778 (PREDICATE_CODES): Adjust.
5779 (PROMOTE_MODE): Adjust.
5780 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
5781 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
5782 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
5783 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
5784 (DR0_REG, DR2_REG, DR4_REG): Renumber.
5785 (TR0_REG, TR1_REG, TR2_REG): New.
5786 (XD0_REG): Renumber.
5787 (UNSPEC_COMPACT_ARGS): New.
5788 (type): Added pt and ptabs.
5789 (length): Default to 4 on SHmedia. Default pt length to 12
5790 and 20 on SHmedia32 and SHmedia64, respectively.
5791 (pt): New function unit.
5792 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
5793 Add whitespace between operands of SHmedia instructions.
5795 (adddi3_media, addsi3_media): Adjust constraints.
5796 (subsi3) [SHmedia]: Force operand 1 into a register.
5797 (udivsi3_i1_media, udivsi3_i4_media): New.
5798 (udivsi3): Support SHmedia.
5799 (divsi3_i1_media, divsi3_i4_media): New.
5800 (divsi3): Support SHmedia.
5801 (anddi3, iordi3, xordi3): Adjust constraints.
5802 (zero_extendhidi2, zero_extendqidi2): New.
5803 (extendsidi2, extendhidi2, extendqidi2): New.
5804 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
5805 (pop_e, pop_fpul, pop_4): Likewise.
5806 (movsi_media): Support FP and BT registers.
5807 (movsi_media_nofpu): New. Adjust splits to DImode.
5808 (lduw, ldub): Renamed to zero_extend* above.
5809 (movqi_media): Fix typo.
5810 (movdi_media): Support FP and BT registers.
5811 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
5812 (movdi_const_32bit): New.
5813 (shori_media): Require immediate operand. Use `u' for output.
5814 (movdf_media, movsf_media): Simplified.
5815 (movdf_media_nofpu, movsf_media_nofpu): New.
5816 (movdf, movsf): Adjust
5817 (movv2sf, movv2sf, movv16sf): New.
5818 (beq_media, beq_media_i): Adjust constraints. Don't use
5819 scratch BT register.
5820 (bne_media, bne_media_i): Likewise.
5821 (bgt_media, bgt_media_i): Likewise.
5822 (bge_media, bge_media_i): Likewise.
5823 (bgtu_media, bgtu_media_i): Likewise.
5824 (bgeu_media, bgeu_media_i): Likewise.
5825 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
5826 bunordered): Emit jump insn. Force operands to registers when
5828 (jump_media, jump): Simplify.
5829 (call_compact, call_compact_rettramp): New.
5830 (call_value_compact, call_value_compact_rettramp): New.
5831 (call_media, call_value_media): Simplify.
5832 (sibcall_compact, sibcall_media): New.
5833 (call, call_value): Adjust for SHmedia and SHcompact.
5834 (sibcall, sibcall_value, untyped_call): Likewise.
5835 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
5836 (indirect_jump): Adjust for SHmedia.
5837 (casesi_jump_media): New.
5838 (nop): Re-enable for SHmedia.
5839 (call_site): Restrict to SH1.
5840 (casesi): Adjust for SHmedia.
5841 (casesi_shift_media, casesi_load_media): New.
5842 (return): Explicitly use PR register. Call return trampoline
5844 (return_i): Explicitly use PR register.
5845 (shcompact_return_tramp, shcompact_return_tramp_i): New.
5846 (return_media): Adjust.
5847 (shcompact_incoming_args): New.
5849 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
5850 (movstrsi): Disable on SH5.
5851 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
5852 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
5853 (subsf3, subsf3_media): Likewise.
5854 (mulsf3, mulsf3_media, mac_media): Likewise.
5855 (divsf3, divsf3_media): Likewise.
5856 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
5857 (floatsisf2, fux_truncsfsi2): Likewise.
5858 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
5860 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
5861 (cmpunsf_media, cmpsf): Likewise.
5862 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
5863 (abssf2, abssf2_media): Likewise.
5864 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
5865 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
5866 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
5867 (floatsidf2, fix_truncdfsi2): Likewise.
5868 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
5870 (cmpeqdf_media, cmpgtdf_media): Likewise.
5871 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
5872 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
5873 (absdf2, absdf2_media): Likewise.
5874 (extendsfdf2, extendsfdf2_media): Likewise.
5875 (truncsfdf2, truncsfdf2_media): Likewise.
5876 * config/sh/sh64.h: New file.
5877 * config/sh/t-sh64: New file.
5878 * config/sh/shmedia.h: New file.
5879 * config/sh/ushmedia.h: New file.
5880 * config/sh/sshmedia.h: New file.
5881 * configure.in: Added sh64-*-elf.
5882 * configure: Rebuilt.
5883 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
5884 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
5885 (reg_class_from_letter): Use `b' for TARGET_REGS.
5886 (print_operand): Support `%M', `%m', `AND' and
5887 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
5888 (andcosts): Adjust for SHmedia.
5889 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
5891 (target_reg_operand): New function.
5892 * config/sh/sh-protos.h (target_reg_operand): Declare.
5893 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
5894 FP registers on SH5.
5895 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
5897 (TARGET_REGISTER_P): New macro.
5898 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
5899 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
5900 (EXTRA_CONSTRAINT_S): New macro.
5901 (EXTRA_CONSTRAINT): Adjust.
5902 (FLOAT_TYPE_SIZE): Define to 32.
5903 (Pmode): DImode on SHmedia.
5904 (CONST_COSTS): Adjust for SHmedia literals.
5905 (PREDICATE_CODES): Added target_reg_operand.
5906 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
5907 * config/sh/sh.md: Remove all attrs from SHmedia insns.
5908 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
5909 (cmpdi): Accept SHmedia.
5910 (movdicc_false, movdicc_true): New insns.
5911 (movdicc): New expand.
5912 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
5914 (addsi3_media): Match `S' constraint.
5915 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
5916 (negdi2): Expand for SHmedia.
5917 (one_cmpldi2): New expand.
5918 (zero_extendsidi2): Change from expand to insn.
5919 (extendsidi2): Add constraints.
5920 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
5921 LD/ST address. Fix SI immediate loading split.
5922 (movhi_media, movqi_media, lduw, ldub): New insns.
5923 (movhi, movqi): Accept SHmedia.
5924 (shori_media, movdi_media): Relax input constraints. Split
5926 (movdf_media, movsf_media): New insn. New split to movdi.
5927 (movdf, movsf): Match on SHmedia.
5928 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
5929 bgeu_media): New insns and splits. New insns with `_i' suffix.
5930 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
5931 (bunordered): New expand.
5932 (jump_compact): Renamed from `jump'.
5933 (jump_media): New insn.
5935 (call_media, call_value_media): New insns.
5936 (call, call_value): Adjust.
5937 (indirect_jump_compact): Renamed from `indirect_jump'.
5938 (indirect_jump_media): New insn.
5939 (indirect_jump): New expand.
5940 (untyped_call, return): Accept SHmedia.
5941 (return_media): New insn.
5942 (prologue, epilogue, blockage): Accept SHmedia.
5943 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
5944 (sunordered): New expand.
5945 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
5946 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
5947 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
5948 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
5949 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
5950 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
5951 abssf2_media): New insns.
5952 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
5953 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
5954 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
5955 floatdidf2, floatsidf2_media, fix_truncdfdi2,
5956 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
5957 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
5958 absdf2_media): New insns.
5959 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
5960 (extendsfdf2_media, truncdfsf2_media): New insns.
5961 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
5962 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
5963 * config/sh/sh.h (CONST_OK_FOR_J): Document.
5964 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
5965 * config/sh/sh.md (adddi3): New expand.
5966 (adddi3_media, adddi3z_media): New insns.
5967 (adddi3_compact): Renamed from adddi3.
5968 (addsi3_media): Use add.l r63 to add constant zero.
5969 (subdi3): New expand.
5970 (subdi3_media): New insn.
5971 (subdi3_compact): Renamed from subdi3.
5972 (mulsidi3): New expand.
5973 (mulsidi3_media): New insn.
5974 (mulsidi3_compact): Renamed from mulsidi3.
5975 (umulsidi3): New expand.
5976 (umulsidi3_media): New insn.
5977 (umulsidi3_compact): Renamed from umulsidi3.
5978 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
5979 (ashlsi3, ashrsi3, lshrsi3): Use them.
5980 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
5981 (ashldi3, ashrdi3, lshrdi3): Use them.
5982 (zero_extendsidi2): New expand.
5983 (extendsidi2): New insn.
5984 (movsi_media): New insn. Split to movdi to load constants.
5985 (movsi): Enable for shmedia.
5986 (movdi_media): New insn. Use shori_media to load wide constants.
5987 (short_media): New insn.
5988 (movdi): Enable for shmedia.
5989 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
5990 * config/sh/sh.h (CPP_SPEC): Added `m5'.
5991 (SUBTARGET_CPP_SPEC): Added `!m5'.
5992 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
5993 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
5994 to all other SH variants.
5995 (TARGET_DEFAULT): Set to SH1_BIT.
5996 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
5997 (BITS_PER_WORD): Raise to 64 on shmedia.
5998 (MAX_BITS_PER_WORD): Change to 64.
5999 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
6000 (INT_TYPE_SIZE): Keep as 32.
6001 (UNITS_PER_WORD): Raise to 8 on shmedia.
6002 (MIN_UNITS_PER_WORD): Keep as 4.
6003 (POINTER_SIZE): Raise to 64 on shmedia.
6004 (CONST_OK_FOR_J): New macro.
6005 (CONST_OK_FOR_LETTER_P): Use it.
6006 (processor_type): Add PROCESSOR_SH5.
6007 * config/sh/sh.md: Conditionalize all expands, insns and
6008 splits to TARGET_SH1.
6010 (addsi3_compact): Renamed from...
6011 (addsi3): Now an expand.
6012 (addsi3_media, subsi3_media): New insns.
6013 (subsi3): Don't negate constants with SHmedia.
6015 * hooks.c: New file.
6016 * hooks.h: New file.
6017 * Makefile.in (HOOKS_H): New.
6018 (TARGET_DEF_H): Added $(HOOKS_H).
6019 (OBJS): Added hooks.o.
6020 (cfgcleanup.o, bb-reorder.o): Added target.h.
6021 (hooks.o): Added dependencies.
6022 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
6023 (TARGET_INITIALIZER): this.
6024 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
6025 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
6026 * bb-reorder.c: Include target.h.
6027 (reorder_basic_blocks): Skip if cannot modify jumps.
6028 * cfgcleanup.c: Include target.h.
6029 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
6031 2002-02-08 Chris Demetriou <cgd@broadcom.com>
6033 * config/mips/mips.md (casesi_internal, casesi_internal_di):
6034 Protect jump delay slot instructions with .set noreorder and
6037 2002-02-08 Chris Demetriou <cgd@broadcom.com>
6039 * config/mips/mips.md (casesi_internal_di): Calculate
6040 the index into the target offset table correctly.
6042 2002-02-08 Richard Henderson <rth@redhat.com>
6044 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
6045 * final.c (output_addr_const): Accept and discard SUBREG.
6046 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
6047 mark them unknown instead.
6048 (simplify_subtraction): Handle RTX_UNKNOWN.
6049 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
6051 2002-02-08 David Edelsohn <edelsohn@gnu.org>
6053 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
6055 2002-02-08 Richard Henderson <rth@redhat.com>
6057 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
6059 2002-02-08 Andreas Jaeger <aj@suse.de>
6061 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
6062 * config/i386/t-linux64: New file.
6064 2002-02-08 Jakub Jelinek <jakub@redhat.com>
6066 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
6067 * c-parse.in (compstmt): Clear last_expr_type.
6069 2002-02-07 Richard Henderson <rth@redhat.com>
6071 * loop.c (strength_reduce): Sink final_value when not
6074 2002-02-07 David O'Brien <obrien@FreeBSD.org>
6076 * config/sparc/freebsd.h: Fix mismatched spec {.
6078 2002-02-07 Richard Henderson <rth@redhat.com>
6080 * cfgrtl.c: Include recog.h and insn-config.h.
6081 (keep_with_call_p): Fix general_operand invocation.
6082 * Makefile.in (cfgrtl.o): Update dependencies.
6084 2002-02-07 Kazu Hirata <kazu@hxi.com>
6086 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
6087 comment. Accept HImode only if TARGET_H8300.
6089 2002-02-07 Eric Christopher <echristo@redhat.com>
6091 * config/mips/crtn.asm: Cleanup #ifdefs.
6093 2002-02-07 Eric Christopher <echristo@redhat.com>
6095 * config/mips/crti.asm: Add changes for mips16. mips16 uses
6096 register 7 as RA instead of $31.
6097 * config/mips/crtn.asm: Ditto.
6098 * config/mips/mips.c (mips_move_2words): Add case for
6099 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
6100 (compute_frame_size): Fix typo.
6101 (save_restore_insns): Ditto. Make documentation about using
6102 register $7 as return register more precise.
6103 (mips_expand_epilogue): Fix comment. Add code to work around not
6104 being able to add to the stack pointer directly.
6105 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
6106 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
6109 2002-02-07 Tom Rix <trix@redhat.com>
6111 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
6112 immediates in ldu and stdu DS opcode field.
6113 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
6114 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
6115 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
6117 2002-02-07 Jeff Sturm <jsturm@one-point.com>
6119 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
6120 offset for stack bias.
6122 2002-02-07 H.J. Lu <hjl@gnu.org>
6124 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
6126 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
6128 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
6130 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
6132 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
6133 * i386.c (x86_order_regs_for_local_alloc): New global function.
6134 * i386.h (REG_ALLOC_ORDER): CLeanup.
6135 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
6137 2002-02-07 Richard Henderson <rth@redhat.com>
6139 PR optimization/2463
6140 * alias.c (find_base_value): Recall base values for fixed hard regs.
6141 * loop.c (loop_regs_update): Don't use single_set on non-insns.
6143 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
6145 * config/mips/mips.md (define_delay) [mips16]: Adjust required
6148 2002-02-06 Richard Henderson <rth@redhat.com>
6151 * stmt.c (resolve_operand_name_1): Take more care with mixed
6152 named and unnamed operands.
6154 2002-02-06 Janis Johnson <janis187@us.ibm.com>
6155 Jan Hubicka <jh@suse.cz>
6157 * loop.c (remove_constant_addition): Avoid clobbering a shared
6160 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
6162 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
6163 * config/s390/t-linux64: New file.
6164 * config/s390/libgcc-glibc.ver: New file.
6166 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
6168 * config/s390/linux64.h: Delete file.
6169 * config/s390/s390x.h: New file.
6170 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
6171 as target header file.
6172 * config/s390/linux.h (TARGET_VERSION): Define depending on
6173 DEFAULT_TARGET_64BIT.
6174 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
6175 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
6176 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
6177 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
6178 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
6179 (EXTRA_SPEC): New define.
6180 * config/s390/s390.h (TARGET_VERSION): Define depending on
6181 DEFAULT_TARGET_64BIT.
6182 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
6184 2002-02-06 Jason Merrill <jason@redhat.com>
6186 * c-decl.c (finish_function): Warn about a non-void function with
6187 no return statement and no abnormal exit.
6188 (current_function_returns_abnormally): New variable.
6189 (start_function): Clear it.
6190 (struct c_language_function): Add returns_abnormally.
6191 (push_c_function_context): Save it.
6192 (pop_c_function_context): Restore it.
6193 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
6194 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
6195 an explicit return type.
6196 * c-tree.h: Declare current_function_returns_abnormally.
6197 (C_FUNCTION_IMPLICIT_INT): New macro.
6198 * c-typeck.c (build_function_call): Set it.
6199 (c_expand_return): Set current_function_returns_value even if the
6202 2002-02-06 Jakub Jelinek <jakub@redhat.com>
6205 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
6206 unsafe for reevaluation.
6208 2002-02-06 Jakub Jelinek <jakub@redhat.com>
6211 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
6212 EXPR_STMT, but COMPOUND_STMT, recurse into it.
6214 2002-02-06 Richard Henderson <rth@redhat.com>
6216 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
6217 be a general_operand. Dest for function value must be a pseudo.
6219 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
6221 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
6222 as SYMBOL_REFs from the constant pool.
6224 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
6226 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
6227 passed by invisible reference.
6229 2002-02-05 Richard Henderson <rth@redhat.com>
6231 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
6233 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
6235 Implement using "base addresses" in insn operands as default.
6236 * config/mmix/mmix.c (mmix_conditional_register_usage): if
6237 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
6238 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
6239 used to read the rtx value.
6240 (mmix_target_asm_function_epilogue): Fix spacing.
6241 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
6242 (mmix_legitimate_address): Ditto.
6243 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
6244 should be loaded with a GETA insn. Don't allocate needless extra
6245 char for nul termination and fix misleading comment.
6246 (mmix_print_operand_address): Handle constants if
6247 TARGET_BASE_ADDRESSES.
6248 (mmix_output_register_setting): Use base addressing if
6249 TARGET_BASE_ADDRESSES and the number of insns is 3.
6250 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
6251 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
6252 to use R as constraint, add LDA to match s.
6253 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
6254 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
6255 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
6256 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
6257 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
6258 order with other fixed registers.
6259 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
6260 other parameter/call-clobbered registers.
6261 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
6262 -mbase-addresses, -mno-base-addresses.
6263 (MMIX Options): Ditto.
6265 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
6267 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
6269 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
6271 * config/rs6000/altivec.h: Change elem to _S_elem.
6273 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
6275 * config/netbsd.h (WCHAR_TYPE): Define.
6276 (WCHAR_TYPE_SIZE): Ditto.
6278 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
6279 (WCHAR_UNSIGNED): Ditto.
6280 (WCHAR_TYPE_SIZE): Ditto.
6282 * config/arm/netbsd.h: Likewise.
6283 * config/i386/netbsd-elf.h: Likewise.
6284 * config/i386/netbsd.h: Likewise.
6285 * config/m68k/netbsd-elf.h: Likewise.
6286 * config/m68k/netbsd.h: Likewise.
6287 * config/ns32k/netbsd.h: Likewise.
6288 * config/sparc/netbsd.h: Likewise.
6289 * config/vax/netbsd.: Likewise.
6291 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
6293 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
6294 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
6295 (TARGET_INITIALIZER): this.
6296 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
6297 (BITFIELD_NBYTES_LIMITED): Markup fix.
6298 * tree.h (default_ms_bitfield_layout_p): Declare.
6299 (record_layout_info): Added prev_field.
6300 * tree.c (default_ms_bitfield_layout_p): New fn.
6301 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
6302 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
6303 * stor-layout.c: Include target.h.
6304 (start_record_layout): Initialize prev_field.
6305 (place_field): Handle MS bit-field layout, and disregard
6306 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
6307 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
6308 * Makefile.in (stor-layout.o): Adjust dependencies.
6310 2002-02-05 Jason Merrill <jason@redhat.com>
6312 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
6314 2002-02-05 Andreas Jaeger <aj@suse.de>
6316 * crtstuff.c: Fix comments.
6318 2002-02-05 Richard Henderson <rth@redhat.com>
6321 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
6322 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
6325 * config/mips/mips.c (function_arg): Handle TImode.
6326 (function_arg_advance): Likewise.
6328 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
6330 * config/rs6000/altivec.h (vec_step_help): Rename to
6333 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
6335 * config/rs6000/altivec.h: Fix typos.
6337 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
6339 * config/arm/netbsd.h: Correct a comment.
6341 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
6343 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
6344 building void typed builtins.
6346 * config/rs6000/altivec.h (vec_ld*): Fix typos.
6347 (vec_step): Implement for C++.
6349 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6351 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
6353 2002-02-04 Richard Henderson <rth@redhat.com>
6355 * combine.c (nonzero_bits): Re-introduce special case for
6356 sp/fp/ap wrt REGNO_POINTER_ALIGN.
6358 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
6360 * doc/extend.texi: Warn about unsupported usage of altivec
6363 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
6364 (altivec_predicate_*): New.
6366 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
6367 Add C++ version of vec_*() functions.
6369 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
6370 (bdesc_2arg): Remove altivec predicates.
6371 (altivec_expand_builtin): Handle predicates.
6372 (altivec_init_builtins): Handle predicates.
6373 (altivec_expand_predicate_builtin): New.
6375 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6377 * pa.c (DO_FRAME_NOTES): Move forward.
6378 (store_reg): Revise handling of frame notes.
6379 (load_reg): Likewise.
6380 (set_reg_plus_d): Likewise.
6381 (hppa_expand_prologue): Likewise.
6382 (hppa_expand_epilogue): Likewise.
6384 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6386 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
6388 2002-02-04 Jakub Jelinek <jakub@redhat.com>
6390 PR c/4475, c++/3780:
6391 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
6392 * c-common.h (SWITCH_TYPE): Define.
6393 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
6394 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
6395 Rename spareness variable to sparseness.
6396 (expand_end_case_type): Renamed from expand_end_case, use orig_type
6397 if non-NULL instead of TREE_TYPE (orig_index).
6398 * tree.h (expand_end_case_type): Renamed from expand_end_case.
6399 (expand_end_case): Define using expand_end_case_type.
6400 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
6401 to expand_end_case_type.
6402 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
6404 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6406 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
6407 (BIGGEST_ALIGNMENT): Change to 128.
6409 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6411 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
6413 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6415 * pa.md (call_internal_reg_64bit): Remove unused variable.
6417 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
6419 * config/arm/arm.h (machine_function): Add uses_anonymous_args
6421 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
6422 * config/arm/arm.c (current_function_anonymous_args): Delete,
6423 replace uses with cfun->machine->uses_anonymous_args.
6424 (arm_reorg): Do not reset uses_anonymous_args.
6426 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
6427 any geenral register.
6429 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
6431 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
6434 2002-02-04 Richard Henderson <rth@redhat.com>
6436 * combine.c (force_to_mode): Remove STACK_BIAS code.
6437 (nonzero_bits): Likewise. Replace sp/fp special case with
6438 REGNO_POINTER_ALIGN.
6440 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
6441 (HARD_FRAME_POINTER_REGNUM): New.
6442 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
6443 (FIXED_REGS, CALL_USED_REGS): Update.
6444 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
6445 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
6446 (HARD_REGNO_NREGS): Update for SFP.
6447 (STACK_POINTER_OFFSET): Include bias here ...
6448 (FIRST_PARM_OFFSET): ... not here.
6449 (STACK_BIAS): Remove.
6450 (INIT_EXPANDERS): New.
6451 (STARTING_FRAME_OFFSET): Do not include bias.
6452 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
6453 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
6454 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
6455 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
6456 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
6457 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
6458 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
6459 (MUST_SAVE_REGISTER): Likewise.
6460 (sparc_flat_function_prologue): Likewise.
6461 (sparc_flat_function_epilogue): Likewise.
6462 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
6463 (sparc_init_modes): SFP is GENERAL_REGS.
6464 (sparc_builtin_saveregs): SFP does not have bias applied.
6466 2002-02-04 Richard Henderson <rth@redhat.com>
6468 * config/alpha/alpha.c (current_function_is_thunk): Don't check
6469 current_function_is_thunk.
6470 (alpha_sa_mask): Distinguish between current_function_is_thunk
6471 called from ASM_OUTPUT_MI_THUNK and not.
6472 (alpha_does_function_need_gp): Thunks always need gp.
6473 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
6474 (alpha_output_mi_thunk_osf): New.
6475 * config/alpha/alpha-protos.h: Update.
6476 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
6478 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
6480 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
6481 function types, not when they're taken away.
6483 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
6485 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
6486 CODE_LABEL and jump table when replacing a table jump with a
6489 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6491 * config/s390/s390-protos.h (legitimize_la_operand,
6492 s390_secondary_input_reload_class, s390_plus_operand,
6493 s390_expand_plus_operand): Add prototypes.
6495 config/s390/s390.c (s390_secondary_input_reload_class,
6496 s390_plus_operand, s390_expand_plus_operand): New functions.
6498 (struct s390_address): New member 'pointer'.
6499 (s390_decompose_address): Compute it.
6500 (legitimate_la_operand_p): Use it.
6501 (legitimize_la_operand): New function.
6502 (movti, movdi, movdf splitters): Call it.
6504 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
6505 (PREDICATE_CODES): Add s390_plus_operand.
6507 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
6508 (la_ccclobber): Allow GENERAL_REGS as output operand.
6510 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
6511 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
6512 (*la_64, *la_31, reload_indi, reload_insi): ... these.
6514 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6516 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
6517 register names for regular asm () construct.
6519 2002-02-04 Jakub Jelinek <jakub@redhat.com>
6521 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
6524 2002-02-04 Jakub Jelinek <jakub@redhat.com>
6526 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
6529 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
6531 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
6532 constant pool to be identical by string address and index.
6534 2002-02-04 Anthony Green <green@redhat.com>
6536 * output.h (SECTION_OVERRIDE): Define.
6537 * varasm.c (named_section): Obey SECTION_OVERRIDE.
6539 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
6541 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
6542 by existing arm*-*-netbsd* (a.out) target.
6543 (ns32k-*-netbsdelf*): Likewise.
6544 (sparc-*-netbsdelf*): Likewise.
6545 (vax-*-netbsdelf*): Likewise.
6547 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
6549 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
6550 headers and libobjc headers.
6552 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
6554 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
6555 (_mingw.h): Remove duplicate include.
6557 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
6559 * config.gcc: Set cpu_type to m68k for 68010, as well.
6560 (m68010-*-netbsdelf*): New...
6561 (m68k*-*-netbsdelf*): ...targets.
6562 * config/m68k/netbsd-elf.h: New file.
6564 2002-02-02 Kazu Hirata <kazu@hxi.com>
6566 * config/h8300/h8300.c (hand_list): Move inside function_arg.
6568 2002-02-02 Kazu Hirata <kazu@hxi.com>
6570 * config/h8300/h8300.c (h8_push_ops): Move inside
6572 (h8_pop_ops): Likewise.
6573 (h8_move_ops): Likewise.
6575 2002-02-02 Kazu Hirata <kazu@hxi.com>
6577 * config/h8300/h8300.c (os_task): Make it static.
6578 (monitor): Likewise.
6579 (pragma_saveall): Likewise.
6581 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
6583 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
6584 constant is a valid sign-extension for Pmode.
6586 2002-02-02 Kazu Hirata <kazu@hxi.com>
6588 * config/h8300/h8300.c: Fix formatting.
6590 2002-02-02 Kazu Hirata <kazu@hxi.com>
6592 * config/h8300/h8300.md: Fix formatting.
6594 2002-02-02 Kazu Hirata <kazu@hxi.com>
6596 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
6597 predicates of operands[1]. Split the patterns for each
6600 2002-02-02 Kazu Hirata <kazu@hxi.com>
6602 * config/h8300/h8300.md (xor patterns): Tighten the predicates
6603 of operands[1] to register_operand.
6605 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
6607 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
6608 * cpphash.c (_cpp_init_hashtable): Similarly.
6609 * cppinit.c (cpp_create_reader): Default the signed_char flag.
6610 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
6611 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
6612 (cpp_handle_option): Handle the new options.
6613 * cpplex.c (cpp_interpret_charconst): Use new flag.
6614 * cpplib.h (struct cpp_options): New member signed_char.
6615 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
6616 (cpp_options): Handle -fsigned-char and -funsigned-char.
6617 (static_specs): Remove signed_char_spec.
6618 (do_spec1): Don't handle %c.
6619 * system.h: Poison SIGNED_CHAR_SPEC.
6620 * tradcif.y (yylex): Use flag_signed_char.
6621 * tradcpp.h (flag_signed_char): New.
6622 * tradcpp.c (flag_signed_char): New.
6623 (main): Handle new command-line options.
6624 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
6626 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
6627 * avr/avr.h: Remove old comments.
6628 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
6629 (CC1_SPEC): Pass -fsigned-char if -mic*.
6630 (SIGNED_CHAR_SPEC): Remove.
6632 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
6634 2002-02-01 Eric Christopher <echristo@redhat.com>
6636 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
6637 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
6638 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
6639 (ASM_OUTPUT_REG_POP): Ditto.
6641 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
6643 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
6646 2002-02-02 Jakub Jelinek <jakub@redhat.com>
6648 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
6650 2002-02-02 Jakub Jelinek <jakub@redhat.com>
6653 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
6656 2002-02-01 Janis Johnson <janis187@us.ibm.com>
6658 * cfganal.c: Include tm_p.h.
6659 (keep_with_call_p): Fix the test that determines if a register holds
6660 the return value of a call.
6662 2002-02-01 DJ Delorie <dj@redhat.com>
6664 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
6665 we are given conflicting registers, switch to the other one we
6666 had allocated for us.
6667 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
6668 as TImode so we know when the "other" register is available.
6670 2002-02-01 David O'Brien <obrien@FreeBSD.org>
6672 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
6675 2002-02-01 Janis Johnson <janis187@us.ibm.com>
6677 * cfganal.c (keep_with_call_p): New function.
6678 (flow_call_edges_add): Prevent splitting a block between a call and
6679 a single-set instruction that should be kept in the same block.
6681 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
6683 * doc/install.texi (avr): Update outdated URL.
6685 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
6687 * config/stormy16/stormy16.md (pushqi): New.
6691 (movhi): Remove stack operands.
6693 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
6694 nonimmediate_nonstack_operand.
6695 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
6697 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
6700 2002-01-31 Jason Merrill <jason@redhat.com>
6702 * Makefile.in (c-parse.c): Handle .output file.
6703 * objc/Make-lang.in (objc-parse.c): Likewise.
6705 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
6707 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
6708 the -me[lb] option is given. Don't output the default flag
6711 2002-01-31 Zack Weinberg <zack@codesourcery.com>
6713 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
6714 the primary source file; this has not been done yet.
6715 * c-decl.c (c_expand_body): Reset input_filename from
6716 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
6718 2002-01-31 Kazu Hirata <kazu@hxi.com>
6720 * rtlanal.c (subreg_regno_offset): Do not use
6721 SUBREG_REGNO_OFFSET.
6722 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
6723 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
6725 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
6727 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
6728 version rather than GNATS version in --version output.
6730 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
6732 * ifcvt.c (noce_process_if_block): Make a copy of the destination
6733 when copying back from a temporary.
6735 2002-01-30 Richard Henderson <rth@redhat.com>
6737 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
6738 and new_dest are the same.
6740 2002-01-30 Richard Henderson <rth@redhat.com>
6743 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
6744 * rtl.c (note_insn_name): Update.
6745 * emit-rtl.c (remove_unnecessary_notes): Kill it.
6746 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
6747 to perform loop rotation.
6748 (expand_exit_loop_top_cond): New.
6749 * tree.h (expand_exit_loop_top_cond): Declare it.
6750 * c-semantics.c (genrtl_while_stmt): Use it.
6751 (genrtl_for_stmt): Likewise.
6753 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
6755 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
6756 arguments to 64-bit boundaries on 64-bit ABIs.
6758 2002-01-30 Steve Ellcey <sje@cup.hp.com>
6760 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
6762 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
6764 * c-decl.c (grokdeclarator): Handle type being a typedef for an
6767 2002-01-30 David O'Brien <obrien@FreeBSD.org>
6769 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
6770 * config/sparc/sparc_bi.h: Remove file.
6771 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
6773 2002-01-30 Richard Henderson <rth@redhat.com>
6775 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
6777 2002-01-30 Zack Weinberg <zack@codesourcery.com>
6779 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
6781 2002-01-30 Jason Merrill <jason@redhat.com>
6783 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
6784 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
6785 (reg_save): Use DW_CFA_offset_extended_sf instead.
6787 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
6789 2002-01-29 Jakub Jelinek <jakub@redhat.com>
6791 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
6794 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
6796 * rs6000.md ("*call_value_local32"): Remove constraints.
6797 ("*call_value_local64"): Same.
6798 ("*call_value_indirect_nonlocal_aix32"): Same.
6799 ("*call_value_nonlocal_aix32"): Same.
6800 ("*call_value_indirect_nonlocal_aix64"): Same.
6801 ("*call_value_nonlocal_aix64"): Same.
6802 ("*call_value_nonlocal_sysv"): Same.
6804 2002-01-29 Richard Henderson <rth@redhat.com>
6806 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
6808 2002-01-29 Richard Henderson <rth@redhat.com>
6810 * expr.c (force_operand): Ignore flag_pic for detecting pic
6812 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
6813 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
6814 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
6815 instead of open-coded loop.
6816 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
6817 be fixed when in use.
6819 2002-01-29 Richard Henderson <rth@redhat.com>
6821 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
6822 * sched-rgn.c (propagate_deps): Update them.
6823 * sched-deps.c (sched_analyze_insn): Update them. Flush the
6824 clobbers list when either gets too long.
6826 2002-01-29 Jakub Jelinek <jakub@redhat.com>
6828 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
6829 and INDEX_REGS the same as GENERAL_REGS.
6830 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
6832 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
6834 * tree.c (build_nonstandard_integer_type): Correct prototype.
6836 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
6838 * config/s390/s390.md (movstrsico, movstrdix_64,
6839 movstrsix_31): Remove, replace by ...
6840 (movstrdi_short, movstrsi_short, movstrdi_long,
6841 movstrsi_long): ... these. New.
6842 (movstrdi, movstrsi): Adapt.
6844 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
6845 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
6846 Remove unnecessary CC clobber.
6847 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
6848 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
6850 (divmoddi4): Don't partially initialize TImode register.
6852 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
6854 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
6856 2002-01-29 Richard Henderson <rth@redhat.com>
6858 * flow.c (print_rtl_and_abort): Remove.
6859 (print_rtl_and_abort_fcn): Remove.
6860 (verify_local_live_at_start): Use dump_bb instead.
6861 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
6862 (verify_wide_reg_1): Return 2 on mode test failure.
6864 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
6866 PR c/3325, c/3326, c/2511, c/3347
6867 * c-decl.c (enum_decl_context): Remove BITFIELD.
6868 (grokdeclarator): Take bitfield width as an input.
6869 Ensure bitfields are given the correct type. Perform
6870 bitfield width validation with build_bitfield_integer_type
6871 rather than waiting for finish_struct.
6872 (grok_typename, grok_typename_in_parm_context, start_decl,
6873 push_parmdecl, grokfield, start_function): Update calls to
6875 (build_bitfield_integer_type): New function.
6876 (finish_struct): Move bitfield validation to grokdeclarator
6877 and build_bitfield_integer_type.
6878 * tree.c (build_nonstandard_integer_type): New function.
6879 * tree.h (build_nonstandard_integer_type): New prototype.
6881 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
6883 2002-01-29 Jakub Jelinek <jakub@redhat.com>
6886 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
6887 don't ignore unrecognized -W* options.
6888 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
6889 * cpplib.h (cpp_handle_option): Adjust prototype.
6890 * c-decl.c (c_decode_options): Pass 0 as last argument to
6894 * gcc.c (cpp_unique_options): Split from cpp_options.
6895 (cpp_options): Source cpp_unique_options.
6896 (default_compilers): Use cpp_unique_options instead of cpp_options
6897 when used together with cc1_options.
6898 (static_specs): Add cpp_unique_options.
6899 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
6900 when used together with cc1_options.
6902 2002-01-29 Kazu Hirata <kazu@hxi.com>
6904 * config/h8300/h8300-protos.h: Update the prototype of
6906 * config/h8300/h8300.c (output_a_shift): Remove an unused
6907 argument 'insn'. Remove redundant code.
6908 * config/h8300/h8300.md: Adust to the new prototype of
6911 2002-01-29 Kazu Hirata <kazu@hxi.com>
6913 * config/h8300/h8300-protos.h: Update the prototypes of
6914 emit_a_rotate and expand_a_rotate.
6915 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
6916 first argument to 'enum rtx_code'.
6917 (expand_a_rotate): Likewise.
6919 2002-01-28 Kazu Hirata <kazu@hxi.com>
6921 * config/h8300/h8300-protos.h: Update the prototype of
6923 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
6925 * config/h8300/h8300.md: Adjust to the new prototype.
6927 2002-01-28 Kazu Hirata <kazu@hxi.com>
6929 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
6932 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
6934 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
6935 is a fixed register before returning pic_offset_table_rtx.
6936 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
6937 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
6939 2002-01-28 Jason Merrill <jason@redhat.com>
6941 * dwarf2.h: Sync with src version.
6943 2002-01-28 Paul Koning <pkoning@equallogic.com>
6945 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
6947 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
6948 * doc/extend.texi (__builtin_prefetch): Update documentation:
6949 first argument is now const void ptr.
6951 2002-01-28 Kazu Hirata <kazu@hxi.com>
6953 * config/h8300/h8300-protos.h: Remove an unused prototype.
6955 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
6957 * toplev.c (lang_independent_init): Round up identifier size.
6959 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
6961 * config.gcc: Revert previous change.
6963 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
6965 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
6967 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
6969 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
6970 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
6971 other non-elf netbsd config frags.
6972 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
6973 collect2 will does that.
6974 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
6975 shared-lib frobbing will work.
6977 2002-01-28 Kazu Hirata <kazu@hxi.com>
6979 * config/h8300/h8300.h: Fix formatting.
6980 * config/h8300/h8300.md: Likewise.
6982 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
6984 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
6985 the old, removed AAA_standards fix.
6986 * fixinc/fixincl.x: Rebuilt.
6988 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
6990 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
6991 atexit call in crtbegin, hooked in after call to frame_dummy;
6992 register EH before registering __fini__start.
6994 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
6996 * config/rs6000/altivec.h: Remove spurious semicolons.
6998 2002-01-27 Kazu Hirata <kazu@hxi.com>
7000 * config/h8300/h8300.md: Replace dead bit extraction patterns
7001 with ones that work.
7003 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7005 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
7006 if not STRICT_ALIGNMENT.
7007 * rtl.h (MEM_ALIGN): Likewise.
7009 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
7011 * doc/invoke.texi (-fdump-translation-unit): Revert this
7012 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
7014 2002-01-27 Kazu Hirata <kazu@hxi.com>
7016 * config/h8300/h8300.md (define_constants): New.
7017 (anonymous patterns) Use defined constants appropriately.
7019 2002-01-27 Kazu Hirata <kazu@hxi.com>
7021 * config/h8300/h8300.c (function_arg): Remove redundant code.
7023 2002-01-26 Richard Henderson <rth@redhat.com>
7025 * sched-deps.c (reg_pending_uses_head): New.
7026 (reg_pending_barrier): Rename from reg_pending_sets_all.
7027 (find_insn_list): Don't mark inline.
7028 (find_insn_mem_list): Remove.
7029 (add_dependence_list, add_dependence_list_and_free): New.
7030 (flush_pending_lists): Replace only_write param with separate
7031 for_read and for_write parameters. Update all callers. Use
7032 add_dependence_list_and_free.
7033 (sched_analyze_1): Do not add reg dependencies here; just set
7034 the pending bits. Use add_dependence_list.
7035 (sched_analyze_2): Likewise.
7036 (sched_analyze_insn): Replace schedule_barrier_found with
7037 reg_pending_barrier. Add all dependencies for pending reg
7038 uses, sets, and clobbers.
7039 (sched_analyze): Don't add reg dependencies for calls, just
7040 set pending bits. Use regs_invalidated_by_call. Treat
7041 sched_before_next_call as a normal list, not a fake insn.
7042 (init_deps): No funny init for sched_before_next_call.
7043 (free_deps): Free pending mems lists. Don't zero reg_last.
7044 (init_deps_global): Init reg_pending_uses.
7045 (finish_deps_global): Free it.
7046 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
7047 (find_insn_mem_list): Remove.
7048 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
7049 (propagate_deps): Use them. Zero temp mem lists.
7051 2002-01-26 Richard Henderson <rth@redhat.com>
7053 * Makefile.in (CRTSTUFF_CFLAGS): New.
7054 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
7055 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
7056 crtstuff.c instead of alpha assembly version.
7057 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
7058 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
7059 not FORCE_{INIT,FINI}_SECTION_ALIGN.
7060 (__do_global_dtors_aux): Mark used.
7061 (frame_dummy, __do_global_ctors_aux): Mark used.
7062 (fini_dummy, init_dummy): Remove.
7064 * config/alpha/crtbegin.asm: Remove file.
7065 * config/alpha/crtend.asm: Remove file.
7066 * config/alpha/t-crtbe: Remove file.
7067 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
7068 (LINK_EH_SPEC): New.
7070 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
7071 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
7072 calling constructors.
7073 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
7075 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
7076 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
7077 CRT_END_INIT_DUMMY hack.
7078 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
7079 FORCE_{INIT,FINI}_SECTION_ALIGN.
7081 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
7082 FORCE_{INIT,FINI}_SECTION_ALIGN.
7084 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
7085 invocation sequence.
7086 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
7088 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
7089 (FORCE_CODE_SECTION_ALIGN): New.
7091 2002-01-26 Richard Henderson <rth@redhat.com>
7093 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
7095 2002-01-26 Richard Henderson <rth@redhat.com>
7097 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
7098 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
7100 2002-01-26 Kazu Hirata <kazu@hxi.com>
7102 * config/h8300/h8300.md: Remove bit extraction patterns that
7103 cannot be triggered.
7104 Restrict each bit extraction pattern to a variant on which the
7107 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
7109 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
7111 2002-01-26 Kazu Hirata <kazu@hxi.com>
7113 * config/h8300/h8300.md: Remove bit test patterns that cannot
7115 Restrict each bit test pattern to a variant on which the
7118 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7120 * builtins.c (expand_builtin_strncat): Remove redundant check for
7123 2002-01-25 David O'Brien <obrien@FreeBSD.org>
7125 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
7127 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
7130 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
7132 * dbxout.c (dbxout_init): Use assemble_name rather than just
7133 stripping off the first character.
7134 (dbxout_source_file): Likewise.
7136 2002-01-25 DJ Delorie <dj@redhat.com>
7138 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
7139 using rtx_equal_p, not by comparing pointers.
7141 2002-01-25 Steve Ellcey <sje@cup.hp.com>
7143 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
7144 for PIC_OFFSET_TABLE_REGNUM.
7145 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
7147 2002-01-25 David O'Brien <obrien@FreeBSD.org>
7149 * config.gcc (x86_64-*-freebsd*): New target.
7150 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
7152 (i[34567]86-*-freebsd*): Don't include svr4.h.
7153 * config/i386/freebsd64.h: New file.
7155 2002-01-25 Douglas B Rupp <rupp@gnat.com>
7157 * config/alpha/x-vms (version): Make static.
7159 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
7160 in previous checkin.
7162 * Makefile.in (install-headers-cp): New target.
7163 * config.gcc (alpha-dec-*vms*): Install headers with
7166 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
7168 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
7171 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7173 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
7174 of compare_tree_int.
7175 (expand_builtin_strncat): Likewise.
7176 * c-decl.c (finish_struct): Use tree_low_cst.
7177 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
7178 * tree.c (compare_tree_int): Likewise.
7180 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
7182 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
7183 adjustments even if they are implemented by more than two insns.
7185 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
7187 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
7188 * df.h (struct ref): Kill B.
7189 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
7191 * basic-block.h (PROP_EQUAL_NOTES): New flag.
7192 * flow.c (propagate_one_insn): Use it.
7193 (mark_used_regs): Handle NIL.
7195 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
7197 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
7200 2002-01-25 David Edelsohn <edelsohn@gnu.org>
7202 * rs6000.md (prefetch): Make address V4SI mode so that the address
7203 is restricted to legitimate form for instruction.
7205 2002-01-25 Bob Wilson <bob.wilson@acm.org>
7207 * doc/install.texi (xtensa-*-elf): New target.
7208 (xtensa-*-linux*): New target.
7209 * doc/contrib.texi: Add myself.
7211 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
7213 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
7214 purpose register to hold an SImode (or smaller) value.
7216 2002-01-25 Jakub Jelinek <jakub@redhat.com>
7218 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
7220 * crtstuff.c: Likewise.
7222 2002-01-25 Kazu Hirata <kazu@hxi.com>
7224 * config/h8300/h8300.md (negation patterns): Tighten
7225 predicates to register_operand.
7227 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
7229 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
7232 * builtins.c (expand_builtin_prefetch): Same.
7234 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7236 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
7239 2002-01-24 Kazu Hirata <kazu@hxi.com>
7241 * config/h8300/h8300.c (print_operand): Remove support for
7242 operand character 'A'.
7243 * config/h8300/h8300.md (three anonymous patterns): Replace
7244 operand character 'A' with either 'T' or 'S'.
7246 2002-01-24 Kazu Hirata <kazu@hxi.com>
7248 * config/h8300/h8300.c (print_operand): Remove support for
7249 operand character 'U'.
7251 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
7253 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
7255 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
7257 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
7258 values to be assigned to the stack pointer.
7260 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
7262 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
7263 to const_double needs to be done right for big-endian systems.
7265 2002-01-24 Jason Merrill <jason@redhat.com>
7268 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
7269 to can_throw_internal.
7271 2002-01-23 Richard Henderson <rth@redhat.com>
7273 * fold-const.c (fold): Change UINT_MAX test to check vs precision
7274 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
7276 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7278 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
7279 (symGOT2reg): Use them, then set as GOT value as unchanging.
7280 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
7281 as a temporary, if possible.
7282 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
7283 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
7285 2002-01-23 Kazu Hirata <kazu@hxi.com>
7287 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
7288 accept to accept 0x80 as operands[2].
7290 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7292 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
7294 2002-01-23 Richard Henderson <rth@redhat.com>
7296 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
7298 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
7300 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
7301 (parmlist_or_identifiers_1): Verify that only a parmlist follows
7304 2002-01-23 Richard Henderson <rth@redhat.com>
7306 * expr.c (move_by_pieces_1): Extend size before negation.
7308 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
7309 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
7310 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
7311 * config/m68k/t-m68kelf: Likewise.
7313 2002-01-23 Bob Wilson <bob.wilson@acm.org>
7315 * config/xtensa/elf.h: New file.
7316 * config/xtensa/lib1funcs.asm: New file.
7317 * config/xtensa/lib2funcs.S: New file.
7318 * config/xtensa/linux.h: New file.
7319 * config/xtensa/t-xtensa: New file.
7320 * config/xtensa/xtensa-config.h: New file.
7321 * config/xtensa/xtensa-protos.h: New file.
7322 * config/xtensa/xtensa.c: New file.
7323 * config/xtensa/xtensa.h: New file.
7324 * config/xtensa/xtensa.md: New file.
7325 * config.gcc (xtensa-*-elf*): New target.
7326 (xtensa-*-linux*): New target.
7327 * cse.c (canon_hash): Compare rtx pointers instead of register
7328 numbers. This is required for the Xtensa port.
7329 * integrate.c (copy_insn_list): Handle case where the static
7330 chain is in memory and the memory address has to be copied to
7332 * doc/invoke.texi (Option Summary): Add Xtensa options.
7333 (Xtensa Options): New node.
7334 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
7336 2002-01-23 Zack Weinberg <zack@codesourcery.com>
7338 * diagnostic.c (internal_error): Do ICE suppression only
7339 when ENABLE_CHECKING is not defined.
7341 * c-typeck.c (require_complete_type): Return error_mark_node
7342 if type is error_mark_node.
7344 2002-01-23 Janis Johnson <janis187@us.ibm.com>
7346 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
7347 -Os and issue a warning.
7349 2002-01-23 Zack Weinberg <zack@codesourcery.com>
7351 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
7352 current (lack of) need for host configuration by hand.
7354 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
7355 references. Documentation of some target macros moved from
7356 hostconfig.texi to tm.texi.
7358 2002-01-23 Will Cohen <wcohen@redhat.com>
7360 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
7363 2002-01-23 Kazu Hirata <kazu@hxi.com>
7365 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
7368 2002-01-23 Jason Merrill <jason@redhat.com>
7370 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
7372 * function.c (assign_parms): Don't put args of inline functions
7373 into registers when not optimizing.
7375 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
7377 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
7378 (prologue_use): New pattern.
7379 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
7380 preference to gen_rtx_USE.
7381 (thumb_expand_prologue): Use gen_prologue_use in preference to
7383 (thumb_expand_epilogue): Use gen_prologue_use in preference to
7386 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
7388 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
7390 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
7393 * doc/extend.texi: Correct documentation of __alignof__.
7395 2002-01-22 Zack Weinberg <zack@codesourcery.com>
7397 * params.h: Rename arguments of DEFPARAM so that it will be
7398 recognized as a translation keyword.
7400 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
7402 * extend.texi: Document altivec functions.
7403 Fix N-bit adjectives in X86 builtin documentation.
7405 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
7407 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
7408 auto_inc_dec values.
7410 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
7412 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
7414 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
7416 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
7418 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
7420 2002-01-22 Richard Henderson <rth@redhat.com>
7422 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
7423 copy_insn not copy_rtx.
7425 2002-01-23 Alan Modra <amodra@bigpond.net.au>
7427 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
7428 "nonzero" as that might add "1" bits. Ensure "constop" is
7429 properly sign extened.
7430 (force_to_mode): Tweak for sign extended constop.
7432 2002-01-22 Richard Henderson <rth@redhat.com>
7434 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
7435 for_each_rtx instead of assuming we're already looking at the MEM.
7436 (split_small_symbolic_mem_operand): Likewise.
7437 * config/alpha/alpha.h (PREDICATE_CODES): Update.
7438 * config/alpha/alpha.md (small symbolic memory splitters): Update.
7440 2002-01-22 Richard Henderson <rth@redhat.com>
7442 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
7443 sequence number for the literal.
7444 (divmoddi_internal_er): Likewise.
7446 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
7449 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
7450 in LIBICONV variable.
7451 * configure: Regenerated.
7453 2002-01-22 Krister Walfridsson <cato@df.lth.se>
7455 * dependence.c (build_def_use): Remove array_idx.
7457 * dwarfout.c (last_filename): Remove.
7458 (output_compile_unit_die): Remove last_filename.
7460 2002-01-22 Roger Sayle <roger@eyesopen.com>
7461 Richard Henderson <rth@redhat.com>
7464 * fold-const.c (fold): Optimize unsigned comparisons against
7465 UINT_MAX (and similar unsigned constants).
7467 2002-01-22 Janis Johnson <janis187@us.ibm.com>
7469 * Makefile.in (loop.o): Depend on OPTABS_H.
7470 * loop.c (emit_prefetch_instructions): Check the prefetch operand
7471 against the predicate.
7474 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
7475 for the address operand.
7477 2002-01-22 Richard Henderson <rth@redhat.com>
7479 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
7481 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
7484 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
7487 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
7489 * config.gcc (x86_64-*-netbsd*): New target.
7490 * config/i386/netbsd64.h: New file.
7492 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
7494 * regrename.c (kill_value): Fix typo.
7496 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
7498 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
7500 * config/rs6000/rs6000.h: Same.
7502 * function.c (instantiate_virtual_regs): Remove
7503 STARTING_FRAME_PHASE.
7504 (assign_stack_local_1): Same.
7505 Calculate frame phase.
7507 2002-01-22 Nick Clifton <nickc@redhat.com>
7509 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
7510 variable declaration to outer scope in order to simplify
7512 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
7513 arm_hard_regno_mode_ok.
7514 * config/arm/arm-protos.h: Add a prototype for
7515 arm_hard_regno_mode_ok.
7516 * config/arm/arm.c (soft_df_operand): Remove now redundant
7517 check for DImode values using IP_REGNUM.
7518 (nonimmediate_soft_df_operand): Remove now redundant check for
7519 DImode values using IP_REGNUM.
7520 (arm_hard_regno_mode_ok): New function. New check: make sure
7521 that DImode values are not stored in IP_REGNUM.
7523 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
7525 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
7527 2002-01-22 Jason Merrill <jason@redhat.com>
7529 * c-semantics.c (genrtl_compound_stmt): Only check nesting
7530 consistency if this COMPOUND_STMT is scoped.
7532 2002-01-22 Kazu Hirata <kazu@hxi.com>
7534 * predict.c: Fix formatting.
7535 * print-tree.c: Likewise.
7536 * protoize.c: Likewise.
7539 * sbitmap.h: Likewise.
7541 * sched-deps.c: Likewise.
7542 * sched-vis.c: Likewise.
7543 * sdbout.c: Likewise.
7544 * sibcall.c: Likewise.
7546 * ssa-ccp.c: Likewise.
7547 * ssa-dce.c: Likewise.
7549 * stor-layout.c: Likewise.
7550 * system.h: Likewise.
7552 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7554 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
7555 if fits in bounds of base type.
7557 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
7558 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
7559 (add_bound_info, default): If can't find a context, make a
7561 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
7563 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
7565 * c-typeck.c (parser_build_binary_op): If result from
7566 build_binary_op is ERROR_MARK just return error_mark_node without
7569 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
7571 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
7572 Split a.out-specific bits into...
7573 * config/netbsd-aout.h: ...this.
7574 * config/netbsd-elf.h: New file.
7575 * config/alpha/netbsd-elf.h: Remove.
7576 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
7577 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
7578 (STARTFILE_SPEC): Remove redundant definition.
7579 (ENDFILE_SPEC): Likewise.
7580 (LINK_SPEC): Likewise.
7581 (CPP_SPEC): Likewise.
7582 (ASM_SPEC): Likewise.
7583 (LIB_SPEC): Likewise.
7584 (SWITCH_TAKES_ARG): Likewise.
7585 (TARGET_MEM_FUNCTIONS): Likewise.
7586 (CPP_PREDEFINES): Redefine.
7587 (ASM_FINAL_SPEC): Remove redefinition.
7588 (ASM_COMMENT_START): Redefine.
7589 (FUNCTION_PROFILER): Define.
7590 (TARGET_VERSION): Redefine.
7591 Comment and formatting cleanup.
7592 * config/i386/netbsd.h: Include <netbsd-aout.h>.
7593 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
7594 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
7595 big- or little-endian.
7596 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
7597 * config.gcc (*-*-netbsd*): Add definitions common to all
7599 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
7600 gnu_ld definitions. Add netbsd-elf.h to and remove
7601 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
7602 tmake_file, and don't lose previous tmake_file contents.
7603 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
7604 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
7605 gnu_ld definitions. Add netbsd-elf.h to tm_file.
7606 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
7607 (mipsel-*-netbsd*): Rename this to...
7608 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
7609 mips/little.h to tm_file for mips*el-*.
7610 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
7611 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
7612 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
7614 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
7616 * pa-protos.h (reg_before_reload_operand): New function prototype.
7617 * pa.c (reg_before_reload_operand): New function implementation.
7618 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
7621 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7623 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
7625 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
7627 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
7628 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
7629 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
7630 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
7631 (ENDFILE_SPEC): Undefine.
7632 (STARTFILE_SPEC): Redefine for PA.
7634 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7636 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
7638 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
7640 * config.gcc: Add entries to supported PowerPC --with-cpu
7643 2002-01-21 Jakub Jelinek <jakub@redhat.com>
7645 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
7646 true for 64-bit mode only SSE registers in 32-bit mode.
7648 2002-01-21 Kazu Hirata <kazu@hxi.com>
7650 * unwind-dw2.c: Fix formatting.
7651 * unwind-dw2-fde.c: Likewise.
7652 * unwind-dw2-fde.h: Likewise.
7653 * unwind-pe.h: Likewise.
7654 * varasm.c: Likewise.
7655 * varray.h: Likewise.
7657 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
7659 Remove workaround for register stack overwrite bug in mmix.
7660 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
7661 support for TARGET_REG_STACK_FILL_BUG.
7662 * config/mmix/mmix.h: Remove member has_call_without_parameters.
7663 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
7665 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
7666 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
7667 -mno-reg-stack-fill-bug-workaround.
7668 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
7669 machine member has_call_without_parameters.
7670 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
7671 -mreg-stack-fill-bug-workaround and
7672 -mno-reg-stack-fill-bug-workaround.
7673 (MMIX Options): Ditto.
7675 2002-01-21 Kazu Hirata <kazu@hxi.com>
7677 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
7679 Remove redundant code.
7681 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
7683 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
7684 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
7685 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
7686 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
7687 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
7688 out target macro definitions and non-target-specific comments
7689 mostly taken from old versions of the manual.
7691 2002-01-20 Kazu Hirata <kazu@hxi.com>
7693 * config/h8300/h8300.h: Fix comment formatting.
7694 * config/ia64/aix.h: Likewise.
7695 * config/ia64/ia64-protos.h: Likewise.
7696 * config/ia64/ia64.c: Likewise.
7697 * config/ia64/ia64.h: Likewise.
7698 * config/ia64/ia64intrin.h: Likewise.
7699 * config/ia64/linux.h: Likewise.
7700 * config/ia64/unwind-aix.c: Likewise.
7701 * config/ia64/unwind-ia64.c: Likewise.
7703 2002-01-20 Kazu Hirata <kazu@hxi.com>
7705 * config/h8300/h8300.c: Revise comments about shift code.
7707 2002-01-20 Kazu Hirata <kazu@hxi.com>
7709 * config/h8300/h8300.c (function_arg): Update a comment.
7711 2002-01-20 Kazu Hirata <kazu@hxi.com>
7713 * config/h8300/h8300.md: Update the comments at the beginning
7716 2002-01-20 Kazu Hirata <kazu@hxi.com>
7718 * config/i370/i370.c: Fix comment formatting.
7719 * config/i370/i370.h: Likewise.
7720 * config/i370/i370.md: Likewise.
7721 * config/i370/linux.h: Likewise.
7723 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7725 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
7727 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
7728 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
7731 2002-01-20 Graham Stott <grahams@redhat.com>
7733 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
7735 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
7737 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
7739 2002-01-19 Tom Rix <trix@redhat.com>
7741 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
7743 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
7745 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
7747 * function.c (assign_stack_local_1): Adjust x_frame_offset with
7748 STARTING_FRAME_PHASE.
7749 (STARTING_FRAME_PHASE): New.
7750 (instantiate_virtual_regs): Check saneness of
7751 STARTING_FRAME_PHASE.
7753 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
7755 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
7757 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
7759 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
7761 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
7762 be used for bootstrapping GCC 3.0.
7764 2002-01-18 Kazu Hirata <kazu@hxi.com>
7766 * config/h8300/h8300.md: Fix an insn length.
7768 2002-01-18 Kazu Hirata <kazu@hxi.com>
7770 * bitmap.h: Fix comment formatting.
7771 * combine.c: Likewise.
7772 * cppfiles.c: Likewise.
7773 * c-pragma.h: Likewise.
7774 * c-typeck.c: Likewise.
7776 * dwarf2out.c: Likewise.
7777 * function.c: Likewise.
7779 * genattrtab.c: Likewise.
7780 * gthr-win32.h: Likewise.
7781 * haifa-sched.c: Likewise.
7782 * predict.c: Likewise.
7783 * rtlanal.c: Likewise.
7785 * unwind-dw2-fde.h: Likewise.
7786 * unwind-pe.h: Likewise.
7787 * vmsdbgout.c: Likewise.
7789 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7791 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
7792 if type_required and passed decl.
7794 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
7796 * config.gcc (cpu_type): Include altivec.h in powerpc
7800 * config/rs6000/altivec.h: New.
7802 2002-01-17 David Edelsohn <edelsohn@gnu.org>
7804 * doc/install.texi (*-ibm-aix*): Update assembler and exception
7805 handling information.
7806 * doc/trouble.texi (Interoperation): Add libstdc++ information
7808 (Misunderstandings): Add template instantiation and static template
7809 member information for AIX.
7811 2002-01-17 Jason Merrill <jason@redhat.com>
7813 * dbxout.c (dbxout_type): Support const and volatile.
7815 * except.c (add_partial_entry): Remove backwards compatibility code.
7816 (end_protect_partials): Likewise.
7818 2002-01-17 Jakub Jelinek <jakub@redhat.com>
7820 * config/ia64/ia64.md (prologue_use): New.
7821 * config/ia64/ia64.c (ia64_expand_prologue): Use
7822 gen_prologue_use instead of gen_rtx_USE.
7823 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
7824 as CODE_FOR_pred_rel_mutex.
7825 (ia64_sched_reorder2): Likewise.
7827 2002-01-16 Eric Christopher <echristo@redhat.com>
7829 * config/mips/r3900.h: Reformat.
7830 (SUBTARGET_CPP_SIZE_SPEC): Remove.
7831 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
7832 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
7833 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
7834 * config/mips/t-elf: Remove mips3 multilib.
7836 2002-01-16 H.J. Lu <hjl@gnu.org>
7838 * config/mips/linux.h: Include "mips/abi64.h".
7840 2002-01-16 H.J. Lu <hjl@gnu.org>
7842 * config/mips/t-linux: New.
7844 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
7846 * config/mips/linux.h: Don't include "gofast.h".
7847 (INIT_SUBTARGET_OPTABS): Removed.
7849 2002-01-16 Kazu Hirata <kazu@hxi.com>
7851 * config/h8300/h8300-protos.h: Replace emit_a_shift with
7853 * config/h8300/h8300.c: Likewise.
7854 * config/h8300/h8300.md: Likewise.
7856 2002-01-16 Kazu Hirata <kazu@hxi.com>
7858 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
7859 spaces after an opcode name.
7860 (pushqi1_h8300hs): Likewise.
7861 (pushhi1_h8300hs): Likewise.
7863 2002-01-16 Kazu Hirata <kazu@hxi.com>
7865 * doc/extend.texi: Replace "option" with "attribute"
7868 2002-01-16 Jakub Jelinek <jakub@redhat.com>
7870 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
7871 (and:DI () (const_int -8)).
7872 (split_small_symbolic_mem_operand): Split
7873 (mem (and:DI () (const_int -8)).
7875 2002-01-16 Jakub Jelinek <jakub@redhat.com>
7878 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
7879 same way as TYPE_IMUL.
7880 (ultrasparc_sched_reorder): Likewise.
7881 * config/sparc/sparc.md (type): Add comment to update
7882 ultrasparc_sched_reorder when making changes.
7884 2002-01-16 Kazu Hirata <kazu@hxi.com>
7886 * doc/invoke.texi: Change the dump file name of block
7887 reordering pass from 28.bbro to 29.bbro.
7890 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
7892 * i386.md (minsf splitter): Fix pasto.
7894 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
7896 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
7897 to frame pointer initialisation instruction.
7898 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
7899 initialisation instruction.
7900 (soft_df_operand): Do not accept the IP register.
7901 (nonimmediate_soft_df_operand): Do not accept the IP register.
7903 2002-01-16 Jakub Jelinek <jakub@redhat.com>
7906 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
7907 MASK_V8 being both set.
7909 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
7911 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
7912 insn for GOT register; add REG_MAYBE_DEAD notes instead.
7913 config/s390/s390.md (call, call_value): Add GOT register to
7914 CALL_INSN_FUNCTION_USAGE where needed.
7915 (call_exp, call_value_exp): New.
7917 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
7919 * config/arm/arm.c: General formatting tidy up.
7921 2002-01-16 Graham Stott <grahams@redhat.com>
7923 * calls.c (try_to_integrate): Use "(size_t)" intermediate
7924 cast and when casting an integer literal to "rtx" pointer.
7925 (expand_call): Likewise.
7926 * flow.c (try_pre_increment): Likewise.
7927 (find_use_as_address): Likewise.
7928 * integrate.c (expand_iline_function): Likewise.
7929 * regmove.c (try_auto_increment): Likewise.
7931 2002-01-16 Graham Stott <grahams@redhat.com>
7933 * sched-rgn.c (passed): Use sbitmap_free.
7936 (in_queue): Likewise.
7937 (in_stack): Likewise.
7939 2002-01-15 Eric Christopher <echristo@redhat.com>
7941 * flow.c (propagate_one_insn): Change to use fatal_insn.
7943 2002-01-15 Kazu Hirata <kazu@hxi.com>
7945 * expmed.c (extract_fixed_bit_field): Remove unused code.
7946 * system.h: Poison SLOW_ZERO_EXTEND.
7947 * doc/tm.texi: Remove.
7948 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
7949 * config/arm/arm.h: Likewise.
7950 * config/avr/avr.h: Likewise.
7951 * config/clipper/clipper.h: Likewise.
7952 * config/convex/convex.h: Likewise.
7953 * config/d30v/d30v.h: Likewise.
7954 * config/dsp16xx/dsp16xx.h: Likewise.
7955 * config/elxsi/elxsi.h: Likewise.
7956 * config/fr30/fr30.h: Likewise.
7957 * config/h8300/h8300.h: Likewise.
7958 * config/i370/i370.h: Likewise.
7959 * config/i386/i386.h: Likewise.
7960 * config/m68k/m68k.h: Likewise.
7961 * config/mips/mips.h: Likewise.
7962 * config/ns32k/ns32k.h: Likewise.
7963 * config/pdp11/pdp11.h: Likewise.
7964 * config/pj/pj.h: Likewise.
7965 * config/s390/s390.h: Likewise.
7966 * config/sh/sh.h: Likewise.
7967 * config/stormy16/stormy16.h: Likewise.
7968 * config/v850/v850.h: Likewise.
7969 * config/vax/vax.h: Likewise.
7970 * config/we32k/we32k.h: Likewise.
7972 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
7974 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
7975 (altivec_lvsl): Change constraint to b.
7976 (altivec_lvsr): Same.
7977 (altivec_lvebx): Same.
7978 (altivec_lvehx): Same.
7979 (altivec_lvewx): Same.
7980 (altivec_lvxl): Same.
7981 (altivec_lvx): Same.
7982 (altivec_stvx): Add parallel.
7983 (altivec_stvxl): Same.
7984 (altivec_stvehx): Same.
7985 (altivec_stvebx): Same.
7986 (altivec_stvebx): Same.
7988 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
7990 * config.gcc: Change altivec.h to altivec-defs.h.
7992 * config/rs6000/altivec.h: Delete.
7994 * config/rs6000/altivec-defs.h: Add.
7996 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
7998 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
8001 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
8002 less than or equal to eight bytes.
8004 * vax.md (andsi3): Remove constraints and change SET destination
8005 operand type to nonimmediate_operand.
8006 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
8007 when it is a CONST_INT.
8009 2002-01-15 Jason Merrill <jason@redhat.com>
8011 * c-common.def (FILE_STMT): New code.
8012 * c-common.c (statement_code_p): It's a statement.
8013 * c-common.h (stmt_tree_s): Add x_last_filename.
8014 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
8015 (last_expr_filename): New macro.
8016 * c-semantics.c (begin_stmt_tree): Initialize it.
8017 (add_stmt): If the filename changed, also insert a
8019 (expand_stmt): Handle seeing one.
8021 2002-01-15 Eric Christopher <echristo@redhat.com>
8023 * flow.c (propagate_one_insn): Add error message and print out
8026 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
8028 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
8029 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
8030 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
8031 TRAMPOLINE_ALIGNMENT.
8032 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
8034 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
8035 PCC_BITFIELD_TYPE_MATTERS.
8036 * config/interix.h (STDC_VALUE): Remove. Use
8037 STDC_0_IN_SYSTEM_HEADERS.
8038 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
8039 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
8040 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
8042 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
8044 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
8045 not work on this platform currently.
8047 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
8049 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
8050 readonly_warning in _().
8052 2002-01-15 Douglas B Rupp <rupp@gnat.com>
8054 * gcc.c (delete_if_ordinary): Backout previous change.
8056 2002-01-15 Kazu Hirata <kazu@hxi.com>
8058 * config/h8300/h8300.c (print_operand): Remove support for
8059 unused operand characters.
8061 * read-rtl.c: Fix formatting.
8063 * recog.c: Likewise.
8064 * regclass.c: Likewise.
8065 * regmove.c: Likewise.
8066 * reg-stack.c: Likewise.
8067 * reload1.c: Likewise.
8068 * rtlanal.c: Likewise.
8070 2002-01-15 Kazu Hirata <kazu@hxi.com>
8072 * config/i386/i386.c: Fix formatting.
8074 2002-01-15 Jakub Jelinek <jakub@redhat.com>
8076 * c-typeck.c (process_init_element): Don't save_expr
8077 COMPOUND_LITERAL_EXPR if just its initializer will be used.
8079 2002-01-15 David Edelsohn <edelsohn@gnu.org>
8081 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
8082 emit optional traceback table if optimize_size or TARGET_ELF.
8083 * config/rs6000/rs6000.md (prefetch): New.
8085 2002-01-15 Andreas Jaeger <aj@suse.de>
8087 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
8089 2002-01-15 Kazu Hirata <kazu@hxi.com>
8091 * mips-tfile.c: Fix formatting.
8093 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
8095 * unroll.c (final_reg_note_copy): Fix previous commit.
8097 2002-01-14 Kazu Hirata <kazu@hxi.com>
8099 * config/h8300/h8300-protos.h: Remove the prototype for
8101 * config/h8300/h8300.c (eq_operator): Remove.
8103 2002-01-14 Richard Henderson <rth@redhat.com>
8105 * config/i386/i386.md (prefetch): Tidy.
8106 (prefetch_3dnow): Fix locality operand.
8108 2002-01-14 Richard Henderson <rth@redhat.com>
8110 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
8111 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
8113 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
8115 * reload1.c (reload_combine): Pass reg_sum replacement through
8116 copy_rtx in loop performing multiple changes.
8118 2002-01-14 Jakub Jelinek <jakub@redhat.com>
8120 * except.c (remove_unreachable_regions): New.
8121 (free_eh_status): Clear exception_handler_labels.
8122 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
8123 (find_exception_handler_labels): Don't add the same label more than
8125 (remove_exception_handler_label): Don't die if
8126 find_exception_handler_labels hasn't been called for the current
8129 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
8131 * toplev.c (rest_of_compilation): Rebuild jump labels after
8134 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
8136 * doc/extend.texi: Move documentation of X86 built-in functions
8138 * doc/invoke.texi: From here.
8139 * doc/sourcebuild.texi: Document location of documentation for
8140 machine built-in functions.
8142 2002-01-13 Christopher Faylor <cgf@redhat.com>
8144 * cppfiles.c (TEST_THRESHOLD): New macro.
8145 (SHOULD_MMAP): Ditto.
8146 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
8149 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
8151 * unroll.c (final_reg_note_copy): Properly handle
8153 (unroll_loops): Fix LOOP_CONDITION heuristics.
8155 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
8157 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
8158 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
8160 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
8162 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
8165 2002-01-14 Tom Rix <trix@redhat.com>
8167 * config/rs6000/rs6000.md: Fix typo with sradi.
8169 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
8171 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
8172 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
8173 (clrstrdi, clrstrsi): Adapt callers.
8175 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
8177 (movti splitter): Never use register 0 as base register.
8179 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
8181 * combine.c (simplify_shift_const): Always generate new rtx
8182 for shift expression instead of reusing given expression.
8184 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8186 * config/alpha/alpha.c (alpha_expand_mov): Don't call
8187 alpha_legitimize_address unless mode is Pmode.
8189 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
8191 * doc/md.texi (Modifiers): Document the '*' constraint for the
8194 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
8195 * doc/extend.texi (Function Attributes): 'interrupt' is valid
8198 2002-01-13 Richard Henderson <rth@redhat.com>
8200 * reload.c (find_reloads): Use a hard reg destination as reload reg
8201 for an input reload of the source.
8203 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8205 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
8208 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
8210 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
8211 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
8213 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
8215 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8217 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
8219 2002-01-12 Tom Rix <trix@redhat.com>
8221 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
8224 2002-01-12 Richard Henderson <rth@redhat.com>
8226 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
8228 * doc/invoke.texi: Update Alpha options.
8230 * doc/invoke.texi: Update i386 built-in function lists.
8232 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
8234 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
8235 referencing outside.
8237 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8239 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
8240 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
8241 offsets, and change line folding.
8242 * optabs.c (expand_binop): Remove warnings.
8243 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
8245 2002-01-12 Graham Stott <grahams@redhat.com>
8247 * attribs.c (handle_deprecated_attribute): constify WHAT.
8248 * diagnostic.c (warn_deprecated_use): Add braces, fixes
8249 dangling else warning and constify WHAT.
8250 * except.h (struct function, struct inline_remap): Move
8251 struct tag forward defs before all prototypes.
8252 (duplicate_eh_regions): Whitespace.
8254 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
8256 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8257 MODE_BASE_REG_CLASS.
8258 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
8260 2002-01-12 Richard Henderson <rth@redhat.com>
8262 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
8263 (ix86_expand_vector_move): New.
8264 (bdesc_2arg): Remove andps, andnps, orps, xorps.
8265 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
8266 Remove old prefetch builtins. Special case the logicals removed above.
8267 (ix86_expand_builtin): Likewise.
8268 (safe_vector_operand): Use V4SFmode, not TImode.
8269 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
8270 (ix86_expand_timode_binop_builtin): New.
8271 * config/i386/i386-protos.h: Update.
8272 * config/i386/i386.h (enum ix86_builtins): Update.
8273 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
8274 Use ix86_expand_vector_move in vector move expanders.
8275 (movti_internal, movti_rex64): Add xorps alternative.
8276 (sse_clrv4sf): Rename and adjust from sse_clrti.
8277 (prefetch): Don't work so hard.
8278 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
8279 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
8280 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
8282 2002-01-11 Richard Henderson <rth@redhat.com>
8284 * config/i386/mmintrin.h: New file.
8285 * config/i386/xmmintrin.h: New file.
8286 * config.gcc (i?86-*-*): Add extra_headers.
8287 * simplify-rtx.c (simplify_unary_operation): Handle saturating
8289 (simplify_binary_operation): Handle saturating arithmetic codes.
8290 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
8291 not the lowpart subreg.
8292 (ix86_expand_builtin): Return a TImode dummy register instead of 0
8294 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
8296 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8298 * conflict.c (conflict_graph_compute): Free regsets when finished.
8299 * ssa.c (compute_coalesced_reg_partition): Likewise.
8301 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8303 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
8304 every where we allocate a register.
8306 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8308 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
8309 * lcm.c (compute_earliest, compute_farthest): Likewise.
8311 2002-01-11 Janis Johnson <janis187@us.ibm.com>
8313 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
8315 2002-01-11 Janis Johnson <janis187@us.ibm.com>
8317 * doc/rtl.texi (Insns): Fix 2 typos.
8319 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
8321 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
8322 options. Use @table @gcctabopt for MMIX options. Add index
8323 entries for MMIX options. Start new paragraph with first
8324 heading of the machine-dependent options.
8326 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
8329 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
8330 * combine.c (force_to_mode): Same.
8331 * reload1.c (clear_reload_reg_in_use): Same.
8333 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
8335 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
8338 2002-01-11 Andreas Jaeger <aj@suse.de>,
8339 Brad Lucier <lucier@math.purdue.edu>
8341 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
8344 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
8346 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
8347 Protect with IN_LIBGCC.
8348 (LINK_EH_SPEC): Add required trailing space.
8350 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
8352 * c-tree.h: Move function declarations so that they are listed
8353 under the filename which contains them.
8354 (check_identifier, finish_decl_top_level,
8355 lookup_name_current_level_global, shadow_record_fields): Remove.
8357 2002-01-11 Andreas Jaeger <aj@suse.de>
8359 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
8362 2002-01-10 Richard Henderson <rth@redhat.com>
8364 * config/alpha/alpha.c (print_operand): Add 'J'.
8365 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
8366 new operand with the sequence number for the lituse. When splitting
8367 the insns, use gen_movdi_er_high_g and generate a sequence number.
8368 (gen_movdi_er_high_g): Print the sequence number if non-zero.
8370 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
8372 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
8373 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
8375 (altivec_expand_builtin): Same.
8376 (altivec_expand_stv_builtin): New.
8378 * config/rs6000/rs6000.h (rs6000_builtins): Same.
8380 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
8381 ("altivec_lvehx"): New.
8382 ("altivec_lvewx"): New.
8383 ("altivec_lvxl"): New.
8384 ("altivec_lvx"): New.
8385 ("altivec_stvx"): New.
8386 ("altivec_stvebx"): New.
8387 ("altivec_stvehx"): New.
8388 ("altivec_stvewx"): New.
8389 ("altivec_stvxl"): New.
8391 2002-01-10 Richard Henderson <rth@redhat.com>
8393 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
8394 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
8395 care not to delete instructions twice.
8397 2002-01-10 Zack Weinberg <zack@codesourcery.com>
8399 * toplev.c: Don't declare environ (it's not used anywhere).
8400 * configure.in: Don't check for declaration of environ.
8401 * config/i386/xm-mingw32.h: Don't #define environ.
8402 * config.in, configure: Regenerate.
8404 2002-01-10 Zack Weinberg <zack@codesourcery.com>
8406 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
8407 * configure: Regenerate.
8409 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
8410 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
8411 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
8413 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
8414 LIMITS_H_TEST here, not in m68k/x-next.
8415 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
8416 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
8418 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
8419 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
8420 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
8422 * config/i386/x-djgpp: Renamed i386/t-djgpp.
8423 * config/m88k/x-dolph: Renamed m88k/t-dolph.
8424 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
8425 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
8426 replacement of quadlib.asm with quadlib.c.
8428 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
8429 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
8430 config/rs6000/xm-beos.h: Delete file.
8432 * config.gcc: Update to match above changes.
8434 2002-01-10 Kazu Hirata <kazu@hxi.com>
8436 * config/h8300/h8300.h: Fix comment typos.
8437 * config/h8300/h8300.md: Likewise.
8438 * config/h8300/lib1funcs.asm: Likewise.
8440 2002-01-10 Dale Johannesen <dalej@apple.com>
8442 PR optimization/5269
8443 * unroll.c (precondition_loop_p): Make *increment be the correct
8444 sign when n_iterations known, to avoid confusing caller.
8446 2002-01-10 Kazu Hirata <kazu@hxi.com>
8448 * doc/extend.texi (deprecated): Fix a typo.
8450 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
8452 * basic-block.h (update_br_prob_note): Declare.
8453 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
8454 (try_forward_edges): Care negative frequencies and update note.
8455 (outgoing_edges_match): Tweek conditional merging heuristics.
8456 (try_crossjump_to_edge): use update_br_prob_note.
8457 * cfglayout.c (fixup_reorder_chain): Likewise.
8458 * cfrtl.c (update_br_prob_note): New.
8459 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
8461 * i386.c (ix86_decompose_address): Return -1 if address contains
8463 (legitimate_address_p): Require ix86_decompose_address to return 1.
8465 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
8466 (cprop_insn): Likewise.
8468 2002-01-10 Kazu Hirata <kazu@hxi.com>
8470 * toplev.c: Fix formatting.
8472 * tree-dump.c: Likewise.
8473 * unroll.c: Likewise.
8474 * unwind-dw2.c: Likewise.
8475 * unwind-dw2-fde.c: Likewise.
8476 * unwind-dw2-fde-glibc.c: Likewise.
8477 * unwind-sjlj.c: Likewise.
8479 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
8481 * doc/invoke.texi: Document PDP-11 options.
8483 2002-01-10 Kazu Hirata <kazu@hxi.com>
8485 * config/h8300/h8300.h: Fix formatting.
8487 2002-01-10 Ira Ruben <ira@apple.com>
8489 Add __attribute__ ((deprecated)).
8490 * extend.texi: Document __attribute__ ((deprecated)).
8491 * invoke.texi: Document -Wno-deprecated-declarations.
8492 * testsuite/g++.dg/other/deprecated.C: New C++ test.
8493 * testsuite/gcc.dg/deprecated.c: New C test.
8494 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
8495 (c_common_attribute_table): Add "deprecated" entry.
8496 (handle_deprecated_attribute): New function.
8497 * c-decl.c (deprecated_states): New enum.
8498 deprecated_state: State of "deprecated" handling.
8499 (start_decl): Set deprecated_state based on attributes.
8500 (grokdeclarator): Test for deprecated uses, propagate attribute.
8501 * c-typeck.c (build_component_ref): Test for deprecated fields.
8502 (build_external_ref): Test for deprecated primaries.
8503 * diagnostic.c (warn_deprecated_use) New function to issue
8504 warnings about __attribute__ ((depricated)) references.
8505 * flags.h (warn_deprecated_decl): Extern declared for
8506 -W[no-]deprecated-declarations option.
8507 * print-tree.c (print_node): Show deprecated flag status.
8508 * toplev.c (warn_deprecated_decl): Defined.
8509 (W_options): Added "deprecated-declaration".
8510 * toplev.h (warn_deprecated_use): Extern declared.
8511 * tree.h (struct tree_common): Define deprecated_flag.
8512 (TREE_DEPRECATED): New macro to access flag.
8513 * cp/call.c (build_call): Test for deprecated calls.
8514 * cp/class.c (add_implicitly_declared_members): Set global
8515 flag to tell grokdeclarator to not issue deprecated warnings.
8516 * cp/cp-tree.h: Add extern for adding_implicit_members.
8517 * cp/decl.c (deprecated_states): New enum.
8518 (start_decl): Set deprecated_state based on attributes.
8519 (grokdeclarator): Test for deprecated uses, propagate attribute.
8520 * cp/lex.c (do_identifier): Test for deprecated primaries.
8521 * cp/typeck.c (build_component_ref): Test for deprecated fields.
8523 2002-01-10 Ira Ruben <ira@apple.com>
8525 Fix to assign attributes to inline member functions.
8526 * cp/decl.c (start_method): Handle attrlist.
8528 2002-01-10 Kazu Hirata <kazu@hxi.com>
8530 * combine.c (expand_field_assignment): Use subreg_lsb().
8532 2002-01-10 David Edelsohn <edelsohn@gnu.org>
8534 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
8535 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
8536 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
8537 Recurse for any operand of AND as long as constant is non-zero.
8539 2002-01-10 Kazu Hirata <kazu@hxi.com>
8541 * config/h8300/h8300.md: Remove constraints from expanders.
8543 2002-01-10 Kazu Hirata <kazu@hxi.com>
8545 * varasm.c: Fix formatting.
8546 * varray.c: Likewise.
8547 * vmsdbgout.c: Likewise.
8548 * xcoffout.c: Likewise.
8550 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
8552 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
8553 update edge probabilities to match.
8555 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
8557 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
8559 * doc/languages.texi, doc/sourcebuild.texi: New files.
8560 * doc/configfiles.texi: Make a subsubsection. Update.
8561 * doc/configterms.texi: Add @node. Remove warning that this isn't
8562 instructions for building GCC.
8563 * doc/makefile.texi: Make a subsection.
8564 * doc/gccint.texi: Update.
8566 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
8568 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
8570 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
8572 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
8574 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
8576 * optabs.c (expand_fix): Look for wider integer modes first.
8578 * i386.md (mov?f): Avoid the fake const double trick for medium
8580 (min?f*/max?f*): Prohibit memory operands for i387 variant.
8581 (fop_df_4): Disable for SSE compilation.
8583 2002-01-10 Graham Stott <grahams@redhat.com>
8585 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
8586 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
8588 2002-01-10 Richard Henderson <rth@redhat.com>
8590 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
8592 2002-01-10 Richard Henderson <rth@redhat.com>
8594 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
8595 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
8597 2002-01-10 Kazu Hirata <kazu@hxi.com>
8599 * combine.c (can_combine_p): Fix a comment typo.
8601 2002-01-09 Zack Weinberg <zack@codesourcery.com>
8603 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
8604 empty list correctly. Change loop index $t to $f for
8605 consistency with rest of Makefile.
8607 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
8609 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
8610 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
8612 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
8613 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
8614 (altivec_init_builtins): Same.
8615 (altivec_expand_unop_builtin): Return NULL_RTX on error.
8616 (altivec_expand_binop_builtin): Same.
8617 (altivec_expand_ternop_builtin): Same.
8620 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
8621 ("altivec_vctuxs"): Fix typo.
8622 ("altivec_vnmsubfp"): Same.
8623 ("altivec_dssall"): New.
8624 ("altivec_mfvscr"): New.
8625 ("altivec_dss"): New.
8626 ("altivec_lvsl"): New.
8627 ("altivec_lvsr"): New.
8628 ("altivec_dstt"): New.
8629 ("altivec_dstst"): New.
8630 ("altivec_dststt"): New.
8631 ("altivec_dst"): New.
8633 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
8634 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
8636 2002-01-09 Richard Henderson <rth@redhat.com>
8638 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
8640 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
8642 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
8644 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
8646 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
8648 2002-01-09 Kazu Hirata <kazu@hxi.com>
8650 * read-rtl.c: Fix formatting.
8652 * regclass.c: Likewise.
8653 * regrename.c: Likewise.
8654 * reg-stack.c: Likewise.
8655 * reload1.c: Likewise.
8656 * reload.c: Likewise.
8659 2002-01-09 Kazu Hirata <kazu@hxi.com>
8661 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
8662 to extract items in the expr_list chain.
8664 2002-01-09 Richard Henderson <rth@redhat.com>
8666 * config/vax/vax.c (vax_rtx_cost): Never abort.
8668 * config/vax/vax.h (REAL_ARITHMETIC): Define.
8670 2002-01-09 Jan Hubicka <jh@suse.cz>
8672 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
8674 2002-01-09 Richard Henderson <rth@redhat.com>
8676 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
8677 Unify code from various alternatives.
8679 2002-01-09 Richard Henderson <rth@redhat.com>
8681 * regrename.c (copy_value): Ignore the copy if the source register
8682 is present in the value chain with a narrower mode.
8684 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8686 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
8687 for the c4x target. Also improve layout.
8689 2002-01-09 Richard Henderson <rth@redhat.com>
8691 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
8692 * config/m32r/m32r.md (and ior xor splitters): Swap operands
8693 to match insn patterns.
8695 2002-01-09 Richard Henderson <rth@redhat.com>
8697 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
8698 (copyprop_hardreg_forward_1): Likewise.
8700 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
8702 * pa.md (decrement_and_branch_until_zero): Change predicate for
8703 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
8705 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
8707 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
8708 gets undefined. For Darwin.
8710 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8712 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
8714 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8716 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
8718 2002-01-08 Richard Henderson <rth@redhat.com>
8720 * regrename.c (copy_value): Ignore overlapping copies.
8722 2002-01-08 Richard Henderson <rth@redhat.com>
8724 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
8725 as needed to avoid shared structure.
8727 2002-01-08 Kazu Hirata <kazu@hxi.com>
8729 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
8732 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
8734 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
8735 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
8736 documentation of obsolete macros.
8737 * system.h: Poison these macros.
8738 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
8739 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
8740 config/c4x/c4x.h, config/clipper/clipper.h,
8741 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
8742 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
8743 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
8744 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
8745 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
8746 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
8747 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
8748 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
8749 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
8750 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
8751 config/sparc/sparc.h, config/stormy16/stormy16.h,
8752 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
8753 definitions and commented out definitions of obsolete macros.
8754 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
8755 of MAX_INT_TYPE_SIZE.
8757 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
8759 * config/s390/s390.c (s390_preferred_reload_class): Never
8760 return ADDR_REGS if it isn't a subset of the given class.
8761 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
8762 FP_REGS, but all superclasses as well.
8764 * config/s390/s390.c (s390_function_profiler): Fix thinko.
8766 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
8767 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
8768 must not be a const_int.
8770 2002-01-08 Richard Henderson <rth@redhat.com>
8772 * Makefile.in (toplev.o): Depend on options.h.
8773 (gcc.o): Depend on specs.h.
8775 2002-01-08 Jakub Jelinek <jakub@redhat.com>
8777 * expr.c (store_expr): Convert VOIDmode constants back to target's
8780 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8782 * doc/invoke.texi: Markup gcc as @command. Refer to
8783 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
8784 of http://gcc.gnu.org/thanks.html.
8786 2002-01-08 Dale Johannesen <dalej@apple.com>
8788 * config/rs6000/rs6000.md: Add missing int register
8789 target case to movdf_low.
8791 2002-01-08 Zack Weinberg <zack@codesourcery.com>
8793 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
8794 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
8795 (cppinit.o): Depend on except.h.
8796 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
8797 s-specs): New rules.
8799 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
8800 Don't create specs.h/options.h/gencheck.h here. Remove
8801 unnecessary variable settings from last argument of AC_OUTPUT.
8802 * config.in, configure: Regenerate.
8803 * intl.c: Hardcode package name as "gcc".
8805 * cppinit.c: Include except.h.
8806 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
8808 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
8809 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
8810 (!)USING_SJLJ_EXCEPTIONS.
8811 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
8813 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
8815 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
8816 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
8817 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
8818 documentation of obsolete macros.
8819 * system.h: Poison these macros.
8820 * config/d30v/d30v.h, config/ns32k/encore.h,
8821 config/stormy16/stormy16.h: Remove definitions and commented out
8822 definitions of obsolete macros.
8824 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
8826 * objc/objc-act.c (handle_class_ref): Mark the declaration of
8827 %sobjc_class_ref_%s as used - to prevent unwanted compiler
8830 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
8832 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
8833 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
8834 to insn adjusting stack/frame pointer.
8835 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
8836 accept operands that cause the insn to be non-splittable.
8838 2002-01-08 Graham Stott <grahams@redhat.com>
8840 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
8841 (C_TYPE_FIELDS_VOLATILE): Likewise.
8842 (C_TYPE_BEING_DEFINED): Likewise.
8843 (C_IS_RESERVED_WORD): Likewise.
8844 (C_TYPE_VARIABLE_SIZE): Likewise.
8845 (C_DECL_VARIABLE_SIZE): Likewise.
8846 (C_MISSING_PROTOTYPE_WARNED): Likewise.
8847 (C_SET_EXP_ORIGINAL_CODE): Likewise.
8848 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
8850 (C_DECL_ANTICIPATED): Likewise.
8851 (c_build_type_variant): Add parenthesis.
8853 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
8855 * gcc.c (option_map): Remove --version.
8856 (process_command): Handle -fversion following the GNU Coding
8857 Standards. Partially addresses PR other/704.
8859 2002-01-08 Graham Stott <grahams@redhat.com>
8861 * combine.c (combine_instructions): Fix typo.
8863 2002-01-08 Graham Stott <grahams@redhat.com>
8865 * debug.h: Use "tree" and "rtx" throughout.
8867 * debug.c: Likewise.
8869 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
8871 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
8872 constant pool, use the pool's version of the symbol instead.
8874 2002-01-07 Richard Henderson <rth@redhat.com>
8876 * regrename.c (find_oldest_value_reg): Ignore the value chain if
8877 the original register was copied in a mode with a fewer number of
8878 hard registers than the desired mode.
8879 (copyprop_hardreg_forward_1): Likewise.
8880 (debug_value_data): Fix loop test.
8881 * toplev.c (parse_options_and_default_flags): Reenable
8882 -fcprop-registers at -O1.
8884 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
8886 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
8887 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
8889 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
8892 * config/rs6000/rs6000.md: Add altivec predicate patterns.
8894 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
8896 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
8897 (pa_output_function_prologue): Output local label at the beginning of
8898 the prologue when profiling.
8899 (hppa_profile_hook): Use the local label rather than the function label.
8900 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
8902 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
8904 * config/rs6000/rs6000.c (print_operand): Remove extra space.
8905 (altivec_expand_unop_builtin): Fix thinko.
8906 (altivec_expand_binop_builtin): Same.
8907 (altivec_expand_ternop_builtin): Same.
8908 (altivec_expand_builtin): Same.
8910 2002-01-07 Richard Henderson <rth@redhat.com>
8912 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
8914 2002-01-07 Jason Merrill <jason@redhat.com>
8916 * unwind-dw2.c (execute_cfa_program): Use < again.
8918 2002-01-07 Jakub Jelinek <jakub@redhat.com>
8920 * predict.c (combine_predictions_for_insn): Avoid division by zero.
8922 2002-01-07 Jakub Jelinek <jakub@redhat.com>
8924 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
8925 Don't allow -1 - x -> ~x simplifications in the first pass.
8927 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
8929 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
8931 (altivec_expand_binop_builtin): Same.
8932 (altivec_expand_unop_builtin): Same.
8933 (print_operand): Fix typo.
8934 (bdesc_1arg): Add vupk* variants.
8936 * rs6000.h (rs6000_builtins): Add vupk* enums.
8938 * rs6000.md: Add altivec_vupk* variants.
8940 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
8942 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
8943 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
8944 and last update dates.
8946 2002-01-07 Janis Johnson <janis187@us.ibm.com>
8948 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
8950 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
8952 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
8953 * config/avr/avr.h (CPP_SPEC): Likewise.
8954 (LINK_SPEC): Likewise.
8955 (CRT_BINUTILS_SPECS): Likewise.
8956 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
8957 * doc/invoke.texi (AVR Options): Document them.
8959 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
8961 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
8964 2002-01-07 Graham Stott <grahams@redhat.com>
8966 * config/i386/i386.h: Update copyright date.
8967 (HALF_PIC_PTR): Add parenthesis.
8968 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
8969 (CONSTANT_ALIGNMENT): Add parenthesis.
8970 (DATA_ALIGNMENT): Likewise.
8971 (LOCAL_ALIGNMENT): Likewise.
8972 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
8973 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
8974 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
8975 (HARD_REGNO_NREGS): Add paranethesis.
8976 (VALID_SSE_REG_MODE): Whitespace.
8977 (VALID_MMX_REG_MODE): Whitespace.
8978 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
8979 (ix86_hard_regno_mode_ok): Add parenthesis.
8980 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
8981 (RETURN_IN_MEMORY): Whitespace.
8982 (N_REG_CLASSES): Add parenthesis.
8983 (INTEGER_CLASS_P): Add parenthesis and wrap.
8984 (FLOAT_CLASS_P): Likewise.
8985 (SSE_CLASS_P): Likewise.
8986 (MMX_CLASS_P): Likewise.
8987 (MAYBE_INTEGER_CLASS_P): Likewise.
8988 (MAYBE_FLOAT_CLASS_P): Likewise.
8989 (MAYBE_SSE_CLASS_P): Likewise.
8990 (MAYBE_MMX_CLASS_P): Likewise.
8991 (Q_CLASS_P): Likewise.
8992 (GENERAL_REGNO_P): Uppercase macro parameter.
8993 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
8994 (FP_REGNO_P): Likewise.
8995 (ANY_FP_REGNO_P): Uppercase macro parameter.
8996 (SSE_REGNO_P): Likewise.
8997 (SSE_REGNO): Likewise.
8998 (SSE_REG_P): Likewise.
8999 (SSE_FLOAT_MODE_P): Likewise.
9000 (MMX_REGNO_P): Likewise.
9001 (MMX_REG_P):Likewise.
9002 (STACK_REG_P): Likewise.
9003 (NON_STACK_REG_P): Likewise.
9004 (STACK_TOP_P): Likewise.
9005 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
9006 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
9007 (SECONDARY_MEMORY_NEEDED): Likewise.
9008 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
9009 (MD_ASM_CLOBBERS): Whitespace and wrap.
9010 (MUST_PASS_IN_STACK): Whitespace and wrap.
9011 (RETURN_POPS_ARGS): Add parenthesis.
9012 (INIT_CUMULATIVE_ARGS): Likewise.
9013 (FUNCTION_ARG): Likewise.
9014 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
9015 (SETUP_INCOMING_VARARGS): Likewise.
9016 (BUILD_VA_LIST_TYPE): Add parenthesis.
9017 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
9019 (EXPAND_BUILTIN_VA_ARG): Likewise.
9020 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
9021 (INITIALIZE_TRAMPOLINE): Add parenthesis.
9022 (INITIAL_ELIMINATION_OFFSET): Likewise.
9023 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
9024 (REGNO_OK_FOR_BASE_P): Likewise.
9025 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
9026 (REGNO_OK_FOR_DIREG_P): Likewise.
9027 (REG_OK_FOR_INDEX_P): Whitespace.
9028 (REG_OK_FOR_BASE_P): Whitespace.
9029 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
9031 (FIND_BASE_TERM): Fix typo.
9032 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
9033 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
9034 (SYMBOLIC_CONST; Whitespace.
9035 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
9036 (ENCODE_SECTION_INFO): Whitespace.
9037 (FINALIZE_PIC): Remove do { ... } while (0).
9038 (PROMOTE_MODE): Wrap in do { ... } while (0).
9039 (CONST_COSTS): Whitespace.
9040 (RTX_COSTS): Add paramethesis, whitespace and wrap.
9041 (REGISTER_MOVE_COST): Add parenthesis.
9042 (MEMORY_MOVE_COST): Likewise.
9043 (EXTRA_CC_MODES): Whitespace.
9044 (SELECT_CC_MODE): Add parenthesis and whitespace.
9045 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
9046 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
9047 (ASM_OUTPUT_LABEL): Add paramethesis.
9048 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
9049 (ASM_OUTPUT_REG_POP): Likewise.
9050 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
9051 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9053 * config/i386/i386.c: Update copyright.
9054 (CHECK_STACK_LIMIT): Add parenthesis.
9055 (AT_BP): Uppercase macro parameter.
9056 (x86_64_int_parameter_registers): Constify.
9057 (x86_64_int_return_registers): Likewise.
9058 (ix86_compare_op0): Use rtx.
9059 (construct_container): Constify INTREG parameter.
9060 (function_arg): Use rtx.
9062 * diagnostic.h: Update copyright date.
9063 (output_buffer_state): Add parenthesis.
9064 (output_buffer_format_args): Likewise.
9066 * combine.c (combine_instructions): Replace XEXP (links, 0)
9069 2002-01-06 H.J. Lu <hjl@gnu.org>
9071 * cfgcleanup.c (thread_jump): Fix 2 typos.
9073 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
9075 * config.gcc: Add support for --enable-altivec.
9077 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
9079 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
9081 2002-01-06 Jakub Jelinek <jakub@redhat.com>
9083 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
9084 __objc_class_name_*.
9086 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
9088 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
9090 2002-01-06 Richard Henderson <rth@redhat.com>
9092 * reorg.c (emit_delay_sequence): Remove death notes, not merely
9093 nop them out. Increment label reference count for REG_LABEL.
9094 (fill_slots_from_thread): Frob label reference count around
9095 delete_related_insns.
9097 2002-01-05 Richard Henderson <rth@redhat.com>
9099 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
9102 2002-01-05 Richard Henderson <rth@redhat.com>
9104 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
9105 * integrate.c (output_inline_function): Likewise.
9106 * toplev.c (rest_of_compilation): Do it here instead. Move call
9107 to remove_unnecessary_notes after emitting abstract instance.
9108 Force an emitted nested function to have its parent emited as well.
9109 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
9111 (rtl_for_decl_location): Do not look at reload data structures
9112 before reload has run.
9114 2002-01-05 Kazu Hirata <kazu@hxi.com>
9116 * cse.c: Fix formatting.
9117 * dwarf2asm.c: Likewise.
9118 * dwarf2out.c: Likewise.
9119 * explow.c: Likewise.
9120 * expmed.c: Likewise.
9121 * function.c: Likewise.
9123 * gencheck.c: Likewise.
9124 * genrecog.c: Likewise.
9125 * ggc-common.c: Likewise.
9126 * ggc-page.c: Likewise.
9127 * global.c: Likewise.
9129 2002-01-05 Kazu Hirata <kazu@hxi.com>
9131 * combine.c: Fix formatting.
9133 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
9136 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
9138 2002-01-05 David Edelsohn <edelsohn@gnu.org>
9140 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
9141 as 1 for __powerpc64__ as well.
9143 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
9145 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
9148 2002-01-05 Daniel Berlin <dan@dberlin.org>
9150 * lcm.c: Revert change, due to performance regression it causes on
9151 SPEC because it's slightly more conservative (sigh, I hate
9154 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
9156 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
9158 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
9160 * doc/cppinternals.texi: Update.
9162 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
9164 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
9165 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
9167 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
9168 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
9169 kludge for pre-october-14th mmix versions to handle new-found bug
9170 with PUSHJ/PUSHGO and the register stack.
9171 * config/mmix/mmix.h (struct machine_function): Rename member
9172 has_call_value_without_parameters to has_call_without_parameters.
9173 All referers changed.
9174 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
9175 TARGET_MASK_BRANCH_PREDICT): New macros.
9176 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
9177 -mno-reg-stack-fill-bug-workaround.
9178 * config/mmix/mmix.md ("call"): Set struct machine member
9179 has_call_without_parameters.
9181 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
9183 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
9185 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
9187 * cfgcleanup.c: Include tm_p.h
9188 (mark_effect): Fix handling of hard register; fix handling of SET
9190 2002-01-04 Kazu Hirata <kazu@hxi.com>
9192 * config/h8300/h8300.md (anonymous patterns): Check that
9193 operands are registers before using REGNO on them.
9195 2002-01-03 Roland McGrath <roland@frob.com>
9197 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
9199 2002-01-04 Jakub Jelinek <jakub@redhat.com>
9201 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
9202 * c-common.h (genrtl_expr_stmt_value): Likewise.
9203 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
9204 (expand_expr_stmt_value): Add maybe_last argument.
9205 Don't warn about statement with no effect if it is the last statement
9206 in expression statement.
9207 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
9208 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
9209 expand_expr_stmt_value.
9210 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
9211 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
9212 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
9213 as maybe_last to expand_expr_stmt_value.
9215 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
9217 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
9218 be passed in, do not build it.
9219 (c_begin_if_stmt): New function.
9220 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
9221 * c-common.h (c_expand_start_cond): Update prototype.
9222 (c_begin_if_stmt): Prototype new function.
9223 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
9224 * c-parse.in (if_prefix): Use c_begin_if_stmt,
9225 c_begin_while_stmt and c_finish_while_stmt_cond.
9227 2002-01-04 William Cohen <wcohen@redhat.com>
9229 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
9230 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
9231 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
9232 * config/pa/som.h (ASM_FILE_START): Likewise.
9234 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
9236 * lcm.c: Include df.h.
9237 Add available_transfer_function prototype.
9238 (compute_available): Rework to use iterative dataflow framework.
9239 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
9240 with bb_info in df.h
9241 (available_transfer_function): New function.
9243 * Makefile.in (lcm.o): add df.h to dependencies.
9245 2002-01-04 Richard Henderson <rth@redhat.com>
9247 * config/alpha/alpha.c (some_operand): Accept HIGH.
9248 (input_operand): Likewise; accept simple references to globals.
9249 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
9250 (alpha_const_double_ok_for_letter_p): Likewise.
9251 (alpha_extra_constraint): Likewise.
9252 (alpha_preferred_reload_class): Likewise. Do not force
9253 symbolic constants to memory.
9254 (alpha_legitimate_address_p): Accept simple references
9255 to small_symbolic_operand.
9256 (alpha_legitimize_address): New arg scratch. Be prepared to be
9257 called when no_new_pseudos. Emit simple symbolic references.
9258 Split integers into low, high, and rest.
9259 (alpha_expand_mov): Use alpha_legitimize_address.
9260 (some_small_symbolic_mem_operand): New.
9261 (split_small_symbolic_mem_operand): New.
9262 * config/alpha/alpha-protos.h: Update.
9263 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
9264 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
9265 (EXTRA_CONSTRAINT): Likewise.
9266 (PREFERRED_RELOAD_CLASS): Likewise.
9267 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
9268 (PREDICATE_CODES): Update.
9269 * config/alpha/alpha.md: New post-reload splitters to convert
9270 simplfied symbolic operands to the form that references $29.
9271 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
9272 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
9274 2002-01-03 Richard Henderson <rth@redhat.com>
9276 * local-alloc.c (function_invariant_p): Update commentary.
9278 2002-01-04 H.J. Lu <hjl@gnu.org>
9280 * toplev.c (rest_of_compilation): Fix a typo when calling
9283 2002-01-03 Kazu Hirata <kazu@hxi.com>
9285 * c-common.c: Fix formatting.
9286 * diagnostic.c: Likewise.
9287 * doloop.c: Likewise.
9288 * dwarf2out.c: Likewise.
9290 2002-01-03 Kazu Hirata <kazu@hxi.com>
9292 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
9293 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
9295 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
9297 * cpperror.c: Update comments and copyright.
9298 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
9299 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
9301 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
9303 * collect2.c (main): Use strcmp when testing for "-shared".
9305 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
9307 * cppmacro.c: Don't include intl.h. Update comments.
9308 (new_number_token): Allocate enough buffer for 64-bit unsigned
9309 integers; update prototype.
9310 * cppmain.c: Update comments.
9312 2002-01-03 William Cohen <wcohen@redhat.com>
9314 * function.h (struct function): Add profile.
9315 (current_function_profile): New.
9316 doc/extend.texi: Update documentation.
9317 * final.c (final_start_function): Use current_function_profile
9318 instead of profile_flag.
9319 (profile_after_prologue): Likewise.
9320 * function.c (expand_function_start): Likewise.
9321 (expand_function_start): Likewise.
9322 * config/alpha/alpha.c (direct_call_operand):
9323 (alpha_does_function_need_gp): Likewise.
9324 (alpha_expand_prologue): Likewise.
9325 * config/arm/arm.c (arm_expand_prologue): Likewise.
9326 thumb_expand_prologue: Likewise.
9327 * config/d30v/d30v.c (d30v_stack_info): Likewise.
9328 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
9329 (fr30_expand_prologue): Likewise.
9330 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
9331 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
9332 * config/i386/i386.h (FINALIZE_PIC): Likewise.
9333 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
9334 * config/i960/i960.c (i960_output_function_prologue): Likewise.
9335 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
9336 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
9337 (m32r_expand_prologue): Likewise.
9338 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
9339 (m88k_expand_prologue): Likewise.
9340 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
9341 * config/mips/mips.c (compute_frame_size): Likewise.
9342 (mips_expand_prologue): Likewise.
9343 (mips_can_use_return_insn): Likewise.
9344 * config/pa/elf.h (ASM_FILE_START): Likewise.
9345 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
9346 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
9347 * config/pa/som.h (ASM_FILE_START): Likewise.
9348 * config/romp/romp.c (romp_using_r14): Likewise.
9349 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
9350 (rs6000_stack_info): Likewise.
9351 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9352 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
9353 * config/v850/v850.c (compute_register_save_size): Likewise.
9355 2002-01-03 Jakub Jelinek <jakub@redhat.com>
9357 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
9358 gen_lowpart_common fails, use gen_lowpart_SUBREG.
9360 2002-01-03 Turly O'Connor <turly@apple.com>
9362 * darwin.c (machopic_output_possible_stub_label): Don't generate
9363 stub routines for pseudo-stubs which we've just defined.
9365 2002-01-03 Kazu Hirata <kazu@hxi.com>
9367 * builtins.c: Fix formatting.
9368 * c-typeck.c: Likewise.
9369 * combine.c: Likewise.
9373 2002-01-03 Andreas Schwab <schwab@suse.de>
9375 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
9376 and return true if _cpp_push_next_buffer pushed a new include
9378 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
9379 _cpp_pop_file_buffer did not push a new file.
9380 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
9382 2002-01-02 Eric Christopher <echristo@redhat.com>
9384 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
9385 FIND_REG_INC_NOTE call. Update copyright.
9386 * loop.c (canonicalize_condition): Ditto.
9387 * reorg.c (delete_scheduled_jump): Ditto.
9389 2002-01-03 Kazu Hirata <kazu@hxi.com>
9391 * gcse.c: Fix formatting.
9393 2002-01-03 Graham Stott <grahams@redhat.com>
9395 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
9396 forward defs for struct tags rtx_def, union_tree, rtvec_def
9397 also output corresponding typedefs for rtx, tree, and rtvec.
9399 * system.h: Move forward defs for struct tags rtx_def, union_tree,
9400 rtvec_def along with corresponding typedefs for rtx, tree, and
9401 rtvec to config.h, hconfig.h, tconfig.h.
9403 2002-01-03 Graham Stott <grahams@redhat.com>
9405 * tree.h: Update copyright date.
9406 (IS_EXPR_CODE_CLASS): Add parenthesis.
9407 (TREE_SET_CODE): Add whitespace.
9408 (TREE_CHECK): Add parenthesis.
9409 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
9410 (CST_OR_CONSTRUCTOR_CHECK):
9411 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
9412 (TREE_SYMBOL_REFERENCED): Whitespace.
9413 (INT_CST_LT): Likewise.
9414 (INT_CST_LT_UNSIGNED): Likewise.
9415 (tree_real_cst): Unwrap comment.
9416 (tree_string): Likewise.
9417 (tree_complex): Likewise.
9418 (IDENTIFIER_POINTER): correct cast.
9419 (SAVE_EXPR_CONTEXT): Whitespace.
9420 (EXPR_WFL_FILENAME_NODE): Likewise.
9421 (EXPR_WFL_FILENAME): Remove parenthesis.
9422 (DECL_ORIGIN): Add parenthesis.
9423 (DECL_FROM_INLINE): Use NULL_TREE.
9424 (build_int_2): Whitespace.
9425 (build_type_variant): Add parenthesis.
9427 * gcc/jcf-parse.c: Update copyright date.
9428 (yyparse): Constify resource_filename.
9430 2002-01-03 Graham Stott <grahams@redhat.com>
9432 * rtl.h: Update copyright date.
9433 (RTL_CHECK1): Wrap long line.
9434 (RTL_CHECK2): Likewise.
9435 (RTL_CHECKC1): Wrap long line and whitespace.
9436 (RTL_CHECKC2): Likewise.
9437 (XWINT): Whitespace.
9443 (XBITMAP): Likewise.
9454 (X0BITMAP): Likewise.
9456 (X0BBDEF): Likewise.
9457 (X0ADVFLAGS): Likewise.
9458 (X0CSELIB): Likewise.
9459 (X0MEMATTR): Likewise.
9467 (XCBITMAP): Likewise.
9469 (XCBBDEF): Likewise.
9470 (XCADVFLAGS): Likewise.
9471 (XCCSELIB): Likewise.
9473 (INSN_UID): Likewise.
9474 (PREV_INSN): Likewise.
9475 (PATTERN): Likewise.
9476 (INSN_CODE): Likewise.
9477 (PUT_REG_NOTE_KIND): Likewise.
9478 (CODE_LABEL_NUMBER): Likewise.
9479 (NOTE_SOURCE_FILE): Likewise.
9480 (NOTE_BLOCK): Likewise.
9481 (NOTE_EH_HANDLER): Likewise.
9482 (NOTE_RANGE_INFO): Likewise.
9483 (NOTE_LIVE_INFO): Likewise.
9484 (NOTE_BASIC_BLOCK): Likewise.
9485 (NOTE_EXPECTED_VALUE): Likewise.
9486 (NOTE_LINE_NUMBER): Likewise.
9487 (LABEL_NAME): Likewise.
9488 (LABEL_NUSES): Likewise.
9489 (LABEL_ALTERNATE_NAME): Likewise.
9490 (ADDRESSOF_DECL): Likewise.
9491 (JUMP_LABEL): Likewise.
9492 (LABEL_NEXTREF): Likewise.
9494 (ORIGINAL_REGNO: Likewise.
9495 (HARD_REGISTER_NUM_P): Add parenthesis.
9496 (SUBREG_REG): Whitespace.
9497 (SUBREG_BYTE): Likewise.
9498 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
9499 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
9500 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
9501 (ASM_OPERANDS_INPUT_VEC): Likewise.
9502 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
9503 (ASM_OPERANDS_INPUT): Likewise.
9504 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
9505 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
9506 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
9507 (ASM_OPERANDS_INPUT_MODE): Likewise.
9508 (ASM_OPERANDS_SOURCE_FILE): Likewise.
9509 (ASM_OPERANDS_SOURCE_LINE): Likewise.
9510 (MEM_SET_IN_STRUCT_P): Minor reformat.
9511 (TRAP_CONDITION): Whitespace.
9512 (TRAP_CODE): Likewise.
9513 (COND_EXEC_TEST): Likewise.
9514 (COND_EXEC_CODE): Likewise.
9515 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
9516 (PHI_NODE_P): Add parenthesis.
9517 (plus_constant): Whitespace and add parenthesis.
9519 2002-01-03 Kazu Hirata <kazu@hxi.com>
9521 * config/avr/avr.c: Fix comment typos.
9522 * config/c4x/c4x.md: Likewise.
9523 * config/dsp16xx/dsp16xx.h: Likewise.
9524 * config/dsp16xx/dsp16xx.md: Likewise.
9525 * config/i386/i386.md: Likewise.
9526 * config/ia64/ia64.c: Likewise.
9527 * config/m32r/m32r.h: Likewise.
9528 * config/m68hc11/m68hc11.md: Likewise.
9529 * config/mmix/mmix.c: Likewise.
9530 * config/mn10200/mn10200.c: Likewise.
9531 * config/romp/romp.c: Likewise.
9532 * config/sh/sh.c: Likewise.
9533 * config/stormy16/stormy16.c: Likewise.
9534 * config/stormy16/stormy16.h: Likewise.
9535 * config/stormy16/stormy16.md: Likewise.
9537 2002-01-03 Graham Stott <grahams@redhat.com>
9539 * loop.h: Update copyright date.
9540 (LOOP_MOVABLES): Fix typo.
9541 (LOOP_REGS): Likewise.
9542 (LOOP_IVS): Likewise.
9544 2002-01-03 Graham Stott <grahams@redhat.com>
9546 * cppinit.c: Update copyright date.
9547 Don't include output.h
9548 * Makefile.in: Update copyright date.
9551 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
9554 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
9555 (-pthread) Add to RS/6000 options.
9557 2002-01-02 Kazu Hirata <kazu@hxi.com>
9559 * except.c: Fix comment typos.
9561 * varasm.c: Likewise.
9562 * doc/tm.texi: Fix a typo.
9564 2002-01-02 Jakub Jelinek <jakub@redhat.com>
9566 * c-typeck.c (output_init_element): Allow initializing static storage
9567 duration objects with compound literals.
9569 2002-01-02 Richard Henderson <rth@redhat.com>
9571 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
9574 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9576 * gcc.c (default_compilers): Const-ify.
9577 * mips-tdump.c (stab_names): Likewise.
9578 * mips-tfile.c (map_coff_types, map_coff_storage,
9579 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
9580 pseudo_ops_t, pseudo_ops): Likewise.
9581 * protoize.c (default_include): Likewise
9583 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
9584 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
9585 Add array size in declaration.
9586 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
9587 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
9588 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
9589 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
9590 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
9591 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
9592 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
9593 emtens, make_nan): Const-ify.
9594 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
9595 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
9597 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
9599 * config.gcc (ia64-*-*): Set extra_headers.
9600 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
9601 * config/alpha/t-osf: Remove.
9602 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
9604 2002-01-02 David Edelsohn <edelsohn@gnu.org>
9606 * config/rs6000/t-aix43: Revert previous change.
9608 2002-01-02 Jason Merrill <jason@redhat.com>
9610 * c-decl.c (c_expand_body): Call outlining_inline_function when
9611 emitting an inline function out of line.
9613 2002-01-02 Richard Henderson <rth@redhat.com>
9615 * dwarf2out.c (limbo_die_node): Add created_for member.
9616 (new_die): New argument created_for. Update all callers.
9617 (mark_limbo_die_list): New.
9618 (dwarf2out_init): Register limbo_die_list as a root.
9619 (dwarf2out_finish): Force insert limbo dies into their function
9622 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
9625 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
9627 2002-01-02 Kazu Hirata <kazu@hxi.com>
9629 * config/h8300/fixunssfsi.c: Update copyright.
9632 * config/h8300/h8300.c: Update copyright.
9635 2002-01-02 Kazu Hirata <kazu@hxi.com>
9637 * config/romp/romp.c: Fix comment formatting.
9638 * config/romp/romp.h: Likewise.
9639 * config/romp/romp.md: Likewise.
9640 * config/s390/s390.c: Likewise.
9641 * config/stormy16/stormy16.c: Likewise.
9642 * config/stormy16/stormy16.h: Likewise.
9644 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
9646 * c-common.h (genrtl_expr_stmt_value): Declare.
9647 * c-semantics.c (genrtl_goto_stmt): Redirect to...
9648 (genrtl_goto_stmt_value): ... this new function. Pass new
9649 argument down to expand_expr_stmt_value, taking
9650 TREE_ADDRESSABLE into account.
9651 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
9652 STMT_EXPR as addressable, i.e., one whose result we want.
9653 * expr.c (expand_expr): Don't save expression statement value
9654 of labeled_blocks or loop_exprs.
9655 * stmt.c (expand_expr_stmt): Redirect to...
9656 (expand_expr_stmt_value): ... this new function. Use new
9657 argument to tell whether to save expression value.
9658 (expand_end_stmt_expr): Reset last_expr_type and
9659 last_expr_value if we don't have either.
9660 * tree-inline.c (declare_return_variable): Mark its use
9661 statement as addressable.
9662 * tree.h: Document new use of TREE_ADDRESSABLE.
9663 (expand_expr_stmt_value): Declare.
9665 2002-01-01 Tom Rix <trix@redhat.com>
9667 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
9668 rs6000_emit_allocate_stack.
9670 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
9672 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
9673 ${srcdir}/ginclude/ to every entry in extra_headers.
9674 * configure: Regenerate.
9675 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
9676 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
9677 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
9678 * ginclude/proto.h: Rename to config/convex/proto.h.
9680 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9682 * attribs.c (handle_vector_size_attribute): Use host_integerp
9683 and tree_int_cst; remove warnings.
9684 * caller-save.c (insert_restore): Add cast to get rid of warning.
9685 (insert_save): Likewise.
9686 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
9687 * regmove.c (find_matches): Add temporary var to kill a warning.
9689 2002-01-01 Douglas B Rupp <rupp@gnat.com>
9691 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
9692 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
9693 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
9694 (vms-dwarf2eh.o): Add Makefile rule.
9695 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
9696 * config/alpha/vms-dwarf2eh.asm: New file.
9698 * gcc.c (delete_if_ordinary): Delete all versions.
9700 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
9702 * config/mmix/mmix.md: Update FIXME to not mention
9704 (MMIX_rJ_REGNUM): New define_constants constant.
9705 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
9706 "*movdicc_real"): Adjust contraints formatting.
9707 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
9708 for branch prediction.
9709 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
9711 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
9712 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
9713 number. Delete related FIXMEs.
9714 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
9715 from number to MMIX_rJ_REGNUM.
9716 (TARGET_MASK_BRANCH_PREDICT): New.
9717 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
9718 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
9719 value. Add -mbranch-predict and -mno-branch-predict.
9720 (TARGET_VERSION): Drop date.
9721 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
9722 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
9723 for finding out global symbols.
9724 (mmix_asm_output_labelref): Revert condition for global symbol.
9725 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
9726 (mmix_print_operand_punct_valid_p): A '+' is valid.
9728 See ChangeLog.6 for earlier changes.