1 2002-04-05 David S. Miller <davem@redhat.com>
3 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
4 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
5 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
6 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
8 2002-04-05 David S. Miller <davem@redhat.com>
10 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
11 are not going to emit return instructions, emit at least a nop
12 for the sake of sane backtraces.
14 2002-04-05 Richard Henderson <rth@redhat.com>
16 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
18 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
20 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
22 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
24 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
25 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
26 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
28 2002-04-05 Andreas Schwab <schwab@suse.de>
30 * c-convert.c: Include c-common.h.
31 * Makefile.in (c-convert.o): Updated.
33 2002-04-05 Jakub Jelinek <jakub@redhat.com>
35 * mklibgcc.in: Use separate libgcc.map for each multilib.
36 * Makefile.in (distclean): Don't remove libgcc.map here.
38 2002-04-05 Jakub Jelinek <jakub@redhat.com>
40 * Makefile.in (s-mlib): Handle --disable-multilib by separate
41 genmultilib invocation.
43 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
45 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
46 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
47 to num_gprs for symmetry.
48 * config/mips/mips.c: Adjust accordingly.
50 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
52 * c-common.c (truthvalue_conversion): Rename, update.
53 * c-common.h (c_common_truthvalue_conversion): New.
54 * c-convert.c (convert): Update.
55 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
56 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
57 * c-typeck.c (build_binary_op, build_unary_op,
58 build_conditional_expr): Update.
59 * fold-const.c (constant_boolean_node, fold): Use langhook.
60 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
61 * langhooks.h (struct lang_hooks): New hook.
62 * stmt.c (expand_decl_cleanup): Use langhook.
63 * tree.h (truthvalue_conversion): Remove.
65 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
67 2002-04-05 Alan Modra <amodra@bigpond.net.au>
69 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
70 Add rules to make null object file.
72 2002-04-04 Jim Blandy <jimb@redhat.com>
74 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
75 macro formal parameter names.
77 2002-04-04 David S. Miller <davem@redhat.com>
79 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
81 2002-04-04 Richard Henderson <rth@redhat.com>
84 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
85 Support copies into and out of memory. Don't accept allows_reg
86 and allows_mem as gospel.
88 2002-04-04 Richard Henderson <rth@redhat.com>
91 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
92 (write_dependence_p): Likewise.
94 2002-04-04 Richard Henderson <rth@redhat.com>
96 * predict.c (estimate_bb_frequencies): Do frequency calculation
97 with a volatile temporary.
99 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
101 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
103 2002-04-04 Jakub Jelinek <jakub@redhat.com>
106 * final.c (final_start_function): Don't bump profile_label_no here...
107 (final_end_function): ...but here.
109 2002-04-04 Jakub Jelinek <jakub@redhat.com>
111 * config/sparc/sparc.md (pic): New attribute.
112 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
114 (split after do_builtin_setjmp_setup): New.
116 2002-04-04 Jakub Jelinek <jakub@redhat.com>
119 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
122 2002-04-04 Jakub Jelinek <jakub@redhat.com>
124 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
125 UNITS_PER_WORD for zero sized aggregates.
127 2002-04-03 David S. Miller <davem@redhat.com>
129 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
130 one-character spec for this, just use %(link_gcc_c_sequence).
132 2002-04-03 David S. Miller <davem@redhat.com>
134 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
137 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
139 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
140 (DWARF_FRAME_RETURN_COLUMN): Move.
141 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
142 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
143 * pa.c (except.h, predict.h): Include.
145 (store_reg_modify, set_reg_plus_d): Revise prototypes.
146 (output_ascii): Add cast.
147 (store_reg_modify): Revise to add frame notes.
148 (set_reg_plus_d): Likewise.
149 (compute_frame_size): Include space for eh data registers in frame if
150 the current function calls eh_return.
151 (hppa_expand_prologue): Ensure register %r2 is saved if the current
152 function calls eh_return. Save eh data registers if the current
153 function calls eh_return. Fix code to add frame notes. Emit
154 blockage to prevent insns with frame notes being scheduled in the
156 (hppa_expand_epilogue): Restore eh data registers and do final stack
157 adjustment if the current function calls eh_return. Don't add frame
159 (output_call): Revise for change in length of call insn. Don't do
160 return pointer adjustment for an unconditional jump in the delay slot
161 of a call when using frame notes.
162 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
163 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
164 (ARG_POINTER_CFA_OFFSET): Define.
165 * pa.md (return_external_pic): New pattern.
166 (prologue): Correct formatting. Use return_external_pic if current
167 function calls eh_return.
168 (call_internal_symref, call_value_internal_symref,
169 sibcall_internal_symref, sibcall_value_internal_symref): Change default
170 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
172 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
174 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
175 list of targets to check using "nop" insn.
176 * configure: Rebuilt.
178 2002-04-04 Alan Modra <amodra@bigpond.net.au>
180 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
182 2002-04-03 David S. Miller <davem@redhat.com>
184 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
185 library sequence passed to the linker.
186 (LINK_COMMAND_SPEC): Use it.
187 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
188 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
189 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
191 2002-04-03 Jason Merrill <jason@redhat.com>
193 * except.c (struct eh_status): Remove protect_list.
194 (begin_protect_partials, end_protect_partials): Remove.
195 (add_partial_entry): Remove.
196 * except.h: Remove prototypes.
198 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
199 expand_decl_cleanup_eh.
202 * tree.h (CLEANUP_EH_ONLY): New macro.
203 * stmt.c (expand_decl_cleanup_eh): New fn.
204 (expand_cleanups): Check CLEANUP_EH_ONLY.
205 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
206 Use expand_decl_cleanup_eh.
207 (expand_stmt): Adjust.
208 * c-common.h: Adjust prototype.
210 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
212 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
213 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
214 (cris_target_asm_function_epilogue): Ditto.
215 (cris_initial_frame_pointer_offset): Ditto.
216 (cris_simple_epilogue): Ditto.
217 (cris_expand_builtin_va_arg): Variable-size types come in
220 2002-04-03 David S. Miller <davem@redhat.com>
222 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
224 (set_fast_math): Correct 'fsr' type.
226 2002-04-03 Richard Henderson <rth@redhat.com>
229 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
230 * toplev.c (check_global_declarations): Use it.
231 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
232 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
233 (LANG_HOOKS_DECLS): Add it.
234 * langhooks.c (lhd_warn_unused_global_decl): New.
235 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
236 * c-objc-common.c (c_warn_unused_global_decl): New.
237 * c-tree.h (c_warn_unused_global_decl): Declare.
238 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
240 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
242 * langhooks-def.h (lhd_set_decl_assembler_name,
243 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
244 (LANG_HOOKS_INITIALIZER): Update.
245 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
246 * langhooks.h (struct lang_hooks): New hook.
247 * tree.c (set_decl_assembler_name): Move to langhooks.c.
248 (lang_set_decl_assembler_name): Remove.
249 (init_obstacks): Don't set hook.
250 (decl_assembler_name): New function.
251 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
252 (decl_assembler_name): New.
253 (lang_set_decl_assembler_name): Remove.
255 2002-04-03 Jakub Jelinek <jakub@redhat.com>
257 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
258 works properly with .hidden symbols.
259 * configure: Rebuilt.
260 * config.in: Rebuilt.
261 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
262 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
263 properly with .hidden symbols.
265 2002-04-03 Jakub Jelinek <jakub@redhat.com>
268 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
271 2002-04-03 Richard Henderson <rth@redhat.com>
274 * sched-rgn.c (sets_likely_spilled): New.
275 (sets_likely_spilled_1): New.
276 (add_branch_dependences): Use it.
278 2002-04-02 Richard Henderson <rth@redhat.com>
281 * loop.h (LOOP_FIRST_PASS): New.
282 * loop.c (strength_reduce): Mind it when deciding to unroll.
283 * toplev.c (rest_of_compilation): Set it.
285 2002-04-02 David S. Miller <davem@redhat.com>
287 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
288 mems_ok_for_ldd_peep when the order of the loads being examined
290 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
291 existing comment to increase comprehension of this situation.
293 2002-04-02 Zack Weinberg <zack@codesourcery.com>
295 * config/sh/sh.md: Don't use union real_extract.
297 2002-04-02 Richard Henderson <rth@redhat.com>
299 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
301 2002-04-02 David O'Brien <obrien@FreeBSD.org>
303 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
304 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
305 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
306 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
307 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
308 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
309 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
310 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
311 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
312 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
313 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
314 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
315 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
316 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
317 Include as many configury headers via tm_file as possible. This
318 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
319 * config/openbsd-oldgas.h: New file.
320 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
321 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
322 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
323 config/i386/i386-coff.h, config/i386/i386-interix.h,
324 config/i386/iscdbx.h, config/i386/linux-aout.h,
325 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
326 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
327 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
328 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
329 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
330 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
331 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
332 config/i386/vxi386.h: Do not directly include configury headers.
333 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
334 Directly include configury headers that are no longer automatically
335 included by the above headers.
336 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
337 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
338 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
339 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
340 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
341 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
342 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
343 (TARGET_VERSION): Define.
344 * config/i386/beos-elf.h, config/i386/freebsd.h,
345 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
346 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
347 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
348 config/i386/sco5.h, config/i386/sysv4.h
349 (TARGET_VERSION): Do not need to protect.
350 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
351 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
352 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
353 config/i386/i386-interix.h, config/i386/linux-aout.h,
354 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
355 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
356 (YES_UNDERSCORES): Do not define - not needed.
357 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
358 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
359 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
360 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
361 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
362 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
363 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
364 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
366 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
367 Richard Henderson <rth@redhat.com>
370 * function.c (assign_temp): Accept either type or decl argument.
371 Detect variables whose size is too large to fit into an integer.
372 * stmt.c (expand_decl): Pass the decl, not the type.
374 2002-04-02 David O'Brien <obrien@FreeBSD.org>
376 * protoize.c: Match include directory usage with cppdefault.c.
378 2002-04-03 Jeffrey A Law (law@redhat.com)
379 Hans-Peter Nilsson <hp@bitrange.com>
381 * combine.c (simplify_comparison): Avoid narrowing a comparison
382 with a paradoxical subreg when doing so would drop signficant bits.
384 2002-04-02 Steve Ellcey <sje@cup.hp.com>
386 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
387 if POINTERS_EXTEND_UNSIGNED is defined.
389 2002-04-02 Richard Henderson <rth@redhat.com>
392 * local-alloc.c (contains_replace_regs): LO_SUM may contain
395 2002-04-02 Richard Henderson <rth@redhat.com>
397 * doc/standards.texi: Document required freestanding libc entry points.
399 2002-04-02 Alan Modra <amodra@bigpond.net.au>
401 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
402 associated splitter. Remove MQ constraint.
403 (ctrdi_internal4): Correct CCmode clobber.
405 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
407 * milli64.S ($$dyncall): New function.
408 * t-linux (LIB1ASMFUNCS): Revise module list.
409 (LIB1ASMSRC): Use pa/milli64.S.
411 2002-04-02 Richard Henderson <rth@redhat.com>
413 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
414 rename solaris_sys_varargs_h.
416 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
418 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
419 the same mode as its component.
421 2002-04-02 Richard Henderson <rth@redhat.com>
424 * final.c (this_is_asm_operands): Export.
425 * output.h (this_is_asm_operands): Declare.
426 * config/i386/i386.c (print_operand): Error odd asm operands.
428 2002-04-02 Richard Henderson <rth@redhat.com>
431 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
433 2002-04-01 Richard Henderson <rth@redhat.com>
436 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
437 * fixinc/fixincl.x: Rebuild.
439 2002-04-01 Richard Henderson <rth@redhat.com>
441 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
442 (atomic_alloc, atomic_free): New.
443 (SIZE, MASK_FOR, PTR_IN): New.
444 (emergency_reg_state, emergency_reg_state_free): New.
445 (emergency_labeled_state, emergency_labeled_state_free): New.
446 (reg_state_alloced, labeled_state_alloced): New.
447 (alloc_reg_state, free_reg_state): New.
448 (alloc_label_state, free_label_state, free_label_states): New.
449 (push, pop, dup_state_stack, free_state_stack): Use them.
450 (desc_label_state): Likewise.
451 (uw_frame_state_for): Free label states and state stack.
452 (uw_update_reg_address): Eliminate warnings.
454 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
456 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
457 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
459 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
461 * c-decl.c (grokdeclarator): Update.
462 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
463 * c-tree.h (c_mark_addressable): New.
464 * c-typeck.c (default_function_array_conversion, build_unary_op,
465 build_array_ref, convert_for_assignment): Update.
466 (mark_addressable): Rename.
467 * calls.c (try_to_integrate, expand_call): Use langhook.
468 * expr.c (expand_expr): Use langhook.
469 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
470 * langhooks.h (struct lang_hooks): New hook.
471 * stmt.c (expand_asm_operands): Use langhook.
472 * tree.h (mark_addressable): Remove.
474 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
476 2002-04-01 Bob Wilson <bob.wilson@acm.org>
478 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
481 2002-04-01 Bob Wilson <bob.wilson@acm.org>
483 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
484 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
486 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
488 * c-common.c (unsigned_conversion_warning, convert_and_check,
489 unsigned_type, signed_type, shorten_compare,
490 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
491 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
492 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
494 * c-decl.c (grokdeclarator): Update.
495 * c-format.c (check_format_types): Update.
496 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
497 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
498 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
499 * convert.c (convert_to_integer): Use new hooks.
500 * expmed.c (make_tree): Use new hooks.
501 * expr.c (store_expr): Use new hooks.
502 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
503 all_ones_mask_p, unextend, fold): Use new hooks.
504 * langhooks.h (struct lang_hooks_for_types): New hooks.
505 * tree.h (signed_or_unsigned_type, signed_type,
506 unsigned_type): Remove.
508 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
509 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
511 2002-03-31 Richard Henderson <rth@redhat.com>
513 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
514 (desc_frgr_mem): Fix reference to f16-f31.
516 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
518 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
519 RTVEC_ELT): Const-ify.
520 * varray.h (VARRAY_CHECK): Const-ify.
521 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
522 ggc_mark_rtvec, ggc_mark): Const-ify.
524 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
526 * diagnostic.c: Include langhooks-def.h.
527 * Makefile.in (diagnostic.o): Update.
529 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
531 * c-common.c (c_unsafe_for_reeval): Rename.
532 * c-common.h (c_unsafe_for_reeval): Rename.
533 * c-decl.c (finish_incomplete_decl): Rename.
534 (c_init_decl_processing): Don't set langhook.
535 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
536 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
537 * c-objc-common.c (c_objc_common_init): Don't set langhook.
538 * c-tree.h (finish_incomplete_decl): Rename.
539 * langhooks-def.h (lhd_unsafe_for_reeval): New.
540 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
541 (LANG_HOOKS_INITIALIZER): Update.
542 * langhooks.c (lhd_unsafe_For_reeval): New.
543 * langhooks.h (struct langhooks): New hooks.
544 * toplev.c (incomplete_decl_finalize_hook): Remove.
545 (wrapup_global_declarations): Update.
546 * tree.c (lang_unsafe_for_reeval): Remove.
547 (unsafe_for_reeval): Update.
548 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
551 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
552 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
554 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
556 * diagnostic.c (print_error_function): Remove.
557 (default_print_error_function): Rename.
558 (report_error_function): Update.
559 * diagnostic.h (print_error_function): Remove.
560 (default_print_error_function): Remove.
561 * langhooks-def.h (struct diagnostic_context): Predeclare.
562 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
563 (LANG_HOOKS_INITIALIZER): Update.
564 * langhooks.h (struct diagnostic context): Predeclare.
565 (struct lang_hooks): New hook.
567 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
569 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
570 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
572 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
573 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
574 of PIC_OFFSET_TABLE_REGNUM thruout.
575 * config/rs6000/rs6000.md: Likewise.
576 * config/rs6000/darwin.h: Likewise.
578 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
580 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
581 unsigned HOST_WIDE_INT, not unsigned int.
583 2002-03-31 Jakub Jelinek <jakub@redhat.com>
585 PR middle-end/6096, middle-end/6098, middle-end/6099
586 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
588 (fill_slots_from_thread): Likewise.
590 2002-03-31 Jakub Jelinek <jakub@redhat.com>
592 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
593 floating fields in float regs.
594 (function_arg_record_value_2): Likewise.
596 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
598 * config/mmix/mmix.md (define_constants): Remove misleading
599 FIXME. Add MMIX_fp_rO_OFFSET.
600 ("nonlocal_goto_receiver"): Don't have stack-frame address of
601 saved rO as part of the pattern. Remove FIXME.
602 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
603 here, at output-time.
605 2002-03-31 Jakub Jelinek <jakub@redhat.com>
608 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
610 (output_v9branch): Likewise.
612 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
614 * gcc.c: Revert previous patch for now.
615 * config/i386/djgpp.h: Likewise.
617 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
619 * config/mmix/crti.asm (_init): Register _fini with atexit.
620 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
622 2002-03-31 Richard Henderson <rth@redhat.com>
625 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
626 (ASM_OUTPUT_DEF_FROM_DECLS): New.
628 2002-03-31 Richard Henderson <rth@redhat.com>
630 * libgcc2.c (__bb_exit_func): Make static.
632 * config/alpha/alpha.md (trap): New.
634 2002-03-31 Richard Henderson <rth@redhat.com>
636 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
637 promoted argument types; build trap.
638 (expand_builtin_trap): New.
639 (expand_builtin): Use it.
640 * stmt.c (expand_nl_goto_receivers): Likewise.
641 * expr.h (expand_builtin_trap): Declare.
642 * libfuncs.h (LTI_abort, abort_libfunc): New.
643 * optabs.c (init_optabs): Init abort_libfunc.
645 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
647 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
648 (LINK_COMMAND_SPEC): ... from here.
649 (init_gcc_specs): Duplicate it here too, omitting
650 shared_name in the second copy.
651 (init_spec): Test for duplicate
652 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
654 2002-03-30 David S. Miller <davem@redhat.com>
656 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
657 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
659 2002-03-30 Roger Sayle <roger@eyesopen.com>
660 Richard Henderson <rth@redhat.com>
662 * regmove.c (combine_stack_adjustments_for_block): Avoid
663 emitting a stack adjustment of zero bytes. Let delete_insn
666 2002-03-30 Richard Henderson <rth@redhat.com>
668 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
669 (sparc_emitting_epilogue): New.
670 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
671 * config/sparc/sparc-protos.h: Update.
672 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
673 (TARGET_SWITCHES): Update.
674 * config/sparc/sparc.md (return): Remove.
675 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
676 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
677 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
678 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
679 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
680 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
681 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
682 Remove MASK_EPILOGUE.
683 * doc/invoke.texi: Update.
685 2002-03-30 Daniel Berlin <dan@dberlin.org>
687 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
688 CPP will start the file for us.
690 2002-03-30 Richard Henderson <rth@redhat.com>
693 * config/ia64/ia64.c (group_barrier_needed_p): Special case
694 prologue_allocate_stack.
695 (ia64_single_set): Use insn codes for recognition of special
696 cases, not rtl matching.
697 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
699 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
701 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
703 2002-03-30 Richard Henderson <rth@redhat.com>
706 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
707 or -fomit-frame-pointer with profiling.
708 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
709 (FUNCTION_PROFILER): Do nothing.
711 * config/sparc/sparc.c (sparc_override_options): Don't check
712 code models for profiling.
713 (sparc_function_profiler): Remove.
714 (sparc_profile_hook): New.
715 * config/sparc/sparc-protos.h: Update.
717 2002-03-30 Jakub Jelinek <jakub@redhat.com>
720 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
721 of SUBREG of volatile MEM or because the MEM was mode dependent,
722 return CLOBBER instead of unmodified SUBREG.
724 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
726 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
729 * toplev.c (rest_of_compilation): Cann mark_constant_function
730 only when optimizing.
732 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
735 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
736 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
737 (try_optimize_cfg): clear all AUX fields.
739 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
740 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
741 (ix86_address_cost): Be prepared for SUBREGed registers.
742 (legitimate_address_p): Accept SUBREGed registers.
744 2002-03-29 Richard Henderson <rth@redhat.com>
747 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
749 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
751 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
752 for aggregate and TFmode types.
754 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
756 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
758 2002-03-29 Richard Henderson <rth@redhat.com>
761 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
762 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
764 2002-03-29 Richard Henderson <rth@redhat.com>
767 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
768 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
769 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
770 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
772 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
774 2002-03-29 Dale Johannesen <dalej@apple.com>
776 * loop.c (combine_movables): Do allow combination of pseudos.
778 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
780 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
781 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
782 No functional change except ...
783 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
784 * doc/install.texi (*-*-freebsd*): Document port configuration.
786 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
788 * Makefile.in (convert.o, calls.o, expmed.o): Update.
789 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
791 * builtin-types.def (BT_PTRMODE): Update.
792 * c-common.c (type_for_size): Rename c_common_type_for_size.
793 (type_for_mode): Similarly.
794 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
796 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
797 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
798 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
800 * c-typeck.c (common_type, comptypes, default_conversion):
802 * calls.c: Include langhooks.h.
803 (emit_library_call_value_1): Use new hooks. Avoid redundant
805 * convert.c: Include langhooks.h
806 (convert_to_pointer, convert_to_integer): Use new hooks.
807 * except.c (init_eh): Similarly.
808 * expmed.c: Include langhooks.h.
809 (expand_mult_add): Use new hooks.
810 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
811 try_casesi): Similarly.
812 * fold-const.c (optimize_bit_field_compare, make_range,
813 decode_field_reference, fold_truthop, fold): Similarly.
814 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
815 put_var_into_stack): Similarly.
816 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
817 LANG_HOOKS_TYPE_FOR_SIZE): New.
818 (LANG_HOOKS_TYPES_INITIALIZER): Update.
819 * langhooks.h (lang_hooks_for_types): New hooks.
820 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
821 * tree.c (get_unwidened, get_narrower): Similarly.
822 * tree.h (type_for_mode, type_for_size): Remove.
823 * varasm.c (force_const_mem): Use new hooks.
824 * utils2.c (nonbinary_modular_operation): Update.
826 * objc-act.c (handle_impent): Update.
827 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
830 2002-03-29 Steve Ellcey <sje@cup.hp.com>
832 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
833 * config/ia64/ia64.c (basereg_operand): New.
834 * config/ia64/ia64-protos.h (basereg_operand): Declare.
835 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
837 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
839 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
840 unwind information when frame_pointer_needed.
841 (mmix_assemble_integer): Tweak wording in comment.
843 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
845 * Makefile.in (except.o): Update.
846 * except.c: Include langhooks.h.
847 (init_eh): Use langhook.
848 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
849 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
850 (LANG_HOOKS_INITIALIZER): Update.
851 * langhooks.h (lang_hooks_for_types): New.
852 (struct lang_hooks): Add it.
853 * tree.c (make_lang_type_fn, make_lang_type): Remove.
854 * tree.h (make_lang_type_fn, make_lang_type): Remove.
856 * alpha/alpha.c: Include langhooks.h.
857 (alpha_build_va_list): Use langhook.
858 * d30v/d30v.c: Include langhooks.h.
859 (d30v_build_va_list): Use langhook.
860 * i386/i386.c: Include langhooks.h.
861 (ix86_build_va_list): Use langhook.
862 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
863 * s390/s390.c: Include langhooks.h.
864 (s390_build_va_list): Use langhook.
865 * stormy16/stormy16.c: Include langhooks.h.
866 (stormy16_build_va_list): Use langhook.
868 2002-03-29 Jakub Jelinek <jakub@redhat.com>
871 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
873 (length): Compute variable length for branches/calls/jumps here.
874 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
875 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
876 define branch_type attribute.
877 (divsi3_sp32): Maximum length is 6 not 7.
878 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
879 call_address_untyped_struct_value_sp32,
880 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
881 * config/sparc/sparc.c (empty_delay_slot): New function.
882 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
883 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
885 2002-03-29 Jakub Jelinek <jakub@redhat.com>
887 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
888 nonzero_bits if not needed.
889 (nonzero_bits) [XOR]: Likewise.
890 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
891 reg_last_set_mode and mode are both MODE_INT, but not equal.
892 (record_value_for_reg): Compute reg_last_set_nonzero_bits
893 in nonzero_bits_mode for MODE_INT modes.
895 2002-03-28 Richard Henderson <rth@redhat.com>
898 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
899 to GAS. Correct drift between alternatives.
901 2002-03-28 Richard Henderson <rth@redhat.com>
904 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
906 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
908 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
909 emulation to the linker.
911 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
913 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
914 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
916 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
918 * combine.c (simplify_and_const_int): Make sure to apply mask
919 when force_to_mode returns a constant integer. PR3311.
921 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
923 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
925 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
927 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
928 and Objective-C Dialect Options.
930 2002-03-28 Richard Henderson <rth@redhat.com>
932 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
933 comparison should be done vs !=0 not >0 return code. Tidy cases.
935 2002-03-28 Richard Henderson <rth@redhat.com>
937 * c-decl.c (finish_function): New arg can_defer_p. Pass it
939 * c-tree.h (finish_function): Update decl.
940 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
942 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
944 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
946 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
948 * rtlanal.c: Include flags.h
949 (may_trap_p): Do not mark FP operations if trapping
950 if !flag_trapping_math
951 * Makefile.in (rtlanal.o): Add dependency on flag.h
952 * ifcvt.c (noce_operand_ok): Avoid the lameness.
954 2002-03-27 Zack Weinberg <zack@codesourcery.com>
956 * mips.md: Use dconst1, not 1.0, as first argument of
957 REAL_VALUE_LDEXP. Don't use union real_extract.
959 2002-03-28 Alan Modra <amodra@bigpond.net.au>
961 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
962 rather than $target. Heed program_prefix and
963 program_transform_name. Search for gas in cross-compiler case too.
964 "test -x" rather than "test -f".
965 (gcc_cv_ld): Likewise.
966 (gcc_cv_nm): Heed program_prefix and program_transform_name.
967 (gcc_cv_objdump): Likewise.
968 * configure: Regenerate.
970 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
972 * Makefile.in (attribs.o): Update.
973 * attribs.c: Include langhooks.h.
974 (decl_attributes): Use langhook.
975 * c-decl.c (insert_default_attributes): Rename.
976 * c-tree.h (c_insert_default_attributes): New.
977 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
978 (LANG_HOOKS_INITIALIZER): Update.
979 * langhooks.h (struct lang_hooks): New hook.
980 * tree.h (insert_default_attributes): Remove.
982 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
984 2002-03-27 Andreas Schwab <schwab@suse.de>
986 * config/i386/i386.c (classify_argument): Also check for
989 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
991 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
994 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
996 * i960.md (ret): Set PC.
997 (nonlocal_goto): Fix expander.
998 * builtins.c (epxand_builin_longjmp): Check that we've emitted
1001 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
1003 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
1006 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1008 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
1009 assigning to BLOCK_FOR_INSN directly.
1011 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
1013 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
1015 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
1017 * c-common.c (c_expand_expr): Fix prototype.
1018 * c-common.h (c_expand_expr): Always declare, update.
1019 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1020 * c-objc-common.c (c_objc_common_init): No global hook.
1021 * expr.c (expand_expr): Use langhook.
1022 * expr.h (enum expand_modifier): Conditionally declare.
1023 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
1024 (LANG_HOOKS_INITIALIZER): Update.
1025 * langhooks.c (lhd_expand_expr): New.
1026 * langhooks.h (struct lang_hooks): New hook.
1027 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
1028 (lang_independent_init): Don't default hook.
1030 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1032 2002-03-27 Richard Henderson <rth@redhat.com>
1035 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
1036 TARGET_CONST_GP. Simplify conditions.
1038 2002-03-27 Richard Henderson <rth@redhat.com>
1040 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
1041 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
1042 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
1044 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
1046 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
1047 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
1048 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
1049 Remove unnecessary masks.
1050 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
1051 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
1052 -mwindows, -mdll switches and their negations.
1054 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
1056 * gcc-common.c (lang_mark_false_label_stack): Remove.
1057 * ggc.h (lang_mark_false_label_stack): Similarly.
1059 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
1061 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
1063 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
1064 or __rtems_ is defined.
1066 2002-03-26 Richard Henderson <rth@redhat.com>
1068 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
1069 if a non-trivial load was emitted.
1070 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
1071 in high+extra+low case.
1073 2002-03-26 Richard Henderson <rth@redhat.com>
1075 * config.gcc (sparc*-solaris): Use float_format=sparc.
1077 2002-03-26 Richard Henderson <rth@redhat.com>
1079 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
1080 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
1081 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
1082 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
1083 (WINT_TYPE_SIZE): Fix at 32.
1085 2002-03-26 Richard Henderson <rth@redhat.com>
1087 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
1088 until after eh landing pad generation.
1089 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
1090 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
1092 2002-03-26 Richard Henderson <rth@redhat.com>
1094 * expr.h (ADD_PARM_SIZE): One more convert for INC.
1096 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
1098 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
1099 and warning switches.
1100 (cc1_options): Likewise.
1102 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
1104 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
1105 Restore more of the signal context. Set no_reg_stack_frame.
1106 * config/ia64/unwind-ia64.c (unw_state_record):
1107 Add no_reg_stack_frame, comments.
1108 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
1109 (uw_update_context): Adjust bsp when unwinding from leaf,
1110 but not signal frame.
1112 2002-03-26 David Edelsohn <edelsohn@gnu.org>
1114 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
1116 2002-03-26 Bob Wilson <bob.wilson@acm.org>
1118 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
1120 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
1123 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
1124 "Add a pool_range attribute", which was lost during the ARM/Thumb
1127 2002-03-26 Bob Wilson <bob.wilson@acm.org>
1129 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
1130 a register into the MAC16 accumulator.
1132 2002-03-26 Andrew Cagney <ac131313@redhat.com>
1134 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
1135 (Warning Options): Document -Wswitch-enum.
1136 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
1138 (warn_switch_enum): Define variables.
1139 * flags.h (warn_switch_enum): Declare variables.
1140 * stmt.c (expand_end_case_type): When warn_switch_enum /
1141 -Wswitch-enum, perform switch checks.
1144 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
1146 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
1147 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
1148 (reload_muladdsi_compare0_scratch): Delete.
1150 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
1152 * doc/install.texi (*-*-freebsd*): Update.
1154 2002-03-26 Richard Henderson <rth@redhat.com>
1156 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
1157 (SUB_PARM_SIZE): Cast DEC to ssizetype.
1159 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
1160 types from the normal argument frame.
1162 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
1163 variable sized objects by reference.
1164 (sparc_va_arg): Receive them by reference too.
1166 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
1168 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
1169 code to not restoring global registers.
1171 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
1173 * Makefile.in (ggc-common.o): Update.
1174 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
1175 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
1176 * c-tree.h (c_mark_tree): New.
1177 * ggc-common.c: Include langhooks.h.
1178 (gcc_mark_trees): Use new langhook.
1179 * ggc-callbacks.c: Delete file.
1180 * ggc.h (lang_mark_tree): Remove.
1181 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
1182 (LANG_HOOKS_INITIALIZER): Update.
1183 * langhooks.h (struct lang_hooks): New hook.
1185 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
1187 2002-03-25 Zack Weinberg <zack@codesourcery.com>
1189 * doc/cpp.texi: Exclude entire Top node from printed manual.
1190 Move option index after directive index. Insert page breaks
1191 before GFDL and concept index. Index environment variables
1192 with command line options.
1193 * doc/cppenv.texi: Use @vtable for environment variable list.
1194 Add paragraph explaining semantics of empty elements in path
1195 variables. Exclude a cross-reference to Fishkill from the
1196 manpage. Remove an unnecessary cross-reference of the entry
1197 right above the referer. Don't use @anchor in text that goes
1199 * doc/cppopts.texi: Cross-reference the environment variables
1200 section, not the specific environment variable, for consistency.
1202 2002-03-25 Richard Henderson <rth@redhat.com>
1204 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
1205 anywhere in the block. Don't refer to insns that have been
1206 removed from the chain. Iterate backward through the new insns.
1207 Don't refer to edges that have been removed.
1209 2002-03-26 Alan Modra <amodra@bigpond.net.au>
1211 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
1212 test for overflow of constant.
1214 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
1217 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
1218 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
1219 these patterns on arm_archv4.
1221 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
1223 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
1226 2002-03-25 Zack Weinberg <zack@codesourcery.com>
1228 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
1229 float_handled, float_handler, float_signal, set_float_handler,
1230 and do_float_handler. Set handler for SIGFPE to crash_signal.
1231 * toplev.h: Don't prototype do_float_handler.
1233 * c-lex.c: Fold parse_float into lex_number. Make warning
1234 about portability of hex float constants more informative, and
1235 don't issue it on top of a syntax error.
1236 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
1238 * real.h: Define REAL_VALUE_ABS here...
1239 * simplify-rtx.c: ... not here. Fold check_fold_consts,
1240 simplify_unary_real, simplify_binary_real, and
1241 simplify_binary_is2orm1 into their callers.
1242 * tree.c: Fold build_real_from_int_cst_1 into caller.
1244 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
1246 * tsystem.h: Include float.h here...
1247 * libgcc2.c: ... not here.
1249 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
1251 Fixes for: PR bootstrap/3591, target/5676
1252 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
1253 defined. Do not disable exceptions or rtti.
1254 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
1255 mcore.h. Disable exceptions and rtti, since they are not
1258 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
1260 * c-decl.c (maybe_build_cleanup): Remove.
1261 * expr.c (expand_expr): Use langhook.
1262 * langhooks-def.h (lhd_return_null_tree,
1263 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
1264 (LANGHOOKS_INITIALIZER): Update.
1265 * langhooks.c (lhd_return_null_tree): New.
1266 * langhooks.h (struct lang_hooks): New hook.
1267 * tree-inline.c (initialize_inlined_parameters): Use langhook.
1268 * tree.h (maybe_build_cleanup): Remove.
1270 2002-03-25 Jakub Jelinek <jakub@redhat.com>
1272 * regrename.c (build_def_use): Move recog_memoized
1273 before extract_insn.
1275 2002-03-25 Jakub Jelinek <jakub@redhat.com>
1278 * expr.c (emit_group_store): Handle storing into CONCAT.
1280 2002-03-25 Jakub Jelinek <jakub@redhat.com>
1282 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
1283 corresponding MATCH_DUP.
1285 2002-03-24 Richard Henderson <rth@redhat.com>
1287 * unroll.c (unroll_loop): Zero label_map.
1289 * gcse.c: Include except.h.
1290 * Makefile.in (gcse.o): Update.
1292 2002-03-24 Richard Henderson <rth@redhat.com>
1294 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
1295 Do resolve_unique_section before shared data clause.
1297 2002-03-24 Richard Henderson <rth@redhat.com>
1299 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
1301 2002-03-24 Richard Henderson <rth@redhat.com>
1303 * recog.c (peephole2_optimize): Split blocks when EH insns are
1304 generated in the middle of a block. Do global life update if
1307 2002-03-24 Richard Henderson <rth@redhat.com>
1309 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
1311 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
1314 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
1315 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
1316 (init_dependency_output): Don't make no_output decision here.
1318 2002-03-24 Andrew Cagney <ac131313@redhat.com>
1320 * stmt.c (check_for_full_enumeration_handling): Remove tests of
1321 warn_switch. Update description.
1322 (expand_end_case_type): Call check_for_full_enumeration_handling
1325 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1327 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
1328 (m68hc11_split_move): Call it to see if the source and destination
1329 operands use the same direction auto inc/dec mode, otherwise make the
1330 source an offsetable memory operand and generate an add.
1332 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1334 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
1335 register for operand 2.
1336 ("*subsi3_zero_extendqi"): Likewise.
1337 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
1338 bits so that it is compatible with a pop.
1339 ("*andhi3_gen"): Likewise.
1340 ("xorhi3"): Likewise.
1342 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
1344 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
1346 (cpp_post_options): ... not here.
1348 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
1349 Aldy Hernandez <aldyh@redhat.com>
1351 Removal of separate preprocessor cpp0.
1353 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
1354 cpp0, install-common): Update.
1355 * c-common.c (flag_preprocess_only): New.
1356 (c_common_init): Preprocess for -E.
1357 * c-common.h (flag_preprocess_only): New.
1358 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
1359 * c-objc-common.c (c_init_decl_processing): Exit quickly
1360 for NULL return from c_common_init.
1361 * cpplib.h (cpp_preprocess_file): New.
1362 * cppmain.c (main, general_init, pfile, progname): Remove.
1363 (do_preprocessing): Rename cpp_preprocess_file, don't call
1364 cpp_finish. Don't close stdout here.
1365 (setup_callbacks): Update prototype.
1366 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
1368 * tradcpp.c (main): Ignore -quiet.
1370 * lang-specs.h (default_compilers): Preprocess with cc1obj.
1372 2002-03-24 Richard Henderson <rth@redhat.com>
1374 PR optimization/5742
1375 * machmode.def: Add inner mode field to complex modes.
1376 * config/mips/mips.c (mips_function_value): Always define. Add
1377 new argument to handle libcalls.
1378 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
1379 (FUNCTION_VALUE): Likewise.
1380 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
1381 * config/mips/mips-protos.h: Update.
1383 2002-03-23 Richard Henderson <rth@redhat.com>
1385 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
1386 * config/sparc/sparc-protos.h: Update.
1387 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
1389 2002-03-23 Richard Henderson <rth@redhat.com>
1391 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
1392 _start or _init begins the text segment.
1394 2002-03-23 David Edelsohn <edelsohn@gnu.org>
1396 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
1397 not HOST_WIDEST_INT.
1398 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
1400 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
1403 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
1404 operand argument to output_return_instruction.
1405 * arm.c (arm_print_operand, case 'd'): If the operand is
1406 const_true_rtx then just return.
1407 (arm_print_operand, case 'D'): If the operand is const_true_rtx
1410 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1412 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
1413 (Warning Options): Document -Wswitch-default.
1414 * toplev.c (W_options): Add -Wswitch-default. Update comment on
1416 (warn_switch_default): Define variable.
1417 (warn_switch): Update comment.
1418 * flags.h (warn_switch_default): Declare variable.
1419 (warn_switch): Update comment.
1420 * stmt.c (expand_end_case): Check for and, when
1421 warn_switch_no_default, warn of a missing default case.
1423 2002-03-23 Alan Modra <amodra@bigpond.net.au>
1425 * real.h (N): Special case 128 bit doubles.
1427 * combine.c (simplify_comparison): When widening modes, ignore
1428 sign extension on CONST_INTs.
1430 2002-03-22 Bob Wilson <bob.wilson@acm.org>
1432 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
1433 passed to adjust_address. Fix comment formatting.
1436 2002-03-22 Zack Weinberg <zack@codesourcery.com>
1438 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
1439 Always make REAL_VALUE_TYPE a struct containing an array of
1440 HOST_WIDE_INT, not a double. Tidy up the code deciding how
1441 big it is. Don't declare or use union real_extract.
1443 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
1444 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
1445 (print_operand), config/arm/arm.c (output_move_double),
1446 config/arm/arm.md (consttable_4, consttable_8),
1447 config/romp/romp.c (output_fpops), config/s390/s390.h
1448 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
1449 (xtensa_output_literal): Don't use union real_extract.
1451 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
1452 (sfmode_constant_to_ulong), config/ns32k/merlin.h
1453 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
1454 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
1455 (PRINT_OPERAND): Don't use local version of union
1458 * config/convex/convex.c (check_float_value), config/vax/vax.c
1459 (vax_float_literal), config/m88k/m88k.md (divdf3),
1460 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
1461 config/pdp11/pdp11.c (output_move_quad): Don't do host
1462 arithmetic on target floating point quantities.
1464 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
1465 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
1467 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
1468 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
1470 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
1471 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
1473 * print-rtl.c (print_rtx): Disable code which needs
1474 floating-point emulator.
1475 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
1476 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
1477 depending on HOST_FLOAT_FORMAT to be defined properly.
1479 * config/1750a/1750a.c (get_double, float_label): Delete.
1480 (print_operand): Delete huge commented-out chunk. Use
1481 REAL_VALUE_TO_DECIMAL.
1482 * config/1750a/1750a-protos.h: Delete prototypes of deleted
1484 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
1486 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
1487 Use REAL_VALUE_TO_DECIMAL as ELF version does.
1488 * config/m88k/m88k.c (real_power_of_2_operand,
1489 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
1490 real_extract out of the union; run the input through
1491 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
1492 from that into the union.
1493 * config/pdp11/pdp11.c (output_move_double): Rearrange
1494 parentheses to make automatic indenter happy.
1496 * doc/tm.texi (Cross-compilation): Rename node to "Floating
1497 Point" and rewrite to describe current situation. Also adjust
1498 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
1500 * doc/rtl.texi: Adjust cross reference.
1502 2002-03-22 Bob Wilson <bob.wilson@acm.org>
1504 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
1505 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
1506 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
1507 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
1508 prevent use of sp as a reload register.
1509 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
1510 non_acc_reg_operand.
1511 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
1512 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
1513 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
1514 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
1516 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
1518 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
1519 * cpplex.c (unterminated): Delete.
1520 (parse_string): No string literal may extend over multiple
1521 lines. Suppress the error when preprocessing assembly.
1522 * cppmain.c (scan_translation_unit): Strings are single-line.
1524 * doc/cpp.texi: Update to match.
1526 2002-03-22 Jakub Jelinek <jakub@redhat.com>
1528 PR optimization/5854
1529 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
1531 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
1532 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
1533 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
1534 const0 if scratch register was not allocated.
1535 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
1536 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
1538 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
1539 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
1540 with GEN_INT (...) everywhere. Remove constraints in define_split
1542 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
1543 require scratch register for setting 0 into regs/non-pushable memory.
1545 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
1547 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
1548 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
1550 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
1552 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
1553 * cppinit.c (cpp_create_reader): On by default.
1554 (cpp_handle_option): Handle -W[no-]endif-labels.
1555 (cpp_post_options): Also enable if -pedantic.
1556 * cpplib.c (do_else): Use it.
1557 (do_endif): Likewise.
1558 * doc/cppopts.texi: Document new option.
1559 * doc/invoke.texi: Document new option.
1561 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
1563 * config/i386/i386.c, config/i386/i386.md: Change all occurences
1564 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
1566 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
1568 * flow.c (calculate_global_regs_live): Clear aux fields of
1571 2002-03-22 Jakub Jelinek <jakub@redhat.com>
1573 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
1574 REG or MEM subregs, pass rtx * instead of rtx to it.
1575 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
1576 rtx * instead of rtx to alter_subreg.
1577 * config/m32r/m32r.c (gen_split_move_double): Likewise.
1578 * config/pj/pj.c (pj_output_rval): Likewise.
1580 2002-03-22 Richard Henderson <rth@redhat.com>
1583 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
1584 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
1585 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
1586 (ia64_expand_prologue): Look at int_regs, not words, for number
1587 of incomming int regs.
1589 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
1591 * expr.c (expand_expr): A RESULT_DECL is part of a call.
1593 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
1595 * toplev.c (flag_loop_optimize, flag_crossjumping):
1596 New static variables.
1597 (rest_of_compilation): Conditionalize crossjumping and
1599 (parse_options_and_default_flags): Default loop_optimize and
1601 (lang_independent_options): Add -fcrossjumping and -floop-optimize
1602 * invoke.texi (crossjumping, loop-optimize): Document.
1604 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
1606 * real.c (eiisneg): Move outside #ifdef NANS.
1608 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
1610 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
1611 frequencies match; avoid match on different loop depths.
1612 (try_crossjump_to_bb): Kill tests that no longer brings time
1614 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
1616 (split_edge): Likewise.
1618 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
1621 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
1622 * cfgrtl.c: Include insn-config.h
1623 (split_block) Dirtify block in presence of conditional execution
1625 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
1627 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
1628 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
1629 (function_arg): Constify CUMULATIVE_ARGS.
1630 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
1631 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
1632 (UNITS_PER_DOUBLE): New macro.
1633 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
1634 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
1635 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
1636 fp_regs and stack_words.
1637 (EABI_FLOAT_VARARGS_P): New macro.
1638 * config/mips/mips.c (struct mips_arg_info): New.
1639 (mips_arg_info): New function.
1640 (function_arg_advance): Use it. Add adjustment instructions here
1641 rather than in function_arg.
1642 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
1643 for VOIDmode at the beginning of the function.
1644 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
1645 (function_arg_pass_by_reference): Likewise.
1646 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
1647 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
1648 (mips_va_start): Likewise. Use the new stack_words field of
1649 CUMULATIVE_ARGS to set up overflow area. Reformat.
1650 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
1651 doubles and other types, aligning the overflow pointer for non-doubles
1652 too. Remove some code duplication. Replace hard-coded constants.
1654 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
1656 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
1657 (CLASS_UNITS): Undefine.
1658 (CLASS_MAX_NREGS): Use FP_INC.
1659 * config/mips/mips.c (compute_frame_size): Likewise.
1660 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
1662 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
1664 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
1665 prototype, and handle lexing numbers and identifiers.
1666 (parse_identifier): Update to new form of parse_slow.
1667 (parse_number): Fast path only, use parse_slow otherwise.
1668 (_cpp_lex_direct): Update calls to parse_number.
1670 2002-03-21 DJ Delorie <dj@redhat.com>
1672 * bb-reorder.c (make_reorder_chain_1): Protect against
1673 when redundant edges are omitted.
1674 * predict.c (dump_prediction): Likewise.
1676 2002-03-21 Richard Henderson <rth@redhat.com>
1679 * fixinc/inclhack.def (solaris_stdio_tag): New.
1680 * fixinc/fixincl.x: Regenerate.
1682 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
1685 * c-typeck.c (process_init_element): Flag non-static
1686 initialization of a flexible array member as illegal.
1688 2002-03-22 Alan Modra <amodra@bigpond.net.au>
1690 * config/rs6000/t-linux64: New.
1691 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
1692 t-ppccomm. Use t-rs6000 and t-linux64.
1693 (powerpc64-*-gnu* <tmake_file>): Likewise.
1694 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
1695 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
1696 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
1698 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
1700 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
1701 flag_really_no_inline instead of optimize == 0.
1703 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
1705 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
1707 * flags.h (flag_really_no_inline): New.
1709 * c-common.c (c_common_post_options): Initialize
1710 flag_really_no_inline.
1712 * toplev.c (flag_really_no_inline): New.
1714 2002-03-21 Jakub Jelinek <jakub@redhat.com>
1716 * config/avr/avr.md (length): Fix length computation for
1717 conditional branches.
1719 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
1721 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
1722 sdbout.o, profile.o): Update.
1723 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
1725 * c-common.h (gettags): Move here from tree.h.
1726 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
1727 insert_block, getdecls, kept_level_p, global_bindings_p): New.
1728 * dbxout.c (dbxout_init): Use getdecls langhook.
1729 * expr.c (expand_expr): Use insert_block langhook.
1730 * fold-const.c: Include langhooks.h.
1731 (fold_range_test, fold_binary_op_with_conditional_arg,
1732 fold): Use global_bindings_p langhook.
1733 * integrate.c (expand_inline_function): Use insert_block langhook.
1734 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
1735 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
1736 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
1737 LANG_HOOKS_GETDECLS): New.
1738 (LANG_HOOKS_INITIALIZER): Update.
1739 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
1741 * langhooks.h (struct lang_hooks_for_decls): New.
1742 (struct lang_hooks): Update.
1743 * profile.c: Include langhooks.h.
1744 (output_func_start_profiler): Use new langhooks.
1745 * sdbout.c: Include langhooks.h.
1746 (sdbout_init, sdbout_finish): Use getdecls langhook.
1747 * stmt.c: Include langhooks.h.
1748 (expand_fixup, fixup_gotos): Use new langhooks.
1749 * stor-layout.c: Include langhooks.h.
1750 (variable_size): Use global_bindings_p langhook.
1751 * toplev.c (compile_file): Use getdecls langhook.
1752 * tree-inline.c (remap_block): Use insert_block langhook.
1753 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
1754 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
1756 2002-03-21 Richard Henderson <rth@redhat.com>
1758 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
1759 constants in .data when -fpic.
1761 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1763 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
1766 2002-03-21 Tom Tromey <tromey@redhat.com>
1768 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
1770 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1772 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
1774 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
1776 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
1777 Richard Henderson <rth@redhat.com>
1780 * c-common.c (c_expand_expr): Preserve result of a statement
1781 expression if needed.
1783 2002-03-21 Jakub Jelinek <jakub@redhat.com>
1786 * genrecog.c (maybe_both_true_mode): Remove.
1787 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
1788 * machmode.def (Pmode): Likewise.
1790 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
1792 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
1793 (nonlocal_mentioned_p_1): New function.
1794 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
1795 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
1796 (mark_constant_function): Recognize pure functions.
1797 * rtl.h (global_reg_mentioned_p): New prototype.
1798 * rtlanal.c (global_reg_mentioned_p,
1799 global_reg_mentioned_p_1): New function.
1801 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1803 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
1805 * fixinc/fixincl.x: Regenerate.
1807 2002-03-20 Jason Merrill <jason@redhat.com>
1809 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
1811 2002-03-20 Michael Meissner <meissner@redhat.com>
1813 * doc/invoke.texi (Optimize Options): Document that -O2 sets
1816 2002-03-20 Bob Wilson <bob.wilson@acm.org>
1818 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
1819 ".literal_position" directive before the constant pool.
1821 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1823 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
1824 Add Craig Rodrigues.
1825 Add Brad Lucier to testers.
1827 2002-03-20 Jakub Jelinek <jakub@redhat.com>
1830 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
1832 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
1833 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
1834 instead of insn_extract.
1836 2002-03-20 Jakub Jelinek <jakub@redhat.com>
1839 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
1841 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
1842 stmt if some case has been output.
1844 2002-03-20 Jakub Jelinek <jakub@redhat.com>
1847 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
1848 movsfcc_1, movdfcc_1): Add %O2.
1849 * config/i386/i386.c (print_operand): Handle %ON.
1850 Print . before float condition codes in Sun as cmov syntax.
1851 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
1852 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
1855 2002-03-20 Philip Blundell <pb@nexus.co.uk>
1857 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
1858 return instruction if PC was popped.
1860 2002-03-20 Bob Wilson <bob.wilson@acm.org>
1862 * config/xtensa/xtensa.md: Remove unused type attributes.
1863 (adddi_carry, subddi_carry): Change type attribute to "multi".
1865 2002-03-19 Dale Johannesen <dalej@apple.com>
1867 PR optimization/5999, middle-end/5731
1868 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
1869 multiplications by reciprocals.
1871 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
1873 * Makefile.in: Update.
1874 * c-common.c: Include langhooks.h.
1875 (inline_forbidden_p): Use new hook.
1876 * diagnostic.c: Include langhooks.h.
1877 (format_with_decl, announce_function,
1878 default_print_error_function): Use new hook.
1879 * dwarf2out.c (dwarf2_name): Use new hook.
1880 * function.c: Include langhooks.h.
1881 (init_function_start): Use new hook.
1882 * langhooks-def.h (lhd_decl_printable_name): New.
1883 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
1884 (LANGHOOKS_INITIALIZER): Update.
1885 * langhooks.c (lhd_decl_printable_name): New.
1886 * langhooks.h (struct lang_hooks): New hook.
1887 * toplev.c (decl_name, decl_printable_name): Remove.
1888 (open_dump_file): Use new hook.
1889 (process_options): Remove old hook.
1890 * tree.h (decl_printable_name): Remove.
1892 * objc-act.c (objc_init): Remove old hook.
1893 (objc_printable_name): Export.
1894 * objc-act.h (objc_printable_name): New.
1895 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
1897 2002-03-19 Jim Blandy <jimb@redhat.com>
1899 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
1900 the start_source_file debug hook, not the current line number.
1902 2002-03-19 Richard Henderson <rth@redhat.com>
1904 * flow.c (EH_USES): Provide default.
1905 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
1906 * doc/tm.texi (EH_USES): New.
1908 * config/ia64/ia64.c (ia64_eh_uses): New.
1909 * config/ia64/ia64-protos.h: Update.
1910 * config/ia64/ia64.h (EH_USES): New.
1912 2002-03-19 Richard Henderson <rth@redhat.com>
1914 * varasm.c (output_constant_def): Fix stupid typo.
1916 2002-03-19 Richard Henderson <rth@redhat.com>
1919 * except.c (current_function_has_exception_handlers): New.
1920 * except.h: Declare it.
1921 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
1922 Combine tests that disable all sibcalls for the function.
1924 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
1926 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
1929 2002-03-19 Richard Henderson <rth@redhat.com>
1932 * config/ia64/ia64.c: Revert 2002-03-01 patch.
1933 * config/ia64/ia64.h (INIT_EXPANDERS): New.
1935 2002-03-19 Jim Blandy <jimb@redhat.com>
1937 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
1938 name, even if the replacement list contains no tokens, as required
1941 2002-03-19 Jason Merrill <jason@redhat.com>
1943 * varasm.c (globalize_decl): Get the name from the RTL, not
1944 DECL_ASSEMBLER_NAME.
1946 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
1948 2002-03-19 Bob Wilson <bob.wilson@acm.org>
1950 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
1951 subdi_carry): Define.
1953 2002-03-19 David Edelsohn <edelsohn@gnu.org>
1955 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
1956 about -fpic/-fPIC if extra_warnings set.
1958 2002-03-19 David Edelsohn <edelsohn@gnu.org>
1960 * expr.c (expand_expr): Sign-extend CONST_INT generated from
1961 TREE_STRING_POINTER.
1962 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
1964 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1966 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
1967 in favor of SP if FRAME_POINTER_REQUIRED is false.
1969 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
1971 * emit-rtl.c (gen_int_mode): New function.
1972 * rtl.h: Prototype for it.
1973 * combine.c (make_extraction, simplify_comparison), expmed.c
1974 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
1975 (convert_modes, store_field), optabs.c (expand_fix),
1976 simplify-rtx.c (neg_const_int, simplify_unary_real),
1978 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
1979 Use it instead of GEN_INT (trunc_int_for_mode (...)).
1981 2002-03-19 Jakub Jelinek <jakub@redhat.com>
1984 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
1985 convert_parm_for_inlining.
1986 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
1988 * langhooks-def.h: Likewise.
1989 * objc/objc-lang.c: Likewise.
1990 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
1992 * tree-inline.c (initialize_inlined_parameters):
1993 Call convert_parm_for_inlining lang hook if needed.
1994 * c-typeck.c (c_convert_parm_for_inlining): New function.
1995 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
1997 2002-03-18 Mark Mitchell <mark@codesourcery.com>
1999 * calls.c (precompute_arguments): Do not assume that temporaries
2000 can be destroyed after expanding the argument.
2001 (expand_call): Likewise.
2003 2002-03-15 Eric Christopher <echristo@redhat.com>
2005 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
2006 Fix register preference on last change.
2007 * config/mips/mips.c (mips_return_in_memory): New function.
2008 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
2009 * config/mips/mips-protos.h: Declare.
2010 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
2011 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
2013 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
2015 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
2017 (anddi3, iorsi3): Likewise.
2019 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
2020 use %gprel for symbols that are going to be placed in linkonce
2023 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
2024 RETURN_ADDRESS_POINTER_REGNUM to $ra.
2025 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
2026 not needed. Disregard leaf_function_p().
2027 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
2028 mips16 frame pointer.
2029 * config/mips/mips.md (store ra): Only to small SP offsets.
2030 2001-08-22 Graham Stott <grahams@redhat.com>
2031 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
2032 return a REG rtx for the return address register.
2034 2002-03-18 Bob Wilson <bob.wilson@acm.org>
2036 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
2037 constant-pool addresses as "mode-dependent".
2038 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
2040 2002-03-18 Jakub Jelinek <jakub@redhat.com>
2043 * expr.c (emit_group_load): Use extract_bit_field if
2044 needed for CONCAT arguments.
2046 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
2049 * arm.md (tablejump): Make this a define_expand. For PIC add the
2050 offset to the base of the table.
2051 (thumb_tablejump): Matcher for Thumb tablejump insn.
2052 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
2053 as the difference of two labels.
2054 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2055 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
2057 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
2058 * arm.c (get_jump_table_size): If the table is not in the text
2059 section, return zero.
2061 2002-03-18 Bernd Schmidt <bernds@redhat.com>
2063 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
2065 (arm_reload_out_hi): Use gen_lowpart instead of
2066 gen_rtx_SUBREG to access QImode components.
2067 * config/arm/arm.md: Disable zero_extend split for QImode
2068 subregs in BIG_ENDIAN mode.
2069 (storehi_bigend): Match use of least significant byte.
2070 (storeinthi): Remove extraneous SUBREG.
2071 Add missing construction of operands[2].
2072 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
2073 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
2074 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
2076 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
2078 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
2081 2002-03-17 Richard Henderson <rth@redhat.com>
2083 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
2086 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
2088 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
2089 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
2091 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2093 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
2095 * predict.c (estimate_bb_frequencies): Delete unused variables.
2097 2002-03-17 Richard Henderson <rth@redhat.com>
2099 * config/ia64/ia64.c (ia64_attribute_table): Move before
2100 targetm definition. Make static.
2102 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
2104 * c-common.h (yyparse, c_common_parse_file): New.
2105 * c-lang.c: Include c-common.h.
2106 (LANG_HOOKS_PARSE_FILE): Redefine.
2107 * c-lex.c: Include c-common.h.
2108 (yyparse): Rename c_common_parse_file. Call yyparse.
2109 * c-parse.in (yyparse): Remove macro.
2110 * c-tree.h (yyparse_1): Remove.
2111 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
2112 (LANG_HOOKS_INITIALIZER): Update.
2113 * langhooks.h (struct lang_hoooks): New hook parse_file.
2114 * toplev.c (compile_file): Use parse_file hook.
2115 * tree.h (yyparse): Remove.
2116 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
2118 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
2120 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
2121 float_truncate, not fix.
2122 ("*truncdfsf2_real"): Ditto.
2123 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
2125 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
2127 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
2129 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
2130 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
2131 where appropriate. Make the second reference to
2132 leaf_function_p a function call, as intended. Reindented.
2134 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
2135 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
2137 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
2138 add register to non-constant into sp.
2140 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
2141 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
2142 (mips16_gp_pseudo_rtx): Lose.
2143 (INIT_EXPANDERS): Deleted.
2144 * config/mips/mips.c (mips_init_machine_status): New.
2145 (mips_free_machine_status): New.
2146 (mips_mark_machine_status): New.
2147 (override_options): Set them.
2148 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
2149 (struct machine_function): ... new. Replaced all references.
2150 (mips_add_gc_roots): Don't mark them.
2151 (embedded_pic_fnaddr_reg): New, extracted from...
2152 (embedded_pic_offset): ... here.
2153 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
2156 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
2158 * cppinit.c: Revert -MD removal.
2160 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2162 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
2163 soft registers by default for 68HC12.
2164 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
2165 when compiling with -fomit-frame-pointer.
2166 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
2167 (expand_epilogue): Likewise.
2168 (m68hc11_gen_rotate): Use exg when rotating by 8.
2170 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2172 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
2173 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
2174 (splits): Remove unused add splits.
2175 ("*addhi3_68hc12"): Tune constraints.
2176 ("addhi_sp"): Try to use X instead of Y in all cases and if the
2177 constant fits in 8-bits and D is dead use abx/aby instructions.
2178 ("*addhi3"): Remove extern declaration of ix_reg.
2179 ("*subsi3"): Optimize and provide new split.
2180 ("subhi3"): Cleanup.
2181 ("*subhi3_sp"): Avoid saving X if we know it is dead.
2182 (arith splits): For 68hc12 save the address register on the stack
2183 and do the arithmetic operation with a pop.
2185 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2187 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
2188 allocating QImode in address registers.
2189 ("*movqi_m68hc11"): Likewise.
2191 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
2193 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
2195 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
2197 * cppinit.c (print_help): Display -MD and -MMD.
2198 Don't display usage string. Update assertion syntax and
2200 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
2201 (cpp_handle_option): Update.
2203 2002-03-15 Chris Demetriou <cgd@broadcom.com>
2205 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
2206 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
2207 and define it so that regardless of target CPU size,
2208 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
2209 of "int" rather than "long."
2211 2002-03-15 Richard Henderson <rth@redhat.com>
2213 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
2216 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2218 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
2219 ("tstqi" split): Avoid using memory for tstqi on address register.
2220 (splits): Remove constraints.
2221 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
2222 ("cmpdf", "cmpsf"): Remove since not used.
2223 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
2224 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
2226 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2228 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
2229 ("neghi2"): Tighten constraints.
2230 ("one_cmplsi2"): Optimize and simplify split.
2231 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
2233 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2235 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
2236 and split of AND operation to clear the upper bits.
2237 ("*logicalsi3_zextqi"): Likewise.
2238 ("*logicallhi3_zexthi_ashift8"): Likewise.
2239 ("*logicalsi3_silshr16"): Likewise.
2240 ("logicalsi3_silshl16"): Likewise.
2241 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
2243 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2245 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
2246 (m68hc11_indirect_p): New function.
2247 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
2248 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
2250 (asm_print_register): Likewise.
2251 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
2252 (m68hc11_indirect_p): Declare.
2253 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
2254 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
2255 (TARGET_SWITCHES): New option -mrelax.
2256 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
2258 ("iorsi3", "xorsi3"): Likewise.
2259 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
2260 ("*andhi3_mem"): New to handle destination in memory with bclr
2261 and a scratch register.
2262 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
2263 ("*andhi3_const"): New when operand2 is constant.
2264 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
2265 ("*andhi3_gen"): Cleanup of the old "andhi3".
2266 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
2267 ("xorqi3"): Update constraints.
2269 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2271 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
2272 for reg_equiv_memory_loc when the operand is a register that does
2273 not get a hard register (stack location).
2274 (tst_operand): After reload, accept all memory operand.
2275 (symbolic_memory_operand): Fix detection of symbolic references.
2276 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
2277 accept symbols and any constant.
2279 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2281 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
2282 note on the insn that sets the soft frame register.
2283 (must_parenthesize): ix and iy are also reserved names.
2284 (print_operand_address): One more place where parenthesis are required
2285 to avoid confusion with register names.
2286 (m68hc11_gen_movhi): Allow push of stack pointer.
2287 (m68hc11_check_z_replacement): Fix handling of parallel with a
2289 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
2290 the replacement register is.
2291 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
2292 and D8_REGS classes.
2293 (MODES_TIEABLE_P): All modes are tieable except QImode.
2295 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2297 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
2298 (___subdi3): Likewise.
2299 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
2300 (__map_data_section): Optimize 68hc11 case.
2302 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2304 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
2305 than a shift to avoid adding a register with itself.
2306 (m68hc11_memory_move_cost): Take into account NO_REGS.
2307 (m68hc11_register_move_cost): Update and use memory move cost
2309 (m68hc11_address_cost): Make cost of valid offset not 0 so that
2310 it gives more opportunities to cse to optimize.
2311 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
2312 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
2314 2002-03-15 Mark Mitchell <mark@codesourcery.com>
2316 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
2317 * c-common.def (CLEANUP_STMT): New tree node.
2318 * c-common.h (CLEANUP_DECL): New macro.
2319 (CLEANUP_EXPR): Likewise.
2320 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
2321 * expr.c (expand_expr): Tidy.
2322 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
2323 * tree-inline.c (initialize_inlined_parameters): Clean up
2324 new local variables.
2326 2002-03-15 Jakub Jelinek <jakub@redhat.com>
2329 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
2330 before movrXX only, use reg_overlap_mentioned_p.
2331 Only special case NE if just one insn can be generated.
2333 2002-03-15 Jason Merrill <jason@redhat.com>
2335 * varasm.c (assemble_variable): Call resolve_unique_section before
2336 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
2339 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
2342 * arm.md (split pattern for thumb shiftable immediates): Add comment
2343 explaining non-obvious test.
2345 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
2348 * arm.md (movaddr, movaddr_insn): Delete.
2350 2002-03-15 Jason Merrill <jason@redhat.com>
2352 * toplev.c (wrapup_global_declarations): Clarify variable handling.
2353 -fkeep-static-consts doesn't apply to comdats.
2355 2002-03-14 Richard Henderson <rth@redhat.com>
2357 * c-decl.c: Include c-pragma.h.
2358 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
2359 (finish_function): Tidy.
2360 * c-pragma.c: Include c-common.h.
2361 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
2362 (handle_pragma_weak): Use them.
2363 (init_pragma): Register pending_weaks.
2364 * c-pragma.h (maybe_apply_pragma_weak): Declare.
2365 * print-tree.c (print_node): Print DECL_WEAK.
2366 * varasm.c (mark_weak_decls): Remove.
2367 (remove_from_pending_weak_list): Remove.
2369 (asm_emit_uninitialised): Call globalize_decl for weak commons.
2370 (weak_decls): Make a tree_list.
2371 (declare_weak): Cons weak_decls directly.
2372 (globalize_decl): Remove weak_decls elements directly.
2373 (weak_finish): Simplify weak_decls walk. Don't weaken unused
2374 symbols. Don't pretend to handle aliases.
2375 (init_varasm_once): Update weak_decls registry.
2376 * Makefile.in: Update dependencies.
2378 2002-03-14 Richard Henderson <rth@redhat.com>
2381 * config/ia64/ia64.c: Include tm_p.h last.
2382 (gen_nop_type): Remove duplicate definition.
2383 (cycle_end_fill_slots): Set sched_data for second L slot.
2384 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
2385 (nop_cycles_until): Fix typos.
2387 2002-03-15 Jakub Jelinek <jakub@redhat.com>
2389 PR optimization/5891
2390 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
2392 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
2394 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
2395 descriptors correctly.
2397 2002-03-14 Michael Meissner <meissner@redhat.com>
2399 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
2400 100, allowing MAX_UNROLLED_INSNS to be overridden.
2402 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
2405 * unroll.c (params.h): Include.
2406 (MAX_UNROLLED_INSNS): Delete, now in params.h.
2408 * doc/invoke.texi (--param max-unroll-insns): Document.
2410 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
2412 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
2414 * arm.md: Fix warnings about constraints in peepholes and splits.
2416 2002-03-14 Zack Weinberg <zack@codesourcery.com>
2418 * cpphash.h (struct lexer_state): Remove line_extension member.
2419 * cpplib.c (dequote_string, do_linemarker): New functions.
2420 (linemarker_dir): New data object.
2421 (DIRECTIVE_TABLE): No longer need to interpret #line in
2422 preprocessed source. Delete obsolete comment about return
2424 (end_directive, directive_diagnostics, _cpp_handle_directive):
2425 Don't muck with line_extension.
2426 (directive_diagnostics): No need to issue warnings for
2428 (_cpp_handle_directive): Issue warnings for linemarkers here,
2429 when appropriate. Dispatch linemarkers to do_linemarker, not
2431 (do_line): Code to handle linemarkers split out to do_linemarker.
2432 Convert escape sequences in filename argument, both places.
2434 * cppmacro.c (quote_string): Rename cpp_quote_string and
2435 export. All callers changed.
2436 * cpplib.h (cpp_quote_string): Prototype.
2437 * cppmain.c (print_line): Call cpp_quote_string on to_file
2440 * doc/cpp.texi: Document that escapes are now interpreted in
2441 #line and in linemarkers, and that non-printing characters are
2442 converted to octal escapes when linemarkers are generated.
2444 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
2446 * emit-rtl.c (try_split): Use delete_insns.
2447 * recog.c (split_all_insns): Fix terminating condition.
2449 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
2450 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
2453 * arm.c (arm_output_epilogue): Fix floating-point register save
2454 adjustment when using a frame pointer.
2456 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
2458 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
2459 * config/mips/mips.c (compute_frame_size): Retrofit them here.
2460 (save_restore_insns, mips_expand_epilogue): And here.
2461 (build_mips16_call_stub): And here.
2462 (mips_function_value): Use the new macros to decide whether a single
2463 or complex float can be returned in floating-point registers. Return
2464 a parallel rtx in the complex case.
2466 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
2468 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
2469 call after liveness analysis.
2471 * recog.c (split_insn): Use delete_insn_and_edges.
2473 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
2474 instructions to have branch prediction notes.
2475 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
2477 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
2479 * configure.in: Don't pass -Wno-long-long to a ADA compiler
2480 that doesn't support it.
2481 * configure: Regenerate.
2483 2002-03-13 Jakub Jelinek <jakub@redhat.com>
2486 * config/sparc/sparc.md (normal_branch, inverted_branch,
2487 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
2488 inverted_fp_branch): Adjust calls to output_cbranch.
2489 Set length attribute.
2490 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
2491 output_v9branch. Set length attribute.
2492 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
2494 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
2495 (output_cbranch): Likewise. Handle far branches.
2496 (output_v9branch): Handle far branches.
2497 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
2499 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
2500 noov_compare64_op predicates.
2502 2002-03-13 Jason Merrill <jason@redhat.com>
2504 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
2505 into the function and constify it.
2506 * gthr-dce.h, gthr-solaris.h: Likewise.
2508 2002-03-13 David Edelsohn <edelsohn@gnu.org>
2510 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
2511 * config/rs6000/rs6000.c (rs6000_va_arg): Use
2512 std_expand_builtin_va_arg if not ABI_V4.
2514 2002-03-13 Jason Merrill <jason@redhat.com>
2516 * varasm.c (globalize_decl): New fn.
2517 (assemble_start_function): Use it.
2518 (asm_emit_uninitialized): Use it.
2519 (assemble_alias): Use it.
2520 (assemble_variable): Use it.
2522 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
2524 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
2525 2002-03-12 internal visibility change.
2526 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
2527 visibility into SYMBOL_REF_FLAG.
2529 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
2531 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
2532 VOIDmode operand. Add compile-time optimization for constant results.
2534 2002-03-12 Jason Merrill <jason@redhat.com>
2536 * c-typeck.c (convert_for_assignment): Don't allow conversions
2537 between pointers and references. Only allow lvalues to convert to
2540 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
2542 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
2543 before prologue, to avoid scheduling problems.
2545 2002-03-13 Jakub Jelinek <jakub@redhat.com>
2547 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
2548 (ELIMINABLE_REGS): Add sfp->sp.
2549 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
2551 2002-03-13 Jakub Jelinek <jakub@redhat.com>
2553 PR optimization/5892
2554 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
2556 2002-03-13 Jakub Jelinek <jakub@redhat.com>
2558 * loop.c (basic_induction_var): Don't call convert_modes if mode
2559 classes are different.
2561 2002-03-12 Richard Henderson <rth@redhat.com>
2563 PR optimization/5901
2564 * function.c (reposition_prologue_and_epilogue_notes): Position
2565 the markers after/before the last/first insn not deleted.
2567 2002-03-12 Richard Henderson <rth@redhat.com>
2569 PR optimization/5878
2570 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
2571 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
2572 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
2574 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
2575 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
2576 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
2578 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
2579 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
2580 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
2581 also. Don't set it if not flag_pic.
2582 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
2583 to be INVALID_REGNUM when not used.
2585 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
2587 * expmed.c (store_bit_field): Reset alias set for memory.
2588 (extract_bit_field): Same.
2590 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2592 * c-common.c (c_tree_code_type, c_tree_code_length,
2593 c_tree_code_name, add_c_tree_codes): Delete.
2594 * c-common.h (add_c_tree_codes): Delete.
2595 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
2597 * c-objc-common.c (c_objc_common_init): Don't call
2598 add_c_tree_codes, instead set lang_unsafe_for_reeval.
2599 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
2600 objc_tree_code_name, add_objc_tree_codes): Delete.
2601 (objc_init): Don't call add_objc_tree_codes.
2602 * objc/objc-lang.c (tree_code_type, tree_code_length,
2603 tree_code_name): Define.
2604 * toplev.c (lang_independent_init): Don't set
2605 tree_code_length[IDENTIFIER_NODE].
2606 * tree.c (tree_code_type, tree_code_length, tree_code_name):
2607 Delete definitions, moved to language front-ends.
2608 * tree.def (IDENTIFIER_NODE): Hardwire the length.
2609 * tree.h (tree_code_type, tree_code_length, tree_code_name):
2611 (tree_code_length): Change type to unsigned char.
2613 2002-03-12 Richard Henderson <rth@redhat.com>
2615 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
2616 internal visibility change.
2618 2002-03-12 Bob Wilson <bob.wilson@acm.org>
2620 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
2621 validize_mem() instead of change_address to avoid clobbering
2624 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
2626 * c-lex.h (position_after_whitespace): Remove.
2628 2002-03-12 Jakub Jelinek <jakub@redhat.com>
2630 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
2631 (lex_string): Use unsigned char pointers.
2633 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
2635 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
2636 is not a valid memory_operand.
2638 2002-03-12 Bob Wilson <bob.wilson@acm.org>
2640 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
2641 * config/xtensa/lib1funcs.asm: Fix copyright to include
2642 special case for libgcc files.
2643 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
2644 (__divsi3): Likewise.
2645 (__umodsi3): Likewise.
2646 (__modsi3): Likewise.
2647 * config/xtensa/lib2funcs.S: Fix copyright to include
2648 special case for libgcc files.
2650 2002-03-12 Tom Rix <trix@redhat.com>
2652 * collect2.c (resolve_lib_name): Move outside of
2653 OBJECT_FORMAT_COFF ifdef.
2654 (ignore_library): Same.
2656 2002-03-12 Bob Wilson <bob.wilson@acm.org>
2658 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
2660 2002-03-12 Bob Wilson <bob.wilson@acm.org>
2662 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
2663 to function_section before writing out the constant pool.
2665 2002-03-12 David Edelsohn <edelsohn@gnu.org>
2667 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
2669 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
2671 2002-03-12 Alan Modra <amodra@bigpond.net.au>
2673 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
2677 (cmpsi splitter): Likewise.
2678 (modsi3): Fail if <= 0.
2679 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
2680 redundant test when HOST_BITS_PER_WIDE_INT != 32.
2681 (reg_or_sub_cint64_operand): Likewise.
2682 (num_insns_constant_wide): Optimize sign extension.
2683 (rs6000_legitimize_address): Likewise.
2685 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
2687 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2688 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2690 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
2692 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
2693 address calculation.
2695 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
2697 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
2698 scratch register to DImode / TImode.
2699 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
2700 register used does not overlap the target.
2702 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2704 * Makefile.in (debug.o): Depend on debug.h.
2705 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
2706 * debug.c (do_nothing_debug_hooks): Likewise.
2707 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
2708 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
2709 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
2710 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
2711 * dwarfout.c (dwarf_debug_hooks): Likewise.
2712 * integrate.c (output_inline_function): Likewise.
2713 * objc/objc-act.c (synth_module_prologue): Likewise.
2714 * sdbout.c (sdb_debug_hooks): Likewise.
2715 * toplev.c (debug_hooks): Likewise.
2716 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2718 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2720 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
2721 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
2722 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
2723 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
2724 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
2725 * defaults.h (POINTER_SIZE): Define.
2726 * doc/tm.texi (POINTER_SIZE): Document default.
2728 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2730 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
2732 2002-03-11 Richard Henderson <rth@redhat.com>
2734 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
2735 if rebuild_label_notes_after_reload.
2737 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
2739 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
2740 emit pic register load if "internal" visibility.
2741 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
2742 (cris_expand_builtin_va_arg): Do all computations on trees.
2744 2002-03-11 Richard Henderson <rth@redhat.com>
2746 * rtlanal.c: Include recog.h.
2747 (keep_with_call_p): Fix thinko.
2748 * Makefile.in (rtlanal.o): Update dependencies.
2750 2002-03-11 Chris Meyer <cmeyer@gatan.com>
2752 * genflags.c (gen_insn): Use IS_VSPACE.
2753 * genoutput.c (output_insn_data): Likewise.
2754 (process_template): Likewise.
2756 2002-03-11 Richard Henderson <rth@redhat.com>
2758 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
2760 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
2762 * Makefile.in: Update.
2763 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
2764 Update documentation.
2765 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
2766 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
2768 2002-03-11 Zack Weinberg <zack@codesourcery.com>
2770 * Makefile.in: Give texi2pod its input file as a command line
2771 argument, not on stdin.
2773 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
2774 Daniel Berlin <dan@dberlin.org>
2776 C++ alias analysis improvement.
2777 * alias.c (record_component_aliases): Record aliases for base
2780 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
2782 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
2784 2002-03-11 Douglas B Rupp <rupp@gnat.com>
2786 * toplev.c (vms_fopen): Remove, not needed.
2788 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
2790 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
2792 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
2793 for FP, already done later.
2795 * toplev.c (debug_args): Add entry for VMS_DEBUG.
2796 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
2798 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
2800 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
2801 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
2802 LARGEST_EXPONENT_IS_NORMAL for the given mode.
2803 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
2804 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
2805 (ediv, emul, eldexp, esqrt): Likewise.
2806 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
2807 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
2808 (saturate): New function.
2809 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
2810 (make_nan): Use a saturation value instead of a NaN if
2811 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
2812 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
2813 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
2814 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
2815 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
2816 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
2817 !ROUND_TOWARDS_ZERO.
2818 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
2819 (ROUND_TOWARDS_ZERO): Document.
2821 2002-03-11 Andreas Jaeger <aj@suse.de>
2823 * cfg.c (dump_flow_info): Remove unused variable.
2825 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
2827 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
2828 computations on trees.
2830 2002-03-10 Richard Henderson <rth@redhat.com>
2833 * reload.c (copy_replacements_1): New.
2834 (copy_replacements): Use it to recurse through the rtx.
2836 2002-03-10 Richard Henderson <rth@redhat.com>
2838 * loop.c (strength_reduce): Compute number of iterations as
2839 unsigned HOST_WIDE_INT.
2841 2002-03-10 Richard Henderson <rth@redhat.com>
2843 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
2844 to move away from the end of the block.
2846 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
2848 PR preprocessor/5899
2849 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
2851 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2853 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
2855 * attribs.c (decl_attributes): Fix signed/unsigned warning.
2857 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
2859 * config/mmix/mmix.c: Improve comments.
2860 (mmix_target_asm_function_prologue): Drop variable
2861 empty_stack_frame. Don't allocate unused slot above fp.
2862 (mmix_target_asm_function_epilogue): Mirror prologue changes.
2863 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
2864 brace in first column.
2865 (enum reg_class): Ditto.
2866 (FIRST_PARM_OFFSET): Now 0.
2867 (USER_LABEL_PREFIX): Remove #if 0:d definition.
2869 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2871 * combine.c (make_extraction): Fix error in last change.
2873 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2875 * c4x.c (c4x_fp_reglist): Const-ify.
2876 * cris.c (cris_print_operand): Likewise.
2877 * i386.c (ix86_va_arg): Likewise.
2878 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
2879 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
2880 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
2881 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
2882 * mcore.h (regno_reg_class): Likewise.
2883 * mips.c (gen_int_relational): Likewise.
2884 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
2885 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
2886 * pdp11.c (move_costs): Likewise.
2887 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
2888 * s390.c (s390_branch_condition_mnemonic, regclass_map):
2890 * s390.h (regclass_map): Likewise.
2891 * sh.c (shift_amounts): Likewise.
2892 * sh.md (rotlsi3): Likewise.
2894 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
2896 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
2897 (ne0+5): Use new clobber to generate proper shift pattern.
2898 Patch by Michael Matz <matz@kde.org>.
2900 2002-03-09 Andreas Schwab <schwab@suse.de>
2902 * gcc.c (validate_all_switches): Also handle `%W{...}'.
2904 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
2906 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
2908 2002-03-09 Jakub Jelinek <jakub@redhat.com>
2911 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
2912 even for non-representable constants.
2914 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2916 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
2917 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
2918 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
2919 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
2920 (pop_function_context): Compute MAY_SHARE parameter for
2922 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
2923 (gen_mem_addressof): Call fixup_var_refs with new parm.
2925 * combine.c (make_extraction): Don't make extension of CONST_INT.
2927 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
2929 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
2930 in o32 and o64 ABIs.
2931 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
2932 but getting fixed-size structs passed in registers regardless of
2933 padding in o32 and o64 ABIs.
2935 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
2936 offset before loading address of argument passed by transparent
2939 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
2941 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
2943 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
2945 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
2946 marker such that registers after it are saved.
2948 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2950 * sparc.c (arith_4096_operand): Fix error in last change.
2952 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
2954 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
2957 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
2959 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
2962 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
2964 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
2966 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
2968 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
2969 removed; fix return value.
2970 * combine.c (combine_instructions): Dirtify blocks where we failed to
2971 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
2972 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
2974 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2976 * gcse.c (insert_insn_end_bb): Fix typo in last change.
2978 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
2980 * recog.c (peephole2_optimize): Re-distribute EH edges.
2982 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
2984 * expr.c (expand_expr): Use unsave lang hook.
2985 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
2986 (LANG_HOOKS_INITIALIZER): Update.
2987 * langhooks.h (struct lang_hooks): New hook unsave.
2988 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
2989 (unsave_expr_1): Remove unused lang_unsave_expr_now.
2990 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
2991 (unsave_expr_now): Remove.
2992 * tree.h (unsave_expr_now, lang_unsave,
2993 lang_unsave_expr_now): Remove.
2996 2002-03-08 Andreas Jaeger <aj@suse.de>
2998 * flow.c (propagate_block_delete_insn): Remove unused variable.
3000 2002-03-08 Kazu Hirata <kazu@hxi.com>
3002 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
3003 insn length for memory load/store.
3005 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
3007 * doc/install.texi (--with-libiconv-prefix): Document.
3009 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
3011 * doc/sourcebuild.texi: Fix typo.
3013 2002-03-08 Jakub Jelinek <jakub@redhat.com>
3016 * builtins.c (std_expand_builtin_va_arg): Do all computations on
3019 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3021 * rtl.c (copy_most_rtx): Move from here ...
3022 * emit-rtl.c (copy_most_rtx): ... to here.
3024 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
3026 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
3027 SUBTARGET_CPP_SIZE_SPEC.
3028 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
3030 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
3032 2002-03-07 Matt Hiller <hiller@redhat.com>
3034 * gensupport.c (first_dir_md_include): Renamed from include;
3035 change all references.
3036 (last_dir_md_include): Renamed from last_include; change all
3038 (init_md_reader): Unconditionally initialize base_dir whether or
3039 not filename is a relative path.
3041 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
3043 * config/fp-bit.c (_unord_f2): Compile it in even if
3044 US_SOFTWARE_GOFAST is enabled.
3046 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
3047 NULL_RTX. Set all HFmode operations as NULL_RTX.
3048 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
3049 NULL_RTX, try reversing the comparison and the operands.
3051 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
3053 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
3054 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
3057 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
3059 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
3061 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
3063 * basic-block.h (fixup_abnormal_edges): Declare.
3064 * reload1.c (fixup_abnormal_edges): New function.
3065 * reg-stack.c (convert_regs): Use it.
3067 * gcse.c (insert_insn_end_bb): Handle trapping insns.
3069 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
3071 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
3073 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
3074 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
3075 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
3076 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
3077 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
3078 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
3079 unless x and y could be infinite.
3080 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
3081 Check that the common type of both arguments is a real, even for
3082 targets without unordered comparisons. Allow an integer argument
3083 to be compared against a real.
3084 (expand_tree_builtin): Use expand_unordered_cmp.
3085 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
3086 * cse.c (fold_rtx): Likewise. Fix indentation.
3087 * fold-const.c (fold_real_zero_addition_p): New.
3088 (fold): Use it, and the new HONOR_... macros.
3089 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
3090 * jump.c (reversed_comparison_code_parts): After searching for
3091 the true comparison mode, use HONOR_NANS to decide whether it
3092 can be safely reversed.
3093 (reverse_condition_maybe_unordered): Remove IEEE check.
3094 * simplify-rtx.c (simplify_binary_operation): Use the new macros
3095 to decide which simplifications are valid. Allow the following
3096 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
3097 and (a - -b) to (a + b).
3098 (simplify_relational_operation): Use HONOR_NANS.
3099 * doc/tm.texi: Document the MODE_HAS_... macros.
3101 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
3103 * combine.c (simplify_comparison): If simplifying a logical shift
3104 right and compare with constant, force the comparison to unsigned.
3106 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
3108 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
3110 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
3112 (alt_reg_names): Remove % for vrsave.
3114 2002-03-06 Richard Henderson <rth@redhat.com>
3116 PR optimization/5844
3117 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
3118 if used indicates we've already emitted one copy of an operand.
3119 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
3120 (gen_split): Supply a non-null used.
3122 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
3124 * reload1.c (reload): Unshare all rtl after reload is done.
3126 * simplify-rtx.c (simplify_plus_minus): Do not abort,
3127 but simply fail if the expression is too complex to simplify.
3128 (simplify_gen_binary): Handle simplify_plus_minus failures.
3130 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
3132 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
3133 consistently call delete_trivially_dead_insns after CSE and GCSE;
3134 fix DFI_life dumping; do jump threading after liveness; do crossjumping
3135 after liveness2; update comment in last crossjumping.
3136 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
3138 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
3140 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
3141 after completing fast dead code elimination.
3143 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
3146 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
3148 * version.c: Fix misplaced leading blanks on first line.
3150 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
3152 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
3154 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
3156 * cfgcleanup.c (mentions_nonequal_regs): New function.
3157 (thread_jump): Use it.
3158 * toplev.c (rest_of_compilation): Run jump threading after
3161 2002-03-06 Jakub Jelinek <jakub@redhat.com>
3163 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
3166 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
3168 * predict.c (estimate_bb_frequencies): Do not reload the
3169 frequencies from notes.
3171 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
3173 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
3174 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
3176 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
3177 delete_noop_moves): Return indeger.
3178 * flow.c (ndead): New variable.
3179 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
3180 BB argument; update callers.
3181 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
3182 (life_analysis): Do not call purge_all_dead_edges.
3183 (update_life_info): Return number of deleted insns; print statistics.
3184 (update_life_info_in_dirty_blocks): likewise.
3185 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
3186 return number of insns deleted.
3188 * cse.c: Include timevar.h
3189 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
3190 iterate until stabilizes; print statistics; return number of killed
3192 * Makefile.in: (cse.o): Add timevar.h dependency
3193 * rtl.h (delete_trivially_dead_insns): New.
3194 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
3195 * toplev.c (rest_of_compilation): Update callers.
3197 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
3198 (try_optimize_cfg): Do not update liveness.
3199 (cleanup-cfg): Loop until try_optimize_cfg and dead code
3200 removal stabilizes; use delete_trivially_dead_insns.
3202 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
3204 2002-03-05 Zack Weinberg <zack@codesourcery.com>
3206 * cppmain.c (setup_callbacks): Disable #pragma and #ident
3207 callbacks when processing assembly language.
3209 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3211 * pa.h (ASM_FILE_END): Define.
3212 * som.h (ASM_FILE_END): Delete.
3214 * pa.c (function_arg): Don't pass floats in general registers in
3215 indirect calls if TARGET_ELF32.
3217 2002-03-05 Richard Henderson <rth@redhat.com>
3219 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
3221 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
3223 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
3225 2002-03-05 Jakub Jelinek <jakub@redhat.com>
3227 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
3228 -r command line. Don't hide any symbols if not building
3231 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
3233 * cfg.c (dump_flow_info): Warn about profile mismatches.
3234 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
3235 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
3237 2002-03-05 Jakub Jelinek <jakub@redhat.com>
3239 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
3240 wide volatile memory by parts.
3242 2002-03-05 Jakub Jelinek <jakub@redhat.com>
3244 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
3247 2002-03-05 Richard Henderson <rth@redhat.com>
3249 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
3251 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
3253 * toplev.c (documented_lang_options): Document more
3254 language-specific options.
3255 * doc/invoke.texi (Warning Options): Correct documentation for
3256 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
3257 * c-decl.c (c_decode_option): Use a table to handle warning options.
3259 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
3261 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
3262 parameter to mmix_encode_section_info.
3263 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
3264 relocatably. Always produce ELF, not mmo if linking relocatably.
3265 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
3266 first is non-zero, don't add symbol prefix.
3267 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
3268 prototype accordingly.
3270 2002-03-04 Krister Walfridsson <cato@df.lth.se>
3272 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
3274 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
3276 * configure.in: Increase required makeinfo version to 4.1.
3277 * configure: Regenerate.
3279 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
3281 * .cvsignore: Remove *.info* and genrtl*; these files are generated
3284 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
3286 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
3287 * doc/invoke.texi: Fix @math uses.
3289 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
3291 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
3294 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
3296 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
3297 (powerpc-*-eabisimaltivec*): Same.
3299 * config/rs6000/t-ppcendian: New.
3301 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
3303 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
3304 nonimmediate_src_operand and nonimmediate_lsrc_operand to
3305 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
3307 2002-03-03 Richard Henderson <rth@redhat.com>
3309 * toplev.c (rest_of_decl_compilation): Revert last two changes.
3311 2002-03-03 Zack Weinberg <zack@codesourcery.com>
3313 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
3314 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
3315 tree.c, config/m68k/m68k.c:
3316 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
3317 REAL_ARITHMETIC blocks unconditional. Delete some further
3318 #ifdef blocks predicated on REAL_ARITHMETIC.
3319 * flags.h, toplev.c: Delete remaining references to
3322 * doc/invoke.texi: Remove documentation of -fpretend-float.
3323 * doc/tm.texi: Describe the various REAL_* macros as provided by
3324 real.h, not by the target configuration files.
3326 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
3327 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
3328 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
3329 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
3330 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
3331 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
3332 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
3333 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
3334 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
3335 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
3336 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
3337 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3338 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
3339 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
3340 config/xtensa/xtensa.h:
3341 Do not define, undefine, or mention in comments any of
3342 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
3343 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
3344 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
3345 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
3346 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
3347 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
3348 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
3349 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
3350 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
3352 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3354 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
3355 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
3356 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
3357 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
3358 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
3359 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
3361 * defaults.h (BITS_PER_WORD): Define.
3362 * doc/tm.texi (BITS_PER_WORD): Document default value.
3364 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
3365 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
3366 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
3368 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3370 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
3371 lieu of explicit sizeof/sizeof.
3372 * i386.c (override_options, ix86_init_mmx_sse_builtins,
3373 ix86_expand_builtin): Likewise.
3374 * mips.c (mips_add_gc_roots): Likewise.
3375 * mmix.c (mmix_output_condition): Likewise.
3376 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
3377 altivec_init_builtins): Likewise.
3378 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
3379 * cppexp.c (Nsuff, parse_number): Likewise.
3380 * cppinit.c (builtin_array_end): Likewise.
3381 * gcc.c (n_default_compilers, process_command): Likewise.
3382 * genpreds.c (output_predicate_decls): Likewise.
3383 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
3384 * lcm.c (N_ENTITIES): Likewise.
3385 * stor-layout.c (set_sizetype): Likewise.
3387 2002-03-03 Richard Henderson <rth@redhat.com>
3389 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
3390 for types or labels.
3392 2002-03-03 Richard Henderson <rth@redhat.com>
3394 * c-decl.c (start_decl): Initialized variables are not common.
3396 2002-03-02 Per Bothner <per@bothner.com>
3398 * gcc.c (option_map): Suport new --bootclasspath option.
3399 --CLASSPATH is now just an alias for --classpath.
3401 2002-03-02 Richard Henderson <rth@redhat.com>
3403 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
3404 load if "internal" visibility.
3405 * doc/extend.texi: Document visibility meanings.
3407 2002-03-02 Richard Henderson <rth@redhat.com>
3409 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
3410 to functions as well.
3412 2002-03-02 Richard Henderson <rth@redhat.com>
3414 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
3415 (handle_visibility_attribute): Don't call assemble_visibility.
3416 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
3417 without asmspec. Invoke assemble_alias when needed.
3418 * varasm.c (maybe_assemble_visibility): New.
3419 (assemble_start_function, assemble_variable, assemble_alias): Use it.
3421 2002-03-02 Richard Henderson <rth@redhat.com>
3423 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
3424 invoke ENCODE_SECTION_INFO with first call flag.
3426 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
3427 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
3428 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
3429 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
3430 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
3431 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
3432 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
3433 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
3434 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
3435 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
3436 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
3437 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
3438 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
3439 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
3440 config/mcore/mcore-protos.h, config/mcore/mcore.c,
3441 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
3442 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
3443 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
3444 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
3445 config/sh/sh.h, config/sparc/sparc.h,
3446 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
3447 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
3448 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
3449 FIRST argument. As needed, examine it and do nothing.
3451 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
3452 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
3453 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
3455 * config/arm/t-pe (pe.o): Add dependencies.
3457 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3459 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
3460 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
3461 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
3462 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
3463 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
3464 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
3465 * defaults.h (BITS_PER_UNIT): Define.
3466 * doc/tm.texi (BITS_PER_UNIT): Document default value.
3468 2002-03-02 Kazu Hirata <kazu@hxi.com>
3470 * config/h8300/h8300-protos.h: Add a prototype for
3471 compute_a_shift_length.
3472 * config/h8300/h8300.c (h8300_asm_insn_count): New.
3473 (compute_a_shift_length): Likewise.
3474 (h8300_adjust_insn_length): Do not adjust insn length of shift
3476 * config/h8300/h8300.md (anonymous shift patterns): Use
3477 compute_a_shift_length.
3479 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3481 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
3484 * emit-rtl.c (offset_address): Call update_temp_slot_address.
3486 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3488 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
3489 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
3490 * flags.h (flag_zero_initialized_in_bss): Declare.
3491 * toplev.c (flag_zero_initialized_in_bss): New flag.
3492 (lang_independent_options): Add flag_zero_initialized_in_bss.
3493 * tree.c (initializer_zerop): New function.
3494 * tree.h (initializer_zerop): Declare.
3495 * varasm.c (assemble_variable): If we can emit bss, put zero
3496 initializers in the bss section.
3498 2002-03-02 Alan Modra <amodra@bigpond.net.au>
3500 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
3501 like more than one symbol per .weak directive.
3503 2002-03-01 Richard Henderson <rth@redhat.com>
3505 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
3506 adjust argument_pointer by pretend_args_size.
3507 (ia64_va_start): Adjust va_start address by -pretend_args_size.
3509 2002-03-01 Kazu Hirata <kazu@hxi.com>
3511 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
3513 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
3515 * toplev.c (rest_of_compilation): Delete dead jumptables before
3517 * flow.c (delete_dead_jumptables): Make global.
3518 * rtl.h (delete_dead_jumptables): Declare.
3520 2002-03-01 David Edelsohn <edelsohn@gnu.org>
3522 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
3523 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
3524 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
3526 2002-03-01 Kazu Hirata <kazu@hxi.com>
3528 * config/h8300/h8300-protos.h: Fix formatting.
3529 * config/h8300/h8300.c: Likewise.
3530 * config/h8300/h8300.h: Likewise.
3532 2002-03-01 Kazu Hirata <kazu@hxi.com>
3534 * config/h8300/h8300.c (print_operand): Support 16-bit
3536 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
3538 2002-02-28 Richard Henderson <rth@redhat.com>
3540 * expmed.c (store_bit_field): Prevent generation of CONCATs;
3541 pun complex values as integers; use gen_lowpart instead of
3543 (extract_bit_field): Likewise.
3545 2002-03-01 Alan Modra <amodra@bigpond.net.au>
3546 David Edelsohn <edelsohn@gnu.org>
3548 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
3549 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
3550 (SUPPORTS_WEAK): Likewise.
3551 * output.h (add_weak): Add tree param.
3552 * varasm.c (add_weak): Likewise. Save decl.
3553 (struct weak_syms): Add decl field.
3554 (mark_weak_decls): New function.
3555 (init_varasm_once): ggc_add_root mark_weak_decls.
3556 (assemble_start_function): Use ASM_WEAKEN_DECL.
3557 (assemble_variable): Likewise.
3558 (assemble_alias): Likewise.
3559 (declare_weak): Pass decl to add_weak.
3560 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
3561 (remove_from_pending_weak_list): Declare and define for
3563 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
3564 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
3565 * defaults.h (SUPPORTS_WEAK): Likewise.
3566 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
3567 .weak for code sym. Do emit .size for descriptor sym.
3568 (ASM_DECLARE_FUNCTION_SIZE): Define.
3569 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
3570 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
3571 .lglobl unless TARGET_XCOFF. Formatting fixes.
3572 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
3574 (HANDLE_PRAGMA_WEAK): Remove.
3575 (ASM_WEAKEN_LABEL): Remove.
3576 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
3578 2002-03-01 Jason Merrill <jason@redhat.com>
3580 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
3581 (TARGET_EXPR_CLEANUP): New macro.
3583 2002-02-28 Steve Ellcey <sje@cup.hp.com>
3585 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
3586 to take ptr_extend into account as third type of extension.
3587 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
3588 fields used by SUBREG_PROMOTED_UNSIGNED_P.
3589 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
3590 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
3591 * calls.c (precompute_arguments): Use new macro.
3592 (expand_call): Ditto.
3593 * combine.c (nonzero_bits): Ditto.
3594 (record_promoted_value): Ditto.
3595 * expr.c (store_expr): Ditto.
3596 (expand_expr): Ditto.
3597 * function.c (assign_parms): Ditto.
3599 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
3601 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
3602 override -shared and -shared-libgcc.
3604 2002-02-28 David O'Brien <obrien@FreeBSD.org>
3606 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
3608 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
3611 2002-02-28 Richard Henderson <rth@redhat.com>
3613 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
3614 4 cycle latency from MM producers.
3615 (ia64_internal_sched_reorder): Likewise with pipeline flush.
3617 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3619 * mklibgcc.in: Don't use GNU make extension.
3621 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
3623 * c-parse.in (STATIC): New terminal.
3624 (scspec): New non-terminal. Update productions accordingly.
3625 (program): Remove bogus ifc / end ifc.
3626 (array_declarator): Simplify production using STATIC.
3628 2002-02-28 Jim Meyering <meyering@lucent.com>
3630 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
3631 \a still means TARGET_BELL.
3633 2002-02-28 Richard Henderson <rth@redhat.com>
3635 * haifa-sched.c (sched_emit_insn): New.
3636 (schedule_block): Use last_scheduled_insn to track last insn.
3637 * sched-int.h (sched_emit_insn): Prototype.
3638 * config/ia64/ia64.c (last_issued): Remove.
3639 (ia64_variable_issue): Don't set it.
3640 (nop_cycles_until): Use sched_emit_insn.
3642 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
3644 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
3647 2002-02-28 Kazu Hirata <kazu@hxi.com>
3649 * config/h8300/h8300.c: Fix formatting.
3650 * config/h8300/h8300.h: Likewise.
3652 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
3654 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
3655 which may overwrite the high byte of the frame pointer.
3657 2002-02-28 Bo Thorsen <bo@suse.de>
3659 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
3660 (STARTFILE_SPEC): Add 64 bit files.
3661 (ENDFILE_SPEC): Likewise.
3663 2002-02-28 Jason Merrill <jason@redhat.com>
3665 * c-decl.c (finish_function): Only warn about missing return
3666 statement with -Wreturn-type.
3668 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
3670 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
3672 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
3673 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
3675 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
3677 * basic-block.h (BB_REACHABLE): Renumber.
3678 (BB_DIRTY, BB_NEW): New flags.
3679 (clear_bb_flags): Declare.
3680 (update_life_info_in_dirty_blocks): Declare.
3681 * cfg.c (clear_bb_flags): New function.
3682 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
3683 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
3684 reorder_insns, emit_insn_after): Mark block as dirty.
3685 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
3686 (update_life_info_in_dirty_blocks): New function.
3687 * recog.c (apply_change_group): Dirtify block.
3689 * cse.c (cse_insn): Reorder emitting of jump insn to keep
3691 * gcse.c (delete_null_pointer_checks): Likewise.
3693 * toplev.c (dump_file_index): Move cse2 after bp,
3695 (dump_file_info): Similary.
3696 (rest_of_compilation): Avoid most of CFG rebuilds;
3697 do first if converision after null pointer checks, do cse2
3698 after branch prediction; avoid full liveness rebuild after
3699 initializing subregs.
3700 * invoke.texi (-d options): Document -du, renumber.
3702 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
3703 (notice_new_block): Do not set BB_UPDATE_LIFE.
3704 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
3705 merge_blocks_move_successor_nojumps, merge_blocks,
3706 try_crossjump_to_edge): Likewise.
3707 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
3708 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
3709 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
3710 (merge_of_block): Do not use life_data_ok.
3711 (find_if_case_1): Do not use SET_UPDATE_LIFE.
3712 (if_convert): Use BB_DIRTY mechanizm to update life.
3713 * lcm.c (optimize_mode_switching): Update
3714 update_life_info_in_dirty_blocks
3716 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
3718 * Makefile.in (integrate.o): Update.
3719 * c-decl.c (copy_lang_decl): Rename.
3720 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
3721 * integrate.c: Include langhooks.h.
3722 (copy_decl_for_inlining): Update to use langhook.
3723 * langhooks-def.h (lhd_do_nothing_t,
3724 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
3725 (LANG_HOOKS_INITIALIZER): Update.
3726 * langhooks.c (lhd_do_nothing_t): New.
3727 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
3728 * tree.h (copy_lang_decl): Remove.
3730 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
3732 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
3734 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
3735 POST_DEC, and POST_MODIFY.
3737 2002-02-27 Zack Weinberg <zack@codesourcery.com>
3739 * c-typeck.c (digest_init): Remove unused parameter; all
3742 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
3744 * expmed.c (expand_shift): Correctly test for low part of a
3747 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
3749 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
3750 insn UIDs with insn addresses.
3752 2002-02-27 Zack Weinberg <zack@codesourcery.com>
3754 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
3755 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
3756 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
3757 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
3758 gcc.c, toplev.c: Delete code implementing -traditional mode.
3760 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
3761 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
3762 Document removal of -traditional mode for compilation, and
3763 remove documentation only relevant to that mode.
3765 * config/nextstep.h, config/ptx4.h, config/svr4.h,
3766 config/convex/convex.h, config/d30v/d30v.h,
3767 config/i386/dgux.h, config/i386/osf1elf.h,
3768 config/i386/osfelf.h, config/i386/osfrose.h,
3769 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
3770 config/m68k/hp310.h, config/m88k/dgux.h,
3771 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
3772 config/m88k/m88k.h, config/m88k/openbsd.h,
3773 config/mips/abi64.h, config/mips/osfrose.h,
3774 config/mips/svr4-5.h, config/mips/svr4-t.h,
3775 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
3776 config/stormy16/stormy16.h: Remove all references to
3777 -traditional from target specs. Delete all mention of the
3778 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
3779 delete a couple of commented-out definitions of
3780 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
3783 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
3784 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
3786 2002-02-27 Zack Weinberg <zack@codesourcery.com>
3788 * mklibgcc.in: Don't use \n in a line subject to
3789 interpretation by echo.
3791 2002-02-27 Graham Stott <grahams@redhat.com>
3793 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
3796 * loop.c (prescan_loop): Handle PARALLEL.
3798 * unroll.c (loop_iterations): Return 0 if the add_val for
3801 * final.c (output_operand_lossage): Constify PFX_STR.
3803 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
3805 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
3807 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
3808 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
3810 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
3812 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
3814 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
3816 * cpplex.c (_cpp_lex_token): Handle directives in macro
3818 * cpplib.c (_cpp_handle_directive): Save and restore state
3819 if parsing macro args when entering a directive.
3820 * cppmacro.c (collect_args): No need to handle directives
3822 (enter_macro_context, replace_args): Use the original macro
3823 definition in case it was redefined whilst collecting arguments.
3827 2002-02-26 David Edelsohn <edelsohn@gnu.org>
3829 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
3830 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
3831 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
3833 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
3834 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
3835 (load_toc_v4_PIC_2): Same.
3837 2002-02-26 Alan Modra <amodra@bigpond.net.au>
3839 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
3841 2002-02-26 Richard Henderson <rth@redhat.com>
3843 * config/alpha/alpha.md (ashldi_se): Re-enable.
3845 2002-02-26 Richard Henderson <rth@redhat.com>
3847 * config/alpha/alpha.c (alpha_encode_section_info): Examine
3848 MODULE_LOCAL_P; improve commentary.
3850 2002-02-26 Zack Weinberg <zack@codesourcery.com>
3852 * doc/cpp.texi: Clarify documentation of relationship between
3855 2002-02-26 Kazu Hirata <kazu@hxi.com>
3857 * config/h8300/h8300-protos.h: Update the prototype for
3858 compute_logical_op_length. Add the prototype for
3859 compute_logical_op_cc.
3860 * config/h8300/h8300.c (compute_logical_op_length): Figure out
3862 (compute_logical_op_cc): New.
3863 * config/h8300/h8300.md: Combine all the logical op patterns
3864 in HImode and SImode. Use compute_logical_op_cc.
3866 2002-02-26 Kelley Cook <kelleycook@comcast.net>
3868 * config/i386/i386.c (print_operand): Don't append ATT-style
3869 length suffixs to x87 opcodes when in Intel mode.
3871 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
3873 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
3874 (init_emit_once): Update calls.
3875 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
3876 (init_syntax_once): Prototype.
3878 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
3880 * pa-linux.h (LIB_SPEC): Update definition.
3881 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
3883 2002-02-26 Richard Henderson <rth@redhat.com>
3885 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
3886 if we emitted a stop bit.
3888 2002-02-26 Jakub Jelinek <jakub@redhat.com>
3890 * configure.in (libgcc_visibility): Substitute.
3891 * configure: Rebuilt.
3892 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
3893 defined symbols .hidden.
3895 2002-02-26 Jakub Jelinek <jakub@redhat.com>
3897 * attribs.c (c_common_attribute_table): Add visibility.
3898 (handle_visibility_attribute): New function.
3899 * varasm.c (assemble_visibility): New function.
3900 * output.h (assemble_visibility): Add prototype.
3901 * tree.h (MODULE_LOCAL_P): Define.
3902 * crtstuff.c (__dso_handle): Use visibility attribute.
3903 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
3904 for MODULE_LOCAL_P symbols too.
3905 * config/ia64/ia64.c (ia64_encode_section_info): Handle
3906 MODULE_LOCAL_P symbols the same way as local symbols.
3907 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
3908 into .sdata/.sbss by the user.
3909 * doc/extend.texi (Function Attributes): Document visibility
3912 2002-02-26 Jakub Jelinek <jakub@redhat.com>
3915 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
3916 STRING_CST initializer spanning the whole variable without
3918 If expand_expr returned MEM, don't use it.
3920 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
3922 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
3923 generate a die for the lexical block.
3925 2002-02-26 Kazu Hirata <kazu@hxi.com>
3927 * config/h8300/h8300-protos.h: Add a prototype for
3928 compute_logical_op_length.
3929 * config/h8300/h8300.c (compute_logical_op_length): New.
3930 * config/h8300/h8300.md (anonymous logical patterns): Use
3931 compute_logical_op_length for length.
3933 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
3935 * dwarf2out.c (modified_type_die): Do not call type_main_variant
3937 (gen_type_die): Same.
3939 * attribs.c (handle_vector_size_attribute): Set debug information.
3941 2002-02-26 Daniel Egger <degger@fhm.edu>
3943 * config/rs6000/rs6000.md: Swap define_insn attributes to
3944 fix incorrect generation of merge high instructions instead
3947 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
3949 * c-typeck.c (really_start_incremental_init): Use
3950 bitsize_zero_node for vectors.
3952 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
3954 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
3955 ("*set_vrsave_internal"): Same.
3957 2002-02-25 Richard Henderson <rth@redhat.com>
3959 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
3960 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
3962 2002-02-25 Jakub Jelinek <jakub@redhat.com>
3965 * config/i386/i386.c (ix86_return_pops_args): Only pop
3966 fake structure return argument if it was passed on the stack.
3968 2002-02-25 Jason Merrill <jason@redhat.com>
3970 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
3973 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
3975 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
3976 link with shared_name only.
3977 * doc/invoke.texi (Link Options): Document new behavior.
3979 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
3981 * c-typeck.c (push_init_level): Handle vectors.
3983 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
3985 * config/sparc/sparc.c (const64_high_operand): Zero-extend
3986 operands of SPARC_SETHI_P.
3987 (input_operand): Likewise.
3988 (sparc_emit_set_const32): Likewise.
3989 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
3990 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
3991 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
3992 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
3993 (movdi_insn_sp64_vis): Likewise.
3994 (movdi split, movdf split): Use SETHI32.
3995 * doc/md.texi: Document SPARC constraints L, M and N.
3997 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
3999 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
4000 ("*set_vrsave_internal"): use mfspr for Darwin.
4002 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
4003 gen_get_vrsave_internal.
4005 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4007 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
4009 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
4011 * cpplex.c (cpp_interpret_charconst): Get signedness or
4012 otherwise of wide character constants correct.
4013 * cppexp.c (lex): Get signedness of wide charconsts correct.
4015 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4017 * optabs.c (widen_operand): Only call convert_modes for
4018 promoted SUBREG if signedness matches.
4019 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
4021 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
4023 * cpplib.c (glue_header_name): Use local buffer to build up
4026 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
4028 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
4030 2002-02-23 Kazu Hirata <kazu@hxi.com>
4032 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
4033 H8/300[HS] separately.
4034 * config/h8300/h8300.md: Remove the early clobber constraint
4035 from bit field patterns.
4037 2002-02-23 Kazu Hirata <kazu@hxi.com>
4039 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
4041 (mulhisi3): Likewise.
4042 (umulqisi3): Likewise.
4043 (umulhisi3): Likewise.
4045 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
4047 * cppinit.c (output_deps): Correct test for stdout output.
4048 (init_dependency_output): Cure warning.
4050 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4052 * expr.c (store_expr): When converting expression to promoted
4053 equivalent type, allow using SUBREG_REG of TARGET as the target
4054 of the expansion of EXP.
4055 * loop.c (basic_induction_var, case SUBREG): Always look inside.
4056 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
4057 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
4058 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
4059 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
4061 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
4063 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
4064 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
4065 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
4067 2002-02-23 Jakub Jelinek <jakub@redhat.com>
4069 PR optimization/5747
4070 * loop.c (scan_loop): Update reg info if move_movables created new
4073 2002-02-23 David Edelsohn <edelsohn@gnu.org>
4075 * gcc.c (init_gcc_spec): Revert last change.
4077 2002-02-23 David Edelsohn <edelsohn@gnu.org>
4079 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
4080 gpc_reg_operand constraint.
4082 2002-02-23 Alan Modra <amodra@bigpond.net.au>
4084 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
4085 Simplify comparison of `low'.
4086 (add_operand): Fix formatting.
4087 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
4088 (mask_operand): Disallow mask to wrap in 64-bit mode.
4089 (rs6000_stack_info): Remove redundant test setting push_p.
4090 (output_toc): Fix formatting.
4091 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
4092 cc_reg_not_cr0_operand constraint.
4093 (booldi3, boolcdi3 splitters): Same.
4095 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
4097 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
4099 2002-02-22 David Edelsohn <edelsohn@gnu.org>
4101 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
4102 gcc invoked with -shared-libgcc.
4104 2002-02-22 Jakub Jelinek <jakub@redhat.com>
4107 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
4108 decl if any of elements was TREE_USED.
4110 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
4112 * config/sparc/sol2.h: Don't include sys/mman.h.
4113 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
4114 (arith_4096_operand): Don't throw high bits away.
4115 (const64_operand): Take sign extension of CONST_INTs into account.
4116 (const64_high_operand, sparc_emit_set_const32): Likewise.
4117 (GEN_HIGHINT64): Likewise.
4118 (sparc_emit_set_const64_quick1): Likewise.
4119 (const64_is_2insns): Likewise.
4120 (print_operand): Use trunc_int_for_mode for sign extension.
4121 * config/sparc/sparc.h (SMALL_INT32): Likewise.
4122 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
4123 chars. Assume CONST_INT is already properly sign-extended.
4124 (movdi split): Sign-extend each SImode part.
4125 (andsi3 split): Don't mask high bits off, so that result
4126 remains properly sign-extend.
4127 (iorsi3 split): Likewise.
4128 (xorsi3 split): Likewise.
4130 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
4132 * fold-const.c (fold): Fix typo in comments.
4134 2002-02-21 Diego Novillo <dnovillo@redhat.com>
4136 * Makefile.in (langhooks.o): Update dependencies.
4138 2002-02-21 Diego Novillo <dnovillo@redhat.com>
4140 * langhooks.c: Include flags.h.
4142 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
4144 * testsuite/gcc.dg/attr-alwaysinline.c: New.
4146 * c-common.c (c_common_post_options): Set inline trees by
4149 * doc/extend.texi (Function Attributes): Document always_inline
4151 Update documentation about inlining when not optimizing.
4153 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
4155 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
4156 unless DECL_ALWAYS_INLINE.
4158 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
4159 unless DECL_ALWAYS_INLINE.
4160 (c_disregard_inline_limits): Disregard if always_inline set.
4162 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
4163 Disregard if always_inline set.
4164 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
4165 unless DECL_ALWAYS_INLINE.
4167 * attribs.c (handle_always_inline_attribute): New.
4168 (c_common_attribute_table): Add always_inline.
4170 * config/rs6000/altivec.h: Add prototypes for builtins
4171 requiring the always_inline attribute.
4173 2002-02-21 Eric Christopher <echristo@redhat.com>
4175 * expmed.c (store_bit_field): Try to simplify the subreg
4176 before generating a new one when when the mode size of
4177 value is less than maxmode.
4179 2002-02-21 Richard Henderson <rth@redhat.com>
4181 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
4182 than gen_rtx_PLUS to form the sum.
4183 * explow.c (force_reg): Rearrange to not allocate new pseudo
4184 when force_operand returns a register.
4185 * expr.c (expand_assignment): Allow offset_rtx expansion to
4186 return a sum. Do not force addresses into registers.
4187 (expand_expr): Likewise.
4188 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
4189 to canonicalize arithmetic that didn't simpify.
4190 (simplify_plus_minus): New argument force; update
4191 all callers. Don't split CONST unless we can do something with it,
4192 and wouldn't lose the constness of the operands.
4194 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
4195 that we generated earlier.
4197 2002-02-21 Tom Tromey <tromey@redhat.com>
4199 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4200 (output_line_info): Use constant `1', with a long explanatory
4202 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
4204 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
4206 * jump.c (redirect_jump): If old label has no UID, don't try to
4209 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
4211 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
4212 If input is constant, do shifts at compile time.
4214 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
4216 * doc/extend.texi: Fix some more overfull hboxes.
4218 2002-02-21 Jakub Jelinek <jakub@redhat.com>
4220 PR optimization/4994
4221 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
4224 2002-02-21 Jakub Jelinek <jakub@redhat.com>
4227 * expr.h (expand_and): Add mode argument.
4228 * expmed.c (expand_and): Add mode argument.
4229 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
4230 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
4231 * except.c (expand_builtin_extract_return_addr): Likewise.
4232 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
4233 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4234 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
4235 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
4236 * config/c4x/c4x.md: Use GEN_INT (x) instead of
4237 gen_rtx (CONST_INT, VOIDmode, x).
4239 2002-02-21 Jakub Jelinek <jakub@redhat.com>
4242 * stmt.c (warn_if_unused_value): Move side effects test once more.
4244 2002-02-20 Torbjorn Granlund <tege@swox.com>
4246 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
4247 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
4249 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
4251 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
4252 SUBREG or ZERO_EXTEND.
4254 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
4256 * sh.h (current_function_anonymous_args): Remove.
4257 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
4258 of current_function_varargs and current_function_stdarg is set.
4259 * sh.c (sh_expand_prologue): Check current_function_varargs /
4260 current_function_stdarg / TARGET_SH5 instead of
4261 current_function_anonymous_args.
4263 * sh64.h (TARGET_VERSION): Define.
4265 2002-02-20 David Edelsohn <edelsohn@gnu.org>
4267 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
4268 VRSAVE_REGNO on TARGET_ALTIVEC.
4270 2002-02-20 Alan Modra <amodra@bigpond.net.au>
4272 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
4273 bits of SImode const_int.
4274 (includes_rshift_p): Likewise.
4275 (print_operand): Call mask_operand and mask64_operand with correct
4277 (rs6000_output_function_epilogue): Pad traceback table to word.
4278 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
4279 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
4280 mask64_operand with correct mode.
4281 (FUNCTION_ARG_REGNO_P): Correct parentheses.
4283 2002-02-20 Jakub Jelinek <jakub@redhat.com>
4286 * varasm.c (get_pool_constant_mark): New.
4287 * rtl.h (get_pool_constant_mark): Add prototype.
4288 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
4289 be represented if it has not been output.
4291 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
4293 * combine.c (do_SUBST): Sanity check substitutions of
4294 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
4295 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
4296 CONST_INT into its operand.
4297 (known_cond): Likewise, for ZERO_EXTEND.
4298 * simplify-rtx.c (simplify_unary_operation): Fix condition to
4299 allow for simplification of wide modes. Reject CONST_INTs in
4300 ZERO_EXTEND when their actual mode is not given.
4302 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
4304 * c-decl.c (pushdecl): If no global declaration is found for an
4305 extern declaration in block scope, try a limbo one.
4307 2002-02-20 Jakub Jelinek <jakub@redhat.com>
4310 * c-common.c (pointer_int_sum): Moved from...
4311 * c-typeck.c (pointer_int_sum): ...here.
4312 * c-common.h (pointer_int_sum): Add prototype.
4314 2002-02-20 Jakub Jelinek <jakub@redhat.com>
4317 * c-decl.c (duplicate_decls): Return 0 if issued error about
4320 2002-02-20 Roger Sayle <roger@eyesopen.com>
4321 Jakub Jelinek <jakub@redhat.com>
4324 * tree.c (host_integerp): Ensure that the constant integer is
4325 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
4326 when pos is zero or non-zero respectively. Clarify comment.
4327 * c-format.c (check_format_info_recurse): Fix host_integerp
4328 usage; the pos argument should be zero when assigning to a
4329 signed HOST_WIDE_INT.
4331 2002-02-20 Richard Henderson <rth@redhat.com>
4333 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
4334 of the operand, rather than assuming TImode.
4335 (ix86_expand_binop_builtin): Cope with commutative patterns
4336 using nonimmediate_operand for both operands.
4337 (ix86_expand_timode_binop_builtin): Likewise.
4338 (ix86_expand_store_builtin): Validate operand 1.
4339 (ix86_expand_unop1_builtin): Likewise.
4341 2002-02-20 Philip Blundell <philb@gnu.org>
4344 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
4346 2002-02-20 Richard Henderson <rth@redhat.com>
4349 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
4351 2002-02-20 Tom Tromey <tromey@redhat.com>
4353 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4354 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4355 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4356 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4357 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
4360 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
4362 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
4363 for (const_int 0) in X not just INTVAL.
4365 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
4367 * doc/extend.texi: Avoid or reduce overfull hboxes.
4369 2002-02-20 Diego Novillo <dnovillo@redhat.com>
4371 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
4372 operations if the field does not start at a mode boundary.
4374 2001-02-20 Joel Sherrill <joel@OARcorp.com>
4376 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
4377 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
4378 Also done for -Acpu and -Amachine.
4380 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
4382 * cppinit.c (init_dependency_output): Take deps output file
4383 from -o if none given with -MF. Suppress normal output.
4384 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
4385 * doc/cpp.texi, doc/invoke.texi: Update.
4387 2002-02-19 Zack Weinberg <zack@codesourcery.com>
4389 * toplev.c (output_quoted_string): Write unprintable
4390 characters with octal escapes.
4392 2002-02-19 David Edelsohn <edelsohn@gnu.org>
4394 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
4395 really_call_used[VRSAVE_REGNO] if not Altivec.
4397 2002-02-19 Alan Modra <amodra@bigpond.net.au>
4399 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
4401 (constant_pool_expr_1): Fix formatting.
4402 (rs6000_legitimize_reload_address): Likewise.
4404 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4406 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
4407 now that we have one.
4409 2002-02-19 Zack Weinberg <zack@codesourcery.com>
4411 * tree.h (struct tree_common): Remove aux. Add unused_0 at
4412 end of first block of bitfields (which was only seven bits);
4413 rename dummy to unused_1; remove comment which is no longer true.
4415 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
4417 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
4419 2002-02-19 Philip Blundell <pb@nexus.co.uk>
4422 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
4426 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
4427 arm_is_longcall_p rather than inspecting call-type cookie
4429 (call_value_insn) [TARGET_THUMB]: Likewise.
4431 2002-02-19 Graham Stott <grahams@redhat.com>
4433 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
4435 2002-02-19 David Edelsohn <edelsohn@gnu.org>
4437 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
4438 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
4439 (FP_SAVE_INLINE): Delete.
4441 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
4442 * config/rs6000/eabi.asm: Remove ABI save restore routines.
4443 * config/rs6000/t-ppccomm: Build crtsavres.o.
4444 * config/rs6000/crtsavres.asm: New file.
4446 2002-02-19 Philip Blundell <philb@gnu.org>
4448 * config/arm/arm.c (use_return_insn): Don't reject interrupt
4450 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
4451 (output_return_instruction): Allow interrupt functions to return with
4452 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
4453 (arm_expand_prologue): Subtract 4 before stacking LR in an
4456 2002-02-19 Philip Blundell <pb@nexus.co.uk>
4458 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
4459 decl, not just FUNCTION_DECL.
4460 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
4461 (arm_assemble_integer): Likewise.
4462 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
4465 2002-02-19 matthew green <mrg@eterna.com.au>
4467 * config.gcc (sparc-*-netbsdelf*): Enable target.
4468 (sparc64-*-netbsd*): New target.
4469 * config/sparc/netbsd-elf.h: New file.
4470 * config/sparc/t-netbsd64: New file.
4472 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
4474 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
4476 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
4478 * doc/invoke.texi: explicitly list the style guidelines that
4479 -Weffc++ checks for.
4481 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
4483 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
4485 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
4488 * gcc.c (cpp_unique_options): Treat -o as indicating object file
4489 only if not -E. If -E, pass -o through to the preprocessor.
4491 2002-02-19 Kazu Hirata <kazu@hxi.com>
4493 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
4494 register number with an appropriate macro.
4496 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
4498 * doc/rtl.texi (Constants): Close @code tag.
4500 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
4502 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
4503 ("mmx_uavgv4hi3"): Same.
4504 ("pmulhrwv4hi3"): Same.
4506 * tree-inline.c (walk_tree): Handle vectors.
4508 * c-common.c (constant_expression_warning): Handle vectors.
4509 (overflow_warning): Same.
4511 * sched-deps.c (sched_analyze_2): Handle vectors.
4513 * rtlanal.c (rtx_unstable_p): Handle vectors.
4514 (rtx_varies_p): Same.
4515 (count_occurrences): Same.
4516 (regs_set_between_p): Same.
4517 (modified_between_p): Same.
4518 (modified_in_p): Same.
4519 (volatile_insn_p): Same.
4520 (volatile_refs_p): Same.
4521 (side_effects_p): Same.
4523 (inequality_comparisons_p): Same.
4524 (replace_regs): Same.
4525 (computed_jump_p_1): Same.
4527 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
4529 (inner_mode_array): New.
4530 (copy_rtx): Handle vectors.
4531 (copy_most_rtx): Same.
4532 (rtx_equal_p): Same.
4533 (get_mode_alignment): Adjust for vectors.
4535 * resource.c (mark_referenced_resources): Handle vectors.
4536 (mark_set_resources): Same.
4538 * reload1.c (eliminate_regs): Handle vectors.
4539 (elimination_effects): Same.
4540 (scan_paradoxical_subregs): Same.
4542 * reload.c (subst_reg_equivs): Handle vectors.
4544 * regrename.c (scan_rtx): Handle vectors.
4546 * regclass.c (reg_scan_mark_refs): Handle vectors.
4548 * recog.c (find_single_use_1): Handle vectors.
4550 * local-alloc.c (equiv_init_varies_p): Handle vectors.
4551 (contains_replace_regs): Same.
4552 (memref_referenced_p): Same.
4554 * integrate.c (copy_rtx_and_substitute): Handle vectors.
4555 (subst_constants): Same.
4557 * genattrtab.c (attr_copy_rtx): Handle vectors.
4558 (encode_units_mask): Same.
4559 (clear_struct_flag): Same.
4560 (count_sub_rtxs): Same.
4562 * gcse.c (want_to_gcse_p): Handle vectors.
4563 (oprs_unchanged_p): Same.
4564 (hash_expr_1): Same.
4565 (oprs_not_set_p): Same.
4566 (expr_killed_p): Same.
4567 (compute_transp): Same.
4568 (store_ops_ok): Same.
4570 * function.c (purge_addressof_1): Do not allow paradoxical subregs
4572 (fixup_var_refs_1): Same.
4573 (instantiate_virtual_regs_1): Same.
4575 * fold-const.c (operand_equal_p): Handle vectors.
4577 (rtl_expr_nonnegative_p): Same.
4579 * flow.c (mark_used_regs): Handle vectors.
4581 * df.c (df_uses_record): Handle vectors.
4583 * cselib.c (cselib_subst_to_values): Handle vectors.
4584 (cselib_mem_conflict_p): Same.
4587 * cse.c (canon_reg): Handle vectors.
4589 (cse_process_notes): Same.
4590 (count_reg_usage): Same.
4593 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
4595 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
4597 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
4598 (gen_rtx): Handle CONST_VECTOR.
4599 (gen_const_vector_0): New.
4600 (copy_rtx_if_shared): CONST_VECTORs can be shared.
4601 (reset_used_flags): Same.
4602 (copy_insn_1): Same.
4603 (initializer_constant_valid_p): Handle VECTOR_CST.
4605 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
4607 * doc/rtl.texi (Constants): Document const_vector.
4608 (CONST0_RTX): Update for vectors.
4609 (RTL sharing): Same.
4611 * print-tree.c (print_node): Add case for VECTOR_CST.
4613 * tree.h (TREE_VECTOR_CST_ELTS): New.
4614 (struct tree_vector): New.
4615 (union tree_node): Add vector node.
4616 (build_vector): Add prototype.
4618 * tree.def (VECTOR_CST): New.
4620 * tree.c (build_vector): New.
4622 * expmed.c (make_tree): Handle CONST_VECTOR.
4624 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
4625 (CONST_VECTOR_ELT): New.
4626 (CONST_VECTOR_NUNITS): New.
4628 * machmode.h (GET_MODE_INNER): New.
4629 (DEF_MACHMODE): Accept 8th arg.
4631 * machmode.def: Add 8th argument for vector inner mode.
4632 Add inner vector modes for vectors.
4634 * rtl.def (VEC_CONST): Remove.
4635 (CONST_VECTOR): New.
4637 * expr.c (clear_storage): Allow vectors.
4638 (is_zeros_p): Handle VECTOR_CST.
4640 * varasm.c (output_constant_pool): Handle vectors.
4641 (rtx_const): Add veclo and vechi fields.
4642 (kind): Add RTX_VECTOR.
4643 (decode_rtx_const): Add case for vector.
4645 * config/rs6000/rs6000-protos.h: Add zero_constant.
4647 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
4648 constants. Force easy vector constants into memory.
4649 (easy_vector_constant): New.
4650 (emit_easy_vector_constant): New.
4651 (rs6000_legitimize_reload_address): Do not generate bad reloads on
4654 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
4656 ("altivec_lvxl"): Same.
4657 (altivec_lvebx): Same.
4658 (altivec_lvehx): Same.
4659 (altivec_lvewx): Same.
4660 ("*movv4si_const0"): New.
4661 ("*movv4sf_const0"): New.
4662 ("*movv8hi_const0"): New.
4663 ("*movv16qi_const0"): New.
4665 2002-02-18 Kazu Hirata <kazu@hxi.com>
4667 * config/h8300/h8300.c (notice_update_cc): Use
4670 2002-02-18 Kazu Hirata <kazu@hxi.com>
4672 * config/h8300/h8300.md (divmod patterns): Change the
4673 constraints for operands[1] to register_operand.
4675 2002-02-18 Kazu Hirata <kazu@hxi.com>
4677 * config/h8300/h8300-protos.h: Remove the prototype for
4679 * config/h8300/h8300.c (p_operand): Remove.
4680 * config/h8300/h8300.md: Replace p_operand with
4683 2002-02-18 Philip Blundell <pb@nexus.co.uk>
4685 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
4687 (output_return_instruction): Allow use of LDR to unstack
4688 return addresss even for interrupt handlers or when
4689 interworking. If compiling for ARMv5, use interworking-safe
4690 return instructions by default. Remove duplicated code and
4691 lengthy "strcat" sequences.
4693 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4695 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
4696 (LINK_EH_SPEC): Define.
4697 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
4699 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
4701 * config/s390/s390.c (s390_emit_prologue): Do not set the
4702 frame_related flag for call-clobbered registers.
4704 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
4706 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
4707 (construct_container): Fix handling of SSE operands.
4708 (ix86_expand_builtin): Fix handling of 64bit pointers.
4709 (mmx_maskmovq_rex): New pattern.
4711 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
4713 * regrename.c (kill_set_value): Handle subregs properly.
4715 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
4717 * objc/objc-act.c (handle_impent): Remove leading '*'
4718 from objc_class_name.
4720 2002-02-17 Richard Henderson <rth@redhat.com>
4722 * config/alpha/alpha.c (some_small_symbolic_operand,
4723 some_small_symbolic_operand_1, split_small_symbolic_operand,
4724 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
4725 Handle small SYMBOL_REFs anywhere, not just inside memories.
4726 * config/alpha/alpha-protos.h: Update.
4727 * config/alpha/alpha.h (PREDICATE_CODES): Update.
4728 * config/alpha/alpha.md (small symbolic operand splitter): Update.
4730 2002-02-17 Roland McGrath <roland@frob.com>
4732 * config.gcc (powerpc-*-gnu-gnualtivec*,
4733 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
4734 * config/rs6000/gnu.h: New file.
4735 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
4736 Grok "gnu" in rs6000_abi_name.
4737 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
4738 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
4739 Grok -mcall-gnu analogous to -mcall-linux et al.
4740 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
4741 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
4742 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
4744 2002-02-17 Jakub Jelinek <jakub@redhat.com>
4747 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
4750 2002-02-17 Philipp Thomas <pthomas@suse.de>
4752 * config/cris/cris.h: Undefine STARTFILE_SPEC and
4753 ENDFILE_SPEC before (re)defining them.
4755 2002-02-17 Kazu Hirata <kazu@hxi.com>
4757 * config/h8300/h8300.c: Fix formatting.
4758 * config/h8300/h8300.h: Likewise.
4760 2002-02-17 Philipp Thomas <pthomas@suse.de>
4762 * doc/tm.texi: Explain why empty strings should not be
4763 marked for translation.
4765 2002-02-17 Philipp Thomas <pthomas@suse.de>
4767 * final.c (output_operand_lossage): Changed to accept
4768 printf style arguments. Change calls where necessary.
4769 * output.h (output_operand_lossage): Change declaration
4770 accordingly. Update copyright.
4771 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
4772 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
4773 Update copyright date where necessary.
4775 * config/i386/i386.c (print_operand): Likewise. Remove use of
4778 * config/cris/cris.c (cris_operand_lossage): Likewise.
4779 Rename parameter so that exgettext recognizes it as
4780 translatable message.
4781 (LOSE_AND_RETURN): Rename parameter to msgid.
4783 2002-02-17 Kazu Hirata <kazu@hxi.com>
4785 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
4786 hard coded register number with an appropriate macro.
4787 (HARD_REGNO_MODE_OK): Likewise.
4788 (ARG_POINTER_REGNUM): Likewise.
4789 (STATIC_CHAIN_REGNUM): Likewise.
4790 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
4791 * config/h8300/h8300.md (define_constants): Define more
4794 2002-02-17 Philipp Thomas <pthomas@suse.de>
4796 * config/i386/i386.h: Don't mark empty strings for translation.
4798 2002-02-16 H.J. Lu <hjl@gnu.org>
4800 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
4802 2002-02-16 Zack Weinberg <zack@codesourcery.com>
4804 * cppinit.c (merge_include_chains): Check for brack being
4805 NULL before attempting to merge it with qtail.
4807 2002-02-16 Andrew Cagney <ac131313@redhat.com>
4809 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
4812 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
4814 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
4816 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
4818 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
4819 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
4820 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
4822 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4824 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
4825 now only if !TARGET_FIX.
4826 (*movsi_nt_vms_fix): New pattern.
4828 2002-02-16 Douglas B Rupp <rupp@gnat.com>
4830 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
4831 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
4832 (alpha_sa_mask, alpha_sa_size): Reflect above change.
4833 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
4834 (alpha_start_function, alpha_expand_epilogue): Likewise.
4835 (unicosmk_gen_dsib): Likewise.
4837 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4839 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
4841 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
4843 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
4844 check_and_change_labels, s390_final_chunkify): Delete.
4845 (s390_split_branches, s390_chunkify_pool): New functions.
4846 (s390_function_prologue): Call them.
4848 * config/s390/s390.h (S390_REL_MAX): Delete.
4849 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
4851 * config/s390/s390.md (cjump, icjump, jump): Fix length
4852 attribute calculation.
4855 2002-02-15 David Edelsohn <edelsohn@gnu.org>
4857 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
4858 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
4860 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
4862 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
4863 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
4864 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
4866 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
4868 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
4870 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
4872 * reload.c (find_dummy_reload): Check that an output register
4873 is valid for its mode.
4875 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
4877 * combine.c (known_cond): After replacing the REG of a SUBREG, try
4880 * function.c (assign_parms): Demote promoted argument passed by
4881 transparent reference.
4883 2001-02-14 Joel Sherrill <joel@OARcorp.com>
4885 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
4886 -Acpu() and -Amachine() to eliminate warnings.
4888 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
4890 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
4892 2002-02-14 Kazu Hirata <kazu@hxi.com>
4894 * config/h8300/h8300-protos.h: Update the prototype for
4896 * config/h8300/h8300.c (const_costs): Treat SET as a little
4897 more expensive operation.
4898 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
4899 reference to const_costs.
4901 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
4903 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
4905 2002-02-14 Jakub Jelinek <jakub@redhat.com>
4908 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
4909 use arguments from newtype.
4911 2002-02-13 Eric Christopher <echristo@redhat.com>
4913 * config/mips/mips.c (override_options): Add check for march/mipsX
4914 on the same command line. Fix error message in cpu processing.
4915 Remove architecture and ISA checks.
4917 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
4919 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
4921 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
4923 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
4925 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
4927 ("*movv8hi_internal1"): Same.
4928 ("*movv16qi_internal1"): Same.
4929 ("*movv4sf_internal1"): Same.
4931 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
4932 not push_reload for altivec modes.
4934 2002-02-13 Joel Sherrill <joel@OARcorp.com>
4936 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
4937 all RTEMS targets including removal of #includes from config/*/rtems*.h
4938 file and adding them to tm_file setting. Added xm_defines=POSIX to
4940 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
4941 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
4942 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
4943 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
4944 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
4945 config/m68k/rtemself.h: Ditto.
4946 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
4947 config/mips/rtems64.h: Ditto.
4948 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
4949 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
4951 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
4952 config/sparc/rtemself.h: Ditto.
4953 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
4954 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
4955 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
4957 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
4958 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
4959 target made more similar to i386-elf.
4960 * config/i386/t-rtems-i386: Added soft float support and multilibs.
4961 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
4962 be similar to config/m68k/t-m68kelf.
4963 * gthr-rtems.h: Encapsulate with extern "C" for C++.
4965 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
4967 * regmove.c (kill_value): Handle subregs.
4969 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
4971 * i386.md (mul patterns): Allow memory operand to be first;
4972 add expanders where needed; fix constraints.
4973 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
4974 Allow memory operand to be the first.
4976 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
4979 2002-02-13 Jakub Jelinek <jakub@redhat.com>
4982 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
4985 2002-02-13 Jakub Jelinek <jakub@redhat.com>
4987 PR optimization/5547:
4988 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
4989 all valid IA-32 address modes involving non-scaled %ebx and
4990 GOT/GOTOFF as displacement.
4992 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
4994 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
4995 after emitting ltorg insns.
4997 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
4998 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
4999 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
5000 *abssf2): Fix "op_type" attribute.
5002 2002-02-13 Douglas B Rupp <rupp@gnat.com>
5004 * mkconfig.sh: Avoid using a subshell redirect.
5005 ($output.T): Change to $(output)T.
5006 (ENABLE_NLS): Remove unneeded undef.
5008 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
5009 * config/alpha/x-vms (libsubdir): Define.
5011 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
5012 register frame procedures. Optimize retrieving context.
5014 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
5015 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
5016 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
5018 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5020 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
5021 Make same change as for find_base_value.
5023 2002-02-13 Kazu Hirata <kazu@hxi.com>
5025 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
5026 of QImode and SImode.
5028 2002-02-13 Kazu Hirata <kazu@hxi.com>
5030 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
5031 length computation of movsi.
5032 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
5034 2002-02-13 Kazu Hirata <kazu@hxi.com>
5036 * config/h8300/h8300.md (subqi3): Tighten the predicate for
5037 operands[2] to register_operand.
5039 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
5041 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
5043 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
5045 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
5046 for altivec_lvx* and altivec_stvx*.
5047 ("*movv4si_internal"): Add constraint for loading from GPRs.
5048 ("*movv8hi_internal1"): Same.
5049 ("*movv16qi_internal1"): Same.
5050 ("*movv4sf_internal1"): Same.
5052 * config/rs6000/rs6000.c (altivec_register_operand): New.
5054 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
5055 altivec_register_operand.
5057 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
5059 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
5062 2002-02-13 Stan Shebs <shebs@apple.com>
5064 * c-typeck.c (digest_init): Handle vectors.
5065 (really_start_incremental_init): Same.
5066 (pop_init_level): Same.
5067 (process_init_element): Same.
5069 * varasm.c (output_constant): Same.
5071 * expr.c (clear_storage): Same.
5072 (store_constructor): Same.
5074 2002-02-12 Eric Christopher <echristo@redhat.com>
5076 * explow.c (hard_function_value): Add comment explaining
5077 signed/unsigned comparison.
5079 2002-02-12 Jakub Jelinek <jakub@redhat.com>
5081 * jump.c (never_reached_warning): Add finish argument.
5082 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
5083 real insn after end.
5084 * rtl.h (never_reached_warning): Adjust prototype.
5085 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
5086 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
5087 never_reached_warning.
5089 2002-02-12 Graham Stott <grahams@redhat.com>
5091 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
5093 2002-02-12 Kazu Hirata <kazu@hxi.com>
5095 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
5096 logical shifts on H8/300.
5097 (shift_alg_si): Improve several shifts on H8/300.
5098 (get_shift_alg): Likewise.
5100 2002-02-12 Graham Stott <grahams@redhat.com>
5102 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
5104 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5106 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
5107 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
5109 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
5111 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
5112 non-CONST_INT through default_assemble_integer.
5113 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
5114 <case 8>: Abort for CONST_DOUBLE.
5116 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5118 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
5120 * config/pa/pa-linux.h (LIB_SPEC): Delete.
5121 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5123 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
5125 * config/stormy16/stormy16.md (zero_extendqihi2): New.
5127 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
5129 * regrename.c (regrename_optimize): Don't accept a
5130 part-clobbered register if the replaced register is not part
5133 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
5134 take padding into account when computing the argument value.
5136 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
5138 * combine.c (try_combine): Apply substitutions in
5139 CALL_INSN_FUNCTION_USAGE too.
5141 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
5143 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
5144 __builtin_altivec_abs*.
5147 * config/rs6000/rs6000.h (rs6000_builtins): Add
5148 ALTIVEC_BUILTIN_ABS*.
5150 * config/rs6000/altivec.h: Use const char for builtins expecting
5152 (vec_abs): New versions for C and C++.
5155 2002-02-10 Kazu Hirata <kazu@hxi.com>
5157 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
5160 2002-02-10 Kazu Hirata <kazu@hxi.com>
5162 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
5163 constant definition from h8300.md.
5164 (FRAME_POINTER_REGNUM): Likewise.
5165 * config/h8300/h8300.md (define_constants): Add FP_REG.
5167 2002-02-10 Kazu Hirata <kazu@hxi.com>
5169 * config/h8300/h8300.c (print_operand): Remove redundant code.
5171 2002-02-10 Kazu Hirata <kazu@hxi.com>
5173 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
5174 * config/h8300/h8300.c (byte_reg): Make it static.
5176 2002-02-10 Richard Henderson <rth@redhat.com>
5179 * c-typeck.c (incomplete_type_error): Handle flexible array members.
5181 2002-02-10 Richard Henderson <rth@redhat.com>
5184 * tree.c (append_random_chars): Don't abort if main_input_filename
5187 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
5189 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
5191 2002-02-10 Kazu Hirata <kazu@hxi.com>
5193 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
5194 (pushhi1): Likewise.
5196 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
5198 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
5199 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
5201 2002-02-09 David O'Brien <obrien@FreeBSD.org>
5203 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
5205 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
5207 2002-02-09 Kazu Hirata <kazu@hxi.com>
5209 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
5210 a half of an SImode register on H8/300.
5212 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
5214 * i386.md (movdi_2): Add missing '!'.
5216 2002-02-09 Kazu Hirata <kazu@hxi.com>
5218 * config/h8300/h8300.h: Fix formatting. Remove commented-out
5221 2002-02-09 Kazu Hirata <kazu@hxi.com>
5223 * config/h8300/h8300.md (length): Correct the distance valid
5224 for the short branch.
5226 2002-02-09 Kazu Hirata <kazu@hxi.com>
5228 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
5230 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
5232 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
5233 registers in SImode.
5234 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
5237 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
5240 Contribute sh64-elf.
5241 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
5242 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
5243 (sh_cannot_modify_jumps_p): New function.
5244 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
5245 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
5246 (sh_ms_bitfield_layout_p): New function.
5247 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
5248 Zack Weinberg <zack@codesourcery.com>
5249 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
5250 expand_simple_binop instead of expand_binop.
5251 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
5252 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
5253 use of .quad and .uaquad.
5254 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
5255 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
5256 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5257 * config/sh/sh.md (movdi_const, movdi_const_32bit,
5258 movdi_const_16bit): Make sure all CONSTs have modes.
5259 (sym2PIC): Ditto, but by adjusting all callers.
5260 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
5261 if the prologue calls the SHmedia argument decoder or register
5263 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5264 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
5265 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
5266 (sh_expand_epilogue): Don't emit USE of return target register.
5267 (prepare_move_operands): Legitimize DImode PIC addresses.
5268 (sh_media_register_for_return): Skip tr0, used to initialize the
5270 (sh_expand_prologue): Remove explicit USE of return register.
5271 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
5272 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
5273 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
5274 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
5275 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
5277 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
5278 (MOVI_SHORI_BASE_OPERAND_P): New.
5279 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
5280 (EXTRA_CONSTRAINT_T): Define in terms of them.
5281 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
5282 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
5283 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
5284 alternatives supporting TARGET_REGS.
5285 (UNSPEC_GOTPLT): New constant.
5286 (movdi split): Move incrementing of LABEL_NUSES...
5287 (movdi_const, movdi_const_32bit): Here. Use
5288 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
5289 (movdi_const_16bit): New.
5290 (call, call_value) [flag_pic]: Use GOTPLT.
5291 (call_pop, call_value_pop): New expands.
5292 (call_pop_compact, call_pop_rettramp): New insns.
5293 (call_value_pop_compact, call_value_pop_rettramp): New insns.
5294 (sibcall) [flag_pic]: Use GOT.
5295 (builtint_setjmp_receiver): Remove bogus, unused expand.
5296 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
5297 (*pt, *ptb, ptrel): New insns.
5298 (sym2GOT): Handle DImode GOT.
5299 (sym2GOTPLT, symGOTPLT2reg): New expands.
5300 (sym2PIC): New expand.
5301 (shcompact_return_tramp): Use GOTPLT to return trampoline.
5302 (shcompact_return_tramp_i): Use return register explicitly.
5303 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
5304 disable flag_reorder_blocks.
5305 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
5306 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
5307 clobbers, for clarity.
5308 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
5309 restoring of r0 in macl as MAYBE_DEAD.
5310 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
5311 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
5312 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
5313 alter_subreg all over.
5314 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
5315 reload, instead of emitting instructions that would require
5317 (casesi_load_media): Add missing modes.
5318 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
5319 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
5320 as used if the argument decoder is called.
5321 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
5322 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
5323 Pmode, then extend it to DImode if necessary.
5324 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
5325 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
5326 constants in FPU-enabled SHmedia, let them be loaded from memory.
5327 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
5328 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
5329 Adjust whitespace in assembly output templates.
5330 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
5331 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
5332 mode of if_then_else.
5333 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
5334 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
5336 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
5337 Joern Rennecke <amylaar@redhat.com>
5338 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
5339 (SUBTARGET_CPP_PTR_SPEC): New.
5340 (SUBTARGET_CPP_SPEC): Remove.
5341 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
5342 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
5343 Fix typo in previous checkin.
5344 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
5345 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
5346 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
5347 Alexandre Oliva <aoliva@redhat.com>
5348 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
5349 what single FP register can hold for SHmedia target.
5350 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
5351 Alexandre Oliva <aoliva@redhat.com>
5352 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
5353 Do not split into SUBREG.
5354 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
5355 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
5356 and added new functions as specified in SH5 ABI r9.
5357 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
5358 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
5360 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
5361 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
5362 gen_consttable_4 and gen_consttable_8. Emit multiple labels
5363 and consttable_window_ends.
5364 2001-06-03 Graham Stott <grahams@redhat,com>
5365 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
5366 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
5367 * config/sh/sh.c (print_operand): Handle floating-point pair,
5368 vector and matrix registers.
5369 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
5370 vector modes into account.
5371 * config/sh/sh.md (movv2sf): Split move between registers into
5373 (movv4sf, movv16sf): Introduce insns that get split only after
5375 * config/sh/shmedia.h: Fix Copyright dates.
5376 * config/sh/ushmedia.h: Likewise. Move loop counter
5377 declarations into conditionals that uses them.
5378 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
5380 * config/sh/sshmedia.h: Fix Copyright dates.
5381 (sh_media_PUTCFG): Fix constraints.
5382 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
5383 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
5384 ptrmemfunc_vbit_in_delta for SH5.
5385 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
5386 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
5387 * invoke.texi: Likewise.
5388 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
5389 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
5390 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
5391 GCC_pop_shmedia_regs_nofpu): New global symbols.
5392 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
5393 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
5394 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
5395 compact function with nonlocal labels.
5396 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
5397 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
5398 (initial_elimination_offset): Account for their stack space.
5399 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
5400 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
5401 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
5402 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
5403 least one of the operands to be a register.
5404 (movv2sf): Likewise. Renamed to movv2sf_i.
5405 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
5406 prepare_move_operands() before emitting SHmedia insns.
5407 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
5408 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
5409 Don't save nor initialize r12. Don't mis-align the stack.
5410 Pad the code with a nop.
5411 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
5413 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
5414 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
5415 [__SHMEDIA__]: Implement.
5416 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
5417 * config/sh/sh.md: Set latency of `pt' closer to reality.
5418 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
5419 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
5420 Set move, load and store type attributes.
5421 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
5422 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
5424 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
5425 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
5426 * config/sh/sh.c (sh_media_register_for_return): New function.
5427 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
5428 branch-target register.
5429 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
5430 * config/sh/sh.md (return_media_i): Use any call-clobbered
5431 branch-target register.
5432 (return_media): If r18 wasn't copied in the prologue, copy it
5434 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
5435 Clear class FP0_REGS.
5436 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
5438 2001-03-08 DJ Delorie <dj@redhat.com>
5439 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
5440 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
5441 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
5442 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
5443 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
5444 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
5445 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
5446 return value correctly for call_cookie.
5447 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
5448 * config/sh/crt1.asm (start): Modified so as to call
5449 ___setup_argv_and_call_main.
5450 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
5451 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
5453 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
5454 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
5455 (STRIP_NAME_ENCODING): Use it.
5456 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
5457 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
5458 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
5459 prepare_scc_operands().
5460 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
5461 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
5462 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
5463 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
5464 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
5465 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
5466 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
5467 used in shcompact_incoming_args.
5468 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
5470 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
5472 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
5474 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
5475 Simplify. Adjust. Add sanity check.
5476 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
5478 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
5480 (udivsi3, divsi3): Use them.
5481 (force_mode_for_call): New insn.
5482 (call, call_value, sibcall_value): Emit it before SHcompact
5484 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
5485 * config/sh/sh.md (call, call_value, sibcall): Make sure the
5486 call cookie is non-NULL before taking its value.
5487 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
5488 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
5489 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
5490 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
5492 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
5493 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
5494 temporary for stack adjusts. Use MACL and MACH to pass
5495 arguments to shcompact_incoming_args.
5496 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
5498 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
5499 (nested_trampoline): Load static chain address into r1.
5500 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
5501 2001-01-07 Alexandre Oliva <aoliva@redhat.com
5502 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
5503 fp_arith_reg_operand().
5504 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
5505 * config/sh/sh.md (casesi): Sign-extend the first two operands,
5506 and use signed compares for them.
5507 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
5508 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
5509 ones properly aligned.
5510 (find_barrier): Account for extra alignment needed for 8-byte wide
5512 (machine_dependent_reorg): Require a label for the second 4-byte
5513 constant after an 8-byte one.
5514 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
5516 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
5517 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
5518 last_float when switching float modes.
5519 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
5520 auto-increment for general-purpose registers.
5521 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
5523 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
5525 * config/sh/sh.c (sh_builtin_saveregs): Support using all
5526 registers for varargs.
5527 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
5528 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
5529 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
5530 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
5531 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
5532 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
5533 call_cookie accordingly.
5534 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
5535 (SHCOMPACT_BYREF): Likewise.
5536 (SHCOMPACT_FORCE_ON_STACK): New macro.
5537 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
5538 (sh_builtin_saveregs): Likewise.
5539 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
5540 shcompact_incoming_args): Use new shift values. Support
5541 sequences of consecutive and non-consecutive pushes/pops.
5542 * config/sh/sh.md (return): Don't explicitly use PR_REG.
5543 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
5544 * config/sh/sh.h (TEXT_SECTION): Define.
5545 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
5546 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
5547 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
5548 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
5549 return values on FPU-enabled SHmedia.
5550 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
5551 FPU-enabled SHmedia.
5552 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
5553 value is returned in a non-FP reg and is not returned by
5555 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
5557 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
5558 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
5559 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
5560 quad-aligned to be passed by callee-copy reference.
5561 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
5562 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
5563 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
5564 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
5565 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
5566 copying low-numbered FP regs to r7 and r8.
5567 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
5568 FP regs to general-purpose regs only if the copy was passed on the
5570 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
5571 copying FP reg to r9.
5572 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
5573 copy FP regs to general-purpose regs only in outgoing calls.
5574 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
5575 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
5577 * config/sh/sh.h (struct sh_args): Document all fields.
5578 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
5579 passed partially on the stack should not consider making
5581 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
5582 stack_regs only for incoming calls. When passing FP args,
5583 make sure there are FP regs available before modifying
5585 (SHCOMPACT_BYREF): Pass double args in general-purpose
5586 registers by reference.
5587 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
5588 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
5589 attempt to generate sibcalls if the caller got any arguments
5591 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
5592 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
5593 to 8-byte boundaries.
5594 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
5595 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
5596 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
5597 stored in the stack.
5598 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
5599 for the offsets to have the ISA bit set.
5600 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
5601 invocation. Use beq instead of bgt to mark end of sequence of
5603 (shcompact_incoming_args): Fix store of r2. Use beq instead of
5604 bgt to mark end of sequence of stores.
5605 * config/sh/sh.c (arith_operand): Don't check whether
5606 CONST_OK_FOR_J for now.
5607 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
5608 instead of long for conversion.
5609 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
5610 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
5611 before passing it to fprintf.
5612 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
5613 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
5614 Call set_fpscr before reading/writing SR.
5615 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
5617 * config/sh/lib1funcs.asm: Add `.align 2' directives before
5619 (FMOVD_WORKS): Define on SH5 with FPU.
5620 (set_fpscr): Define on SH5. Remove separate _fpscr_values
5622 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
5624 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
5625 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
5627 (ia_main_table): Ditto.
5628 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
5629 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
5630 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
5631 the definitions from sh.h.
5632 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
5634 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
5635 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
5636 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
5637 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
5638 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
5639 Increment LABEL_NUSES.
5641 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
5643 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
5645 * config/sh/elf.h (SIZE_TYPE): Likewise.
5646 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
5647 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
5648 shcompact_incoming_args): Load switch table addresses using
5650 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
5651 (NO_BUILTIN_SIZE_TYPE): Define.
5652 (SIZE_TYPE): Don't define.
5653 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
5654 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
5655 definition of __SH5__=32 for -m5-compact-nofpu.
5656 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
5658 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
5659 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
5660 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
5661 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
5662 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
5663 (INSN_LENGTH_ALIGNMENT): Likewise.
5664 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
5665 * config/sh/sh.md (call, call_value, sibcall): Simplify
5666 copying of non-branch-target register.
5667 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
5668 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
5669 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
5670 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
5671 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
5672 floating-point values as structs.
5673 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
5674 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
5675 general-purpose register.
5676 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
5677 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
5678 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
5679 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
5680 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
5681 (ENCODE_SECTION_INFO): Enclose variables and constants in
5683 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
5684 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
5685 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
5686 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
5687 only for LABEL_REFs. For SYMBOL_REFs, prepend
5688 SH_DATALABEL_ENCODING to the symbol name.
5689 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
5691 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
5692 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
5694 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
5695 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
5696 (DATALABEL_REF_P): Don't require CONST.
5697 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
5699 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
5700 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
5702 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
5703 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
5704 Use shallow_copy_rtx and PUT_MODE to change the mode of
5705 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
5706 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
5707 on SHmedia using GENERAL_REGs.
5708 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
5709 bltu_media_i): Fix reversion of conditions.
5710 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
5711 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
5712 * config/sh/sh.c (output_far_jump): Save r13 in macl.
5713 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
5714 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
5715 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
5716 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
5717 (GCC_nested_trampoline): Likewise.
5718 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
5719 * config/sh/sh.c (gen_datalabel_ref): Define.
5720 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
5721 (INITIALIZE_TRAMPOLINE): Likewise.
5722 (TRAMPOLINE_ADJUST_ADDRESS): Define.
5723 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
5724 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
5725 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
5726 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
5727 (ic_invalidate): Adjust for SH5.
5728 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
5729 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
5731 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
5732 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
5733 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
5734 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
5735 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
5736 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
5737 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
5738 * config/sh/sh.c (target_reg_operand): Match only target-branch
5739 registers and pseudos that aren't virtual registers.
5740 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
5741 Copy operands that don't match target_reg_operand to pseudos.
5742 (call_media, call_value_media, sibcall_media): Use
5743 target_reg_operand instead of target_operand.
5744 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
5745 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
5746 * config/sh/sh.c (target_reg_operand): Match hardware registers
5747 other than branch-target registers.
5748 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
5749 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
5750 (fpscr_values) [SH5 == 32]: Define.
5751 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
5752 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
5753 Handle function addresses coming in SUBREGs.
5754 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
5755 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
5756 shcompact_return_trampoline): Use datalabel where appropriate.
5757 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
5758 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
5759 general-purpose register to copy one branch-target register to
5761 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
5762 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
5763 SYMBOL_REFs with VOIDmode.
5764 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
5765 bltu_media_i): New insns.
5766 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
5767 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
5768 (INIT_CUMULATIVE_ARGS): Likewise.
5769 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
5770 * machmode.def (V16SFmode): New mode.
5771 * c-common.c (type_for_mode): Support V2SF and V16SF.
5772 * tree.c (build_common_tree_nodes_2): Likewise.
5773 * tree.h (tree_index): Likewise.
5774 * calls.c (emit_call_1): Take args_so_far. Adjust all
5775 callers. Introduce CALL_POPS_ARGS.
5776 * tm.texi (CALL_POPS_ARGS): Document.
5777 * config/sh/crt1.asm: Implement in SHmedia mode.
5778 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
5779 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
5780 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
5781 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
5782 Implement divsi and udivsi in SHmedia mode. Introduce
5783 SHcompact trampolines.
5784 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
5786 (regno_reg_class): Rewrite.
5787 (fp_reg_names): Remove.
5788 (sh_register_names, sh_additional_register_names): New.
5789 (print_operand): Added `u'. Support SUBREGs in addresses.
5790 Add parentheses around shifted CONSTs.
5791 (output_file_start): Output .mode and .abi directives.
5792 (shiftcosts, addsubcosts, multcosts): Adjust.
5793 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
5794 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
5795 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
5796 bytes, not registers. Take into account the need for the
5797 SHcompact incoming args trampoline. Adjust all callers.
5798 (sh_expand_prologue): Take stack_regs into account. Call
5799 incoming args trampoline. Keep stack aligned as per SH5 ABI.
5800 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
5801 stack aligned as per SH5 ABI.
5802 (sh_builtin_saveregs): Support SH5 ABI.
5803 (sh_build_va_list, sh_va_start): Likewise.
5804 (initial_elimination_offset): Take alignment into account.
5805 Compute location of PR according to the SH5 stack frame.
5806 (arith_reg_operand): Reject branch-target registers.
5807 (shmedia_6bit_operand): New.
5808 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
5809 (target_reg_operand): Match DImode only. Accept SUBREGs.
5810 (target_operand): New.
5811 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
5812 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
5813 SIBCALL_REGS for SHmedia.
5814 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
5815 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
5816 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
5817 (TARGET_SWITCHES): New SH5 flags.
5818 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
5819 VALID_REGISTER_P to disable unsupported registers.
5820 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
5821 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
5822 (FUNCTION_ARG_PADDING): Define.
5823 (FASTEST_ALIGNMENT): Adjust.
5824 (SH_REGISTER_NAMES_INITIALIZER): New.
5825 (sh_register_names): Declare.
5826 (DEBUG_REGISTER_NAMES): Define.
5827 (REGISTER_NAMES): Define based on sh_register_names.
5828 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
5829 (sh_additional_register_names): Declare.
5830 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
5831 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
5832 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
5833 (REGISTER_NATURAL_MODE): Define.
5834 (FIRST_PSEUDO_REGISTER): Adjust.
5835 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
5836 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
5837 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
5838 (VECTOR_MODE_SUPPORTED_P): Define.
5839 (REG_CLASS_CONTENTS): Adjust.
5840 (SMALL_REGISTER_CLASSES): Adjust.
5841 (REG_ALLOC_ORDER): Adjust.
5842 (INDEX_REG_CLASS): Adjust.
5843 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
5844 (CONST_OK_FOR_LETTER_P): Adjust.
5845 (PREFERRED_RELOAD_CLASS): Adjust.
5846 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
5847 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
5848 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
5849 (FIRST_FP_PARM_REG): Adjust.
5850 (CALL_POPS_ARGS): Define.
5851 (FUNCTION_ARG_REGNO_P): Adjust.
5852 (struct sh_args): New fields.
5853 (GET_SH_ARG_CLASS): Adjust.
5854 (INIT_CUMULATIVE_ARGS): Adjust.
5855 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
5856 (FUNCTION_ARG_ADVANCE): Adjust.
5857 (FUNCTION_ARG): Adjust.
5858 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
5859 (FUNCTION_ARG_CALLEE_COPIES): Define.
5860 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
5861 (STRICT_ARGUMENT_NAMING): Define.
5862 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
5863 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
5864 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
5865 (SETUP_INCOMING_VARARGS): Adjust.
5866 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
5867 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
5868 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
5869 (SUBREG_OK_FOR_INDEX_P): Adjust.
5870 (EXTRA_CONSTRAINT_S): Update.
5871 (EXTRA_CONSTRAINT_T): New.
5872 (EXTRA_CONSTRAINT): Adjust.
5873 (GO_IF_LEGITIMATE_INDEX): Adjust.
5874 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
5875 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
5877 (MAX_MOVE_MAX): Define.
5879 (CONST_COSTS): Adjust.
5880 (REGISTER_MOVE_COST): Adjust.
5881 (BRANCH_COST): Adjust.
5882 (TEXT_SECTION_ASM_OP): Adjust.
5883 (DBX_REGISTER_NUMBER): Adjust.
5884 (ASM_OUTPUT_DOUBLE_INT): New.
5885 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
5886 (PREDICATE_CODES): Adjust.
5887 (PROMOTE_MODE): Adjust.
5888 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
5889 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
5890 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
5891 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
5892 (DR0_REG, DR2_REG, DR4_REG): Renumber.
5893 (TR0_REG, TR1_REG, TR2_REG): New.
5894 (XD0_REG): Renumber.
5895 (UNSPEC_COMPACT_ARGS): New.
5896 (type): Added pt and ptabs.
5897 (length): Default to 4 on SHmedia. Default pt length to 12
5898 and 20 on SHmedia32 and SHmedia64, respectively.
5899 (pt): New function unit.
5900 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
5901 Add whitespace between operands of SHmedia instructions.
5903 (adddi3_media, addsi3_media): Adjust constraints.
5904 (subsi3) [SHmedia]: Force operand 1 into a register.
5905 (udivsi3_i1_media, udivsi3_i4_media): New.
5906 (udivsi3): Support SHmedia.
5907 (divsi3_i1_media, divsi3_i4_media): New.
5908 (divsi3): Support SHmedia.
5909 (anddi3, iordi3, xordi3): Adjust constraints.
5910 (zero_extendhidi2, zero_extendqidi2): New.
5911 (extendsidi2, extendhidi2, extendqidi2): New.
5912 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
5913 (pop_e, pop_fpul, pop_4): Likewise.
5914 (movsi_media): Support FP and BT registers.
5915 (movsi_media_nofpu): New. Adjust splits to DImode.
5916 (lduw, ldub): Renamed to zero_extend* above.
5917 (movqi_media): Fix typo.
5918 (movdi_media): Support FP and BT registers.
5919 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
5920 (movdi_const_32bit): New.
5921 (shori_media): Require immediate operand. Use `u' for output.
5922 (movdf_media, movsf_media): Simplified.
5923 (movdf_media_nofpu, movsf_media_nofpu): New.
5924 (movdf, movsf): Adjust
5925 (movv2sf, movv2sf, movv16sf): New.
5926 (beq_media, beq_media_i): Adjust constraints. Don't use
5927 scratch BT register.
5928 (bne_media, bne_media_i): Likewise.
5929 (bgt_media, bgt_media_i): Likewise.
5930 (bge_media, bge_media_i): Likewise.
5931 (bgtu_media, bgtu_media_i): Likewise.
5932 (bgeu_media, bgeu_media_i): Likewise.
5933 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
5934 bunordered): Emit jump insn. Force operands to registers when
5936 (jump_media, jump): Simplify.
5937 (call_compact, call_compact_rettramp): New.
5938 (call_value_compact, call_value_compact_rettramp): New.
5939 (call_media, call_value_media): Simplify.
5940 (sibcall_compact, sibcall_media): New.
5941 (call, call_value): Adjust for SHmedia and SHcompact.
5942 (sibcall, sibcall_value, untyped_call): Likewise.
5943 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
5944 (indirect_jump): Adjust for SHmedia.
5945 (casesi_jump_media): New.
5946 (nop): Re-enable for SHmedia.
5947 (call_site): Restrict to SH1.
5948 (casesi): Adjust for SHmedia.
5949 (casesi_shift_media, casesi_load_media): New.
5950 (return): Explicitly use PR register. Call return trampoline
5952 (return_i): Explicitly use PR register.
5953 (shcompact_return_tramp, shcompact_return_tramp_i): New.
5954 (return_media): Adjust.
5955 (shcompact_incoming_args): New.
5957 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
5958 (movstrsi): Disable on SH5.
5959 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
5960 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
5961 (subsf3, subsf3_media): Likewise.
5962 (mulsf3, mulsf3_media, mac_media): Likewise.
5963 (divsf3, divsf3_media): Likewise.
5964 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
5965 (floatsisf2, fux_truncsfsi2): Likewise.
5966 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
5968 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
5969 (cmpunsf_media, cmpsf): Likewise.
5970 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
5971 (abssf2, abssf2_media): Likewise.
5972 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
5973 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
5974 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
5975 (floatsidf2, fix_truncdfsi2): Likewise.
5976 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
5978 (cmpeqdf_media, cmpgtdf_media): Likewise.
5979 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
5980 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
5981 (absdf2, absdf2_media): Likewise.
5982 (extendsfdf2, extendsfdf2_media): Likewise.
5983 (truncsfdf2, truncsfdf2_media): Likewise.
5984 * config/sh/sh64.h: New file.
5985 * config/sh/t-sh64: New file.
5986 * config/sh/shmedia.h: New file.
5987 * config/sh/ushmedia.h: New file.
5988 * config/sh/sshmedia.h: New file.
5989 * configure.in: Added sh64-*-elf.
5990 * configure: Rebuilt.
5991 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
5992 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
5993 (reg_class_from_letter): Use `b' for TARGET_REGS.
5994 (print_operand): Support `%M', `%m', `AND' and
5995 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
5996 (andcosts): Adjust for SHmedia.
5997 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
5999 (target_reg_operand): New function.
6000 * config/sh/sh-protos.h (target_reg_operand): Declare.
6001 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
6002 FP registers on SH5.
6003 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
6005 (TARGET_REGISTER_P): New macro.
6006 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
6007 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
6008 (EXTRA_CONSTRAINT_S): New macro.
6009 (EXTRA_CONSTRAINT): Adjust.
6010 (FLOAT_TYPE_SIZE): Define to 32.
6011 (Pmode): DImode on SHmedia.
6012 (CONST_COSTS): Adjust for SHmedia literals.
6013 (PREDICATE_CODES): Added target_reg_operand.
6014 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
6015 * config/sh/sh.md: Remove all attrs from SHmedia insns.
6016 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
6017 (cmpdi): Accept SHmedia.
6018 (movdicc_false, movdicc_true): New insns.
6019 (movdicc): New expand.
6020 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
6022 (addsi3_media): Match `S' constraint.
6023 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
6024 (negdi2): Expand for SHmedia.
6025 (one_cmpldi2): New expand.
6026 (zero_extendsidi2): Change from expand to insn.
6027 (extendsidi2): Add constraints.
6028 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
6029 LD/ST address. Fix SI immediate loading split.
6030 (movhi_media, movqi_media, lduw, ldub): New insns.
6031 (movhi, movqi): Accept SHmedia.
6032 (shori_media, movdi_media): Relax input constraints. Split
6034 (movdf_media, movsf_media): New insn. New split to movdi.
6035 (movdf, movsf): Match on SHmedia.
6036 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
6037 bgeu_media): New insns and splits. New insns with `_i' suffix.
6038 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
6039 (bunordered): New expand.
6040 (jump_compact): Renamed from `jump'.
6041 (jump_media): New insn.
6043 (call_media, call_value_media): New insns.
6044 (call, call_value): Adjust.
6045 (indirect_jump_compact): Renamed from `indirect_jump'.
6046 (indirect_jump_media): New insn.
6047 (indirect_jump): New expand.
6048 (untyped_call, return): Accept SHmedia.
6049 (return_media): New insn.
6050 (prologue, epilogue, blockage): Accept SHmedia.
6051 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
6052 (sunordered): New expand.
6053 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
6054 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
6055 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
6056 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
6057 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
6058 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
6059 abssf2_media): New insns.
6060 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
6061 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
6062 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
6063 floatdidf2, floatsidf2_media, fix_truncdfdi2,
6064 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
6065 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
6066 absdf2_media): New insns.
6067 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
6068 (extendsfdf2_media, truncdfsf2_media): New insns.
6069 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
6070 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
6071 * config/sh/sh.h (CONST_OK_FOR_J): Document.
6072 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
6073 * config/sh/sh.md (adddi3): New expand.
6074 (adddi3_media, adddi3z_media): New insns.
6075 (adddi3_compact): Renamed from adddi3.
6076 (addsi3_media): Use add.l r63 to add constant zero.
6077 (subdi3): New expand.
6078 (subdi3_media): New insn.
6079 (subdi3_compact): Renamed from subdi3.
6080 (mulsidi3): New expand.
6081 (mulsidi3_media): New insn.
6082 (mulsidi3_compact): Renamed from mulsidi3.
6083 (umulsidi3): New expand.
6084 (umulsidi3_media): New insn.
6085 (umulsidi3_compact): Renamed from umulsidi3.
6086 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
6087 (ashlsi3, ashrsi3, lshrsi3): Use them.
6088 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
6089 (ashldi3, ashrdi3, lshrdi3): Use them.
6090 (zero_extendsidi2): New expand.
6091 (extendsidi2): New insn.
6092 (movsi_media): New insn. Split to movdi to load constants.
6093 (movsi): Enable for shmedia.
6094 (movdi_media): New insn. Use shori_media to load wide constants.
6095 (short_media): New insn.
6096 (movdi): Enable for shmedia.
6097 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
6098 * config/sh/sh.h (CPP_SPEC): Added `m5'.
6099 (SUBTARGET_CPP_SPEC): Added `!m5'.
6100 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
6101 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
6102 to all other SH variants.
6103 (TARGET_DEFAULT): Set to SH1_BIT.
6104 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
6105 (BITS_PER_WORD): Raise to 64 on shmedia.
6106 (MAX_BITS_PER_WORD): Change to 64.
6107 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
6108 (INT_TYPE_SIZE): Keep as 32.
6109 (UNITS_PER_WORD): Raise to 8 on shmedia.
6110 (MIN_UNITS_PER_WORD): Keep as 4.
6111 (POINTER_SIZE): Raise to 64 on shmedia.
6112 (CONST_OK_FOR_J): New macro.
6113 (CONST_OK_FOR_LETTER_P): Use it.
6114 (processor_type): Add PROCESSOR_SH5.
6115 * config/sh/sh.md: Conditionalize all expands, insns and
6116 splits to TARGET_SH1.
6118 (addsi3_compact): Renamed from...
6119 (addsi3): Now an expand.
6120 (addsi3_media, subsi3_media): New insns.
6121 (subsi3): Don't negate constants with SHmedia.
6123 * hooks.c: New file.
6124 * hooks.h: New file.
6125 * Makefile.in (HOOKS_H): New.
6126 (TARGET_DEF_H): Added $(HOOKS_H).
6127 (OBJS): Added hooks.o.
6128 (cfgcleanup.o, bb-reorder.o): Added target.h.
6129 (hooks.o): Added dependencies.
6130 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
6131 (TARGET_INITIALIZER): this.
6132 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
6133 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
6134 * bb-reorder.c: Include target.h.
6135 (reorder_basic_blocks): Skip if cannot modify jumps.
6136 * cfgcleanup.c: Include target.h.
6137 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
6139 2002-02-08 Chris Demetriou <cgd@broadcom.com>
6141 * config/mips/mips.md (casesi_internal, casesi_internal_di):
6142 Protect jump delay slot instructions with .set noreorder and
6145 2002-02-08 Chris Demetriou <cgd@broadcom.com>
6147 * config/mips/mips.md (casesi_internal_di): Calculate
6148 the index into the target offset table correctly.
6150 2002-02-08 Richard Henderson <rth@redhat.com>
6152 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
6153 * final.c (output_addr_const): Accept and discard SUBREG.
6154 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
6155 mark them unknown instead.
6156 (simplify_subtraction): Handle RTX_UNKNOWN.
6157 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
6159 2002-02-08 David Edelsohn <edelsohn@gnu.org>
6161 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
6163 2002-02-08 Richard Henderson <rth@redhat.com>
6165 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
6167 2002-02-08 Andreas Jaeger <aj@suse.de>
6169 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
6170 * config/i386/t-linux64: New file.
6172 2002-02-08 Jakub Jelinek <jakub@redhat.com>
6174 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
6175 * c-parse.in (compstmt): Clear last_expr_type.
6177 2002-02-07 Richard Henderson <rth@redhat.com>
6179 * loop.c (strength_reduce): Sink final_value when not
6182 2002-02-07 David O'Brien <obrien@FreeBSD.org>
6184 * config/sparc/freebsd.h: Fix mismatched spec {.
6186 2002-02-07 Richard Henderson <rth@redhat.com>
6188 * cfgrtl.c: Include recog.h and insn-config.h.
6189 (keep_with_call_p): Fix general_operand invocation.
6190 * Makefile.in (cfgrtl.o): Update dependencies.
6192 2002-02-07 Kazu Hirata <kazu@hxi.com>
6194 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
6195 comment. Accept HImode only if TARGET_H8300.
6197 2002-02-07 Eric Christopher <echristo@redhat.com>
6199 * config/mips/crtn.asm: Cleanup #ifdefs.
6201 2002-02-07 Eric Christopher <echristo@redhat.com>
6203 * config/mips/crti.asm: Add changes for mips16. mips16 uses
6204 register 7 as RA instead of $31.
6205 * config/mips/crtn.asm: Ditto.
6206 * config/mips/mips.c (mips_move_2words): Add case for
6207 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
6208 (compute_frame_size): Fix typo.
6209 (save_restore_insns): Ditto. Make documentation about using
6210 register $7 as return register more precise.
6211 (mips_expand_epilogue): Fix comment. Add code to work around not
6212 being able to add to the stack pointer directly.
6213 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
6214 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
6217 2002-02-07 Tom Rix <trix@redhat.com>
6219 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
6220 immediates in ldu and stdu DS opcode field.
6221 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
6222 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
6223 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
6225 2002-02-07 Jeff Sturm <jsturm@one-point.com>
6227 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
6228 offset for stack bias.
6230 2002-02-07 H.J. Lu <hjl@gnu.org>
6232 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
6234 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
6236 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
6238 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
6240 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
6241 * i386.c (x86_order_regs_for_local_alloc): New global function.
6242 * i386.h (REG_ALLOC_ORDER): CLeanup.
6243 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
6245 2002-02-07 Richard Henderson <rth@redhat.com>
6247 PR optimization/2463
6248 * alias.c (find_base_value): Recall base values for fixed hard regs.
6249 * loop.c (loop_regs_update): Don't use single_set on non-insns.
6251 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
6253 * config/mips/mips.md (define_delay) [mips16]: Adjust required
6256 2002-02-06 Richard Henderson <rth@redhat.com>
6259 * stmt.c (resolve_operand_name_1): Take more care with mixed
6260 named and unnamed operands.
6262 2002-02-06 Janis Johnson <janis187@us.ibm.com>
6263 Jan Hubicka <jh@suse.cz>
6265 * loop.c (remove_constant_addition): Avoid clobbering a shared
6268 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
6270 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
6271 * config/s390/t-linux64: New file.
6272 * config/s390/libgcc-glibc.ver: New file.
6274 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
6276 * config/s390/linux64.h: Delete file.
6277 * config/s390/s390x.h: New file.
6278 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
6279 as target header file.
6280 * config/s390/linux.h (TARGET_VERSION): Define depending on
6281 DEFAULT_TARGET_64BIT.
6282 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
6283 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
6284 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
6285 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
6286 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
6287 (EXTRA_SPEC): New define.
6288 * config/s390/s390.h (TARGET_VERSION): Define depending on
6289 DEFAULT_TARGET_64BIT.
6290 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
6292 2002-02-06 Jason Merrill <jason@redhat.com>
6294 * c-decl.c (finish_function): Warn about a non-void function with
6295 no return statement and no abnormal exit.
6296 (current_function_returns_abnormally): New variable.
6297 (start_function): Clear it.
6298 (struct c_language_function): Add returns_abnormally.
6299 (push_c_function_context): Save it.
6300 (pop_c_function_context): Restore it.
6301 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
6302 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
6303 an explicit return type.
6304 * c-tree.h: Declare current_function_returns_abnormally.
6305 (C_FUNCTION_IMPLICIT_INT): New macro.
6306 * c-typeck.c (build_function_call): Set it.
6307 (c_expand_return): Set current_function_returns_value even if the
6310 2002-02-06 Jakub Jelinek <jakub@redhat.com>
6313 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
6314 unsafe for reevaluation.
6316 2002-02-06 Jakub Jelinek <jakub@redhat.com>
6319 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
6320 EXPR_STMT, but COMPOUND_STMT, recurse into it.
6322 2002-02-06 Richard Henderson <rth@redhat.com>
6324 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
6325 be a general_operand. Dest for function value must be a pseudo.
6327 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
6329 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
6330 as SYMBOL_REFs from the constant pool.
6332 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
6334 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
6335 passed by invisible reference.
6337 2002-02-05 Richard Henderson <rth@redhat.com>
6339 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
6341 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
6343 Implement using "base addresses" in insn operands as default.
6344 * config/mmix/mmix.c (mmix_conditional_register_usage): if
6345 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
6346 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
6347 used to read the rtx value.
6348 (mmix_target_asm_function_epilogue): Fix spacing.
6349 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
6350 (mmix_legitimate_address): Ditto.
6351 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
6352 should be loaded with a GETA insn. Don't allocate needless extra
6353 char for nul termination and fix misleading comment.
6354 (mmix_print_operand_address): Handle constants if
6355 TARGET_BASE_ADDRESSES.
6356 (mmix_output_register_setting): Use base addressing if
6357 TARGET_BASE_ADDRESSES and the number of insns is 3.
6358 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
6359 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
6360 to use R as constraint, add LDA to match s.
6361 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
6362 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
6363 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
6364 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
6365 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
6366 order with other fixed registers.
6367 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
6368 other parameter/call-clobbered registers.
6369 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
6370 -mbase-addresses, -mno-base-addresses.
6371 (MMIX Options): Ditto.
6373 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
6375 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
6377 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
6379 * config/rs6000/altivec.h: Change elem to _S_elem.
6381 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
6383 * config/netbsd.h (WCHAR_TYPE): Define.
6384 (WCHAR_TYPE_SIZE): Ditto.
6386 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
6387 (WCHAR_UNSIGNED): Ditto.
6388 (WCHAR_TYPE_SIZE): Ditto.
6390 * config/arm/netbsd.h: Likewise.
6391 * config/i386/netbsd-elf.h: Likewise.
6392 * config/i386/netbsd.h: Likewise.
6393 * config/m68k/netbsd-elf.h: Likewise.
6394 * config/m68k/netbsd.h: Likewise.
6395 * config/ns32k/netbsd.h: Likewise.
6396 * config/sparc/netbsd.h: Likewise.
6397 * config/vax/netbsd.: Likewise.
6399 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
6401 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
6402 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
6403 (TARGET_INITIALIZER): this.
6404 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
6405 (BITFIELD_NBYTES_LIMITED): Markup fix.
6406 * tree.h (default_ms_bitfield_layout_p): Declare.
6407 (record_layout_info): Added prev_field.
6408 * tree.c (default_ms_bitfield_layout_p): New fn.
6409 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
6410 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
6411 * stor-layout.c: Include target.h.
6412 (start_record_layout): Initialize prev_field.
6413 (place_field): Handle MS bit-field layout, and disregard
6414 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
6415 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
6416 * Makefile.in (stor-layout.o): Adjust dependencies.
6418 2002-02-05 Jason Merrill <jason@redhat.com>
6420 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
6422 2002-02-05 Andreas Jaeger <aj@suse.de>
6424 * crtstuff.c: Fix comments.
6426 2002-02-05 Richard Henderson <rth@redhat.com>
6429 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
6430 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
6433 * config/mips/mips.c (function_arg): Handle TImode.
6434 (function_arg_advance): Likewise.
6436 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
6438 * config/rs6000/altivec.h (vec_step_help): Rename to
6441 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
6443 * config/rs6000/altivec.h: Fix typos.
6445 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
6447 * config/arm/netbsd.h: Correct a comment.
6449 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
6451 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
6452 building void typed builtins.
6454 * config/rs6000/altivec.h (vec_ld*): Fix typos.
6455 (vec_step): Implement for C++.
6457 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6459 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
6461 2002-02-04 Richard Henderson <rth@redhat.com>
6463 * combine.c (nonzero_bits): Re-introduce special case for
6464 sp/fp/ap wrt REGNO_POINTER_ALIGN.
6466 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
6468 * doc/extend.texi: Warn about unsupported usage of altivec
6471 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
6472 (altivec_predicate_*): New.
6474 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
6475 Add C++ version of vec_*() functions.
6477 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
6478 (bdesc_2arg): Remove altivec predicates.
6479 (altivec_expand_builtin): Handle predicates.
6480 (altivec_init_builtins): Handle predicates.
6481 (altivec_expand_predicate_builtin): New.
6483 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6485 * pa.c (DO_FRAME_NOTES): Move forward.
6486 (store_reg): Revise handling of frame notes.
6487 (load_reg): Likewise.
6488 (set_reg_plus_d): Likewise.
6489 (hppa_expand_prologue): Likewise.
6490 (hppa_expand_epilogue): Likewise.
6492 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6494 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
6496 2002-02-04 Jakub Jelinek <jakub@redhat.com>
6498 PR c/4475, c++/3780:
6499 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
6500 * c-common.h (SWITCH_TYPE): Define.
6501 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
6502 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
6503 Rename spareness variable to sparseness.
6504 (expand_end_case_type): Renamed from expand_end_case, use orig_type
6505 if non-NULL instead of TREE_TYPE (orig_index).
6506 * tree.h (expand_end_case_type): Renamed from expand_end_case.
6507 (expand_end_case): Define using expand_end_case_type.
6508 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
6509 to expand_end_case_type.
6510 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
6512 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6514 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
6515 (BIGGEST_ALIGNMENT): Change to 128.
6517 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6519 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
6521 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6523 * pa.md (call_internal_reg_64bit): Remove unused variable.
6525 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
6527 * config/arm/arm.h (machine_function): Add uses_anonymous_args
6529 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
6530 * config/arm/arm.c (current_function_anonymous_args): Delete,
6531 replace uses with cfun->machine->uses_anonymous_args.
6532 (arm_reorg): Do not reset uses_anonymous_args.
6534 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
6535 any geenral register.
6537 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
6539 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
6542 2002-02-04 Richard Henderson <rth@redhat.com>
6544 * combine.c (force_to_mode): Remove STACK_BIAS code.
6545 (nonzero_bits): Likewise. Replace sp/fp special case with
6546 REGNO_POINTER_ALIGN.
6548 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
6549 (HARD_FRAME_POINTER_REGNUM): New.
6550 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
6551 (FIXED_REGS, CALL_USED_REGS): Update.
6552 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
6553 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
6554 (HARD_REGNO_NREGS): Update for SFP.
6555 (STACK_POINTER_OFFSET): Include bias here ...
6556 (FIRST_PARM_OFFSET): ... not here.
6557 (STACK_BIAS): Remove.
6558 (INIT_EXPANDERS): New.
6559 (STARTING_FRAME_OFFSET): Do not include bias.
6560 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
6561 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
6562 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
6563 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
6564 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
6565 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
6566 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
6567 (MUST_SAVE_REGISTER): Likewise.
6568 (sparc_flat_function_prologue): Likewise.
6569 (sparc_flat_function_epilogue): Likewise.
6570 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
6571 (sparc_init_modes): SFP is GENERAL_REGS.
6572 (sparc_builtin_saveregs): SFP does not have bias applied.
6574 2002-02-04 Richard Henderson <rth@redhat.com>
6576 * config/alpha/alpha.c (current_function_is_thunk): Don't check
6577 current_function_is_thunk.
6578 (alpha_sa_mask): Distinguish between current_function_is_thunk
6579 called from ASM_OUTPUT_MI_THUNK and not.
6580 (alpha_does_function_need_gp): Thunks always need gp.
6581 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
6582 (alpha_output_mi_thunk_osf): New.
6583 * config/alpha/alpha-protos.h: Update.
6584 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
6586 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
6588 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
6589 function types, not when they're taken away.
6591 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
6593 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
6594 CODE_LABEL and jump table when replacing a table jump with a
6597 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6599 * config/s390/s390-protos.h (legitimize_la_operand,
6600 s390_secondary_input_reload_class, s390_plus_operand,
6601 s390_expand_plus_operand): Add prototypes.
6603 config/s390/s390.c (s390_secondary_input_reload_class,
6604 s390_plus_operand, s390_expand_plus_operand): New functions.
6606 (struct s390_address): New member 'pointer'.
6607 (s390_decompose_address): Compute it.
6608 (legitimate_la_operand_p): Use it.
6609 (legitimize_la_operand): New function.
6610 (movti, movdi, movdf splitters): Call it.
6612 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
6613 (PREDICATE_CODES): Add s390_plus_operand.
6615 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
6616 (la_ccclobber): Allow GENERAL_REGS as output operand.
6618 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
6619 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
6620 (*la_64, *la_31, reload_indi, reload_insi): ... these.
6622 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6624 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
6625 register names for regular asm () construct.
6627 2002-02-04 Jakub Jelinek <jakub@redhat.com>
6629 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
6632 2002-02-04 Jakub Jelinek <jakub@redhat.com>
6634 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
6637 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
6639 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
6640 constant pool to be identical by string address and index.
6642 2002-02-04 Anthony Green <green@redhat.com>
6644 * output.h (SECTION_OVERRIDE): Define.
6645 * varasm.c (named_section): Obey SECTION_OVERRIDE.
6647 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
6649 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
6650 by existing arm*-*-netbsd* (a.out) target.
6651 (ns32k-*-netbsdelf*): Likewise.
6652 (sparc-*-netbsdelf*): Likewise.
6653 (vax-*-netbsdelf*): Likewise.
6655 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
6657 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
6658 headers and libobjc headers.
6660 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
6662 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
6663 (_mingw.h): Remove duplicate include.
6665 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
6667 * config.gcc: Set cpu_type to m68k for 68010, as well.
6668 (m68010-*-netbsdelf*): New...
6669 (m68k*-*-netbsdelf*): ...targets.
6670 * config/m68k/netbsd-elf.h: New file.
6672 2002-02-02 Kazu Hirata <kazu@hxi.com>
6674 * config/h8300/h8300.c (hand_list): Move inside function_arg.
6676 2002-02-02 Kazu Hirata <kazu@hxi.com>
6678 * config/h8300/h8300.c (h8_push_ops): Move inside
6680 (h8_pop_ops): Likewise.
6681 (h8_move_ops): Likewise.
6683 2002-02-02 Kazu Hirata <kazu@hxi.com>
6685 * config/h8300/h8300.c (os_task): Make it static.
6686 (monitor): Likewise.
6687 (pragma_saveall): Likewise.
6689 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
6691 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
6692 constant is a valid sign-extension for Pmode.
6694 2002-02-02 Kazu Hirata <kazu@hxi.com>
6696 * config/h8300/h8300.c: Fix formatting.
6698 2002-02-02 Kazu Hirata <kazu@hxi.com>
6700 * config/h8300/h8300.md: Fix formatting.
6702 2002-02-02 Kazu Hirata <kazu@hxi.com>
6704 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
6705 predicates of operands[1]. Split the patterns for each
6708 2002-02-02 Kazu Hirata <kazu@hxi.com>
6710 * config/h8300/h8300.md (xor patterns): Tighten the predicates
6711 of operands[1] to register_operand.
6713 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
6715 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
6716 * cpphash.c (_cpp_init_hashtable): Similarly.
6717 * cppinit.c (cpp_create_reader): Default the signed_char flag.
6718 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
6719 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
6720 (cpp_handle_option): Handle the new options.
6721 * cpplex.c (cpp_interpret_charconst): Use new flag.
6722 * cpplib.h (struct cpp_options): New member signed_char.
6723 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
6724 (cpp_options): Handle -fsigned-char and -funsigned-char.
6725 (static_specs): Remove signed_char_spec.
6726 (do_spec1): Don't handle %c.
6727 * system.h: Poison SIGNED_CHAR_SPEC.
6728 * tradcif.y (yylex): Use flag_signed_char.
6729 * tradcpp.h (flag_signed_char): New.
6730 * tradcpp.c (flag_signed_char): New.
6731 (main): Handle new command-line options.
6732 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
6734 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
6735 * avr/avr.h: Remove old comments.
6736 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
6737 (CC1_SPEC): Pass -fsigned-char if -mic*.
6738 (SIGNED_CHAR_SPEC): Remove.
6740 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
6742 2002-02-01 Eric Christopher <echristo@redhat.com>
6744 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
6745 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
6746 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
6747 (ASM_OUTPUT_REG_POP): Ditto.
6749 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
6751 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
6754 2002-02-02 Jakub Jelinek <jakub@redhat.com>
6756 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
6758 2002-02-02 Jakub Jelinek <jakub@redhat.com>
6761 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
6764 2002-02-01 Janis Johnson <janis187@us.ibm.com>
6766 * cfganal.c: Include tm_p.h.
6767 (keep_with_call_p): Fix the test that determines if a register holds
6768 the return value of a call.
6770 2002-02-01 DJ Delorie <dj@redhat.com>
6772 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
6773 we are given conflicting registers, switch to the other one we
6774 had allocated for us.
6775 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
6776 as TImode so we know when the "other" register is available.
6778 2002-02-01 David O'Brien <obrien@FreeBSD.org>
6780 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
6783 2002-02-01 Janis Johnson <janis187@us.ibm.com>
6785 * cfganal.c (keep_with_call_p): New function.
6786 (flow_call_edges_add): Prevent splitting a block between a call and
6787 a single-set instruction that should be kept in the same block.
6789 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
6791 * doc/install.texi (avr): Update outdated URL.
6793 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
6795 * config/stormy16/stormy16.md (pushqi): New.
6799 (movhi): Remove stack operands.
6801 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
6802 nonimmediate_nonstack_operand.
6803 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
6805 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
6808 2002-01-31 Jason Merrill <jason@redhat.com>
6810 * Makefile.in (c-parse.c): Handle .output file.
6811 * objc/Make-lang.in (objc-parse.c): Likewise.
6813 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
6815 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
6816 the -me[lb] option is given. Don't output the default flag
6819 2002-01-31 Zack Weinberg <zack@codesourcery.com>
6821 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
6822 the primary source file; this has not been done yet.
6823 * c-decl.c (c_expand_body): Reset input_filename from
6824 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
6826 2002-01-31 Kazu Hirata <kazu@hxi.com>
6828 * rtlanal.c (subreg_regno_offset): Do not use
6829 SUBREG_REGNO_OFFSET.
6830 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
6831 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
6833 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
6835 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
6836 version rather than GNATS version in --version output.
6838 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
6840 * ifcvt.c (noce_process_if_block): Make a copy of the destination
6841 when copying back from a temporary.
6843 2002-01-30 Richard Henderson <rth@redhat.com>
6845 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
6846 and new_dest are the same.
6848 2002-01-30 Richard Henderson <rth@redhat.com>
6851 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
6852 * rtl.c (note_insn_name): Update.
6853 * emit-rtl.c (remove_unnecessary_notes): Kill it.
6854 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
6855 to perform loop rotation.
6856 (expand_exit_loop_top_cond): New.
6857 * tree.h (expand_exit_loop_top_cond): Declare it.
6858 * c-semantics.c (genrtl_while_stmt): Use it.
6859 (genrtl_for_stmt): Likewise.
6861 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
6863 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
6864 arguments to 64-bit boundaries on 64-bit ABIs.
6866 2002-01-30 Steve Ellcey <sje@cup.hp.com>
6868 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
6870 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
6872 * c-decl.c (grokdeclarator): Handle type being a typedef for an
6875 2002-01-30 David O'Brien <obrien@FreeBSD.org>
6877 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
6878 * config/sparc/sparc_bi.h: Remove file.
6879 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
6881 2002-01-30 Richard Henderson <rth@redhat.com>
6883 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
6885 2002-01-30 Zack Weinberg <zack@codesourcery.com>
6887 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
6889 2002-01-30 Jason Merrill <jason@redhat.com>
6891 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
6892 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
6893 (reg_save): Use DW_CFA_offset_extended_sf instead.
6895 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
6897 2002-01-29 Jakub Jelinek <jakub@redhat.com>
6899 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
6902 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
6904 * rs6000.md ("*call_value_local32"): Remove constraints.
6905 ("*call_value_local64"): Same.
6906 ("*call_value_indirect_nonlocal_aix32"): Same.
6907 ("*call_value_nonlocal_aix32"): Same.
6908 ("*call_value_indirect_nonlocal_aix64"): Same.
6909 ("*call_value_nonlocal_aix64"): Same.
6910 ("*call_value_nonlocal_sysv"): Same.
6912 2002-01-29 Richard Henderson <rth@redhat.com>
6914 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
6916 2002-01-29 Richard Henderson <rth@redhat.com>
6918 * expr.c (force_operand): Ignore flag_pic for detecting pic
6920 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
6921 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
6922 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
6923 instead of open-coded loop.
6924 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
6925 be fixed when in use.
6927 2002-01-29 Richard Henderson <rth@redhat.com>
6929 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
6930 * sched-rgn.c (propagate_deps): Update them.
6931 * sched-deps.c (sched_analyze_insn): Update them. Flush the
6932 clobbers list when either gets too long.
6934 2002-01-29 Jakub Jelinek <jakub@redhat.com>
6936 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
6937 and INDEX_REGS the same as GENERAL_REGS.
6938 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
6940 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
6942 * tree.c (build_nonstandard_integer_type): Correct prototype.
6944 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
6946 * config/s390/s390.md (movstrsico, movstrdix_64,
6947 movstrsix_31): Remove, replace by ...
6948 (movstrdi_short, movstrsi_short, movstrdi_long,
6949 movstrsi_long): ... these. New.
6950 (movstrdi, movstrsi): Adapt.
6952 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
6953 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
6954 Remove unnecessary CC clobber.
6955 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
6956 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
6958 (divmoddi4): Don't partially initialize TImode register.
6960 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
6962 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
6964 2002-01-29 Richard Henderson <rth@redhat.com>
6966 * flow.c (print_rtl_and_abort): Remove.
6967 (print_rtl_and_abort_fcn): Remove.
6968 (verify_local_live_at_start): Use dump_bb instead.
6969 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
6970 (verify_wide_reg_1): Return 2 on mode test failure.
6972 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
6974 PR c/3325, c/3326, c/2511, c/3347
6975 * c-decl.c (enum_decl_context): Remove BITFIELD.
6976 (grokdeclarator): Take bitfield width as an input.
6977 Ensure bitfields are given the correct type. Perform
6978 bitfield width validation with build_bitfield_integer_type
6979 rather than waiting for finish_struct.
6980 (grok_typename, grok_typename_in_parm_context, start_decl,
6981 push_parmdecl, grokfield, start_function): Update calls to
6983 (build_bitfield_integer_type): New function.
6984 (finish_struct): Move bitfield validation to grokdeclarator
6985 and build_bitfield_integer_type.
6986 * tree.c (build_nonstandard_integer_type): New function.
6987 * tree.h (build_nonstandard_integer_type): New prototype.
6989 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
6991 2002-01-29 Jakub Jelinek <jakub@redhat.com>
6994 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
6995 don't ignore unrecognized -W* options.
6996 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
6997 * cpplib.h (cpp_handle_option): Adjust prototype.
6998 * c-decl.c (c_decode_options): Pass 0 as last argument to
7002 * gcc.c (cpp_unique_options): Split from cpp_options.
7003 (cpp_options): Source cpp_unique_options.
7004 (default_compilers): Use cpp_unique_options instead of cpp_options
7005 when used together with cc1_options.
7006 (static_specs): Add cpp_unique_options.
7007 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
7008 when used together with cc1_options.
7010 2002-01-29 Kazu Hirata <kazu@hxi.com>
7012 * config/h8300/h8300-protos.h: Update the prototype of
7014 * config/h8300/h8300.c (output_a_shift): Remove an unused
7015 argument 'insn'. Remove redundant code.
7016 * config/h8300/h8300.md: Adust to the new prototype of
7019 2002-01-29 Kazu Hirata <kazu@hxi.com>
7021 * config/h8300/h8300-protos.h: Update the prototypes of
7022 emit_a_rotate and expand_a_rotate.
7023 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
7024 first argument to 'enum rtx_code'.
7025 (expand_a_rotate): Likewise.
7027 2002-01-28 Kazu Hirata <kazu@hxi.com>
7029 * config/h8300/h8300-protos.h: Update the prototype of
7031 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
7033 * config/h8300/h8300.md: Adjust to the new prototype.
7035 2002-01-28 Kazu Hirata <kazu@hxi.com>
7037 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
7040 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
7042 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
7043 is a fixed register before returning pic_offset_table_rtx.
7044 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
7045 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
7047 2002-01-28 Jason Merrill <jason@redhat.com>
7049 * dwarf2.h: Sync with src version.
7051 2002-01-28 Paul Koning <pkoning@equallogic.com>
7053 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
7055 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
7056 * doc/extend.texi (__builtin_prefetch): Update documentation:
7057 first argument is now const void ptr.
7059 2002-01-28 Kazu Hirata <kazu@hxi.com>
7061 * config/h8300/h8300-protos.h: Remove an unused prototype.
7063 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
7065 * toplev.c (lang_independent_init): Round up identifier size.
7067 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
7069 * config.gcc: Revert previous change.
7071 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
7073 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
7075 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
7077 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
7078 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
7079 other non-elf netbsd config frags.
7080 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
7081 collect2 will does that.
7082 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
7083 shared-lib frobbing will work.
7085 2002-01-28 Kazu Hirata <kazu@hxi.com>
7087 * config/h8300/h8300.h: Fix formatting.
7088 * config/h8300/h8300.md: Likewise.
7090 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
7092 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
7093 the old, removed AAA_standards fix.
7094 * fixinc/fixincl.x: Rebuilt.
7096 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
7098 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
7099 atexit call in crtbegin, hooked in after call to frame_dummy;
7100 register EH before registering __fini__start.
7102 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
7104 * config/rs6000/altivec.h: Remove spurious semicolons.
7106 2002-01-27 Kazu Hirata <kazu@hxi.com>
7108 * config/h8300/h8300.md: Replace dead bit extraction patterns
7109 with ones that work.
7111 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7113 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
7114 if not STRICT_ALIGNMENT.
7115 * rtl.h (MEM_ALIGN): Likewise.
7117 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
7119 * doc/invoke.texi (-fdump-translation-unit): Revert this
7120 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
7122 2002-01-27 Kazu Hirata <kazu@hxi.com>
7124 * config/h8300/h8300.md (define_constants): New.
7125 (anonymous patterns) Use defined constants appropriately.
7127 2002-01-27 Kazu Hirata <kazu@hxi.com>
7129 * config/h8300/h8300.c (function_arg): Remove redundant code.
7131 2002-01-26 Richard Henderson <rth@redhat.com>
7133 * sched-deps.c (reg_pending_uses_head): New.
7134 (reg_pending_barrier): Rename from reg_pending_sets_all.
7135 (find_insn_list): Don't mark inline.
7136 (find_insn_mem_list): Remove.
7137 (add_dependence_list, add_dependence_list_and_free): New.
7138 (flush_pending_lists): Replace only_write param with separate
7139 for_read and for_write parameters. Update all callers. Use
7140 add_dependence_list_and_free.
7141 (sched_analyze_1): Do not add reg dependencies here; just set
7142 the pending bits. Use add_dependence_list.
7143 (sched_analyze_2): Likewise.
7144 (sched_analyze_insn): Replace schedule_barrier_found with
7145 reg_pending_barrier. Add all dependencies for pending reg
7146 uses, sets, and clobbers.
7147 (sched_analyze): Don't add reg dependencies for calls, just
7148 set pending bits. Use regs_invalidated_by_call. Treat
7149 sched_before_next_call as a normal list, not a fake insn.
7150 (init_deps): No funny init for sched_before_next_call.
7151 (free_deps): Free pending mems lists. Don't zero reg_last.
7152 (init_deps_global): Init reg_pending_uses.
7153 (finish_deps_global): Free it.
7154 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
7155 (find_insn_mem_list): Remove.
7156 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
7157 (propagate_deps): Use them. Zero temp mem lists.
7159 2002-01-26 Richard Henderson <rth@redhat.com>
7161 * Makefile.in (CRTSTUFF_CFLAGS): New.
7162 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
7163 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
7164 crtstuff.c instead of alpha assembly version.
7165 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
7166 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
7167 not FORCE_{INIT,FINI}_SECTION_ALIGN.
7168 (__do_global_dtors_aux): Mark used.
7169 (frame_dummy, __do_global_ctors_aux): Mark used.
7170 (fini_dummy, init_dummy): Remove.
7172 * config/alpha/crtbegin.asm: Remove file.
7173 * config/alpha/crtend.asm: Remove file.
7174 * config/alpha/t-crtbe: Remove file.
7175 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
7176 (LINK_EH_SPEC): New.
7178 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
7179 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
7180 calling constructors.
7181 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
7183 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
7184 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
7185 CRT_END_INIT_DUMMY hack.
7186 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
7187 FORCE_{INIT,FINI}_SECTION_ALIGN.
7189 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
7190 FORCE_{INIT,FINI}_SECTION_ALIGN.
7192 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
7193 invocation sequence.
7194 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
7196 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
7197 (FORCE_CODE_SECTION_ALIGN): New.
7199 2002-01-26 Richard Henderson <rth@redhat.com>
7201 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
7203 2002-01-26 Richard Henderson <rth@redhat.com>
7205 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
7206 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
7208 2002-01-26 Kazu Hirata <kazu@hxi.com>
7210 * config/h8300/h8300.md: Remove bit extraction patterns that
7211 cannot be triggered.
7212 Restrict each bit extraction pattern to a variant on which the
7215 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
7217 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
7219 2002-01-26 Kazu Hirata <kazu@hxi.com>
7221 * config/h8300/h8300.md: Remove bit test patterns that cannot
7223 Restrict each bit test pattern to a variant on which the
7226 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7228 * builtins.c (expand_builtin_strncat): Remove redundant check for
7231 2002-01-25 David O'Brien <obrien@FreeBSD.org>
7233 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
7235 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
7238 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
7240 * dbxout.c (dbxout_init): Use assemble_name rather than just
7241 stripping off the first character.
7242 (dbxout_source_file): Likewise.
7244 2002-01-25 DJ Delorie <dj@redhat.com>
7246 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
7247 using rtx_equal_p, not by comparing pointers.
7249 2002-01-25 Steve Ellcey <sje@cup.hp.com>
7251 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
7252 for PIC_OFFSET_TABLE_REGNUM.
7253 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
7255 2002-01-25 David O'Brien <obrien@FreeBSD.org>
7257 * config.gcc (x86_64-*-freebsd*): New target.
7258 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
7260 (i[34567]86-*-freebsd*): Don't include svr4.h.
7261 * config/i386/freebsd64.h: New file.
7263 2002-01-25 Douglas B Rupp <rupp@gnat.com>
7265 * config/alpha/x-vms (version): Make static.
7267 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
7268 in previous checkin.
7270 * Makefile.in (install-headers-cp): New target.
7271 * config.gcc (alpha-dec-*vms*): Install headers with
7274 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
7276 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
7279 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7281 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
7282 of compare_tree_int.
7283 (expand_builtin_strncat): Likewise.
7284 * c-decl.c (finish_struct): Use tree_low_cst.
7285 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
7286 * tree.c (compare_tree_int): Likewise.
7288 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
7290 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
7291 adjustments even if they are implemented by more than two insns.
7293 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
7295 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
7296 * df.h (struct ref): Kill B.
7297 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
7299 * basic-block.h (PROP_EQUAL_NOTES): New flag.
7300 * flow.c (propagate_one_insn): Use it.
7301 (mark_used_regs): Handle NIL.
7303 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
7305 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
7308 2002-01-25 David Edelsohn <edelsohn@gnu.org>
7310 * rs6000.md (prefetch): Make address V4SI mode so that the address
7311 is restricted to legitimate form for instruction.
7313 2002-01-25 Bob Wilson <bob.wilson@acm.org>
7315 * doc/install.texi (xtensa-*-elf): New target.
7316 (xtensa-*-linux*): New target.
7317 * doc/contrib.texi: Add myself.
7319 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
7321 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
7322 purpose register to hold an SImode (or smaller) value.
7324 2002-01-25 Jakub Jelinek <jakub@redhat.com>
7326 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
7328 * crtstuff.c: Likewise.
7330 2002-01-25 Kazu Hirata <kazu@hxi.com>
7332 * config/h8300/h8300.md (negation patterns): Tighten
7333 predicates to register_operand.
7335 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
7337 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
7340 * builtins.c (expand_builtin_prefetch): Same.
7342 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7344 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
7347 2002-01-24 Kazu Hirata <kazu@hxi.com>
7349 * config/h8300/h8300.c (print_operand): Remove support for
7350 operand character 'A'.
7351 * config/h8300/h8300.md (three anonymous patterns): Replace
7352 operand character 'A' with either 'T' or 'S'.
7354 2002-01-24 Kazu Hirata <kazu@hxi.com>
7356 * config/h8300/h8300.c (print_operand): Remove support for
7357 operand character 'U'.
7359 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
7361 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
7363 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
7365 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
7366 values to be assigned to the stack pointer.
7368 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
7370 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
7371 to const_double needs to be done right for big-endian systems.
7373 2002-01-24 Jason Merrill <jason@redhat.com>
7376 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
7377 to can_throw_internal.
7379 2002-01-23 Richard Henderson <rth@redhat.com>
7381 * fold-const.c (fold): Change UINT_MAX test to check vs precision
7382 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
7384 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7386 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
7387 (symGOT2reg): Use them, then set as GOT value as unchanging.
7388 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
7389 as a temporary, if possible.
7390 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
7391 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
7393 2002-01-23 Kazu Hirata <kazu@hxi.com>
7395 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
7396 accept to accept 0x80 as operands[2].
7398 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7400 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
7402 2002-01-23 Richard Henderson <rth@redhat.com>
7404 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
7406 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
7408 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
7409 (parmlist_or_identifiers_1): Verify that only a parmlist follows
7412 2002-01-23 Richard Henderson <rth@redhat.com>
7414 * expr.c (move_by_pieces_1): Extend size before negation.
7416 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
7417 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
7418 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
7419 * config/m68k/t-m68kelf: Likewise.
7421 2002-01-23 Bob Wilson <bob.wilson@acm.org>
7423 * config/xtensa/elf.h: New file.
7424 * config/xtensa/lib1funcs.asm: New file.
7425 * config/xtensa/lib2funcs.S: New file.
7426 * config/xtensa/linux.h: New file.
7427 * config/xtensa/t-xtensa: New file.
7428 * config/xtensa/xtensa-config.h: New file.
7429 * config/xtensa/xtensa-protos.h: New file.
7430 * config/xtensa/xtensa.c: New file.
7431 * config/xtensa/xtensa.h: New file.
7432 * config/xtensa/xtensa.md: New file.
7433 * config.gcc (xtensa-*-elf*): New target.
7434 (xtensa-*-linux*): New target.
7435 * cse.c (canon_hash): Compare rtx pointers instead of register
7436 numbers. This is required for the Xtensa port.
7437 * integrate.c (copy_insn_list): Handle case where the static
7438 chain is in memory and the memory address has to be copied to
7440 * doc/invoke.texi (Option Summary): Add Xtensa options.
7441 (Xtensa Options): New node.
7442 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
7444 2002-01-23 Zack Weinberg <zack@codesourcery.com>
7446 * diagnostic.c (internal_error): Do ICE suppression only
7447 when ENABLE_CHECKING is not defined.
7449 * c-typeck.c (require_complete_type): Return error_mark_node
7450 if type is error_mark_node.
7452 2002-01-23 Janis Johnson <janis187@us.ibm.com>
7454 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
7455 -Os and issue a warning.
7457 2002-01-23 Zack Weinberg <zack@codesourcery.com>
7459 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
7460 current (lack of) need for host configuration by hand.
7462 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
7463 references. Documentation of some target macros moved from
7464 hostconfig.texi to tm.texi.
7466 2002-01-23 Will Cohen <wcohen@redhat.com>
7468 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
7471 2002-01-23 Kazu Hirata <kazu@hxi.com>
7473 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
7476 2002-01-23 Jason Merrill <jason@redhat.com>
7478 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
7480 * function.c (assign_parms): Don't put args of inline functions
7481 into registers when not optimizing.
7483 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
7485 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
7486 (prologue_use): New pattern.
7487 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
7488 preference to gen_rtx_USE.
7489 (thumb_expand_prologue): Use gen_prologue_use in preference to
7491 (thumb_expand_epilogue): Use gen_prologue_use in preference to
7494 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
7496 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
7498 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
7501 * doc/extend.texi: Correct documentation of __alignof__.
7503 2002-01-22 Zack Weinberg <zack@codesourcery.com>
7505 * params.h: Rename arguments of DEFPARAM so that it will be
7506 recognized as a translation keyword.
7508 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
7510 * extend.texi: Document altivec functions.
7511 Fix N-bit adjectives in X86 builtin documentation.
7513 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
7515 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
7516 auto_inc_dec values.
7518 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
7520 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
7522 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
7524 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
7526 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
7528 2002-01-22 Richard Henderson <rth@redhat.com>
7530 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
7531 copy_insn not copy_rtx.
7533 2002-01-23 Alan Modra <amodra@bigpond.net.au>
7535 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
7536 "nonzero" as that might add "1" bits. Ensure "constop" is
7537 properly sign extened.
7538 (force_to_mode): Tweak for sign extended constop.
7540 2002-01-22 Richard Henderson <rth@redhat.com>
7542 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
7543 for_each_rtx instead of assuming we're already looking at the MEM.
7544 (split_small_symbolic_mem_operand): Likewise.
7545 * config/alpha/alpha.h (PREDICATE_CODES): Update.
7546 * config/alpha/alpha.md (small symbolic memory splitters): Update.
7548 2002-01-22 Richard Henderson <rth@redhat.com>
7550 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
7551 sequence number for the literal.
7552 (divmoddi_internal_er): Likewise.
7554 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
7557 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
7558 in LIBICONV variable.
7559 * configure: Regenerated.
7561 2002-01-22 Krister Walfridsson <cato@df.lth.se>
7563 * dependence.c (build_def_use): Remove array_idx.
7565 * dwarfout.c (last_filename): Remove.
7566 (output_compile_unit_die): Remove last_filename.
7568 2002-01-22 Roger Sayle <roger@eyesopen.com>
7569 Richard Henderson <rth@redhat.com>
7572 * fold-const.c (fold): Optimize unsigned comparisons against
7573 UINT_MAX (and similar unsigned constants).
7575 2002-01-22 Janis Johnson <janis187@us.ibm.com>
7577 * Makefile.in (loop.o): Depend on OPTABS_H.
7578 * loop.c (emit_prefetch_instructions): Check the prefetch operand
7579 against the predicate.
7582 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
7583 for the address operand.
7585 2002-01-22 Richard Henderson <rth@redhat.com>
7587 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
7589 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
7592 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
7595 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
7597 * config.gcc (x86_64-*-netbsd*): New target.
7598 * config/i386/netbsd64.h: New file.
7600 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
7602 * regrename.c (kill_value): Fix typo.
7604 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
7606 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
7608 * config/rs6000/rs6000.h: Same.
7610 * function.c (instantiate_virtual_regs): Remove
7611 STARTING_FRAME_PHASE.
7612 (assign_stack_local_1): Same.
7613 Calculate frame phase.
7615 2002-01-22 Nick Clifton <nickc@redhat.com>
7617 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
7618 variable declaration to outer scope in order to simplify
7620 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
7621 arm_hard_regno_mode_ok.
7622 * config/arm/arm-protos.h: Add a prototype for
7623 arm_hard_regno_mode_ok.
7624 * config/arm/arm.c (soft_df_operand): Remove now redundant
7625 check for DImode values using IP_REGNUM.
7626 (nonimmediate_soft_df_operand): Remove now redundant check for
7627 DImode values using IP_REGNUM.
7628 (arm_hard_regno_mode_ok): New function. New check: make sure
7629 that DImode values are not stored in IP_REGNUM.
7631 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
7633 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
7635 2002-01-22 Jason Merrill <jason@redhat.com>
7637 * c-semantics.c (genrtl_compound_stmt): Only check nesting
7638 consistency if this COMPOUND_STMT is scoped.
7640 2002-01-22 Kazu Hirata <kazu@hxi.com>
7642 * predict.c: Fix formatting.
7643 * print-tree.c: Likewise.
7644 * protoize.c: Likewise.
7647 * sbitmap.h: Likewise.
7649 * sched-deps.c: Likewise.
7650 * sched-vis.c: Likewise.
7651 * sdbout.c: Likewise.
7652 * sibcall.c: Likewise.
7654 * ssa-ccp.c: Likewise.
7655 * ssa-dce.c: Likewise.
7657 * stor-layout.c: Likewise.
7658 * system.h: Likewise.
7660 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7662 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
7663 if fits in bounds of base type.
7665 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
7666 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
7667 (add_bound_info, default): If can't find a context, make a
7669 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
7671 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
7673 * c-typeck.c (parser_build_binary_op): If result from
7674 build_binary_op is ERROR_MARK just return error_mark_node without
7677 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
7679 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
7680 Split a.out-specific bits into...
7681 * config/netbsd-aout.h: ...this.
7682 * config/netbsd-elf.h: New file.
7683 * config/alpha/netbsd-elf.h: Remove.
7684 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
7685 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
7686 (STARTFILE_SPEC): Remove redundant definition.
7687 (ENDFILE_SPEC): Likewise.
7688 (LINK_SPEC): Likewise.
7689 (CPP_SPEC): Likewise.
7690 (ASM_SPEC): Likewise.
7691 (LIB_SPEC): Likewise.
7692 (SWITCH_TAKES_ARG): Likewise.
7693 (TARGET_MEM_FUNCTIONS): Likewise.
7694 (CPP_PREDEFINES): Redefine.
7695 (ASM_FINAL_SPEC): Remove redefinition.
7696 (ASM_COMMENT_START): Redefine.
7697 (FUNCTION_PROFILER): Define.
7698 (TARGET_VERSION): Redefine.
7699 Comment and formatting cleanup.
7700 * config/i386/netbsd.h: Include <netbsd-aout.h>.
7701 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
7702 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
7703 big- or little-endian.
7704 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
7705 * config.gcc (*-*-netbsd*): Add definitions common to all
7707 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
7708 gnu_ld definitions. Add netbsd-elf.h to and remove
7709 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
7710 tmake_file, and don't lose previous tmake_file contents.
7711 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
7712 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
7713 gnu_ld definitions. Add netbsd-elf.h to tm_file.
7714 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
7715 (mipsel-*-netbsd*): Rename this to...
7716 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
7717 mips/little.h to tm_file for mips*el-*.
7718 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
7719 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
7720 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
7722 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
7724 * pa-protos.h (reg_before_reload_operand): New function prototype.
7725 * pa.c (reg_before_reload_operand): New function implementation.
7726 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
7729 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7731 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
7733 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
7735 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
7736 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
7737 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
7738 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
7739 (ENDFILE_SPEC): Undefine.
7740 (STARTFILE_SPEC): Redefine for PA.
7742 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7744 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
7746 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
7748 * config.gcc: Add entries to supported PowerPC --with-cpu
7751 2002-01-21 Jakub Jelinek <jakub@redhat.com>
7753 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
7754 true for 64-bit mode only SSE registers in 32-bit mode.
7756 2002-01-21 Kazu Hirata <kazu@hxi.com>
7758 * unwind-dw2.c: Fix formatting.
7759 * unwind-dw2-fde.c: Likewise.
7760 * unwind-dw2-fde.h: Likewise.
7761 * unwind-pe.h: Likewise.
7762 * varasm.c: Likewise.
7763 * varray.h: Likewise.
7765 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
7767 Remove workaround for register stack overwrite bug in mmix.
7768 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
7769 support for TARGET_REG_STACK_FILL_BUG.
7770 * config/mmix/mmix.h: Remove member has_call_without_parameters.
7771 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
7773 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
7774 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
7775 -mno-reg-stack-fill-bug-workaround.
7776 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
7777 machine member has_call_without_parameters.
7778 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
7779 -mreg-stack-fill-bug-workaround and
7780 -mno-reg-stack-fill-bug-workaround.
7781 (MMIX Options): Ditto.
7783 2002-01-21 Kazu Hirata <kazu@hxi.com>
7785 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
7787 Remove redundant code.
7789 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
7791 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
7792 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
7793 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
7794 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
7795 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
7796 out target macro definitions and non-target-specific comments
7797 mostly taken from old versions of the manual.
7799 2002-01-20 Kazu Hirata <kazu@hxi.com>
7801 * config/h8300/h8300.h: Fix comment formatting.
7802 * config/ia64/aix.h: Likewise.
7803 * config/ia64/ia64-protos.h: Likewise.
7804 * config/ia64/ia64.c: Likewise.
7805 * config/ia64/ia64.h: Likewise.
7806 * config/ia64/ia64intrin.h: Likewise.
7807 * config/ia64/linux.h: Likewise.
7808 * config/ia64/unwind-aix.c: Likewise.
7809 * config/ia64/unwind-ia64.c: Likewise.
7811 2002-01-20 Kazu Hirata <kazu@hxi.com>
7813 * config/h8300/h8300.c: Revise comments about shift code.
7815 2002-01-20 Kazu Hirata <kazu@hxi.com>
7817 * config/h8300/h8300.c (function_arg): Update a comment.
7819 2002-01-20 Kazu Hirata <kazu@hxi.com>
7821 * config/h8300/h8300.md: Update the comments at the beginning
7824 2002-01-20 Kazu Hirata <kazu@hxi.com>
7826 * config/i370/i370.c: Fix comment formatting.
7827 * config/i370/i370.h: Likewise.
7828 * config/i370/i370.md: Likewise.
7829 * config/i370/linux.h: Likewise.
7831 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7833 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
7835 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
7836 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
7839 2002-01-20 Graham Stott <grahams@redhat.com>
7841 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
7843 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
7845 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
7847 2002-01-19 Tom Rix <trix@redhat.com>
7849 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
7851 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
7853 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
7855 * function.c (assign_stack_local_1): Adjust x_frame_offset with
7856 STARTING_FRAME_PHASE.
7857 (STARTING_FRAME_PHASE): New.
7858 (instantiate_virtual_regs): Check saneness of
7859 STARTING_FRAME_PHASE.
7861 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
7863 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
7865 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
7867 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
7869 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
7870 be used for bootstrapping GCC 3.0.
7872 2002-01-18 Kazu Hirata <kazu@hxi.com>
7874 * config/h8300/h8300.md: Fix an insn length.
7876 2002-01-18 Kazu Hirata <kazu@hxi.com>
7878 * bitmap.h: Fix comment formatting.
7879 * combine.c: Likewise.
7880 * cppfiles.c: Likewise.
7881 * c-pragma.h: Likewise.
7882 * c-typeck.c: Likewise.
7884 * dwarf2out.c: Likewise.
7885 * function.c: Likewise.
7887 * genattrtab.c: Likewise.
7888 * gthr-win32.h: Likewise.
7889 * haifa-sched.c: Likewise.
7890 * predict.c: Likewise.
7891 * rtlanal.c: Likewise.
7893 * unwind-dw2-fde.h: Likewise.
7894 * unwind-pe.h: Likewise.
7895 * vmsdbgout.c: Likewise.
7897 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7899 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
7900 if type_required and passed decl.
7902 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
7904 * config.gcc (cpu_type): Include altivec.h in powerpc
7908 * config/rs6000/altivec.h: New.
7910 2002-01-17 David Edelsohn <edelsohn@gnu.org>
7912 * doc/install.texi (*-ibm-aix*): Update assembler and exception
7913 handling information.
7914 * doc/trouble.texi (Interoperation): Add libstdc++ information
7916 (Misunderstandings): Add template instantiation and static template
7917 member information for AIX.
7919 2002-01-17 Jason Merrill <jason@redhat.com>
7921 * dbxout.c (dbxout_type): Support const and volatile.
7923 * except.c (add_partial_entry): Remove backwards compatibility code.
7924 (end_protect_partials): Likewise.
7926 2002-01-17 Jakub Jelinek <jakub@redhat.com>
7928 * config/ia64/ia64.md (prologue_use): New.
7929 * config/ia64/ia64.c (ia64_expand_prologue): Use
7930 gen_prologue_use instead of gen_rtx_USE.
7931 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
7932 as CODE_FOR_pred_rel_mutex.
7933 (ia64_sched_reorder2): Likewise.
7935 2002-01-16 Eric Christopher <echristo@redhat.com>
7937 * config/mips/r3900.h: Reformat.
7938 (SUBTARGET_CPP_SIZE_SPEC): Remove.
7939 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
7940 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
7941 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
7942 * config/mips/t-elf: Remove mips3 multilib.
7944 2002-01-16 H.J. Lu <hjl@gnu.org>
7946 * config/mips/linux.h: Include "mips/abi64.h".
7948 2002-01-16 H.J. Lu <hjl@gnu.org>
7950 * config/mips/t-linux: New.
7952 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
7954 * config/mips/linux.h: Don't include "gofast.h".
7955 (INIT_SUBTARGET_OPTABS): Removed.
7957 2002-01-16 Kazu Hirata <kazu@hxi.com>
7959 * config/h8300/h8300-protos.h: Replace emit_a_shift with
7961 * config/h8300/h8300.c: Likewise.
7962 * config/h8300/h8300.md: Likewise.
7964 2002-01-16 Kazu Hirata <kazu@hxi.com>
7966 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
7967 spaces after an opcode name.
7968 (pushqi1_h8300hs): Likewise.
7969 (pushhi1_h8300hs): Likewise.
7971 2002-01-16 Kazu Hirata <kazu@hxi.com>
7973 * doc/extend.texi: Replace "option" with "attribute"
7976 2002-01-16 Jakub Jelinek <jakub@redhat.com>
7978 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
7979 (and:DI () (const_int -8)).
7980 (split_small_symbolic_mem_operand): Split
7981 (mem (and:DI () (const_int -8)).
7983 2002-01-16 Jakub Jelinek <jakub@redhat.com>
7986 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
7987 same way as TYPE_IMUL.
7988 (ultrasparc_sched_reorder): Likewise.
7989 * config/sparc/sparc.md (type): Add comment to update
7990 ultrasparc_sched_reorder when making changes.
7992 2002-01-16 Kazu Hirata <kazu@hxi.com>
7994 * doc/invoke.texi: Change the dump file name of block
7995 reordering pass from 28.bbro to 29.bbro.
7998 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
8000 * i386.md (minsf splitter): Fix pasto.
8002 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
8004 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
8005 to frame pointer initialisation instruction.
8006 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
8007 initialisation instruction.
8008 (soft_df_operand): Do not accept the IP register.
8009 (nonimmediate_soft_df_operand): Do not accept the IP register.
8011 2002-01-16 Jakub Jelinek <jakub@redhat.com>
8014 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
8015 MASK_V8 being both set.
8017 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
8019 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
8020 insn for GOT register; add REG_MAYBE_DEAD notes instead.
8021 config/s390/s390.md (call, call_value): Add GOT register to
8022 CALL_INSN_FUNCTION_USAGE where needed.
8023 (call_exp, call_value_exp): New.
8025 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
8027 * config/arm/arm.c: General formatting tidy up.
8029 2002-01-16 Graham Stott <grahams@redhat.com>
8031 * calls.c (try_to_integrate): Use "(size_t)" intermediate
8032 cast and when casting an integer literal to "rtx" pointer.
8033 (expand_call): Likewise.
8034 * flow.c (try_pre_increment): Likewise.
8035 (find_use_as_address): Likewise.
8036 * integrate.c (expand_iline_function): Likewise.
8037 * regmove.c (try_auto_increment): Likewise.
8039 2002-01-16 Graham Stott <grahams@redhat.com>
8041 * sched-rgn.c (passed): Use sbitmap_free.
8044 (in_queue): Likewise.
8045 (in_stack): Likewise.
8047 2002-01-15 Eric Christopher <echristo@redhat.com>
8049 * flow.c (propagate_one_insn): Change to use fatal_insn.
8051 2002-01-15 Kazu Hirata <kazu@hxi.com>
8053 * expmed.c (extract_fixed_bit_field): Remove unused code.
8054 * system.h: Poison SLOW_ZERO_EXTEND.
8055 * doc/tm.texi: Remove.
8056 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
8057 * config/arm/arm.h: Likewise.
8058 * config/avr/avr.h: Likewise.
8059 * config/clipper/clipper.h: Likewise.
8060 * config/convex/convex.h: Likewise.
8061 * config/d30v/d30v.h: Likewise.
8062 * config/dsp16xx/dsp16xx.h: Likewise.
8063 * config/elxsi/elxsi.h: Likewise.
8064 * config/fr30/fr30.h: Likewise.
8065 * config/h8300/h8300.h: Likewise.
8066 * config/i370/i370.h: Likewise.
8067 * config/i386/i386.h: Likewise.
8068 * config/m68k/m68k.h: Likewise.
8069 * config/mips/mips.h: Likewise.
8070 * config/ns32k/ns32k.h: Likewise.
8071 * config/pdp11/pdp11.h: Likewise.
8072 * config/pj/pj.h: Likewise.
8073 * config/s390/s390.h: Likewise.
8074 * config/sh/sh.h: Likewise.
8075 * config/stormy16/stormy16.h: Likewise.
8076 * config/v850/v850.h: Likewise.
8077 * config/vax/vax.h: Likewise.
8078 * config/we32k/we32k.h: Likewise.
8080 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
8082 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
8083 (altivec_lvsl): Change constraint to b.
8084 (altivec_lvsr): Same.
8085 (altivec_lvebx): Same.
8086 (altivec_lvehx): Same.
8087 (altivec_lvewx): Same.
8088 (altivec_lvxl): Same.
8089 (altivec_lvx): Same.
8090 (altivec_stvx): Add parallel.
8091 (altivec_stvxl): Same.
8092 (altivec_stvehx): Same.
8093 (altivec_stvebx): Same.
8094 (altivec_stvebx): Same.
8096 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
8098 * config.gcc: Change altivec.h to altivec-defs.h.
8100 * config/rs6000/altivec.h: Delete.
8102 * config/rs6000/altivec-defs.h: Add.
8104 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
8106 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
8109 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
8110 less than or equal to eight bytes.
8112 * vax.md (andsi3): Remove constraints and change SET destination
8113 operand type to nonimmediate_operand.
8114 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
8115 when it is a CONST_INT.
8117 2002-01-15 Jason Merrill <jason@redhat.com>
8119 * c-common.def (FILE_STMT): New code.
8120 * c-common.c (statement_code_p): It's a statement.
8121 * c-common.h (stmt_tree_s): Add x_last_filename.
8122 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
8123 (last_expr_filename): New macro.
8124 * c-semantics.c (begin_stmt_tree): Initialize it.
8125 (add_stmt): If the filename changed, also insert a
8127 (expand_stmt): Handle seeing one.
8129 2002-01-15 Eric Christopher <echristo@redhat.com>
8131 * flow.c (propagate_one_insn): Add error message and print out
8134 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
8136 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
8137 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
8138 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
8139 TRAMPOLINE_ALIGNMENT.
8140 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
8142 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
8143 PCC_BITFIELD_TYPE_MATTERS.
8144 * config/interix.h (STDC_VALUE): Remove. Use
8145 STDC_0_IN_SYSTEM_HEADERS.
8146 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
8147 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
8148 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
8150 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
8152 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
8153 not work on this platform currently.
8155 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
8157 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
8158 readonly_warning in _().
8160 2002-01-15 Douglas B Rupp <rupp@gnat.com>
8162 * gcc.c (delete_if_ordinary): Backout previous change.
8164 2002-01-15 Kazu Hirata <kazu@hxi.com>
8166 * config/h8300/h8300.c (print_operand): Remove support for
8167 unused operand characters.
8169 * read-rtl.c: Fix formatting.
8171 * recog.c: Likewise.
8172 * regclass.c: Likewise.
8173 * regmove.c: Likewise.
8174 * reg-stack.c: Likewise.
8175 * reload1.c: Likewise.
8176 * rtlanal.c: Likewise.
8178 2002-01-15 Kazu Hirata <kazu@hxi.com>
8180 * config/i386/i386.c: Fix formatting.
8182 2002-01-15 Jakub Jelinek <jakub@redhat.com>
8184 * c-typeck.c (process_init_element): Don't save_expr
8185 COMPOUND_LITERAL_EXPR if just its initializer will be used.
8187 2002-01-15 David Edelsohn <edelsohn@gnu.org>
8189 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
8190 emit optional traceback table if optimize_size or TARGET_ELF.
8191 * config/rs6000/rs6000.md (prefetch): New.
8193 2002-01-15 Andreas Jaeger <aj@suse.de>
8195 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
8197 2002-01-15 Kazu Hirata <kazu@hxi.com>
8199 * mips-tfile.c: Fix formatting.
8201 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
8203 * unroll.c (final_reg_note_copy): Fix previous commit.
8205 2002-01-14 Kazu Hirata <kazu@hxi.com>
8207 * config/h8300/h8300-protos.h: Remove the prototype for
8209 * config/h8300/h8300.c (eq_operator): Remove.
8211 2002-01-14 Richard Henderson <rth@redhat.com>
8213 * config/i386/i386.md (prefetch): Tidy.
8214 (prefetch_3dnow): Fix locality operand.
8216 2002-01-14 Richard Henderson <rth@redhat.com>
8218 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
8219 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
8221 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
8223 * reload1.c (reload_combine): Pass reg_sum replacement through
8224 copy_rtx in loop performing multiple changes.
8226 2002-01-14 Jakub Jelinek <jakub@redhat.com>
8228 * except.c (remove_unreachable_regions): New.
8229 (free_eh_status): Clear exception_handler_labels.
8230 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
8231 (find_exception_handler_labels): Don't add the same label more than
8233 (remove_exception_handler_label): Don't die if
8234 find_exception_handler_labels hasn't been called for the current
8237 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
8239 * toplev.c (rest_of_compilation): Rebuild jump labels after
8242 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
8244 * doc/extend.texi: Move documentation of X86 built-in functions
8246 * doc/invoke.texi: From here.
8247 * doc/sourcebuild.texi: Document location of documentation for
8248 machine built-in functions.
8250 2002-01-13 Christopher Faylor <cgf@redhat.com>
8252 * cppfiles.c (TEST_THRESHOLD): New macro.
8253 (SHOULD_MMAP): Ditto.
8254 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
8257 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
8259 * unroll.c (final_reg_note_copy): Properly handle
8261 (unroll_loops): Fix LOOP_CONDITION heuristics.
8263 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
8265 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
8266 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
8268 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
8270 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
8273 2002-01-14 Tom Rix <trix@redhat.com>
8275 * config/rs6000/rs6000.md: Fix typo with sradi.
8277 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
8279 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
8280 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
8281 (clrstrdi, clrstrsi): Adapt callers.
8283 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
8285 (movti splitter): Never use register 0 as base register.
8287 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
8289 * combine.c (simplify_shift_const): Always generate new rtx
8290 for shift expression instead of reusing given expression.
8292 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8294 * config/alpha/alpha.c (alpha_expand_mov): Don't call
8295 alpha_legitimize_address unless mode is Pmode.
8297 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
8299 * doc/md.texi (Modifiers): Document the '*' constraint for the
8302 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
8303 * doc/extend.texi (Function Attributes): 'interrupt' is valid
8306 2002-01-13 Richard Henderson <rth@redhat.com>
8308 * reload.c (find_reloads): Use a hard reg destination as reload reg
8309 for an input reload of the source.
8311 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8313 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
8316 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
8318 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
8319 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
8321 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
8323 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8325 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
8327 2002-01-12 Tom Rix <trix@redhat.com>
8329 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
8332 2002-01-12 Richard Henderson <rth@redhat.com>
8334 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
8336 * doc/invoke.texi: Update Alpha options.
8338 * doc/invoke.texi: Update i386 built-in function lists.
8340 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
8342 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
8343 referencing outside.
8345 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8347 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
8348 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
8349 offsets, and change line folding.
8350 * optabs.c (expand_binop): Remove warnings.
8351 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
8353 2002-01-12 Graham Stott <grahams@redhat.com>
8355 * attribs.c (handle_deprecated_attribute): constify WHAT.
8356 * diagnostic.c (warn_deprecated_use): Add braces, fixes
8357 dangling else warning and constify WHAT.
8358 * except.h (struct function, struct inline_remap): Move
8359 struct tag forward defs before all prototypes.
8360 (duplicate_eh_regions): Whitespace.
8362 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
8364 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8365 MODE_BASE_REG_CLASS.
8366 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
8368 2002-01-12 Richard Henderson <rth@redhat.com>
8370 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
8371 (ix86_expand_vector_move): New.
8372 (bdesc_2arg): Remove andps, andnps, orps, xorps.
8373 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
8374 Remove old prefetch builtins. Special case the logicals removed above.
8375 (ix86_expand_builtin): Likewise.
8376 (safe_vector_operand): Use V4SFmode, not TImode.
8377 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
8378 (ix86_expand_timode_binop_builtin): New.
8379 * config/i386/i386-protos.h: Update.
8380 * config/i386/i386.h (enum ix86_builtins): Update.
8381 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
8382 Use ix86_expand_vector_move in vector move expanders.
8383 (movti_internal, movti_rex64): Add xorps alternative.
8384 (sse_clrv4sf): Rename and adjust from sse_clrti.
8385 (prefetch): Don't work so hard.
8386 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
8387 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
8388 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
8390 2002-01-11 Richard Henderson <rth@redhat.com>
8392 * config/i386/mmintrin.h: New file.
8393 * config/i386/xmmintrin.h: New file.
8394 * config.gcc (i?86-*-*): Add extra_headers.
8395 * simplify-rtx.c (simplify_unary_operation): Handle saturating
8397 (simplify_binary_operation): Handle saturating arithmetic codes.
8398 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
8399 not the lowpart subreg.
8400 (ix86_expand_builtin): Return a TImode dummy register instead of 0
8402 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
8404 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8406 * conflict.c (conflict_graph_compute): Free regsets when finished.
8407 * ssa.c (compute_coalesced_reg_partition): Likewise.
8409 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8411 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
8412 every where we allocate a register.
8414 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8416 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
8417 * lcm.c (compute_earliest, compute_farthest): Likewise.
8419 2002-01-11 Janis Johnson <janis187@us.ibm.com>
8421 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
8423 2002-01-11 Janis Johnson <janis187@us.ibm.com>
8425 * doc/rtl.texi (Insns): Fix 2 typos.
8427 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
8429 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
8430 options. Use @table @gcctabopt for MMIX options. Add index
8431 entries for MMIX options. Start new paragraph with first
8432 heading of the machine-dependent options.
8434 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
8437 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
8438 * combine.c (force_to_mode): Same.
8439 * reload1.c (clear_reload_reg_in_use): Same.
8441 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
8443 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
8446 2002-01-11 Andreas Jaeger <aj@suse.de>,
8447 Brad Lucier <lucier@math.purdue.edu>
8449 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
8452 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
8454 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
8455 Protect with IN_LIBGCC.
8456 (LINK_EH_SPEC): Add required trailing space.
8458 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
8460 * c-tree.h: Move function declarations so that they are listed
8461 under the filename which contains them.
8462 (check_identifier, finish_decl_top_level,
8463 lookup_name_current_level_global, shadow_record_fields): Remove.
8465 2002-01-11 Andreas Jaeger <aj@suse.de>
8467 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
8470 2002-01-10 Richard Henderson <rth@redhat.com>
8472 * config/alpha/alpha.c (print_operand): Add 'J'.
8473 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
8474 new operand with the sequence number for the lituse. When splitting
8475 the insns, use gen_movdi_er_high_g and generate a sequence number.
8476 (gen_movdi_er_high_g): Print the sequence number if non-zero.
8478 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
8480 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
8481 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
8483 (altivec_expand_builtin): Same.
8484 (altivec_expand_stv_builtin): New.
8486 * config/rs6000/rs6000.h (rs6000_builtins): Same.
8488 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
8489 ("altivec_lvehx"): New.
8490 ("altivec_lvewx"): New.
8491 ("altivec_lvxl"): New.
8492 ("altivec_lvx"): New.
8493 ("altivec_stvx"): New.
8494 ("altivec_stvebx"): New.
8495 ("altivec_stvehx"): New.
8496 ("altivec_stvewx"): New.
8497 ("altivec_stvxl"): New.
8499 2002-01-10 Richard Henderson <rth@redhat.com>
8501 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
8502 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
8503 care not to delete instructions twice.
8505 2002-01-10 Zack Weinberg <zack@codesourcery.com>
8507 * toplev.c: Don't declare environ (it's not used anywhere).
8508 * configure.in: Don't check for declaration of environ.
8509 * config/i386/xm-mingw32.h: Don't #define environ.
8510 * config.in, configure: Regenerate.
8512 2002-01-10 Zack Weinberg <zack@codesourcery.com>
8514 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
8515 * configure: Regenerate.
8517 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
8518 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
8519 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
8521 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
8522 LIMITS_H_TEST here, not in m68k/x-next.
8523 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
8524 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
8526 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
8527 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
8528 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
8530 * config/i386/x-djgpp: Renamed i386/t-djgpp.
8531 * config/m88k/x-dolph: Renamed m88k/t-dolph.
8532 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
8533 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
8534 replacement of quadlib.asm with quadlib.c.
8536 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
8537 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
8538 config/rs6000/xm-beos.h: Delete file.
8540 * config.gcc: Update to match above changes.
8542 2002-01-10 Kazu Hirata <kazu@hxi.com>
8544 * config/h8300/h8300.h: Fix comment typos.
8545 * config/h8300/h8300.md: Likewise.
8546 * config/h8300/lib1funcs.asm: Likewise.
8548 2002-01-10 Dale Johannesen <dalej@apple.com>
8550 PR optimization/5269
8551 * unroll.c (precondition_loop_p): Make *increment be the correct
8552 sign when n_iterations known, to avoid confusing caller.
8554 2002-01-10 Kazu Hirata <kazu@hxi.com>
8556 * doc/extend.texi (deprecated): Fix a typo.
8558 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
8560 * basic-block.h (update_br_prob_note): Declare.
8561 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
8562 (try_forward_edges): Care negative frequencies and update note.
8563 (outgoing_edges_match): Tweek conditional merging heuristics.
8564 (try_crossjump_to_edge): use update_br_prob_note.
8565 * cfglayout.c (fixup_reorder_chain): Likewise.
8566 * cfrtl.c (update_br_prob_note): New.
8567 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
8569 * i386.c (ix86_decompose_address): Return -1 if address contains
8571 (legitimate_address_p): Require ix86_decompose_address to return 1.
8573 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
8574 (cprop_insn): Likewise.
8576 2002-01-10 Kazu Hirata <kazu@hxi.com>
8578 * toplev.c: Fix formatting.
8580 * tree-dump.c: Likewise.
8581 * unroll.c: Likewise.
8582 * unwind-dw2.c: Likewise.
8583 * unwind-dw2-fde.c: Likewise.
8584 * unwind-dw2-fde-glibc.c: Likewise.
8585 * unwind-sjlj.c: Likewise.
8587 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
8589 * doc/invoke.texi: Document PDP-11 options.
8591 2002-01-10 Kazu Hirata <kazu@hxi.com>
8593 * config/h8300/h8300.h: Fix formatting.
8595 2002-01-10 Ira Ruben <ira@apple.com>
8597 Add __attribute__ ((deprecated)).
8598 * extend.texi: Document __attribute__ ((deprecated)).
8599 * invoke.texi: Document -Wno-deprecated-declarations.
8600 * testsuite/g++.dg/other/deprecated.C: New C++ test.
8601 * testsuite/gcc.dg/deprecated.c: New C test.
8602 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
8603 (c_common_attribute_table): Add "deprecated" entry.
8604 (handle_deprecated_attribute): New function.
8605 * c-decl.c (deprecated_states): New enum.
8606 deprecated_state: State of "deprecated" handling.
8607 (start_decl): Set deprecated_state based on attributes.
8608 (grokdeclarator): Test for deprecated uses, propagate attribute.
8609 * c-typeck.c (build_component_ref): Test for deprecated fields.
8610 (build_external_ref): Test for deprecated primaries.
8611 * diagnostic.c (warn_deprecated_use) New function to issue
8612 warnings about __attribute__ ((depricated)) references.
8613 * flags.h (warn_deprecated_decl): Extern declared for
8614 -W[no-]deprecated-declarations option.
8615 * print-tree.c (print_node): Show deprecated flag status.
8616 * toplev.c (warn_deprecated_decl): Defined.
8617 (W_options): Added "deprecated-declaration".
8618 * toplev.h (warn_deprecated_use): Extern declared.
8619 * tree.h (struct tree_common): Define deprecated_flag.
8620 (TREE_DEPRECATED): New macro to access flag.
8621 * cp/call.c (build_call): Test for deprecated calls.
8622 * cp/class.c (add_implicitly_declared_members): Set global
8623 flag to tell grokdeclarator to not issue deprecated warnings.
8624 * cp/cp-tree.h: Add extern for adding_implicit_members.
8625 * cp/decl.c (deprecated_states): New enum.
8626 (start_decl): Set deprecated_state based on attributes.
8627 (grokdeclarator): Test for deprecated uses, propagate attribute.
8628 * cp/lex.c (do_identifier): Test for deprecated primaries.
8629 * cp/typeck.c (build_component_ref): Test for deprecated fields.
8631 2002-01-10 Ira Ruben <ira@apple.com>
8633 Fix to assign attributes to inline member functions.
8634 * cp/decl.c (start_method): Handle attrlist.
8636 2002-01-10 Kazu Hirata <kazu@hxi.com>
8638 * combine.c (expand_field_assignment): Use subreg_lsb().
8640 2002-01-10 David Edelsohn <edelsohn@gnu.org>
8642 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
8643 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
8644 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
8645 Recurse for any operand of AND as long as constant is non-zero.
8647 2002-01-10 Kazu Hirata <kazu@hxi.com>
8649 * config/h8300/h8300.md: Remove constraints from expanders.
8651 2002-01-10 Kazu Hirata <kazu@hxi.com>
8653 * varasm.c: Fix formatting.
8654 * varray.c: Likewise.
8655 * vmsdbgout.c: Likewise.
8656 * xcoffout.c: Likewise.
8658 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
8660 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
8661 update edge probabilities to match.
8663 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
8665 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
8667 * doc/languages.texi, doc/sourcebuild.texi: New files.
8668 * doc/configfiles.texi: Make a subsubsection. Update.
8669 * doc/configterms.texi: Add @node. Remove warning that this isn't
8670 instructions for building GCC.
8671 * doc/makefile.texi: Make a subsection.
8672 * doc/gccint.texi: Update.
8674 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
8676 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
8678 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
8680 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
8682 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
8684 * optabs.c (expand_fix): Look for wider integer modes first.
8686 * i386.md (mov?f): Avoid the fake const double trick for medium
8688 (min?f*/max?f*): Prohibit memory operands for i387 variant.
8689 (fop_df_4): Disable for SSE compilation.
8691 2002-01-10 Graham Stott <grahams@redhat.com>
8693 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
8694 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
8696 2002-01-10 Richard Henderson <rth@redhat.com>
8698 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
8700 2002-01-10 Richard Henderson <rth@redhat.com>
8702 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
8703 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
8705 2002-01-10 Kazu Hirata <kazu@hxi.com>
8707 * combine.c (can_combine_p): Fix a comment typo.
8709 2002-01-09 Zack Weinberg <zack@codesourcery.com>
8711 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
8712 empty list correctly. Change loop index $t to $f for
8713 consistency with rest of Makefile.
8715 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
8717 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
8718 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
8720 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
8721 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
8722 (altivec_init_builtins): Same.
8723 (altivec_expand_unop_builtin): Return NULL_RTX on error.
8724 (altivec_expand_binop_builtin): Same.
8725 (altivec_expand_ternop_builtin): Same.
8728 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
8729 ("altivec_vctuxs"): Fix typo.
8730 ("altivec_vnmsubfp"): Same.
8731 ("altivec_dssall"): New.
8732 ("altivec_mfvscr"): New.
8733 ("altivec_dss"): New.
8734 ("altivec_lvsl"): New.
8735 ("altivec_lvsr"): New.
8736 ("altivec_dstt"): New.
8737 ("altivec_dstst"): New.
8738 ("altivec_dststt"): New.
8739 ("altivec_dst"): New.
8741 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
8742 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
8744 2002-01-09 Richard Henderson <rth@redhat.com>
8746 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
8748 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
8750 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
8752 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
8754 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
8756 2002-01-09 Kazu Hirata <kazu@hxi.com>
8758 * read-rtl.c: Fix formatting.
8760 * regclass.c: Likewise.
8761 * regrename.c: Likewise.
8762 * reg-stack.c: Likewise.
8763 * reload1.c: Likewise.
8764 * reload.c: Likewise.
8767 2002-01-09 Kazu Hirata <kazu@hxi.com>
8769 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
8770 to extract items in the expr_list chain.
8772 2002-01-09 Richard Henderson <rth@redhat.com>
8774 * config/vax/vax.c (vax_rtx_cost): Never abort.
8776 * config/vax/vax.h (REAL_ARITHMETIC): Define.
8778 2002-01-09 Jan Hubicka <jh@suse.cz>
8780 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
8782 2002-01-09 Richard Henderson <rth@redhat.com>
8784 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
8785 Unify code from various alternatives.
8787 2002-01-09 Richard Henderson <rth@redhat.com>
8789 * regrename.c (copy_value): Ignore the copy if the source register
8790 is present in the value chain with a narrower mode.
8792 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8794 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
8795 for the c4x target. Also improve layout.
8797 2002-01-09 Richard Henderson <rth@redhat.com>
8799 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
8800 * config/m32r/m32r.md (and ior xor splitters): Swap operands
8801 to match insn patterns.
8803 2002-01-09 Richard Henderson <rth@redhat.com>
8805 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
8806 (copyprop_hardreg_forward_1): Likewise.
8808 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
8810 * pa.md (decrement_and_branch_until_zero): Change predicate for
8811 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
8813 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
8815 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
8816 gets undefined. For Darwin.
8818 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8820 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
8822 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8824 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
8826 2002-01-08 Richard Henderson <rth@redhat.com>
8828 * regrename.c (copy_value): Ignore overlapping copies.
8830 2002-01-08 Richard Henderson <rth@redhat.com>
8832 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
8833 as needed to avoid shared structure.
8835 2002-01-08 Kazu Hirata <kazu@hxi.com>
8837 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
8840 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
8842 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
8843 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
8844 documentation of obsolete macros.
8845 * system.h: Poison these macros.
8846 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
8847 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
8848 config/c4x/c4x.h, config/clipper/clipper.h,
8849 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
8850 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
8851 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
8852 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
8853 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
8854 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
8855 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
8856 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
8857 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
8858 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
8859 config/sparc/sparc.h, config/stormy16/stormy16.h,
8860 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
8861 definitions and commented out definitions of obsolete macros.
8862 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
8863 of MAX_INT_TYPE_SIZE.
8865 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
8867 * config/s390/s390.c (s390_preferred_reload_class): Never
8868 return ADDR_REGS if it isn't a subset of the given class.
8869 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
8870 FP_REGS, but all superclasses as well.
8872 * config/s390/s390.c (s390_function_profiler): Fix thinko.
8874 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
8875 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
8876 must not be a const_int.
8878 2002-01-08 Richard Henderson <rth@redhat.com>
8880 * Makefile.in (toplev.o): Depend on options.h.
8881 (gcc.o): Depend on specs.h.
8883 2002-01-08 Jakub Jelinek <jakub@redhat.com>
8885 * expr.c (store_expr): Convert VOIDmode constants back to target's
8888 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8890 * doc/invoke.texi: Markup gcc as @command. Refer to
8891 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
8892 of http://gcc.gnu.org/thanks.html.
8894 2002-01-08 Dale Johannesen <dalej@apple.com>
8896 * config/rs6000/rs6000.md: Add missing int register
8897 target case to movdf_low.
8899 2002-01-08 Zack Weinberg <zack@codesourcery.com>
8901 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
8902 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
8903 (cppinit.o): Depend on except.h.
8904 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
8905 s-specs): New rules.
8907 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
8908 Don't create specs.h/options.h/gencheck.h here. Remove
8909 unnecessary variable settings from last argument of AC_OUTPUT.
8910 * config.in, configure: Regenerate.
8911 * intl.c: Hardcode package name as "gcc".
8913 * cppinit.c: Include except.h.
8914 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
8916 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
8917 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
8918 (!)USING_SJLJ_EXCEPTIONS.
8919 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
8921 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
8923 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
8924 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
8925 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
8926 documentation of obsolete macros.
8927 * system.h: Poison these macros.
8928 * config/d30v/d30v.h, config/ns32k/encore.h,
8929 config/stormy16/stormy16.h: Remove definitions and commented out
8930 definitions of obsolete macros.
8932 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
8934 * objc/objc-act.c (handle_class_ref): Mark the declaration of
8935 %sobjc_class_ref_%s as used - to prevent unwanted compiler
8938 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
8940 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
8941 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
8942 to insn adjusting stack/frame pointer.
8943 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
8944 accept operands that cause the insn to be non-splittable.
8946 2002-01-08 Graham Stott <grahams@redhat.com>
8948 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
8949 (C_TYPE_FIELDS_VOLATILE): Likewise.
8950 (C_TYPE_BEING_DEFINED): Likewise.
8951 (C_IS_RESERVED_WORD): Likewise.
8952 (C_TYPE_VARIABLE_SIZE): Likewise.
8953 (C_DECL_VARIABLE_SIZE): Likewise.
8954 (C_MISSING_PROTOTYPE_WARNED): Likewise.
8955 (C_SET_EXP_ORIGINAL_CODE): Likewise.
8956 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
8958 (C_DECL_ANTICIPATED): Likewise.
8959 (c_build_type_variant): Add parenthesis.
8961 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
8963 * gcc.c (option_map): Remove --version.
8964 (process_command): Handle -fversion following the GNU Coding
8965 Standards. Partially addresses PR other/704.
8967 2002-01-08 Graham Stott <grahams@redhat.com>
8969 * combine.c (combine_instructions): Fix typo.
8971 2002-01-08 Graham Stott <grahams@redhat.com>
8973 * debug.h: Use "tree" and "rtx" throughout.
8975 * debug.c: Likewise.
8977 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
8979 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
8980 constant pool, use the pool's version of the symbol instead.
8982 2002-01-07 Richard Henderson <rth@redhat.com>
8984 * regrename.c (find_oldest_value_reg): Ignore the value chain if
8985 the original register was copied in a mode with a fewer number of
8986 hard registers than the desired mode.
8987 (copyprop_hardreg_forward_1): Likewise.
8988 (debug_value_data): Fix loop test.
8989 * toplev.c (parse_options_and_default_flags): Reenable
8990 -fcprop-registers at -O1.
8992 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
8994 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
8995 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
8997 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
9000 * config/rs6000/rs6000.md: Add altivec predicate patterns.
9002 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
9004 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
9005 (pa_output_function_prologue): Output local label at the beginning of
9006 the prologue when profiling.
9007 (hppa_profile_hook): Use the local label rather than the function label.
9008 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
9010 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
9012 * config/rs6000/rs6000.c (print_operand): Remove extra space.
9013 (altivec_expand_unop_builtin): Fix thinko.
9014 (altivec_expand_binop_builtin): Same.
9015 (altivec_expand_ternop_builtin): Same.
9016 (altivec_expand_builtin): Same.
9018 2002-01-07 Richard Henderson <rth@redhat.com>
9020 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
9022 2002-01-07 Jason Merrill <jason@redhat.com>
9024 * unwind-dw2.c (execute_cfa_program): Use < again.
9026 2002-01-07 Jakub Jelinek <jakub@redhat.com>
9028 * predict.c (combine_predictions_for_insn): Avoid division by zero.
9030 2002-01-07 Jakub Jelinek <jakub@redhat.com>
9032 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
9033 Don't allow -1 - x -> ~x simplifications in the first pass.
9035 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
9037 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
9039 (altivec_expand_binop_builtin): Same.
9040 (altivec_expand_unop_builtin): Same.
9041 (print_operand): Fix typo.
9042 (bdesc_1arg): Add vupk* variants.
9044 * rs6000.h (rs6000_builtins): Add vupk* enums.
9046 * rs6000.md: Add altivec_vupk* variants.
9048 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
9050 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
9051 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
9052 and last update dates.
9054 2002-01-07 Janis Johnson <janis187@us.ibm.com>
9056 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
9058 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
9060 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
9061 * config/avr/avr.h (CPP_SPEC): Likewise.
9062 (LINK_SPEC): Likewise.
9063 (CRT_BINUTILS_SPECS): Likewise.
9064 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9065 * doc/invoke.texi (AVR Options): Document them.
9067 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
9069 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
9072 2002-01-07 Graham Stott <grahams@redhat.com>
9074 * config/i386/i386.h: Update copyright date.
9075 (HALF_PIC_PTR): Add parenthesis.
9076 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
9077 (CONSTANT_ALIGNMENT): Add parenthesis.
9078 (DATA_ALIGNMENT): Likewise.
9079 (LOCAL_ALIGNMENT): Likewise.
9080 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
9081 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
9082 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
9083 (HARD_REGNO_NREGS): Add paranethesis.
9084 (VALID_SSE_REG_MODE): Whitespace.
9085 (VALID_MMX_REG_MODE): Whitespace.
9086 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
9087 (ix86_hard_regno_mode_ok): Add parenthesis.
9088 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
9089 (RETURN_IN_MEMORY): Whitespace.
9090 (N_REG_CLASSES): Add parenthesis.
9091 (INTEGER_CLASS_P): Add parenthesis and wrap.
9092 (FLOAT_CLASS_P): Likewise.
9093 (SSE_CLASS_P): Likewise.
9094 (MMX_CLASS_P): Likewise.
9095 (MAYBE_INTEGER_CLASS_P): Likewise.
9096 (MAYBE_FLOAT_CLASS_P): Likewise.
9097 (MAYBE_SSE_CLASS_P): Likewise.
9098 (MAYBE_MMX_CLASS_P): Likewise.
9099 (Q_CLASS_P): Likewise.
9100 (GENERAL_REGNO_P): Uppercase macro parameter.
9101 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
9102 (FP_REGNO_P): Likewise.
9103 (ANY_FP_REGNO_P): Uppercase macro parameter.
9104 (SSE_REGNO_P): Likewise.
9105 (SSE_REGNO): Likewise.
9106 (SSE_REG_P): Likewise.
9107 (SSE_FLOAT_MODE_P): Likewise.
9108 (MMX_REGNO_P): Likewise.
9109 (MMX_REG_P):Likewise.
9110 (STACK_REG_P): Likewise.
9111 (NON_STACK_REG_P): Likewise.
9112 (STACK_TOP_P): Likewise.
9113 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
9114 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
9115 (SECONDARY_MEMORY_NEEDED): Likewise.
9116 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
9117 (MD_ASM_CLOBBERS): Whitespace and wrap.
9118 (MUST_PASS_IN_STACK): Whitespace and wrap.
9119 (RETURN_POPS_ARGS): Add parenthesis.
9120 (INIT_CUMULATIVE_ARGS): Likewise.
9121 (FUNCTION_ARG): Likewise.
9122 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
9123 (SETUP_INCOMING_VARARGS): Likewise.
9124 (BUILD_VA_LIST_TYPE): Add parenthesis.
9125 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
9127 (EXPAND_BUILTIN_VA_ARG): Likewise.
9128 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
9129 (INITIALIZE_TRAMPOLINE): Add parenthesis.
9130 (INITIAL_ELIMINATION_OFFSET): Likewise.
9131 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
9132 (REGNO_OK_FOR_BASE_P): Likewise.
9133 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
9134 (REGNO_OK_FOR_DIREG_P): Likewise.
9135 (REG_OK_FOR_INDEX_P): Whitespace.
9136 (REG_OK_FOR_BASE_P): Whitespace.
9137 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
9139 (FIND_BASE_TERM): Fix typo.
9140 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
9141 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
9142 (SYMBOLIC_CONST; Whitespace.
9143 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
9144 (ENCODE_SECTION_INFO): Whitespace.
9145 (FINALIZE_PIC): Remove do { ... } while (0).
9146 (PROMOTE_MODE): Wrap in do { ... } while (0).
9147 (CONST_COSTS): Whitespace.
9148 (RTX_COSTS): Add paramethesis, whitespace and wrap.
9149 (REGISTER_MOVE_COST): Add parenthesis.
9150 (MEMORY_MOVE_COST): Likewise.
9151 (EXTRA_CC_MODES): Whitespace.
9152 (SELECT_CC_MODE): Add parenthesis and whitespace.
9153 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
9154 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
9155 (ASM_OUTPUT_LABEL): Add paramethesis.
9156 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
9157 (ASM_OUTPUT_REG_POP): Likewise.
9158 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
9159 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9161 * config/i386/i386.c: Update copyright.
9162 (CHECK_STACK_LIMIT): Add parenthesis.
9163 (AT_BP): Uppercase macro parameter.
9164 (x86_64_int_parameter_registers): Constify.
9165 (x86_64_int_return_registers): Likewise.
9166 (ix86_compare_op0): Use rtx.
9167 (construct_container): Constify INTREG parameter.
9168 (function_arg): Use rtx.
9170 * diagnostic.h: Update copyright date.
9171 (output_buffer_state): Add parenthesis.
9172 (output_buffer_format_args): Likewise.
9174 * combine.c (combine_instructions): Replace XEXP (links, 0)
9177 2002-01-06 H.J. Lu <hjl@gnu.org>
9179 * cfgcleanup.c (thread_jump): Fix 2 typos.
9181 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
9183 * config.gcc: Add support for --enable-altivec.
9185 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
9187 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
9189 2002-01-06 Jakub Jelinek <jakub@redhat.com>
9191 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
9192 __objc_class_name_*.
9194 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
9196 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
9198 2002-01-06 Richard Henderson <rth@redhat.com>
9200 * reorg.c (emit_delay_sequence): Remove death notes, not merely
9201 nop them out. Increment label reference count for REG_LABEL.
9202 (fill_slots_from_thread): Frob label reference count around
9203 delete_related_insns.
9205 2002-01-05 Richard Henderson <rth@redhat.com>
9207 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
9210 2002-01-05 Richard Henderson <rth@redhat.com>
9212 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
9213 * integrate.c (output_inline_function): Likewise.
9214 * toplev.c (rest_of_compilation): Do it here instead. Move call
9215 to remove_unnecessary_notes after emitting abstract instance.
9216 Force an emitted nested function to have its parent emited as well.
9217 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
9219 (rtl_for_decl_location): Do not look at reload data structures
9220 before reload has run.
9222 2002-01-05 Kazu Hirata <kazu@hxi.com>
9224 * cse.c: Fix formatting.
9225 * dwarf2asm.c: Likewise.
9226 * dwarf2out.c: Likewise.
9227 * explow.c: Likewise.
9228 * expmed.c: Likewise.
9229 * function.c: Likewise.
9231 * gencheck.c: Likewise.
9232 * genrecog.c: Likewise.
9233 * ggc-common.c: Likewise.
9234 * ggc-page.c: Likewise.
9235 * global.c: Likewise.
9237 2002-01-05 Kazu Hirata <kazu@hxi.com>
9239 * combine.c: Fix formatting.
9241 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
9244 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
9246 2002-01-05 David Edelsohn <edelsohn@gnu.org>
9248 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
9249 as 1 for __powerpc64__ as well.
9251 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
9253 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
9256 2002-01-05 Daniel Berlin <dan@dberlin.org>
9258 * lcm.c: Revert change, due to performance regression it causes on
9259 SPEC because it's slightly more conservative (sigh, I hate
9262 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
9264 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
9266 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
9268 * doc/cppinternals.texi: Update.
9270 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
9272 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
9273 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
9275 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
9276 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
9277 kludge for pre-october-14th mmix versions to handle new-found bug
9278 with PUSHJ/PUSHGO and the register stack.
9279 * config/mmix/mmix.h (struct machine_function): Rename member
9280 has_call_value_without_parameters to has_call_without_parameters.
9281 All referers changed.
9282 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
9283 TARGET_MASK_BRANCH_PREDICT): New macros.
9284 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
9285 -mno-reg-stack-fill-bug-workaround.
9286 * config/mmix/mmix.md ("call"): Set struct machine member
9287 has_call_without_parameters.
9289 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
9291 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
9293 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
9295 * cfgcleanup.c: Include tm_p.h
9296 (mark_effect): Fix handling of hard register; fix handling of SET
9298 2002-01-04 Kazu Hirata <kazu@hxi.com>
9300 * config/h8300/h8300.md (anonymous patterns): Check that
9301 operands are registers before using REGNO on them.
9303 2002-01-03 Roland McGrath <roland@frob.com>
9305 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
9307 2002-01-04 Jakub Jelinek <jakub@redhat.com>
9309 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
9310 * c-common.h (genrtl_expr_stmt_value): Likewise.
9311 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
9312 (expand_expr_stmt_value): Add maybe_last argument.
9313 Don't warn about statement with no effect if it is the last statement
9314 in expression statement.
9315 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
9316 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
9317 expand_expr_stmt_value.
9318 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
9319 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
9320 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
9321 as maybe_last to expand_expr_stmt_value.
9323 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
9325 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
9326 be passed in, do not build it.
9327 (c_begin_if_stmt): New function.
9328 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
9329 * c-common.h (c_expand_start_cond): Update prototype.
9330 (c_begin_if_stmt): Prototype new function.
9331 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
9332 * c-parse.in (if_prefix): Use c_begin_if_stmt,
9333 c_begin_while_stmt and c_finish_while_stmt_cond.
9335 2002-01-04 William Cohen <wcohen@redhat.com>
9337 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
9338 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
9339 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
9340 * config/pa/som.h (ASM_FILE_START): Likewise.
9342 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
9344 * lcm.c: Include df.h.
9345 Add available_transfer_function prototype.
9346 (compute_available): Rework to use iterative dataflow framework.
9347 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
9348 with bb_info in df.h
9349 (available_transfer_function): New function.
9351 * Makefile.in (lcm.o): add df.h to dependencies.
9353 2002-01-04 Richard Henderson <rth@redhat.com>
9355 * config/alpha/alpha.c (some_operand): Accept HIGH.
9356 (input_operand): Likewise; accept simple references to globals.
9357 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
9358 (alpha_const_double_ok_for_letter_p): Likewise.
9359 (alpha_extra_constraint): Likewise.
9360 (alpha_preferred_reload_class): Likewise. Do not force
9361 symbolic constants to memory.
9362 (alpha_legitimate_address_p): Accept simple references
9363 to small_symbolic_operand.
9364 (alpha_legitimize_address): New arg scratch. Be prepared to be
9365 called when no_new_pseudos. Emit simple symbolic references.
9366 Split integers into low, high, and rest.
9367 (alpha_expand_mov): Use alpha_legitimize_address.
9368 (some_small_symbolic_mem_operand): New.
9369 (split_small_symbolic_mem_operand): New.
9370 * config/alpha/alpha-protos.h: Update.
9371 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
9372 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
9373 (EXTRA_CONSTRAINT): Likewise.
9374 (PREFERRED_RELOAD_CLASS): Likewise.
9375 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
9376 (PREDICATE_CODES): Update.
9377 * config/alpha/alpha.md: New post-reload splitters to convert
9378 simplfied symbolic operands to the form that references $29.
9379 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
9380 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
9382 2002-01-03 Richard Henderson <rth@redhat.com>
9384 * local-alloc.c (function_invariant_p): Update commentary.
9386 2002-01-04 H.J. Lu <hjl@gnu.org>
9388 * toplev.c (rest_of_compilation): Fix a typo when calling
9391 2002-01-03 Kazu Hirata <kazu@hxi.com>
9393 * c-common.c: Fix formatting.
9394 * diagnostic.c: Likewise.
9395 * doloop.c: Likewise.
9396 * dwarf2out.c: Likewise.
9398 2002-01-03 Kazu Hirata <kazu@hxi.com>
9400 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
9401 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
9403 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
9405 * cpperror.c: Update comments and copyright.
9406 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
9407 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
9409 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
9411 * collect2.c (main): Use strcmp when testing for "-shared".
9413 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
9415 * cppmacro.c: Don't include intl.h. Update comments.
9416 (new_number_token): Allocate enough buffer for 64-bit unsigned
9417 integers; update prototype.
9418 * cppmain.c: Update comments.
9420 2002-01-03 William Cohen <wcohen@redhat.com>
9422 * function.h (struct function): Add profile.
9423 (current_function_profile): New.
9424 doc/extend.texi: Update documentation.
9425 * final.c (final_start_function): Use current_function_profile
9426 instead of profile_flag.
9427 (profile_after_prologue): Likewise.
9428 * function.c (expand_function_start): Likewise.
9429 (expand_function_start): Likewise.
9430 * config/alpha/alpha.c (direct_call_operand):
9431 (alpha_does_function_need_gp): Likewise.
9432 (alpha_expand_prologue): Likewise.
9433 * config/arm/arm.c (arm_expand_prologue): Likewise.
9434 thumb_expand_prologue: Likewise.
9435 * config/d30v/d30v.c (d30v_stack_info): Likewise.
9436 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
9437 (fr30_expand_prologue): Likewise.
9438 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
9439 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
9440 * config/i386/i386.h (FINALIZE_PIC): Likewise.
9441 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
9442 * config/i960/i960.c (i960_output_function_prologue): Likewise.
9443 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
9444 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
9445 (m32r_expand_prologue): Likewise.
9446 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
9447 (m88k_expand_prologue): Likewise.
9448 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
9449 * config/mips/mips.c (compute_frame_size): Likewise.
9450 (mips_expand_prologue): Likewise.
9451 (mips_can_use_return_insn): Likewise.
9452 * config/pa/elf.h (ASM_FILE_START): Likewise.
9453 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
9454 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
9455 * config/pa/som.h (ASM_FILE_START): Likewise.
9456 * config/romp/romp.c (romp_using_r14): Likewise.
9457 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
9458 (rs6000_stack_info): Likewise.
9459 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9460 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
9461 * config/v850/v850.c (compute_register_save_size): Likewise.
9463 2002-01-03 Jakub Jelinek <jakub@redhat.com>
9465 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
9466 gen_lowpart_common fails, use gen_lowpart_SUBREG.
9468 2002-01-03 Turly O'Connor <turly@apple.com>
9470 * darwin.c (machopic_output_possible_stub_label): Don't generate
9471 stub routines for pseudo-stubs which we've just defined.
9473 2002-01-03 Kazu Hirata <kazu@hxi.com>
9475 * builtins.c: Fix formatting.
9476 * c-typeck.c: Likewise.
9477 * combine.c: Likewise.
9481 2002-01-03 Andreas Schwab <schwab@suse.de>
9483 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
9484 and return true if _cpp_push_next_buffer pushed a new include
9486 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
9487 _cpp_pop_file_buffer did not push a new file.
9488 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
9490 2002-01-02 Eric Christopher <echristo@redhat.com>
9492 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
9493 FIND_REG_INC_NOTE call. Update copyright.
9494 * loop.c (canonicalize_condition): Ditto.
9495 * reorg.c (delete_scheduled_jump): Ditto.
9497 2002-01-03 Kazu Hirata <kazu@hxi.com>
9499 * gcse.c: Fix formatting.
9501 2002-01-03 Graham Stott <grahams@redhat.com>
9503 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
9504 forward defs for struct tags rtx_def, union_tree, rtvec_def
9505 also output corresponding typedefs for rtx, tree, and rtvec.
9507 * system.h: Move forward defs for struct tags rtx_def, union_tree,
9508 rtvec_def along with corresponding typedefs for rtx, tree, and
9509 rtvec to config.h, hconfig.h, tconfig.h.
9511 2002-01-03 Graham Stott <grahams@redhat.com>
9513 * tree.h: Update copyright date.
9514 (IS_EXPR_CODE_CLASS): Add parenthesis.
9515 (TREE_SET_CODE): Add whitespace.
9516 (TREE_CHECK): Add parenthesis.
9517 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
9518 (CST_OR_CONSTRUCTOR_CHECK):
9519 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
9520 (TREE_SYMBOL_REFERENCED): Whitespace.
9521 (INT_CST_LT): Likewise.
9522 (INT_CST_LT_UNSIGNED): Likewise.
9523 (tree_real_cst): Unwrap comment.
9524 (tree_string): Likewise.
9525 (tree_complex): Likewise.
9526 (IDENTIFIER_POINTER): correct cast.
9527 (SAVE_EXPR_CONTEXT): Whitespace.
9528 (EXPR_WFL_FILENAME_NODE): Likewise.
9529 (EXPR_WFL_FILENAME): Remove parenthesis.
9530 (DECL_ORIGIN): Add parenthesis.
9531 (DECL_FROM_INLINE): Use NULL_TREE.
9532 (build_int_2): Whitespace.
9533 (build_type_variant): Add parenthesis.
9535 * gcc/jcf-parse.c: Update copyright date.
9536 (yyparse): Constify resource_filename.
9538 2002-01-03 Graham Stott <grahams@redhat.com>
9540 * rtl.h: Update copyright date.
9541 (RTL_CHECK1): Wrap long line.
9542 (RTL_CHECK2): Likewise.
9543 (RTL_CHECKC1): Wrap long line and whitespace.
9544 (RTL_CHECKC2): Likewise.
9545 (XWINT): Whitespace.
9551 (XBITMAP): Likewise.
9562 (X0BITMAP): Likewise.
9564 (X0BBDEF): Likewise.
9565 (X0ADVFLAGS): Likewise.
9566 (X0CSELIB): Likewise.
9567 (X0MEMATTR): Likewise.
9575 (XCBITMAP): Likewise.
9577 (XCBBDEF): Likewise.
9578 (XCADVFLAGS): Likewise.
9579 (XCCSELIB): Likewise.
9581 (INSN_UID): Likewise.
9582 (PREV_INSN): Likewise.
9583 (PATTERN): Likewise.
9584 (INSN_CODE): Likewise.
9585 (PUT_REG_NOTE_KIND): Likewise.
9586 (CODE_LABEL_NUMBER): Likewise.
9587 (NOTE_SOURCE_FILE): Likewise.
9588 (NOTE_BLOCK): Likewise.
9589 (NOTE_EH_HANDLER): Likewise.
9590 (NOTE_RANGE_INFO): Likewise.
9591 (NOTE_LIVE_INFO): Likewise.
9592 (NOTE_BASIC_BLOCK): Likewise.
9593 (NOTE_EXPECTED_VALUE): Likewise.
9594 (NOTE_LINE_NUMBER): Likewise.
9595 (LABEL_NAME): Likewise.
9596 (LABEL_NUSES): Likewise.
9597 (LABEL_ALTERNATE_NAME): Likewise.
9598 (ADDRESSOF_DECL): Likewise.
9599 (JUMP_LABEL): Likewise.
9600 (LABEL_NEXTREF): Likewise.
9602 (ORIGINAL_REGNO: Likewise.
9603 (HARD_REGISTER_NUM_P): Add parenthesis.
9604 (SUBREG_REG): Whitespace.
9605 (SUBREG_BYTE): Likewise.
9606 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
9607 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
9608 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
9609 (ASM_OPERANDS_INPUT_VEC): Likewise.
9610 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
9611 (ASM_OPERANDS_INPUT): Likewise.
9612 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
9613 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
9614 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
9615 (ASM_OPERANDS_INPUT_MODE): Likewise.
9616 (ASM_OPERANDS_SOURCE_FILE): Likewise.
9617 (ASM_OPERANDS_SOURCE_LINE): Likewise.
9618 (MEM_SET_IN_STRUCT_P): Minor reformat.
9619 (TRAP_CONDITION): Whitespace.
9620 (TRAP_CODE): Likewise.
9621 (COND_EXEC_TEST): Likewise.
9622 (COND_EXEC_CODE): Likewise.
9623 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
9624 (PHI_NODE_P): Add parenthesis.
9625 (plus_constant): Whitespace and add parenthesis.
9627 2002-01-03 Kazu Hirata <kazu@hxi.com>
9629 * config/avr/avr.c: Fix comment typos.
9630 * config/c4x/c4x.md: Likewise.
9631 * config/dsp16xx/dsp16xx.h: Likewise.
9632 * config/dsp16xx/dsp16xx.md: Likewise.
9633 * config/i386/i386.md: Likewise.
9634 * config/ia64/ia64.c: Likewise.
9635 * config/m32r/m32r.h: Likewise.
9636 * config/m68hc11/m68hc11.md: Likewise.
9637 * config/mmix/mmix.c: Likewise.
9638 * config/mn10200/mn10200.c: Likewise.
9639 * config/romp/romp.c: Likewise.
9640 * config/sh/sh.c: Likewise.
9641 * config/stormy16/stormy16.c: Likewise.
9642 * config/stormy16/stormy16.h: Likewise.
9643 * config/stormy16/stormy16.md: Likewise.
9645 2002-01-03 Graham Stott <grahams@redhat.com>
9647 * loop.h: Update copyright date.
9648 (LOOP_MOVABLES): Fix typo.
9649 (LOOP_REGS): Likewise.
9650 (LOOP_IVS): Likewise.
9652 2002-01-03 Graham Stott <grahams@redhat.com>
9654 * cppinit.c: Update copyright date.
9655 Don't include output.h
9656 * Makefile.in: Update copyright date.
9659 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
9662 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
9663 (-pthread) Add to RS/6000 options.
9665 2002-01-02 Kazu Hirata <kazu@hxi.com>
9667 * except.c: Fix comment typos.
9669 * varasm.c: Likewise.
9670 * doc/tm.texi: Fix a typo.
9672 2002-01-02 Jakub Jelinek <jakub@redhat.com>
9674 * c-typeck.c (output_init_element): Allow initializing static storage
9675 duration objects with compound literals.
9677 2002-01-02 Richard Henderson <rth@redhat.com>
9679 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
9682 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9684 * gcc.c (default_compilers): Const-ify.
9685 * mips-tdump.c (stab_names): Likewise.
9686 * mips-tfile.c (map_coff_types, map_coff_storage,
9687 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
9688 pseudo_ops_t, pseudo_ops): Likewise.
9689 * protoize.c (default_include): Likewise
9691 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
9692 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
9693 Add array size in declaration.
9694 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
9695 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
9696 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
9697 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
9698 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
9699 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
9700 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
9701 emtens, make_nan): Const-ify.
9702 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
9703 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
9705 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
9707 * config.gcc (ia64-*-*): Set extra_headers.
9708 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
9709 * config/alpha/t-osf: Remove.
9710 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
9712 2002-01-02 David Edelsohn <edelsohn@gnu.org>
9714 * config/rs6000/t-aix43: Revert previous change.
9716 2002-01-02 Jason Merrill <jason@redhat.com>
9718 * c-decl.c (c_expand_body): Call outlining_inline_function when
9719 emitting an inline function out of line.
9721 2002-01-02 Richard Henderson <rth@redhat.com>
9723 * dwarf2out.c (limbo_die_node): Add created_for member.
9724 (new_die): New argument created_for. Update all callers.
9725 (mark_limbo_die_list): New.
9726 (dwarf2out_init): Register limbo_die_list as a root.
9727 (dwarf2out_finish): Force insert limbo dies into their function
9730 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
9733 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
9735 2002-01-02 Kazu Hirata <kazu@hxi.com>
9737 * config/h8300/fixunssfsi.c: Update copyright.
9740 * config/h8300/h8300.c: Update copyright.
9743 2002-01-02 Kazu Hirata <kazu@hxi.com>
9745 * config/romp/romp.c: Fix comment formatting.
9746 * config/romp/romp.h: Likewise.
9747 * config/romp/romp.md: Likewise.
9748 * config/s390/s390.c: Likewise.
9749 * config/stormy16/stormy16.c: Likewise.
9750 * config/stormy16/stormy16.h: Likewise.
9752 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
9754 * c-common.h (genrtl_expr_stmt_value): Declare.
9755 * c-semantics.c (genrtl_goto_stmt): Redirect to...
9756 (genrtl_goto_stmt_value): ... this new function. Pass new
9757 argument down to expand_expr_stmt_value, taking
9758 TREE_ADDRESSABLE into account.
9759 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
9760 STMT_EXPR as addressable, i.e., one whose result we want.
9761 * expr.c (expand_expr): Don't save expression statement value
9762 of labeled_blocks or loop_exprs.
9763 * stmt.c (expand_expr_stmt): Redirect to...
9764 (expand_expr_stmt_value): ... this new function. Use new
9765 argument to tell whether to save expression value.
9766 (expand_end_stmt_expr): Reset last_expr_type and
9767 last_expr_value if we don't have either.
9768 * tree-inline.c (declare_return_variable): Mark its use
9769 statement as addressable.
9770 * tree.h: Document new use of TREE_ADDRESSABLE.
9771 (expand_expr_stmt_value): Declare.
9773 2002-01-01 Tom Rix <trix@redhat.com>
9775 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
9776 rs6000_emit_allocate_stack.
9778 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
9780 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
9781 ${srcdir}/ginclude/ to every entry in extra_headers.
9782 * configure: Regenerate.
9783 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
9784 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
9785 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
9786 * ginclude/proto.h: Rename to config/convex/proto.h.
9788 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9790 * attribs.c (handle_vector_size_attribute): Use host_integerp
9791 and tree_int_cst; remove warnings.
9792 * caller-save.c (insert_restore): Add cast to get rid of warning.
9793 (insert_save): Likewise.
9794 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
9795 * regmove.c (find_matches): Add temporary var to kill a warning.
9797 2002-01-01 Douglas B Rupp <rupp@gnat.com>
9799 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
9800 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
9801 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
9802 (vms-dwarf2eh.o): Add Makefile rule.
9803 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
9804 * config/alpha/vms-dwarf2eh.asm: New file.
9806 * gcc.c (delete_if_ordinary): Delete all versions.
9808 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
9810 * config/mmix/mmix.md: Update FIXME to not mention
9812 (MMIX_rJ_REGNUM): New define_constants constant.
9813 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
9814 "*movdicc_real"): Adjust contraints formatting.
9815 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
9816 for branch prediction.
9817 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
9819 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
9820 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
9821 number. Delete related FIXMEs.
9822 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
9823 from number to MMIX_rJ_REGNUM.
9824 (TARGET_MASK_BRANCH_PREDICT): New.
9825 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
9826 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
9827 value. Add -mbranch-predict and -mno-branch-predict.
9828 (TARGET_VERSION): Drop date.
9829 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
9830 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
9831 for finding out global symbols.
9832 (mmix_asm_output_labelref): Revert condition for global symbol.
9833 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
9834 (mmix_print_operand_punct_valid_p): A '+' is valid.
9836 See ChangeLog.6 for earlier changes.