1 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3 * config/m68hc11/larith.asm (__map_data_section): Fix condition
5 (__do_global_ctors): Fix pointer comparison.
6 (__do_global_dtors): Likewise.
8 2002-04-09 David S. Miller <davem@redhat.com>
10 * config/sparc/sparc.c (sparc_extra_constraint_check): New
11 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
12 allow reloading pseudos.
13 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
14 * config/sparc/sparc-protos.h: Declare it.
16 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
17 unsigned comparison warning.
18 (output_restore_regs): Mark leaf_function as unused.
20 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22 * expr.c (is_aligning_offset): New function.
23 (expand_expr, case COMPONENT_EXPR): Call it.
25 2002-04-08 David S. Miller <davem@redhat.com>
28 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
30 Make init_priority work on Sparc when using GNU ld.
31 * config/sparc/linux.h, config/sparc/linux64.h,
32 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
33 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
34 * config/sparc/sol2-gld.h: New file to do the same.
35 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
36 sparc/sol2-gld.h to tm_file.
39 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
40 * doc/md.texi: Document it.
41 * config/sparc/sparc.md (movdi_insn_sp64_novis,
42 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
43 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
44 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
45 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
47 2002-04-08 Andreas Jaeger <aj@suse.de>
49 * stmt.c (expand_asm_operands): Revert last patch from Richard
52 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
54 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
55 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
57 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
59 * doc/contrib.texi (Contributors): Add David O'Brien.
61 2002-04-08 Alan Modra <amodra@bigpond.net.au>
63 * configure.in (auto-build.h): Use target_alias and build_alias
64 when running configure.
65 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
66 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
67 * configure: Regenerate.
69 2002-04-07 David S. Miller <davem@redhat.com>
71 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
73 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
76 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
77 generating 32-bit pic code.
79 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
81 * cppinit.c (cpp_create_reader): Initialize
82 discard_comments_in_macro_exp.
83 (COMMAND_LINE_OPTIONS): Add "-CC" option.
84 (cpp_handle_option): Handle "-CC" option.
85 * cpplex.c (save_comment): If saving a C++ comment in
86 a directive, convert it to a C comment.
87 (_cpp_lex_direct): Pass second comment start character to
88 save_comment to indicate comment type.
89 * cpplib.c (_cpp_handle_directive): If processing
90 a "#define" directive and discard_comments_in_macro_exp
91 is false, re-enable saving of comments.
92 (lex_macro_node): If discard_comments_in_macro_exp is false,
93 discard any comments before the macro identifier.
94 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
96 * cppmacro.c (cpp_get_token): If expanding a macro while
97 processing a directive, discard any comments we might encounter.
98 (parse_params): If discard_comments_in_macro_exp is false,
99 ignore comments in the macro parameter list.
100 * gcc.c (cpp_unique_options): Add "-CC" option.
101 (option_map): Map "--comments-in-macros" to "-CC".
102 * doc/cppopts.texi: Document "-CC" option.
103 * f/lang-specs.h: Add "-CC" option.
104 * testsuite/gcc.dg/cpp/maccom1.c: New test.
105 * testsuite/gcc.dg/cpp/maccom2.c: New test.
106 * testsuite/gcc.dg/cpp/maccom3.c: New test.
107 * testsuite/gcc.dg/cpp/maccom4.c: New test.
108 * testsuite/gcc.dg/cpp/maccom5.c: New test.
109 * testsuite/gcc.dg/cpp/maccom6.c: New test.
111 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
114 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
116 2002-04-06 Mark Mitchell <mark@codesourcery.com>
119 * stor-layout.c (layout_decl): Reset the RTL for the decl.
122 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
123 RTX_UNCHANGING_P for the functions arguments when a tail call
126 2002-04-06 Jason Merrill <jason@redhat.com>
128 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
129 (parse_options_and_default_flags): Set them appropriately.
130 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
132 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
134 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
137 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
140 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
141 types come in by-reference. Fix typo in comment.
143 2002-04-05 David S. Miller <davem@redhat.com>
145 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
146 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
147 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
148 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
150 2002-04-05 David S. Miller <davem@redhat.com>
152 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
153 are not going to emit return instructions, emit at least a nop
154 for the sake of sane backtraces.
156 2002-04-05 Richard Henderson <rth@redhat.com>
158 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
160 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
162 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
164 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
166 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
167 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
168 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
170 2002-04-05 Andreas Schwab <schwab@suse.de>
172 * c-convert.c: Include c-common.h.
173 * Makefile.in (c-convert.o): Updated.
175 2002-04-05 Jakub Jelinek <jakub@redhat.com>
177 * mklibgcc.in: Use separate libgcc.map for each multilib.
178 * Makefile.in (distclean): Don't remove libgcc.map here.
180 2002-04-05 Jakub Jelinek <jakub@redhat.com>
182 * Makefile.in (s-mlib): Handle --disable-multilib by separate
183 genmultilib invocation.
185 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
187 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
188 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
189 to num_gprs for symmetry.
190 * config/mips/mips.c: Adjust accordingly.
192 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
194 * c-common.c (truthvalue_conversion): Rename, update.
195 * c-common.h (c_common_truthvalue_conversion): New.
196 * c-convert.c (convert): Update.
197 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
198 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
199 * c-typeck.c (build_binary_op, build_unary_op,
200 build_conditional_expr): Update.
201 * fold-const.c (constant_boolean_node, fold): Use langhook.
202 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
203 * langhooks.h (struct lang_hooks): New hook.
204 * stmt.c (expand_decl_cleanup): Use langhook.
205 * tree.h (truthvalue_conversion): Remove.
207 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
209 2002-04-05 Alan Modra <amodra@bigpond.net.au>
211 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
212 Add rules to make null object file.
214 2002-04-04 Jim Blandy <jimb@redhat.com>
216 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
217 macro formal parameter names.
219 2002-04-04 David S. Miller <davem@redhat.com>
221 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
223 2002-04-04 Richard Henderson <rth@redhat.com>
226 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
227 Support copies into and out of memory. Don't accept allows_reg
228 and allows_mem as gospel.
230 2002-04-04 Richard Henderson <rth@redhat.com>
233 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
234 (write_dependence_p): Likewise.
236 2002-04-04 Richard Henderson <rth@redhat.com>
238 * predict.c (estimate_bb_frequencies): Do frequency calculation
239 with a volatile temporary.
241 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
243 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
245 2002-04-04 Jakub Jelinek <jakub@redhat.com>
248 * final.c (final_start_function): Don't bump profile_label_no here...
249 (final_end_function): ...but here.
251 2002-04-04 Jakub Jelinek <jakub@redhat.com>
253 * config/sparc/sparc.md (pic): New attribute.
254 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
256 (split after do_builtin_setjmp_setup): New.
258 2002-04-04 Jakub Jelinek <jakub@redhat.com>
261 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
264 2002-04-04 Jakub Jelinek <jakub@redhat.com>
266 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
267 UNITS_PER_WORD for zero sized aggregates.
269 2002-04-03 David S. Miller <davem@redhat.com>
271 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
272 one-character spec for this, just use %(link_gcc_c_sequence).
274 2002-04-03 David S. Miller <davem@redhat.com>
276 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
279 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
281 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
282 (DWARF_FRAME_RETURN_COLUMN): Move.
283 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
284 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
285 * pa.c (except.h, predict.h): Include.
287 (store_reg_modify, set_reg_plus_d): Revise prototypes.
288 (output_ascii): Add cast.
289 (store_reg_modify): Revise to add frame notes.
290 (set_reg_plus_d): Likewise.
291 (compute_frame_size): Include space for eh data registers in frame if
292 the current function calls eh_return.
293 (hppa_expand_prologue): Ensure register %r2 is saved if the current
294 function calls eh_return. Save eh data registers if the current
295 function calls eh_return. Fix code to add frame notes. Emit
296 blockage to prevent insns with frame notes being scheduled in the
298 (hppa_expand_epilogue): Restore eh data registers and do final stack
299 adjustment if the current function calls eh_return. Don't add frame
301 (output_call): Revise for change in length of call insn. Don't do
302 return pointer adjustment for an unconditional jump in the delay slot
303 of a call when using frame notes.
304 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
305 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
306 (ARG_POINTER_CFA_OFFSET): Define.
307 * pa.md (return_external_pic): New pattern.
308 (prologue): Correct formatting. Use return_external_pic if current
309 function calls eh_return.
310 (call_internal_symref, call_value_internal_symref,
311 sibcall_internal_symref, sibcall_value_internal_symref): Change default
312 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
314 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
316 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
317 list of targets to check using "nop" insn.
318 * configure: Rebuilt.
320 2002-04-04 Alan Modra <amodra@bigpond.net.au>
322 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
324 2002-04-03 David S. Miller <davem@redhat.com>
326 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
327 library sequence passed to the linker.
328 (LINK_COMMAND_SPEC): Use it.
329 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
330 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
331 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
333 2002-04-03 Jason Merrill <jason@redhat.com>
335 * except.c (struct eh_status): Remove protect_list.
336 (begin_protect_partials, end_protect_partials): Remove.
337 (add_partial_entry): Remove.
338 * except.h: Remove prototypes.
340 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
341 expand_decl_cleanup_eh.
344 * tree.h (CLEANUP_EH_ONLY): New macro.
345 * stmt.c (expand_decl_cleanup_eh): New fn.
346 (expand_cleanups): Check CLEANUP_EH_ONLY.
347 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
348 Use expand_decl_cleanup_eh.
349 (expand_stmt): Adjust.
350 * c-common.h: Adjust prototype.
352 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
354 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
355 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
356 (cris_target_asm_function_epilogue): Ditto.
357 (cris_initial_frame_pointer_offset): Ditto.
358 (cris_simple_epilogue): Ditto.
359 (cris_expand_builtin_va_arg): Variable-size types come in
362 2002-04-03 David S. Miller <davem@redhat.com>
364 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
366 (set_fast_math): Correct 'fsr' type.
368 2002-04-03 Richard Henderson <rth@redhat.com>
371 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
372 * toplev.c (check_global_declarations): Use it.
373 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
374 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
375 (LANG_HOOKS_DECLS): Add it.
376 * langhooks.c (lhd_warn_unused_global_decl): New.
377 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
378 * c-objc-common.c (c_warn_unused_global_decl): New.
379 * c-tree.h (c_warn_unused_global_decl): Declare.
380 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
382 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
384 * langhooks-def.h (lhd_set_decl_assembler_name,
385 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
386 (LANG_HOOKS_INITIALIZER): Update.
387 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
388 * langhooks.h (struct lang_hooks): New hook.
389 * tree.c (set_decl_assembler_name): Move to langhooks.c.
390 (lang_set_decl_assembler_name): Remove.
391 (init_obstacks): Don't set hook.
392 (decl_assembler_name): New function.
393 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
394 (decl_assembler_name): New.
395 (lang_set_decl_assembler_name): Remove.
397 2002-04-03 Jakub Jelinek <jakub@redhat.com>
399 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
400 works properly with .hidden symbols.
401 * configure: Rebuilt.
402 * config.in: Rebuilt.
403 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
404 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
405 properly with .hidden symbols.
407 2002-04-03 Jakub Jelinek <jakub@redhat.com>
410 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
413 2002-04-03 Richard Henderson <rth@redhat.com>
416 * sched-rgn.c (sets_likely_spilled): New.
417 (sets_likely_spilled_1): New.
418 (add_branch_dependences): Use it.
420 2002-04-02 Richard Henderson <rth@redhat.com>
423 * loop.h (LOOP_FIRST_PASS): New.
424 * loop.c (strength_reduce): Mind it when deciding to unroll.
425 * toplev.c (rest_of_compilation): Set it.
427 2002-04-02 David S. Miller <davem@redhat.com>
429 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
430 mems_ok_for_ldd_peep when the order of the loads being examined
432 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
433 existing comment to increase comprehension of this situation.
435 2002-04-02 Zack Weinberg <zack@codesourcery.com>
437 * config/sh/sh.md: Don't use union real_extract.
439 2002-04-02 Richard Henderson <rth@redhat.com>
441 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
443 2002-04-02 David O'Brien <obrien@FreeBSD.org>
445 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
446 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
447 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
448 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
449 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
450 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
451 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
452 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
453 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
454 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
455 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
456 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
457 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
458 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
459 Include as many configury headers via tm_file as possible. This
460 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
461 * config/openbsd-oldgas.h: New file.
462 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
463 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
464 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
465 config/i386/i386-coff.h, config/i386/i386-interix.h,
466 config/i386/iscdbx.h, config/i386/linux-aout.h,
467 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
468 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
469 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
470 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
471 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
472 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
473 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
474 config/i386/vxi386.h: Do not directly include configury headers.
475 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
476 Directly include configury headers that are no longer automatically
477 included by the above headers.
478 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
479 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
480 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
481 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
482 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
483 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
484 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
485 (TARGET_VERSION): Define.
486 * config/i386/beos-elf.h, config/i386/freebsd.h,
487 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
488 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
489 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
490 config/i386/sco5.h, config/i386/sysv4.h
491 (TARGET_VERSION): Do not need to protect.
492 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
493 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
494 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
495 config/i386/i386-interix.h, config/i386/linux-aout.h,
496 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
497 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
498 (YES_UNDERSCORES): Do not define - not needed.
499 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
500 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
501 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
502 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
503 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
504 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
505 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
506 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
508 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
509 Richard Henderson <rth@redhat.com>
512 * function.c (assign_temp): Accept either type or decl argument.
513 Detect variables whose size is too large to fit into an integer.
514 * stmt.c (expand_decl): Pass the decl, not the type.
516 2002-04-02 David O'Brien <obrien@FreeBSD.org>
518 * protoize.c: Match include directory usage with cppdefault.c.
520 2002-04-03 Jeffrey A Law (law@redhat.com)
521 Hans-Peter Nilsson <hp@bitrange.com>
523 * combine.c (simplify_comparison): Avoid narrowing a comparison
524 with a paradoxical subreg when doing so would drop signficant bits.
526 2002-04-02 Steve Ellcey <sje@cup.hp.com>
528 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
529 if POINTERS_EXTEND_UNSIGNED is defined.
531 2002-04-02 Richard Henderson <rth@redhat.com>
534 * local-alloc.c (contains_replace_regs): LO_SUM may contain
537 2002-04-02 Richard Henderson <rth@redhat.com>
539 * doc/standards.texi: Document required freestanding libc entry points.
541 2002-04-02 Alan Modra <amodra@bigpond.net.au>
543 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
544 associated splitter. Remove MQ constraint.
545 (ctrdi_internal4): Correct CCmode clobber.
547 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
549 * milli64.S ($$dyncall): New function.
550 * t-linux (LIB1ASMFUNCS): Revise module list.
551 (LIB1ASMSRC): Use pa/milli64.S.
553 2002-04-02 Richard Henderson <rth@redhat.com>
555 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
556 rename solaris_sys_varargs_h.
558 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
560 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
561 the same mode as its component.
563 2002-04-02 Richard Henderson <rth@redhat.com>
566 * final.c (this_is_asm_operands): Export.
567 * output.h (this_is_asm_operands): Declare.
568 * config/i386/i386.c (print_operand): Error odd asm operands.
570 2002-04-02 Richard Henderson <rth@redhat.com>
573 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
575 2002-04-01 Richard Henderson <rth@redhat.com>
578 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
579 * fixinc/fixincl.x: Rebuild.
581 2002-04-01 Richard Henderson <rth@redhat.com>
583 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
584 (atomic_alloc, atomic_free): New.
585 (SIZE, MASK_FOR, PTR_IN): New.
586 (emergency_reg_state, emergency_reg_state_free): New.
587 (emergency_labeled_state, emergency_labeled_state_free): New.
588 (reg_state_alloced, labeled_state_alloced): New.
589 (alloc_reg_state, free_reg_state): New.
590 (alloc_label_state, free_label_state, free_label_states): New.
591 (push, pop, dup_state_stack, free_state_stack): Use them.
592 (desc_label_state): Likewise.
593 (uw_frame_state_for): Free label states and state stack.
594 (uw_update_reg_address): Eliminate warnings.
596 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
598 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
599 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
601 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
603 * c-decl.c (grokdeclarator): Update.
604 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
605 * c-tree.h (c_mark_addressable): New.
606 * c-typeck.c (default_function_array_conversion, build_unary_op,
607 build_array_ref, convert_for_assignment): Update.
608 (mark_addressable): Rename.
609 * calls.c (try_to_integrate, expand_call): Use langhook.
610 * expr.c (expand_expr): Use langhook.
611 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
612 * langhooks.h (struct lang_hooks): New hook.
613 * stmt.c (expand_asm_operands): Use langhook.
614 * tree.h (mark_addressable): Remove.
616 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
618 2002-04-01 Bob Wilson <bob.wilson@acm.org>
620 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
623 2002-04-01 Bob Wilson <bob.wilson@acm.org>
625 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
626 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
628 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
630 * c-common.c (unsigned_conversion_warning, convert_and_check,
631 unsigned_type, signed_type, shorten_compare,
632 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
633 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
634 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
636 * c-decl.c (grokdeclarator): Update.
637 * c-format.c (check_format_types): Update.
638 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
639 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
640 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
641 * convert.c (convert_to_integer): Use new hooks.
642 * expmed.c (make_tree): Use new hooks.
643 * expr.c (store_expr): Use new hooks.
644 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
645 all_ones_mask_p, unextend, fold): Use new hooks.
646 * langhooks.h (struct lang_hooks_for_types): New hooks.
647 * tree.h (signed_or_unsigned_type, signed_type,
648 unsigned_type): Remove.
650 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
651 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
653 2002-03-31 Richard Henderson <rth@redhat.com>
655 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
656 (desc_frgr_mem): Fix reference to f16-f31.
658 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
660 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
661 RTVEC_ELT): Const-ify.
662 * varray.h (VARRAY_CHECK): Const-ify.
663 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
664 ggc_mark_rtvec, ggc_mark): Const-ify.
666 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
668 * diagnostic.c: Include langhooks-def.h.
669 * Makefile.in (diagnostic.o): Update.
671 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
673 * c-common.c (c_unsafe_for_reeval): Rename.
674 * c-common.h (c_unsafe_for_reeval): Rename.
675 * c-decl.c (finish_incomplete_decl): Rename.
676 (c_init_decl_processing): Don't set langhook.
677 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
678 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
679 * c-objc-common.c (c_objc_common_init): Don't set langhook.
680 * c-tree.h (finish_incomplete_decl): Rename.
681 * langhooks-def.h (lhd_unsafe_for_reeval): New.
682 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
683 (LANG_HOOKS_INITIALIZER): Update.
684 * langhooks.c (lhd_unsafe_For_reeval): New.
685 * langhooks.h (struct langhooks): New hooks.
686 * toplev.c (incomplete_decl_finalize_hook): Remove.
687 (wrapup_global_declarations): Update.
688 * tree.c (lang_unsafe_for_reeval): Remove.
689 (unsafe_for_reeval): Update.
690 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
693 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
694 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
696 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
698 * diagnostic.c (print_error_function): Remove.
699 (default_print_error_function): Rename.
700 (report_error_function): Update.
701 * diagnostic.h (print_error_function): Remove.
702 (default_print_error_function): Remove.
703 * langhooks-def.h (struct diagnostic_context): Predeclare.
704 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
705 (LANG_HOOKS_INITIALIZER): Update.
706 * langhooks.h (struct diagnostic context): Predeclare.
707 (struct lang_hooks): New hook.
709 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
711 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
712 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
714 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
715 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
716 of PIC_OFFSET_TABLE_REGNUM thruout.
717 * config/rs6000/rs6000.md: Likewise.
718 * config/rs6000/darwin.h: Likewise.
720 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
722 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
723 unsigned HOST_WIDE_INT, not unsigned int.
725 2002-03-31 Jakub Jelinek <jakub@redhat.com>
727 PR middle-end/6096, middle-end/6098, middle-end/6099
728 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
730 (fill_slots_from_thread): Likewise.
732 2002-03-31 Jakub Jelinek <jakub@redhat.com>
734 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
735 floating fields in float regs.
736 (function_arg_record_value_2): Likewise.
738 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
740 * config/mmix/mmix.md (define_constants): Remove misleading
741 FIXME. Add MMIX_fp_rO_OFFSET.
742 ("nonlocal_goto_receiver"): Don't have stack-frame address of
743 saved rO as part of the pattern. Remove FIXME.
744 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
745 here, at output-time.
747 2002-03-31 Jakub Jelinek <jakub@redhat.com>
750 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
752 (output_v9branch): Likewise.
754 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
756 * gcc.c: Revert previous patch for now.
757 * config/i386/djgpp.h: Likewise.
759 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
761 * config/mmix/crti.asm (_init): Register _fini with atexit.
762 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
764 2002-03-31 Richard Henderson <rth@redhat.com>
767 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
768 (ASM_OUTPUT_DEF_FROM_DECLS): New.
770 2002-03-31 Richard Henderson <rth@redhat.com>
772 * libgcc2.c (__bb_exit_func): Make static.
774 * config/alpha/alpha.md (trap): New.
776 2002-03-31 Richard Henderson <rth@redhat.com>
778 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
779 promoted argument types; build trap.
780 (expand_builtin_trap): New.
781 (expand_builtin): Use it.
782 * stmt.c (expand_nl_goto_receivers): Likewise.
783 * expr.h (expand_builtin_trap): Declare.
784 * libfuncs.h (LTI_abort, abort_libfunc): New.
785 * optabs.c (init_optabs): Init abort_libfunc.
787 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
789 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
790 (LINK_COMMAND_SPEC): ... from here.
791 (init_gcc_specs): Duplicate it here too, omitting
792 shared_name in the second copy.
793 (init_spec): Test for duplicate
794 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
796 2002-03-30 David S. Miller <davem@redhat.com>
798 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
799 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
801 2002-03-30 Roger Sayle <roger@eyesopen.com>
802 Richard Henderson <rth@redhat.com>
804 * regmove.c (combine_stack_adjustments_for_block): Avoid
805 emitting a stack adjustment of zero bytes. Let delete_insn
808 2002-03-30 Richard Henderson <rth@redhat.com>
810 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
811 (sparc_emitting_epilogue): New.
812 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
813 * config/sparc/sparc-protos.h: Update.
814 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
815 (TARGET_SWITCHES): Update.
816 * config/sparc/sparc.md (return): Remove.
817 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
818 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
819 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
820 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
821 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
822 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
823 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
824 Remove MASK_EPILOGUE.
825 * doc/invoke.texi: Update.
827 2002-03-30 Daniel Berlin <dan@dberlin.org>
829 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
830 CPP will start the file for us.
832 2002-03-30 Richard Henderson <rth@redhat.com>
835 * config/ia64/ia64.c (group_barrier_needed_p): Special case
836 prologue_allocate_stack.
837 (ia64_single_set): Use insn codes for recognition of special
838 cases, not rtl matching.
839 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
841 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
843 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
845 2002-03-30 Richard Henderson <rth@redhat.com>
848 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
849 or -fomit-frame-pointer with profiling.
850 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
851 (FUNCTION_PROFILER): Do nothing.
853 * config/sparc/sparc.c (sparc_override_options): Don't check
854 code models for profiling.
855 (sparc_function_profiler): Remove.
856 (sparc_profile_hook): New.
857 * config/sparc/sparc-protos.h: Update.
859 2002-03-30 Jakub Jelinek <jakub@redhat.com>
862 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
863 of SUBREG of volatile MEM or because the MEM was mode dependent,
864 return CLOBBER instead of unmodified SUBREG.
866 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
868 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
871 * toplev.c (rest_of_compilation): Cann mark_constant_function
872 only when optimizing.
874 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
877 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
878 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
879 (try_optimize_cfg): clear all AUX fields.
881 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
882 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
883 (ix86_address_cost): Be prepared for SUBREGed registers.
884 (legitimate_address_p): Accept SUBREGed registers.
886 2002-03-29 Richard Henderson <rth@redhat.com>
889 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
891 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
893 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
894 for aggregate and TFmode types.
896 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
898 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
900 2002-03-29 Richard Henderson <rth@redhat.com>
903 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
904 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
906 2002-03-29 Richard Henderson <rth@redhat.com>
909 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
910 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
911 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
912 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
914 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
916 2002-03-29 Dale Johannesen <dalej@apple.com>
918 * loop.c (combine_movables): Do allow combination of pseudos.
920 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
922 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
923 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
924 No functional change except ...
925 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
926 * doc/install.texi (*-*-freebsd*): Document port configuration.
928 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
930 * Makefile.in (convert.o, calls.o, expmed.o): Update.
931 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
933 * builtin-types.def (BT_PTRMODE): Update.
934 * c-common.c (type_for_size): Rename c_common_type_for_size.
935 (type_for_mode): Similarly.
936 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
938 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
939 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
940 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
942 * c-typeck.c (common_type, comptypes, default_conversion):
944 * calls.c: Include langhooks.h.
945 (emit_library_call_value_1): Use new hooks. Avoid redundant
947 * convert.c: Include langhooks.h
948 (convert_to_pointer, convert_to_integer): Use new hooks.
949 * except.c (init_eh): Similarly.
950 * expmed.c: Include langhooks.h.
951 (expand_mult_add): Use new hooks.
952 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
953 try_casesi): Similarly.
954 * fold-const.c (optimize_bit_field_compare, make_range,
955 decode_field_reference, fold_truthop, fold): Similarly.
956 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
957 put_var_into_stack): Similarly.
958 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
959 LANG_HOOKS_TYPE_FOR_SIZE): New.
960 (LANG_HOOKS_TYPES_INITIALIZER): Update.
961 * langhooks.h (lang_hooks_for_types): New hooks.
962 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
963 * tree.c (get_unwidened, get_narrower): Similarly.
964 * tree.h (type_for_mode, type_for_size): Remove.
965 * varasm.c (force_const_mem): Use new hooks.
966 * utils2.c (nonbinary_modular_operation): Update.
968 * objc-act.c (handle_impent): Update.
969 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
972 2002-03-29 Steve Ellcey <sje@cup.hp.com>
974 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
975 * config/ia64/ia64.c (basereg_operand): New.
976 * config/ia64/ia64-protos.h (basereg_operand): Declare.
977 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
979 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
981 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
982 unwind information when frame_pointer_needed.
983 (mmix_assemble_integer): Tweak wording in comment.
985 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
987 * Makefile.in (except.o): Update.
988 * except.c: Include langhooks.h.
989 (init_eh): Use langhook.
990 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
991 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
992 (LANG_HOOKS_INITIALIZER): Update.
993 * langhooks.h (lang_hooks_for_types): New.
994 (struct lang_hooks): Add it.
995 * tree.c (make_lang_type_fn, make_lang_type): Remove.
996 * tree.h (make_lang_type_fn, make_lang_type): Remove.
998 * alpha/alpha.c: Include langhooks.h.
999 (alpha_build_va_list): Use langhook.
1000 * d30v/d30v.c: Include langhooks.h.
1001 (d30v_build_va_list): Use langhook.
1002 * i386/i386.c: Include langhooks.h.
1003 (ix86_build_va_list): Use langhook.
1004 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
1005 * s390/s390.c: Include langhooks.h.
1006 (s390_build_va_list): Use langhook.
1007 * stormy16/stormy16.c: Include langhooks.h.
1008 (stormy16_build_va_list): Use langhook.
1010 2002-03-29 Jakub Jelinek <jakub@redhat.com>
1013 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
1015 (length): Compute variable length for branches/calls/jumps here.
1016 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
1017 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
1018 define branch_type attribute.
1019 (divsi3_sp32): Maximum length is 6 not 7.
1020 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
1021 call_address_untyped_struct_value_sp32,
1022 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
1023 * config/sparc/sparc.c (empty_delay_slot): New function.
1024 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
1025 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
1027 2002-03-29 Jakub Jelinek <jakub@redhat.com>
1029 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
1030 nonzero_bits if not needed.
1031 (nonzero_bits) [XOR]: Likewise.
1032 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
1033 reg_last_set_mode and mode are both MODE_INT, but not equal.
1034 (record_value_for_reg): Compute reg_last_set_nonzero_bits
1035 in nonzero_bits_mode for MODE_INT modes.
1037 2002-03-28 Richard Henderson <rth@redhat.com>
1040 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
1041 to GAS. Correct drift between alternatives.
1043 2002-03-28 Richard Henderson <rth@redhat.com>
1046 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
1048 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
1050 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
1051 emulation to the linker.
1053 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
1055 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
1056 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
1058 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
1060 * combine.c (simplify_and_const_int): Make sure to apply mask
1061 when force_to_mode returns a constant integer. PR3311.
1063 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
1065 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
1067 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1069 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
1070 and Objective-C Dialect Options.
1072 2002-03-28 Richard Henderson <rth@redhat.com>
1074 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
1075 comparison should be done vs !=0 not >0 return code. Tidy cases.
1077 2002-03-28 Richard Henderson <rth@redhat.com>
1079 * c-decl.c (finish_function): New arg can_defer_p. Pass it
1080 on to c_expand_body.
1081 * c-tree.h (finish_function): Update decl.
1082 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
1084 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
1086 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
1088 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
1090 * rtlanal.c: Include flags.h
1091 (may_trap_p): Do not mark FP operations if trapping
1092 if !flag_trapping_math
1093 * Makefile.in (rtlanal.o): Add dependency on flag.h
1094 * ifcvt.c (noce_operand_ok): Avoid the lameness.
1096 2002-03-27 Zack Weinberg <zack@codesourcery.com>
1098 * mips.md: Use dconst1, not 1.0, as first argument of
1099 REAL_VALUE_LDEXP. Don't use union real_extract.
1101 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1103 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
1104 rather than $target. Heed program_prefix and
1105 program_transform_name. Search for gas in cross-compiler case too.
1106 "test -x" rather than "test -f".
1107 (gcc_cv_ld): Likewise.
1108 (gcc_cv_nm): Heed program_prefix and program_transform_name.
1109 (gcc_cv_objdump): Likewise.
1110 * configure: Regenerate.
1112 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
1114 * Makefile.in (attribs.o): Update.
1115 * attribs.c: Include langhooks.h.
1116 (decl_attributes): Use langhook.
1117 * c-decl.c (insert_default_attributes): Rename.
1118 * c-tree.h (c_insert_default_attributes): New.
1119 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
1120 (LANG_HOOKS_INITIALIZER): Update.
1121 * langhooks.h (struct lang_hooks): New hook.
1122 * tree.h (insert_default_attributes): Remove.
1124 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
1126 2002-03-27 Andreas Schwab <schwab@suse.de>
1128 * config/i386/i386.c (classify_argument): Also check for
1131 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1133 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
1136 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
1138 * i960.md (ret): Set PC.
1139 (nonlocal_goto): Fix expander.
1140 * builtins.c (epxand_builin_longjmp): Check that we've emitted
1143 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
1145 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
1148 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1150 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
1151 assigning to BLOCK_FOR_INSN directly.
1153 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
1155 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
1157 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
1159 * c-common.c (c_expand_expr): Fix prototype.
1160 * c-common.h (c_expand_expr): Always declare, update.
1161 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1162 * c-objc-common.c (c_objc_common_init): No global hook.
1163 * expr.c (expand_expr): Use langhook.
1164 * expr.h (enum expand_modifier): Conditionally declare.
1165 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
1166 (LANG_HOOKS_INITIALIZER): Update.
1167 * langhooks.c (lhd_expand_expr): New.
1168 * langhooks.h (struct lang_hooks): New hook.
1169 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
1170 (lang_independent_init): Don't default hook.
1172 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1174 2002-03-27 Richard Henderson <rth@redhat.com>
1177 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
1178 TARGET_CONST_GP. Simplify conditions.
1180 2002-03-27 Richard Henderson <rth@redhat.com>
1182 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
1183 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
1184 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
1186 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
1188 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
1189 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
1190 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
1191 Remove unnecessary masks.
1192 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
1193 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
1194 -mwindows, -mdll switches and their negations.
1196 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
1198 * gcc-common.c (lang_mark_false_label_stack): Remove.
1199 * ggc.h (lang_mark_false_label_stack): Similarly.
1201 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
1203 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
1205 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
1206 or __rtems_ is defined.
1208 2002-03-26 Richard Henderson <rth@redhat.com>
1210 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
1211 if a non-trivial load was emitted.
1212 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
1213 in high+extra+low case.
1215 2002-03-26 Richard Henderson <rth@redhat.com>
1217 * config.gcc (sparc*-solaris): Use float_format=sparc.
1219 2002-03-26 Richard Henderson <rth@redhat.com>
1221 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
1222 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
1223 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
1224 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
1225 (WINT_TYPE_SIZE): Fix at 32.
1227 2002-03-26 Richard Henderson <rth@redhat.com>
1229 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
1230 until after eh landing pad generation.
1231 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
1232 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
1234 2002-03-26 Richard Henderson <rth@redhat.com>
1236 * expr.h (ADD_PARM_SIZE): One more convert for INC.
1238 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
1240 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
1241 and warning switches.
1242 (cc1_options): Likewise.
1244 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
1246 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
1247 Restore more of the signal context. Set no_reg_stack_frame.
1248 * config/ia64/unwind-ia64.c (unw_state_record):
1249 Add no_reg_stack_frame, comments.
1250 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
1251 (uw_update_context): Adjust bsp when unwinding from leaf,
1252 but not signal frame.
1254 2002-03-26 David Edelsohn <edelsohn@gnu.org>
1256 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
1258 2002-03-26 Bob Wilson <bob.wilson@acm.org>
1260 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
1262 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
1265 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
1266 "Add a pool_range attribute", which was lost during the ARM/Thumb
1269 2002-03-26 Bob Wilson <bob.wilson@acm.org>
1271 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
1272 a register into the MAC16 accumulator.
1274 2002-03-26 Andrew Cagney <ac131313@redhat.com>
1276 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
1277 (Warning Options): Document -Wswitch-enum.
1278 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
1280 (warn_switch_enum): Define variables.
1281 * flags.h (warn_switch_enum): Declare variables.
1282 * stmt.c (expand_end_case_type): When warn_switch_enum /
1283 -Wswitch-enum, perform switch checks.
1286 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
1288 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
1289 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
1290 (reload_muladdsi_compare0_scratch): Delete.
1292 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
1294 * doc/install.texi (*-*-freebsd*): Update.
1296 2002-03-26 Richard Henderson <rth@redhat.com>
1298 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
1299 (SUB_PARM_SIZE): Cast DEC to ssizetype.
1301 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
1302 types from the normal argument frame.
1304 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
1305 variable sized objects by reference.
1306 (sparc_va_arg): Receive them by reference too.
1308 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
1310 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
1311 code to not restoring global registers.
1313 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
1315 * Makefile.in (ggc-common.o): Update.
1316 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
1317 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
1318 * c-tree.h (c_mark_tree): New.
1319 * ggc-common.c: Include langhooks.h.
1320 (gcc_mark_trees): Use new langhook.
1321 * ggc-callbacks.c: Delete file.
1322 * ggc.h (lang_mark_tree): Remove.
1323 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
1324 (LANG_HOOKS_INITIALIZER): Update.
1325 * langhooks.h (struct lang_hooks): New hook.
1327 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
1329 2002-03-25 Zack Weinberg <zack@codesourcery.com>
1331 * doc/cpp.texi: Exclude entire Top node from printed manual.
1332 Move option index after directive index. Insert page breaks
1333 before GFDL and concept index. Index environment variables
1334 with command line options.
1335 * doc/cppenv.texi: Use @vtable for environment variable list.
1336 Add paragraph explaining semantics of empty elements in path
1337 variables. Exclude a cross-reference to Fishkill from the
1338 manpage. Remove an unnecessary cross-reference of the entry
1339 right above the referer. Don't use @anchor in text that goes
1341 * doc/cppopts.texi: Cross-reference the environment variables
1342 section, not the specific environment variable, for consistency.
1344 2002-03-25 Richard Henderson <rth@redhat.com>
1346 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
1347 anywhere in the block. Don't refer to insns that have been
1348 removed from the chain. Iterate backward through the new insns.
1349 Don't refer to edges that have been removed.
1351 2002-03-26 Alan Modra <amodra@bigpond.net.au>
1353 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
1354 test for overflow of constant.
1356 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
1359 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
1360 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
1361 these patterns on arm_archv4.
1363 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
1365 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
1368 2002-03-25 Zack Weinberg <zack@codesourcery.com>
1370 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
1371 float_handled, float_handler, float_signal, set_float_handler,
1372 and do_float_handler. Set handler for SIGFPE to crash_signal.
1373 * toplev.h: Don't prototype do_float_handler.
1375 * c-lex.c: Fold parse_float into lex_number. Make warning
1376 about portability of hex float constants more informative, and
1377 don't issue it on top of a syntax error.
1378 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
1380 * real.h: Define REAL_VALUE_ABS here...
1381 * simplify-rtx.c: ... not here. Fold check_fold_consts,
1382 simplify_unary_real, simplify_binary_real, and
1383 simplify_binary_is2orm1 into their callers.
1384 * tree.c: Fold build_real_from_int_cst_1 into caller.
1386 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
1388 * tsystem.h: Include float.h here...
1389 * libgcc2.c: ... not here.
1391 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
1393 Fixes for: PR bootstrap/3591, target/5676
1394 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
1395 defined. Do not disable exceptions or rtti.
1396 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
1397 mcore.h. Disable exceptions and rtti, since they are not
1400 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
1402 * c-decl.c (maybe_build_cleanup): Remove.
1403 * expr.c (expand_expr): Use langhook.
1404 * langhooks-def.h (lhd_return_null_tree,
1405 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
1406 (LANGHOOKS_INITIALIZER): Update.
1407 * langhooks.c (lhd_return_null_tree): New.
1408 * langhooks.h (struct lang_hooks): New hook.
1409 * tree-inline.c (initialize_inlined_parameters): Use langhook.
1410 * tree.h (maybe_build_cleanup): Remove.
1412 2002-03-25 Jakub Jelinek <jakub@redhat.com>
1414 * regrename.c (build_def_use): Move recog_memoized
1415 before extract_insn.
1417 2002-03-25 Jakub Jelinek <jakub@redhat.com>
1420 * expr.c (emit_group_store): Handle storing into CONCAT.
1422 2002-03-25 Jakub Jelinek <jakub@redhat.com>
1424 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
1425 corresponding MATCH_DUP.
1427 2002-03-24 Richard Henderson <rth@redhat.com>
1429 * unroll.c (unroll_loop): Zero label_map.
1431 * gcse.c: Include except.h.
1432 * Makefile.in (gcse.o): Update.
1434 2002-03-24 Richard Henderson <rth@redhat.com>
1436 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
1437 Do resolve_unique_section before shared data clause.
1439 2002-03-24 Richard Henderson <rth@redhat.com>
1441 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
1443 2002-03-24 Richard Henderson <rth@redhat.com>
1445 * recog.c (peephole2_optimize): Split blocks when EH insns are
1446 generated in the middle of a block. Do global life update if
1449 2002-03-24 Richard Henderson <rth@redhat.com>
1451 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
1453 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
1456 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
1457 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
1458 (init_dependency_output): Don't make no_output decision here.
1460 2002-03-24 Andrew Cagney <ac131313@redhat.com>
1462 * stmt.c (check_for_full_enumeration_handling): Remove tests of
1463 warn_switch. Update description.
1464 (expand_end_case_type): Call check_for_full_enumeration_handling
1467 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1469 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
1470 (m68hc11_split_move): Call it to see if the source and destination
1471 operands use the same direction auto inc/dec mode, otherwise make the
1472 source an offsetable memory operand and generate an add.
1474 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1476 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
1477 register for operand 2.
1478 ("*subsi3_zero_extendqi"): Likewise.
1479 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
1480 bits so that it is compatible with a pop.
1481 ("*andhi3_gen"): Likewise.
1482 ("xorhi3"): Likewise.
1484 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
1486 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
1488 (cpp_post_options): ... not here.
1490 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
1491 Aldy Hernandez <aldyh@redhat.com>
1493 Removal of separate preprocessor cpp0.
1495 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
1496 cpp0, install-common): Update.
1497 * c-common.c (flag_preprocess_only): New.
1498 (c_common_init): Preprocess for -E.
1499 * c-common.h (flag_preprocess_only): New.
1500 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
1501 * c-objc-common.c (c_init_decl_processing): Exit quickly
1502 for NULL return from c_common_init.
1503 * cpplib.h (cpp_preprocess_file): New.
1504 * cppmain.c (main, general_init, pfile, progname): Remove.
1505 (do_preprocessing): Rename cpp_preprocess_file, don't call
1506 cpp_finish. Don't close stdout here.
1507 (setup_callbacks): Update prototype.
1508 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
1510 * tradcpp.c (main): Ignore -quiet.
1512 * lang-specs.h (default_compilers): Preprocess with cc1obj.
1514 2002-03-24 Richard Henderson <rth@redhat.com>
1516 PR optimization/5742
1517 * machmode.def: Add inner mode field to complex modes.
1518 * config/mips/mips.c (mips_function_value): Always define. Add
1519 new argument to handle libcalls.
1520 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
1521 (FUNCTION_VALUE): Likewise.
1522 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
1523 * config/mips/mips-protos.h: Update.
1525 2002-03-23 Richard Henderson <rth@redhat.com>
1527 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
1528 * config/sparc/sparc-protos.h: Update.
1529 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
1531 2002-03-23 Richard Henderson <rth@redhat.com>
1533 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
1534 _start or _init begins the text segment.
1536 2002-03-23 David Edelsohn <edelsohn@gnu.org>
1538 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
1539 not HOST_WIDEST_INT.
1540 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
1542 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
1545 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
1546 operand argument to output_return_instruction.
1547 * arm.c (arm_print_operand, case 'd'): If the operand is
1548 const_true_rtx then just return.
1549 (arm_print_operand, case 'D'): If the operand is const_true_rtx
1552 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1554 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
1555 (Warning Options): Document -Wswitch-default.
1556 * toplev.c (W_options): Add -Wswitch-default. Update comment on
1558 (warn_switch_default): Define variable.
1559 (warn_switch): Update comment.
1560 * flags.h (warn_switch_default): Declare variable.
1561 (warn_switch): Update comment.
1562 * stmt.c (expand_end_case): Check for and, when
1563 warn_switch_no_default, warn of a missing default case.
1565 2002-03-23 Alan Modra <amodra@bigpond.net.au>
1567 * real.h (N): Special case 128 bit doubles.
1569 * combine.c (simplify_comparison): When widening modes, ignore
1570 sign extension on CONST_INTs.
1572 2002-03-22 Bob Wilson <bob.wilson@acm.org>
1574 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
1575 passed to adjust_address. Fix comment formatting.
1578 2002-03-22 Zack Weinberg <zack@codesourcery.com>
1580 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
1581 Always make REAL_VALUE_TYPE a struct containing an array of
1582 HOST_WIDE_INT, not a double. Tidy up the code deciding how
1583 big it is. Don't declare or use union real_extract.
1585 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
1586 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
1587 (print_operand), config/arm/arm.c (output_move_double),
1588 config/arm/arm.md (consttable_4, consttable_8),
1589 config/romp/romp.c (output_fpops), config/s390/s390.h
1590 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
1591 (xtensa_output_literal): Don't use union real_extract.
1593 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
1594 (sfmode_constant_to_ulong), config/ns32k/merlin.h
1595 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
1596 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
1597 (PRINT_OPERAND): Don't use local version of union
1600 * config/convex/convex.c (check_float_value), config/vax/vax.c
1601 (vax_float_literal), config/m88k/m88k.md (divdf3),
1602 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
1603 config/pdp11/pdp11.c (output_move_quad): Don't do host
1604 arithmetic on target floating point quantities.
1606 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
1607 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
1609 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
1610 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
1612 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
1613 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
1615 * print-rtl.c (print_rtx): Disable code which needs
1616 floating-point emulator.
1617 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
1618 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
1619 depending on HOST_FLOAT_FORMAT to be defined properly.
1621 * config/1750a/1750a.c (get_double, float_label): Delete.
1622 (print_operand): Delete huge commented-out chunk. Use
1623 REAL_VALUE_TO_DECIMAL.
1624 * config/1750a/1750a-protos.h: Delete prototypes of deleted
1626 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
1628 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
1629 Use REAL_VALUE_TO_DECIMAL as ELF version does.
1630 * config/m88k/m88k.c (real_power_of_2_operand,
1631 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
1632 real_extract out of the union; run the input through
1633 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
1634 from that into the union.
1635 * config/pdp11/pdp11.c (output_move_double): Rearrange
1636 parentheses to make automatic indenter happy.
1638 * doc/tm.texi (Cross-compilation): Rename node to "Floating
1639 Point" and rewrite to describe current situation. Also adjust
1640 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
1642 * doc/rtl.texi: Adjust cross reference.
1644 2002-03-22 Bob Wilson <bob.wilson@acm.org>
1646 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
1647 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
1648 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
1649 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
1650 prevent use of sp as a reload register.
1651 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
1652 non_acc_reg_operand.
1653 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
1654 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
1655 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
1656 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
1658 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
1660 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
1661 * cpplex.c (unterminated): Delete.
1662 (parse_string): No string literal may extend over multiple
1663 lines. Suppress the error when preprocessing assembly.
1664 * cppmain.c (scan_translation_unit): Strings are single-line.
1666 * doc/cpp.texi: Update to match.
1668 2002-03-22 Jakub Jelinek <jakub@redhat.com>
1670 PR optimization/5854
1671 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
1673 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
1674 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
1675 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
1676 const0 if scratch register was not allocated.
1677 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
1678 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
1680 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
1681 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
1682 with GEN_INT (...) everywhere. Remove constraints in define_split
1684 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
1685 require scratch register for setting 0 into regs/non-pushable memory.
1687 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
1689 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
1690 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
1692 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
1694 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
1695 * cppinit.c (cpp_create_reader): On by default.
1696 (cpp_handle_option): Handle -W[no-]endif-labels.
1697 (cpp_post_options): Also enable if -pedantic.
1698 * cpplib.c (do_else): Use it.
1699 (do_endif): Likewise.
1700 * doc/cppopts.texi: Document new option.
1701 * doc/invoke.texi: Document new option.
1703 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
1705 * config/i386/i386.c, config/i386/i386.md: Change all occurences
1706 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
1708 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
1710 * flow.c (calculate_global_regs_live): Clear aux fields of
1713 2002-03-22 Jakub Jelinek <jakub@redhat.com>
1715 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
1716 REG or MEM subregs, pass rtx * instead of rtx to it.
1717 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
1718 rtx * instead of rtx to alter_subreg.
1719 * config/m32r/m32r.c (gen_split_move_double): Likewise.
1720 * config/pj/pj.c (pj_output_rval): Likewise.
1722 2002-03-22 Richard Henderson <rth@redhat.com>
1725 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
1726 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
1727 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
1728 (ia64_expand_prologue): Look at int_regs, not words, for number
1729 of incomming int regs.
1731 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
1733 * expr.c (expand_expr): A RESULT_DECL is part of a call.
1735 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
1737 * toplev.c (flag_loop_optimize, flag_crossjumping):
1738 New static variables.
1739 (rest_of_compilation): Conditionalize crossjumping and
1741 (parse_options_and_default_flags): Default loop_optimize and
1743 (lang_independent_options): Add -fcrossjumping and -floop-optimize
1744 * invoke.texi (crossjumping, loop-optimize): Document.
1746 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
1748 * real.c (eiisneg): Move outside #ifdef NANS.
1750 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
1752 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
1753 frequencies match; avoid match on different loop depths.
1754 (try_crossjump_to_bb): Kill tests that no longer brings time
1756 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
1758 (split_edge): Likewise.
1760 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
1763 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
1764 * cfgrtl.c: Include insn-config.h
1765 (split_block) Dirtify block in presence of conditional execution
1767 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
1769 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
1770 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
1771 (function_arg): Constify CUMULATIVE_ARGS.
1772 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
1773 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
1774 (UNITS_PER_DOUBLE): New macro.
1775 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
1776 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
1777 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
1778 fp_regs and stack_words.
1779 (EABI_FLOAT_VARARGS_P): New macro.
1780 * config/mips/mips.c (struct mips_arg_info): New.
1781 (mips_arg_info): New function.
1782 (function_arg_advance): Use it. Add adjustment instructions here
1783 rather than in function_arg.
1784 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
1785 for VOIDmode at the beginning of the function.
1786 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
1787 (function_arg_pass_by_reference): Likewise.
1788 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
1789 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
1790 (mips_va_start): Likewise. Use the new stack_words field of
1791 CUMULATIVE_ARGS to set up overflow area. Reformat.
1792 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
1793 doubles and other types, aligning the overflow pointer for non-doubles
1794 too. Remove some code duplication. Replace hard-coded constants.
1796 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
1798 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
1799 (CLASS_UNITS): Undefine.
1800 (CLASS_MAX_NREGS): Use FP_INC.
1801 * config/mips/mips.c (compute_frame_size): Likewise.
1802 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
1804 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
1806 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
1807 prototype, and handle lexing numbers and identifiers.
1808 (parse_identifier): Update to new form of parse_slow.
1809 (parse_number): Fast path only, use parse_slow otherwise.
1810 (_cpp_lex_direct): Update calls to parse_number.
1812 2002-03-21 DJ Delorie <dj@redhat.com>
1814 * bb-reorder.c (make_reorder_chain_1): Protect against
1815 when redundant edges are omitted.
1816 * predict.c (dump_prediction): Likewise.
1818 2002-03-21 Richard Henderson <rth@redhat.com>
1821 * fixinc/inclhack.def (solaris_stdio_tag): New.
1822 * fixinc/fixincl.x: Regenerate.
1824 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
1827 * c-typeck.c (process_init_element): Flag non-static
1828 initialization of a flexible array member as illegal.
1830 2002-03-22 Alan Modra <amodra@bigpond.net.au>
1832 * config/rs6000/t-linux64: New.
1833 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
1834 t-ppccomm. Use t-rs6000 and t-linux64.
1835 (powerpc64-*-gnu* <tmake_file>): Likewise.
1836 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
1837 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
1838 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
1840 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
1842 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
1843 flag_really_no_inline instead of optimize == 0.
1845 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
1847 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
1849 * flags.h (flag_really_no_inline): New.
1851 * c-common.c (c_common_post_options): Initialize
1852 flag_really_no_inline.
1854 * toplev.c (flag_really_no_inline): New.
1856 2002-03-21 Jakub Jelinek <jakub@redhat.com>
1858 * config/avr/avr.md (length): Fix length computation for
1859 conditional branches.
1861 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
1863 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
1864 sdbout.o, profile.o): Update.
1865 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
1867 * c-common.h (gettags): Move here from tree.h.
1868 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
1869 insert_block, getdecls, kept_level_p, global_bindings_p): New.
1870 * dbxout.c (dbxout_init): Use getdecls langhook.
1871 * expr.c (expand_expr): Use insert_block langhook.
1872 * fold-const.c: Include langhooks.h.
1873 (fold_range_test, fold_binary_op_with_conditional_arg,
1874 fold): Use global_bindings_p langhook.
1875 * integrate.c (expand_inline_function): Use insert_block langhook.
1876 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
1877 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
1878 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
1879 LANG_HOOKS_GETDECLS): New.
1880 (LANG_HOOKS_INITIALIZER): Update.
1881 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
1883 * langhooks.h (struct lang_hooks_for_decls): New.
1884 (struct lang_hooks): Update.
1885 * profile.c: Include langhooks.h.
1886 (output_func_start_profiler): Use new langhooks.
1887 * sdbout.c: Include langhooks.h.
1888 (sdbout_init, sdbout_finish): Use getdecls langhook.
1889 * stmt.c: Include langhooks.h.
1890 (expand_fixup, fixup_gotos): Use new langhooks.
1891 * stor-layout.c: Include langhooks.h.
1892 (variable_size): Use global_bindings_p langhook.
1893 * toplev.c (compile_file): Use getdecls langhook.
1894 * tree-inline.c (remap_block): Use insert_block langhook.
1895 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
1896 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
1898 2002-03-21 Richard Henderson <rth@redhat.com>
1900 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
1901 constants in .data when -fpic.
1903 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1905 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
1908 2002-03-21 Tom Tromey <tromey@redhat.com>
1910 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
1912 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1914 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
1916 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
1918 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
1919 Richard Henderson <rth@redhat.com>
1922 * c-common.c (c_expand_expr): Preserve result of a statement
1923 expression if needed.
1925 2002-03-21 Jakub Jelinek <jakub@redhat.com>
1928 * genrecog.c (maybe_both_true_mode): Remove.
1929 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
1930 * machmode.def (Pmode): Likewise.
1932 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
1934 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
1935 (nonlocal_mentioned_p_1): New function.
1936 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
1937 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
1938 (mark_constant_function): Recognize pure functions.
1939 * rtl.h (global_reg_mentioned_p): New prototype.
1940 * rtlanal.c (global_reg_mentioned_p,
1941 global_reg_mentioned_p_1): New function.
1943 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1945 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
1947 * fixinc/fixincl.x: Regenerate.
1949 2002-03-20 Jason Merrill <jason@redhat.com>
1951 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
1953 2002-03-20 Michael Meissner <meissner@redhat.com>
1955 * doc/invoke.texi (Optimize Options): Document that -O2 sets
1958 2002-03-20 Bob Wilson <bob.wilson@acm.org>
1960 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
1961 ".literal_position" directive before the constant pool.
1963 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1965 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
1966 Add Craig Rodrigues.
1967 Add Brad Lucier to testers.
1969 2002-03-20 Jakub Jelinek <jakub@redhat.com>
1972 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
1974 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
1975 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
1976 instead of insn_extract.
1978 2002-03-20 Jakub Jelinek <jakub@redhat.com>
1981 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
1983 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
1984 stmt if some case has been output.
1986 2002-03-20 Jakub Jelinek <jakub@redhat.com>
1989 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
1990 movsfcc_1, movdfcc_1): Add %O2.
1991 * config/i386/i386.c (print_operand): Handle %ON.
1992 Print . before float condition codes in Sun as cmov syntax.
1993 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
1994 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
1997 2002-03-20 Philip Blundell <pb@nexus.co.uk>
1999 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
2000 return instruction if PC was popped.
2002 2002-03-20 Bob Wilson <bob.wilson@acm.org>
2004 * config/xtensa/xtensa.md: Remove unused type attributes.
2005 (adddi_carry, subddi_carry): Change type attribute to "multi".
2007 2002-03-19 Dale Johannesen <dalej@apple.com>
2009 PR optimization/5999, middle-end/5731
2010 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
2011 multiplications by reciprocals.
2013 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
2015 * Makefile.in: Update.
2016 * c-common.c: Include langhooks.h.
2017 (inline_forbidden_p): Use new hook.
2018 * diagnostic.c: Include langhooks.h.
2019 (format_with_decl, announce_function,
2020 default_print_error_function): Use new hook.
2021 * dwarf2out.c (dwarf2_name): Use new hook.
2022 * function.c: Include langhooks.h.
2023 (init_function_start): Use new hook.
2024 * langhooks-def.h (lhd_decl_printable_name): New.
2025 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
2026 (LANGHOOKS_INITIALIZER): Update.
2027 * langhooks.c (lhd_decl_printable_name): New.
2028 * langhooks.h (struct lang_hooks): New hook.
2029 * toplev.c (decl_name, decl_printable_name): Remove.
2030 (open_dump_file): Use new hook.
2031 (process_options): Remove old hook.
2032 * tree.h (decl_printable_name): Remove.
2034 * objc-act.c (objc_init): Remove old hook.
2035 (objc_printable_name): Export.
2036 * objc-act.h (objc_printable_name): New.
2037 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
2039 2002-03-19 Jim Blandy <jimb@redhat.com>
2041 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
2042 the start_source_file debug hook, not the current line number.
2044 2002-03-19 Richard Henderson <rth@redhat.com>
2046 * flow.c (EH_USES): Provide default.
2047 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
2048 * doc/tm.texi (EH_USES): New.
2050 * config/ia64/ia64.c (ia64_eh_uses): New.
2051 * config/ia64/ia64-protos.h: Update.
2052 * config/ia64/ia64.h (EH_USES): New.
2054 2002-03-19 Richard Henderson <rth@redhat.com>
2056 * varasm.c (output_constant_def): Fix stupid typo.
2058 2002-03-19 Richard Henderson <rth@redhat.com>
2061 * except.c (current_function_has_exception_handlers): New.
2062 * except.h: Declare it.
2063 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
2064 Combine tests that disable all sibcalls for the function.
2066 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
2068 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
2071 2002-03-19 Richard Henderson <rth@redhat.com>
2074 * config/ia64/ia64.c: Revert 2002-03-01 patch.
2075 * config/ia64/ia64.h (INIT_EXPANDERS): New.
2077 2002-03-19 Jim Blandy <jimb@redhat.com>
2079 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
2080 name, even if the replacement list contains no tokens, as required
2083 2002-03-19 Jason Merrill <jason@redhat.com>
2085 * varasm.c (globalize_decl): Get the name from the RTL, not
2086 DECL_ASSEMBLER_NAME.
2088 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
2090 2002-03-19 Bob Wilson <bob.wilson@acm.org>
2092 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
2093 subdi_carry): Define.
2095 2002-03-19 David Edelsohn <edelsohn@gnu.org>
2097 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
2098 about -fpic/-fPIC if extra_warnings set.
2100 2002-03-19 David Edelsohn <edelsohn@gnu.org>
2102 * expr.c (expand_expr): Sign-extend CONST_INT generated from
2103 TREE_STRING_POINTER.
2104 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
2106 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2108 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
2109 in favor of SP if FRAME_POINTER_REQUIRED is false.
2111 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
2113 * emit-rtl.c (gen_int_mode): New function.
2114 * rtl.h: Prototype for it.
2115 * combine.c (make_extraction, simplify_comparison), expmed.c
2116 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
2117 (convert_modes, store_field), optabs.c (expand_fix),
2118 simplify-rtx.c (neg_const_int, simplify_unary_real),
2120 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
2121 Use it instead of GEN_INT (trunc_int_for_mode (...)).
2123 2002-03-19 Jakub Jelinek <jakub@redhat.com>
2126 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
2127 convert_parm_for_inlining.
2128 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
2130 * langhooks-def.h: Likewise.
2131 * objc/objc-lang.c: Likewise.
2132 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
2134 * tree-inline.c (initialize_inlined_parameters):
2135 Call convert_parm_for_inlining lang hook if needed.
2136 * c-typeck.c (c_convert_parm_for_inlining): New function.
2137 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
2139 2002-03-18 Mark Mitchell <mark@codesourcery.com>
2141 * calls.c (precompute_arguments): Do not assume that temporaries
2142 can be destroyed after expanding the argument.
2143 (expand_call): Likewise.
2145 2002-03-15 Eric Christopher <echristo@redhat.com>
2147 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
2148 Fix register preference on last change.
2149 * config/mips/mips.c (mips_return_in_memory): New function.
2150 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
2151 * config/mips/mips-protos.h: Declare.
2152 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
2153 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
2155 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
2157 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
2159 (anddi3, iorsi3): Likewise.
2161 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
2162 use %gprel for symbols that are going to be placed in linkonce
2165 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
2166 RETURN_ADDRESS_POINTER_REGNUM to $ra.
2167 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
2168 not needed. Disregard leaf_function_p().
2169 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
2170 mips16 frame pointer.
2171 * config/mips/mips.md (store ra): Only to small SP offsets.
2172 2001-08-22 Graham Stott <grahams@redhat.com>
2173 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
2174 return a REG rtx for the return address register.
2176 2002-03-18 Bob Wilson <bob.wilson@acm.org>
2178 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
2179 constant-pool addresses as "mode-dependent".
2180 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
2182 2002-03-18 Jakub Jelinek <jakub@redhat.com>
2185 * expr.c (emit_group_load): Use extract_bit_field if
2186 needed for CONCAT arguments.
2188 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
2191 * arm.md (tablejump): Make this a define_expand. For PIC add the
2192 offset to the base of the table.
2193 (thumb_tablejump): Matcher for Thumb tablejump insn.
2194 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
2195 as the difference of two labels.
2196 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2197 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
2199 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
2200 * arm.c (get_jump_table_size): If the table is not in the text
2201 section, return zero.
2203 2002-03-18 Bernd Schmidt <bernds@redhat.com>
2205 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
2207 (arm_reload_out_hi): Use gen_lowpart instead of
2208 gen_rtx_SUBREG to access QImode components.
2209 * config/arm/arm.md: Disable zero_extend split for QImode
2210 subregs in BIG_ENDIAN mode.
2211 (storehi_bigend): Match use of least significant byte.
2212 (storeinthi): Remove extraneous SUBREG.
2213 Add missing construction of operands[2].
2214 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
2215 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
2216 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
2218 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
2220 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
2223 2002-03-17 Richard Henderson <rth@redhat.com>
2225 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
2228 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
2230 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
2231 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
2233 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2235 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
2237 * predict.c (estimate_bb_frequencies): Delete unused variables.
2239 2002-03-17 Richard Henderson <rth@redhat.com>
2241 * config/ia64/ia64.c (ia64_attribute_table): Move before
2242 targetm definition. Make static.
2244 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
2246 * c-common.h (yyparse, c_common_parse_file): New.
2247 * c-lang.c: Include c-common.h.
2248 (LANG_HOOKS_PARSE_FILE): Redefine.
2249 * c-lex.c: Include c-common.h.
2250 (yyparse): Rename c_common_parse_file. Call yyparse.
2251 * c-parse.in (yyparse): Remove macro.
2252 * c-tree.h (yyparse_1): Remove.
2253 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
2254 (LANG_HOOKS_INITIALIZER): Update.
2255 * langhooks.h (struct lang_hoooks): New hook parse_file.
2256 * toplev.c (compile_file): Use parse_file hook.
2257 * tree.h (yyparse): Remove.
2258 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
2260 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
2262 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
2263 float_truncate, not fix.
2264 ("*truncdfsf2_real"): Ditto.
2265 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
2267 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
2269 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
2271 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
2272 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
2273 where appropriate. Make the second reference to
2274 leaf_function_p a function call, as intended. Reindented.
2276 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
2277 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
2279 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
2280 add register to non-constant into sp.
2282 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
2283 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
2284 (mips16_gp_pseudo_rtx): Lose.
2285 (INIT_EXPANDERS): Deleted.
2286 * config/mips/mips.c (mips_init_machine_status): New.
2287 (mips_free_machine_status): New.
2288 (mips_mark_machine_status): New.
2289 (override_options): Set them.
2290 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
2291 (struct machine_function): ... new. Replaced all references.
2292 (mips_add_gc_roots): Don't mark them.
2293 (embedded_pic_fnaddr_reg): New, extracted from...
2294 (embedded_pic_offset): ... here.
2295 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
2298 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
2300 * cppinit.c: Revert -MD removal.
2302 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2304 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
2305 soft registers by default for 68HC12.
2306 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
2307 when compiling with -fomit-frame-pointer.
2308 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
2309 (expand_epilogue): Likewise.
2310 (m68hc11_gen_rotate): Use exg when rotating by 8.
2312 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2314 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
2315 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
2316 (splits): Remove unused add splits.
2317 ("*addhi3_68hc12"): Tune constraints.
2318 ("addhi_sp"): Try to use X instead of Y in all cases and if the
2319 constant fits in 8-bits and D is dead use abx/aby instructions.
2320 ("*addhi3"): Remove extern declaration of ix_reg.
2321 ("*subsi3"): Optimize and provide new split.
2322 ("subhi3"): Cleanup.
2323 ("*subhi3_sp"): Avoid saving X if we know it is dead.
2324 (arith splits): For 68hc12 save the address register on the stack
2325 and do the arithmetic operation with a pop.
2327 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2329 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
2330 allocating QImode in address registers.
2331 ("*movqi_m68hc11"): Likewise.
2333 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
2335 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
2337 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
2339 * cppinit.c (print_help): Display -MD and -MMD.
2340 Don't display usage string. Update assertion syntax and
2342 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
2343 (cpp_handle_option): Update.
2345 2002-03-15 Chris Demetriou <cgd@broadcom.com>
2347 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
2348 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
2349 and define it so that regardless of target CPU size,
2350 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
2351 of "int" rather than "long."
2353 2002-03-15 Richard Henderson <rth@redhat.com>
2355 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
2358 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2360 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
2361 ("tstqi" split): Avoid using memory for tstqi on address register.
2362 (splits): Remove constraints.
2363 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
2364 ("cmpdf", "cmpsf"): Remove since not used.
2365 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
2366 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
2368 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2370 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
2371 ("neghi2"): Tighten constraints.
2372 ("one_cmplsi2"): Optimize and simplify split.
2373 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
2375 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2377 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
2378 and split of AND operation to clear the upper bits.
2379 ("*logicalsi3_zextqi"): Likewise.
2380 ("*logicallhi3_zexthi_ashift8"): Likewise.
2381 ("*logicalsi3_silshr16"): Likewise.
2382 ("logicalsi3_silshl16"): Likewise.
2383 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
2385 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2387 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
2388 (m68hc11_indirect_p): New function.
2389 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
2390 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
2392 (asm_print_register): Likewise.
2393 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
2394 (m68hc11_indirect_p): Declare.
2395 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
2396 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
2397 (TARGET_SWITCHES): New option -mrelax.
2398 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
2400 ("iorsi3", "xorsi3"): Likewise.
2401 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
2402 ("*andhi3_mem"): New to handle destination in memory with bclr
2403 and a scratch register.
2404 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
2405 ("*andhi3_const"): New when operand2 is constant.
2406 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
2407 ("*andhi3_gen"): Cleanup of the old "andhi3".
2408 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
2409 ("xorqi3"): Update constraints.
2411 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2413 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
2414 for reg_equiv_memory_loc when the operand is a register that does
2415 not get a hard register (stack location).
2416 (tst_operand): After reload, accept all memory operand.
2417 (symbolic_memory_operand): Fix detection of symbolic references.
2418 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
2419 accept symbols and any constant.
2421 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2423 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
2424 note on the insn that sets the soft frame register.
2425 (must_parenthesize): ix and iy are also reserved names.
2426 (print_operand_address): One more place where parenthesis are required
2427 to avoid confusion with register names.
2428 (m68hc11_gen_movhi): Allow push of stack pointer.
2429 (m68hc11_check_z_replacement): Fix handling of parallel with a
2431 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
2432 the replacement register is.
2433 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
2434 and D8_REGS classes.
2435 (MODES_TIEABLE_P): All modes are tieable except QImode.
2437 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2439 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
2440 (___subdi3): Likewise.
2441 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
2442 (__map_data_section): Optimize 68hc11 case.
2444 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2446 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
2447 than a shift to avoid adding a register with itself.
2448 (m68hc11_memory_move_cost): Take into account NO_REGS.
2449 (m68hc11_register_move_cost): Update and use memory move cost
2451 (m68hc11_address_cost): Make cost of valid offset not 0 so that
2452 it gives more opportunities to cse to optimize.
2453 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
2454 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
2456 2002-03-15 Mark Mitchell <mark@codesourcery.com>
2458 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
2459 * c-common.def (CLEANUP_STMT): New tree node.
2460 * c-common.h (CLEANUP_DECL): New macro.
2461 (CLEANUP_EXPR): Likewise.
2462 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
2463 * expr.c (expand_expr): Tidy.
2464 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
2465 * tree-inline.c (initialize_inlined_parameters): Clean up
2466 new local variables.
2468 2002-03-15 Jakub Jelinek <jakub@redhat.com>
2471 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
2472 before movrXX only, use reg_overlap_mentioned_p.
2473 Only special case NE if just one insn can be generated.
2475 2002-03-15 Jason Merrill <jason@redhat.com>
2477 * varasm.c (assemble_variable): Call resolve_unique_section before
2478 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
2481 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
2484 * arm.md (split pattern for thumb shiftable immediates): Add comment
2485 explaining non-obvious test.
2487 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
2490 * arm.md (movaddr, movaddr_insn): Delete.
2492 2002-03-15 Jason Merrill <jason@redhat.com>
2494 * toplev.c (wrapup_global_declarations): Clarify variable handling.
2495 -fkeep-static-consts doesn't apply to comdats.
2497 2002-03-14 Richard Henderson <rth@redhat.com>
2499 * c-decl.c: Include c-pragma.h.
2500 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
2501 (finish_function): Tidy.
2502 * c-pragma.c: Include c-common.h.
2503 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
2504 (handle_pragma_weak): Use them.
2505 (init_pragma): Register pending_weaks.
2506 * c-pragma.h (maybe_apply_pragma_weak): Declare.
2507 * print-tree.c (print_node): Print DECL_WEAK.
2508 * varasm.c (mark_weak_decls): Remove.
2509 (remove_from_pending_weak_list): Remove.
2511 (asm_emit_uninitialised): Call globalize_decl for weak commons.
2512 (weak_decls): Make a tree_list.
2513 (declare_weak): Cons weak_decls directly.
2514 (globalize_decl): Remove weak_decls elements directly.
2515 (weak_finish): Simplify weak_decls walk. Don't weaken unused
2516 symbols. Don't pretend to handle aliases.
2517 (init_varasm_once): Update weak_decls registry.
2518 * Makefile.in: Update dependencies.
2520 2002-03-14 Richard Henderson <rth@redhat.com>
2523 * config/ia64/ia64.c: Include tm_p.h last.
2524 (gen_nop_type): Remove duplicate definition.
2525 (cycle_end_fill_slots): Set sched_data for second L slot.
2526 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
2527 (nop_cycles_until): Fix typos.
2529 2002-03-15 Jakub Jelinek <jakub@redhat.com>
2531 PR optimization/5891
2532 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
2534 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
2536 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
2537 descriptors correctly.
2539 2002-03-14 Michael Meissner <meissner@redhat.com>
2541 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
2542 100, allowing MAX_UNROLLED_INSNS to be overridden.
2544 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
2547 * unroll.c (params.h): Include.
2548 (MAX_UNROLLED_INSNS): Delete, now in params.h.
2550 * doc/invoke.texi (--param max-unroll-insns): Document.
2552 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
2554 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
2556 * arm.md: Fix warnings about constraints in peepholes and splits.
2558 2002-03-14 Zack Weinberg <zack@codesourcery.com>
2560 * cpphash.h (struct lexer_state): Remove line_extension member.
2561 * cpplib.c (dequote_string, do_linemarker): New functions.
2562 (linemarker_dir): New data object.
2563 (DIRECTIVE_TABLE): No longer need to interpret #line in
2564 preprocessed source. Delete obsolete comment about return
2566 (end_directive, directive_diagnostics, _cpp_handle_directive):
2567 Don't muck with line_extension.
2568 (directive_diagnostics): No need to issue warnings for
2570 (_cpp_handle_directive): Issue warnings for linemarkers here,
2571 when appropriate. Dispatch linemarkers to do_linemarker, not
2573 (do_line): Code to handle linemarkers split out to do_linemarker.
2574 Convert escape sequences in filename argument, both places.
2576 * cppmacro.c (quote_string): Rename cpp_quote_string and
2577 export. All callers changed.
2578 * cpplib.h (cpp_quote_string): Prototype.
2579 * cppmain.c (print_line): Call cpp_quote_string on to_file
2582 * doc/cpp.texi: Document that escapes are now interpreted in
2583 #line and in linemarkers, and that non-printing characters are
2584 converted to octal escapes when linemarkers are generated.
2586 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
2588 * emit-rtl.c (try_split): Use delete_insns.
2589 * recog.c (split_all_insns): Fix terminating condition.
2591 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
2592 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
2595 * arm.c (arm_output_epilogue): Fix floating-point register save
2596 adjustment when using a frame pointer.
2598 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
2600 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
2601 * config/mips/mips.c (compute_frame_size): Retrofit them here.
2602 (save_restore_insns, mips_expand_epilogue): And here.
2603 (build_mips16_call_stub): And here.
2604 (mips_function_value): Use the new macros to decide whether a single
2605 or complex float can be returned in floating-point registers. Return
2606 a parallel rtx in the complex case.
2608 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
2610 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
2611 call after liveness analysis.
2613 * recog.c (split_insn): Use delete_insn_and_edges.
2615 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
2616 instructions to have branch prediction notes.
2617 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
2619 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
2621 * configure.in: Don't pass -Wno-long-long to a ADA compiler
2622 that doesn't support it.
2623 * configure: Regenerate.
2625 2002-03-13 Jakub Jelinek <jakub@redhat.com>
2628 * config/sparc/sparc.md (normal_branch, inverted_branch,
2629 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
2630 inverted_fp_branch): Adjust calls to output_cbranch.
2631 Set length attribute.
2632 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
2633 output_v9branch. Set length attribute.
2634 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
2636 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
2637 (output_cbranch): Likewise. Handle far branches.
2638 (output_v9branch): Handle far branches.
2639 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
2641 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
2642 noov_compare64_op predicates.
2644 2002-03-13 Jason Merrill <jason@redhat.com>
2646 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
2647 into the function and constify it.
2648 * gthr-dce.h, gthr-solaris.h: Likewise.
2650 2002-03-13 David Edelsohn <edelsohn@gnu.org>
2652 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
2653 * config/rs6000/rs6000.c (rs6000_va_arg): Use
2654 std_expand_builtin_va_arg if not ABI_V4.
2656 2002-03-13 Jason Merrill <jason@redhat.com>
2658 * varasm.c (globalize_decl): New fn.
2659 (assemble_start_function): Use it.
2660 (asm_emit_uninitialized): Use it.
2661 (assemble_alias): Use it.
2662 (assemble_variable): Use it.
2664 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
2666 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
2667 2002-03-12 internal visibility change.
2668 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
2669 visibility into SYMBOL_REF_FLAG.
2671 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
2673 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
2674 VOIDmode operand. Add compile-time optimization for constant results.
2676 2002-03-12 Jason Merrill <jason@redhat.com>
2678 * c-typeck.c (convert_for_assignment): Don't allow conversions
2679 between pointers and references. Only allow lvalues to convert to
2682 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
2684 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
2685 before prologue, to avoid scheduling problems.
2687 2002-03-13 Jakub Jelinek <jakub@redhat.com>
2689 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
2690 (ELIMINABLE_REGS): Add sfp->sp.
2691 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
2693 2002-03-13 Jakub Jelinek <jakub@redhat.com>
2695 PR optimization/5892
2696 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
2698 2002-03-13 Jakub Jelinek <jakub@redhat.com>
2700 * loop.c (basic_induction_var): Don't call convert_modes if mode
2701 classes are different.
2703 2002-03-12 Richard Henderson <rth@redhat.com>
2705 PR optimization/5901
2706 * function.c (reposition_prologue_and_epilogue_notes): Position
2707 the markers after/before the last/first insn not deleted.
2709 2002-03-12 Richard Henderson <rth@redhat.com>
2711 PR optimization/5878
2712 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
2713 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
2714 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
2716 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
2717 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
2718 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
2720 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
2721 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
2722 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
2723 also. Don't set it if not flag_pic.
2724 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
2725 to be INVALID_REGNUM when not used.
2727 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
2729 * expmed.c (store_bit_field): Reset alias set for memory.
2730 (extract_bit_field): Same.
2732 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2734 * c-common.c (c_tree_code_type, c_tree_code_length,
2735 c_tree_code_name, add_c_tree_codes): Delete.
2736 * c-common.h (add_c_tree_codes): Delete.
2737 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
2739 * c-objc-common.c (c_objc_common_init): Don't call
2740 add_c_tree_codes, instead set lang_unsafe_for_reeval.
2741 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
2742 objc_tree_code_name, add_objc_tree_codes): Delete.
2743 (objc_init): Don't call add_objc_tree_codes.
2744 * objc/objc-lang.c (tree_code_type, tree_code_length,
2745 tree_code_name): Define.
2746 * toplev.c (lang_independent_init): Don't set
2747 tree_code_length[IDENTIFIER_NODE].
2748 * tree.c (tree_code_type, tree_code_length, tree_code_name):
2749 Delete definitions, moved to language front-ends.
2750 * tree.def (IDENTIFIER_NODE): Hardwire the length.
2751 * tree.h (tree_code_type, tree_code_length, tree_code_name):
2753 (tree_code_length): Change type to unsigned char.
2755 2002-03-12 Richard Henderson <rth@redhat.com>
2757 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
2758 internal visibility change.
2760 2002-03-12 Bob Wilson <bob.wilson@acm.org>
2762 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
2763 validize_mem() instead of change_address to avoid clobbering
2766 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
2768 * c-lex.h (position_after_whitespace): Remove.
2770 2002-03-12 Jakub Jelinek <jakub@redhat.com>
2772 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
2773 (lex_string): Use unsigned char pointers.
2775 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
2777 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
2778 is not a valid memory_operand.
2780 2002-03-12 Bob Wilson <bob.wilson@acm.org>
2782 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
2783 * config/xtensa/lib1funcs.asm: Fix copyright to include
2784 special case for libgcc files.
2785 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
2786 (__divsi3): Likewise.
2787 (__umodsi3): Likewise.
2788 (__modsi3): Likewise.
2789 * config/xtensa/lib2funcs.S: Fix copyright to include
2790 special case for libgcc files.
2792 2002-03-12 Tom Rix <trix@redhat.com>
2794 * collect2.c (resolve_lib_name): Move outside of
2795 OBJECT_FORMAT_COFF ifdef.
2796 (ignore_library): Same.
2798 2002-03-12 Bob Wilson <bob.wilson@acm.org>
2800 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
2802 2002-03-12 Bob Wilson <bob.wilson@acm.org>
2804 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
2805 to function_section before writing out the constant pool.
2807 2002-03-12 David Edelsohn <edelsohn@gnu.org>
2809 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
2811 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
2813 2002-03-12 Alan Modra <amodra@bigpond.net.au>
2815 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
2819 (cmpsi splitter): Likewise.
2820 (modsi3): Fail if <= 0.
2821 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
2822 redundant test when HOST_BITS_PER_WIDE_INT != 32.
2823 (reg_or_sub_cint64_operand): Likewise.
2824 (num_insns_constant_wide): Optimize sign extension.
2825 (rs6000_legitimize_address): Likewise.
2827 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
2829 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2830 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2832 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
2834 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
2835 address calculation.
2837 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
2839 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
2840 scratch register to DImode / TImode.
2841 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
2842 register used does not overlap the target.
2844 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2846 * Makefile.in (debug.o): Depend on debug.h.
2847 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
2848 * debug.c (do_nothing_debug_hooks): Likewise.
2849 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
2850 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
2851 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
2852 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
2853 * dwarfout.c (dwarf_debug_hooks): Likewise.
2854 * integrate.c (output_inline_function): Likewise.
2855 * objc/objc-act.c (synth_module_prologue): Likewise.
2856 * sdbout.c (sdb_debug_hooks): Likewise.
2857 * toplev.c (debug_hooks): Likewise.
2858 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2860 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2862 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
2863 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
2864 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
2865 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
2866 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
2867 * defaults.h (POINTER_SIZE): Define.
2868 * doc/tm.texi (POINTER_SIZE): Document default.
2870 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2872 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
2874 2002-03-11 Richard Henderson <rth@redhat.com>
2876 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
2877 if rebuild_label_notes_after_reload.
2879 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
2881 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
2882 emit pic register load if "internal" visibility.
2883 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
2884 (cris_expand_builtin_va_arg): Do all computations on trees.
2886 2002-03-11 Richard Henderson <rth@redhat.com>
2888 * rtlanal.c: Include recog.h.
2889 (keep_with_call_p): Fix thinko.
2890 * Makefile.in (rtlanal.o): Update dependencies.
2892 2002-03-11 Chris Meyer <cmeyer@gatan.com>
2894 * genflags.c (gen_insn): Use IS_VSPACE.
2895 * genoutput.c (output_insn_data): Likewise.
2896 (process_template): Likewise.
2898 2002-03-11 Richard Henderson <rth@redhat.com>
2900 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
2902 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
2904 * Makefile.in: Update.
2905 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
2906 Update documentation.
2907 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
2908 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
2910 2002-03-11 Zack Weinberg <zack@codesourcery.com>
2912 * Makefile.in: Give texi2pod its input file as a command line
2913 argument, not on stdin.
2915 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
2916 Daniel Berlin <dan@dberlin.org>
2918 C++ alias analysis improvement.
2919 * alias.c (record_component_aliases): Record aliases for base
2922 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
2924 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
2926 2002-03-11 Douglas B Rupp <rupp@gnat.com>
2928 * toplev.c (vms_fopen): Remove, not needed.
2930 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
2932 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
2934 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
2935 for FP, already done later.
2937 * toplev.c (debug_args): Add entry for VMS_DEBUG.
2938 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
2940 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
2942 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
2943 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
2944 LARGEST_EXPONENT_IS_NORMAL for the given mode.
2945 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
2946 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
2947 (ediv, emul, eldexp, esqrt): Likewise.
2948 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
2949 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
2950 (saturate): New function.
2951 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
2952 (make_nan): Use a saturation value instead of a NaN if
2953 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
2954 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
2955 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
2956 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
2957 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
2958 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
2959 !ROUND_TOWARDS_ZERO.
2960 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
2961 (ROUND_TOWARDS_ZERO): Document.
2963 2002-03-11 Andreas Jaeger <aj@suse.de>
2965 * cfg.c (dump_flow_info): Remove unused variable.
2967 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
2969 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
2970 computations on trees.
2972 2002-03-10 Richard Henderson <rth@redhat.com>
2975 * reload.c (copy_replacements_1): New.
2976 (copy_replacements): Use it to recurse through the rtx.
2978 2002-03-10 Richard Henderson <rth@redhat.com>
2980 * loop.c (strength_reduce): Compute number of iterations as
2981 unsigned HOST_WIDE_INT.
2983 2002-03-10 Richard Henderson <rth@redhat.com>
2985 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
2986 to move away from the end of the block.
2988 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
2990 PR preprocessor/5899
2991 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
2993 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2995 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
2997 * attribs.c (decl_attributes): Fix signed/unsigned warning.
2999 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
3001 * config/mmix/mmix.c: Improve comments.
3002 (mmix_target_asm_function_prologue): Drop variable
3003 empty_stack_frame. Don't allocate unused slot above fp.
3004 (mmix_target_asm_function_epilogue): Mirror prologue changes.
3005 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
3006 brace in first column.
3007 (enum reg_class): Ditto.
3008 (FIRST_PARM_OFFSET): Now 0.
3009 (USER_LABEL_PREFIX): Remove #if 0:d definition.
3011 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3013 * combine.c (make_extraction): Fix error in last change.
3015 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3017 * c4x.c (c4x_fp_reglist): Const-ify.
3018 * cris.c (cris_print_operand): Likewise.
3019 * i386.c (ix86_va_arg): Likewise.
3020 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
3021 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
3022 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
3023 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
3024 * mcore.h (regno_reg_class): Likewise.
3025 * mips.c (gen_int_relational): Likewise.
3026 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
3027 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
3028 * pdp11.c (move_costs): Likewise.
3029 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
3030 * s390.c (s390_branch_condition_mnemonic, regclass_map):
3032 * s390.h (regclass_map): Likewise.
3033 * sh.c (shift_amounts): Likewise.
3034 * sh.md (rotlsi3): Likewise.
3036 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
3038 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
3039 (ne0+5): Use new clobber to generate proper shift pattern.
3040 Patch by Michael Matz <matz@kde.org>.
3042 2002-03-09 Andreas Schwab <schwab@suse.de>
3044 * gcc.c (validate_all_switches): Also handle `%W{...}'.
3046 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
3048 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
3050 2002-03-09 Jakub Jelinek <jakub@redhat.com>
3053 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
3054 even for non-representable constants.
3056 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3058 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
3059 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
3060 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
3061 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
3062 (pop_function_context): Compute MAY_SHARE parameter for
3064 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
3065 (gen_mem_addressof): Call fixup_var_refs with new parm.
3067 * combine.c (make_extraction): Don't make extension of CONST_INT.
3069 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
3071 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
3072 in o32 and o64 ABIs.
3073 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
3074 but getting fixed-size structs passed in registers regardless of
3075 padding in o32 and o64 ABIs.
3077 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
3078 offset before loading address of argument passed by transparent
3081 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
3083 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
3085 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
3087 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
3088 marker such that registers after it are saved.
3090 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3092 * sparc.c (arith_4096_operand): Fix error in last change.
3094 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
3096 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
3099 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
3101 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
3104 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
3106 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
3108 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
3110 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
3111 removed; fix return value.
3112 * combine.c (combine_instructions): Dirtify blocks where we failed to
3113 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
3114 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
3116 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3118 * gcse.c (insert_insn_end_bb): Fix typo in last change.
3120 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
3122 * recog.c (peephole2_optimize): Re-distribute EH edges.
3124 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
3126 * expr.c (expand_expr): Use unsave lang hook.
3127 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
3128 (LANG_HOOKS_INITIALIZER): Update.
3129 * langhooks.h (struct lang_hooks): New hook unsave.
3130 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
3131 (unsave_expr_1): Remove unused lang_unsave_expr_now.
3132 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
3133 (unsave_expr_now): Remove.
3134 * tree.h (unsave_expr_now, lang_unsave,
3135 lang_unsave_expr_now): Remove.
3138 2002-03-08 Andreas Jaeger <aj@suse.de>
3140 * flow.c (propagate_block_delete_insn): Remove unused variable.
3142 2002-03-08 Kazu Hirata <kazu@hxi.com>
3144 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
3145 insn length for memory load/store.
3147 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
3149 * doc/install.texi (--with-libiconv-prefix): Document.
3151 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
3153 * doc/sourcebuild.texi: Fix typo.
3155 2002-03-08 Jakub Jelinek <jakub@redhat.com>
3158 * builtins.c (std_expand_builtin_va_arg): Do all computations on
3161 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3163 * rtl.c (copy_most_rtx): Move from here ...
3164 * emit-rtl.c (copy_most_rtx): ... to here.
3166 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
3168 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
3169 SUBTARGET_CPP_SIZE_SPEC.
3170 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
3172 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
3174 2002-03-07 Matt Hiller <hiller@redhat.com>
3176 * gensupport.c (first_dir_md_include): Renamed from include;
3177 change all references.
3178 (last_dir_md_include): Renamed from last_include; change all
3180 (init_md_reader): Unconditionally initialize base_dir whether or
3181 not filename is a relative path.
3183 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
3185 * config/fp-bit.c (_unord_f2): Compile it in even if
3186 US_SOFTWARE_GOFAST is enabled.
3188 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
3189 NULL_RTX. Set all HFmode operations as NULL_RTX.
3190 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
3191 NULL_RTX, try reversing the comparison and the operands.
3193 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
3195 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
3196 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
3199 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
3201 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
3203 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
3205 * basic-block.h (fixup_abnormal_edges): Declare.
3206 * reload1.c (fixup_abnormal_edges): New function.
3207 * reg-stack.c (convert_regs): Use it.
3209 * gcse.c (insert_insn_end_bb): Handle trapping insns.
3211 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
3213 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
3215 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
3216 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
3217 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
3218 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
3219 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
3220 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
3221 unless x and y could be infinite.
3222 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
3223 Check that the common type of both arguments is a real, even for
3224 targets without unordered comparisons. Allow an integer argument
3225 to be compared against a real.
3226 (expand_tree_builtin): Use expand_unordered_cmp.
3227 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
3228 * cse.c (fold_rtx): Likewise. Fix indentation.
3229 * fold-const.c (fold_real_zero_addition_p): New.
3230 (fold): Use it, and the new HONOR_... macros.
3231 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
3232 * jump.c (reversed_comparison_code_parts): After searching for
3233 the true comparison mode, use HONOR_NANS to decide whether it
3234 can be safely reversed.
3235 (reverse_condition_maybe_unordered): Remove IEEE check.
3236 * simplify-rtx.c (simplify_binary_operation): Use the new macros
3237 to decide which simplifications are valid. Allow the following
3238 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
3239 and (a - -b) to (a + b).
3240 (simplify_relational_operation): Use HONOR_NANS.
3241 * doc/tm.texi: Document the MODE_HAS_... macros.
3243 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
3245 * combine.c (simplify_comparison): If simplifying a logical shift
3246 right and compare with constant, force the comparison to unsigned.
3248 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
3250 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
3252 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
3254 (alt_reg_names): Remove % for vrsave.
3256 2002-03-06 Richard Henderson <rth@redhat.com>
3258 PR optimization/5844
3259 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
3260 if used indicates we've already emitted one copy of an operand.
3261 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
3262 (gen_split): Supply a non-null used.
3264 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
3266 * reload1.c (reload): Unshare all rtl after reload is done.
3268 * simplify-rtx.c (simplify_plus_minus): Do not abort,
3269 but simply fail if the expression is too complex to simplify.
3270 (simplify_gen_binary): Handle simplify_plus_minus failures.
3272 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
3274 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
3275 consistently call delete_trivially_dead_insns after CSE and GCSE;
3276 fix DFI_life dumping; do jump threading after liveness; do crossjumping
3277 after liveness2; update comment in last crossjumping.
3278 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
3280 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
3282 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
3283 after completing fast dead code elimination.
3285 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
3288 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
3290 * version.c: Fix misplaced leading blanks on first line.
3292 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
3294 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
3296 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
3298 * cfgcleanup.c (mentions_nonequal_regs): New function.
3299 (thread_jump): Use it.
3300 * toplev.c (rest_of_compilation): Run jump threading after
3303 2002-03-06 Jakub Jelinek <jakub@redhat.com>
3305 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
3308 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
3310 * predict.c (estimate_bb_frequencies): Do not reload the
3311 frequencies from notes.
3313 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
3315 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
3316 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
3318 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
3319 delete_noop_moves): Return indeger.
3320 * flow.c (ndead): New variable.
3321 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
3322 BB argument; update callers.
3323 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
3324 (life_analysis): Do not call purge_all_dead_edges.
3325 (update_life_info): Return number of deleted insns; print statistics.
3326 (update_life_info_in_dirty_blocks): likewise.
3327 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
3328 return number of insns deleted.
3330 * cse.c: Include timevar.h
3331 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
3332 iterate until stabilizes; print statistics; return number of killed
3334 * Makefile.in: (cse.o): Add timevar.h dependency
3335 * rtl.h (delete_trivially_dead_insns): New.
3336 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
3337 * toplev.c (rest_of_compilation): Update callers.
3339 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
3340 (try_optimize_cfg): Do not update liveness.
3341 (cleanup-cfg): Loop until try_optimize_cfg and dead code
3342 removal stabilizes; use delete_trivially_dead_insns.
3344 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
3346 2002-03-05 Zack Weinberg <zack@codesourcery.com>
3348 * cppmain.c (setup_callbacks): Disable #pragma and #ident
3349 callbacks when processing assembly language.
3351 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3353 * pa.h (ASM_FILE_END): Define.
3354 * som.h (ASM_FILE_END): Delete.
3356 * pa.c (function_arg): Don't pass floats in general registers in
3357 indirect calls if TARGET_ELF32.
3359 2002-03-05 Richard Henderson <rth@redhat.com>
3361 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
3363 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
3365 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
3367 2002-03-05 Jakub Jelinek <jakub@redhat.com>
3369 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
3370 -r command line. Don't hide any symbols if not building
3373 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
3375 * cfg.c (dump_flow_info): Warn about profile mismatches.
3376 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
3377 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
3379 2002-03-05 Jakub Jelinek <jakub@redhat.com>
3381 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
3382 wide volatile memory by parts.
3384 2002-03-05 Jakub Jelinek <jakub@redhat.com>
3386 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
3389 2002-03-05 Richard Henderson <rth@redhat.com>
3391 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
3393 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
3395 * toplev.c (documented_lang_options): Document more
3396 language-specific options.
3397 * doc/invoke.texi (Warning Options): Correct documentation for
3398 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
3399 * c-decl.c (c_decode_option): Use a table to handle warning options.
3401 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
3403 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
3404 parameter to mmix_encode_section_info.
3405 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
3406 relocatably. Always produce ELF, not mmo if linking relocatably.
3407 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
3408 first is non-zero, don't add symbol prefix.
3409 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
3410 prototype accordingly.
3412 2002-03-04 Krister Walfridsson <cato@df.lth.se>
3414 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
3416 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
3418 * configure.in: Increase required makeinfo version to 4.1.
3419 * configure: Regenerate.
3421 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
3423 * .cvsignore: Remove *.info* and genrtl*; these files are generated
3426 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
3428 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
3429 * doc/invoke.texi: Fix @math uses.
3431 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
3433 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
3436 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
3438 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
3439 (powerpc-*-eabisimaltivec*): Same.
3441 * config/rs6000/t-ppcendian: New.
3443 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
3445 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
3446 nonimmediate_src_operand and nonimmediate_lsrc_operand to
3447 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
3449 2002-03-03 Richard Henderson <rth@redhat.com>
3451 * toplev.c (rest_of_decl_compilation): Revert last two changes.
3453 2002-03-03 Zack Weinberg <zack@codesourcery.com>
3455 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
3456 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
3457 tree.c, config/m68k/m68k.c:
3458 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
3459 REAL_ARITHMETIC blocks unconditional. Delete some further
3460 #ifdef blocks predicated on REAL_ARITHMETIC.
3461 * flags.h, toplev.c: Delete remaining references to
3464 * doc/invoke.texi: Remove documentation of -fpretend-float.
3465 * doc/tm.texi: Describe the various REAL_* macros as provided by
3466 real.h, not by the target configuration files.
3468 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
3469 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
3470 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
3471 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
3472 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
3473 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
3474 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
3475 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
3476 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
3477 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
3478 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
3479 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3480 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
3481 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
3482 config/xtensa/xtensa.h:
3483 Do not define, undefine, or mention in comments any of
3484 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
3485 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
3486 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
3487 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
3488 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
3489 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
3490 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
3491 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
3492 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
3494 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3496 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
3497 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
3498 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
3499 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
3500 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
3501 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
3503 * defaults.h (BITS_PER_WORD): Define.
3504 * doc/tm.texi (BITS_PER_WORD): Document default value.
3506 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
3507 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
3508 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
3510 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3512 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
3513 lieu of explicit sizeof/sizeof.
3514 * i386.c (override_options, ix86_init_mmx_sse_builtins,
3515 ix86_expand_builtin): Likewise.
3516 * mips.c (mips_add_gc_roots): Likewise.
3517 * mmix.c (mmix_output_condition): Likewise.
3518 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
3519 altivec_init_builtins): Likewise.
3520 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
3521 * cppexp.c (Nsuff, parse_number): Likewise.
3522 * cppinit.c (builtin_array_end): Likewise.
3523 * gcc.c (n_default_compilers, process_command): Likewise.
3524 * genpreds.c (output_predicate_decls): Likewise.
3525 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
3526 * lcm.c (N_ENTITIES): Likewise.
3527 * stor-layout.c (set_sizetype): Likewise.
3529 2002-03-03 Richard Henderson <rth@redhat.com>
3531 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
3532 for types or labels.
3534 2002-03-03 Richard Henderson <rth@redhat.com>
3536 * c-decl.c (start_decl): Initialized variables are not common.
3538 2002-03-02 Per Bothner <per@bothner.com>
3540 * gcc.c (option_map): Suport new --bootclasspath option.
3541 --CLASSPATH is now just an alias for --classpath.
3543 2002-03-02 Richard Henderson <rth@redhat.com>
3545 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
3546 load if "internal" visibility.
3547 * doc/extend.texi: Document visibility meanings.
3549 2002-03-02 Richard Henderson <rth@redhat.com>
3551 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
3552 to functions as well.
3554 2002-03-02 Richard Henderson <rth@redhat.com>
3556 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
3557 (handle_visibility_attribute): Don't call assemble_visibility.
3558 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
3559 without asmspec. Invoke assemble_alias when needed.
3560 * varasm.c (maybe_assemble_visibility): New.
3561 (assemble_start_function, assemble_variable, assemble_alias): Use it.
3563 2002-03-02 Richard Henderson <rth@redhat.com>
3565 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
3566 invoke ENCODE_SECTION_INFO with first call flag.
3568 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
3569 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
3570 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
3571 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
3572 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
3573 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
3574 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
3575 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
3576 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
3577 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
3578 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
3579 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
3580 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
3581 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
3582 config/mcore/mcore-protos.h, config/mcore/mcore.c,
3583 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
3584 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
3585 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
3586 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
3587 config/sh/sh.h, config/sparc/sparc.h,
3588 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
3589 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
3590 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
3591 FIRST argument. As needed, examine it and do nothing.
3593 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
3594 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
3595 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
3597 * config/arm/t-pe (pe.o): Add dependencies.
3599 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3601 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
3602 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
3603 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
3604 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
3605 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
3606 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
3607 * defaults.h (BITS_PER_UNIT): Define.
3608 * doc/tm.texi (BITS_PER_UNIT): Document default value.
3610 2002-03-02 Kazu Hirata <kazu@hxi.com>
3612 * config/h8300/h8300-protos.h: Add a prototype for
3613 compute_a_shift_length.
3614 * config/h8300/h8300.c (h8300_asm_insn_count): New.
3615 (compute_a_shift_length): Likewise.
3616 (h8300_adjust_insn_length): Do not adjust insn length of shift
3618 * config/h8300/h8300.md (anonymous shift patterns): Use
3619 compute_a_shift_length.
3621 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3623 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
3626 * emit-rtl.c (offset_address): Call update_temp_slot_address.
3628 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3630 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
3631 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
3632 * flags.h (flag_zero_initialized_in_bss): Declare.
3633 * toplev.c (flag_zero_initialized_in_bss): New flag.
3634 (lang_independent_options): Add flag_zero_initialized_in_bss.
3635 * tree.c (initializer_zerop): New function.
3636 * tree.h (initializer_zerop): Declare.
3637 * varasm.c (assemble_variable): If we can emit bss, put zero
3638 initializers in the bss section.
3640 2002-03-02 Alan Modra <amodra@bigpond.net.au>
3642 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
3643 like more than one symbol per .weak directive.
3645 2002-03-01 Richard Henderson <rth@redhat.com>
3647 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
3648 adjust argument_pointer by pretend_args_size.
3649 (ia64_va_start): Adjust va_start address by -pretend_args_size.
3651 2002-03-01 Kazu Hirata <kazu@hxi.com>
3653 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
3655 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
3657 * toplev.c (rest_of_compilation): Delete dead jumptables before
3659 * flow.c (delete_dead_jumptables): Make global.
3660 * rtl.h (delete_dead_jumptables): Declare.
3662 2002-03-01 David Edelsohn <edelsohn@gnu.org>
3664 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
3665 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
3666 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
3668 2002-03-01 Kazu Hirata <kazu@hxi.com>
3670 * config/h8300/h8300-protos.h: Fix formatting.
3671 * config/h8300/h8300.c: Likewise.
3672 * config/h8300/h8300.h: Likewise.
3674 2002-03-01 Kazu Hirata <kazu@hxi.com>
3676 * config/h8300/h8300.c (print_operand): Support 16-bit
3678 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
3680 2002-02-28 Richard Henderson <rth@redhat.com>
3682 * expmed.c (store_bit_field): Prevent generation of CONCATs;
3683 pun complex values as integers; use gen_lowpart instead of
3685 (extract_bit_field): Likewise.
3687 2002-03-01 Alan Modra <amodra@bigpond.net.au>
3688 David Edelsohn <edelsohn@gnu.org>
3690 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
3691 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
3692 (SUPPORTS_WEAK): Likewise.
3693 * output.h (add_weak): Add tree param.
3694 * varasm.c (add_weak): Likewise. Save decl.
3695 (struct weak_syms): Add decl field.
3696 (mark_weak_decls): New function.
3697 (init_varasm_once): ggc_add_root mark_weak_decls.
3698 (assemble_start_function): Use ASM_WEAKEN_DECL.
3699 (assemble_variable): Likewise.
3700 (assemble_alias): Likewise.
3701 (declare_weak): Pass decl to add_weak.
3702 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
3703 (remove_from_pending_weak_list): Declare and define for
3705 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
3706 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
3707 * defaults.h (SUPPORTS_WEAK): Likewise.
3708 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
3709 .weak for code sym. Do emit .size for descriptor sym.
3710 (ASM_DECLARE_FUNCTION_SIZE): Define.
3711 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
3712 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
3713 .lglobl unless TARGET_XCOFF. Formatting fixes.
3714 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
3716 (HANDLE_PRAGMA_WEAK): Remove.
3717 (ASM_WEAKEN_LABEL): Remove.
3718 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
3720 2002-03-01 Jason Merrill <jason@redhat.com>
3722 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
3723 (TARGET_EXPR_CLEANUP): New macro.
3725 2002-02-28 Steve Ellcey <sje@cup.hp.com>
3727 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
3728 to take ptr_extend into account as third type of extension.
3729 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
3730 fields used by SUBREG_PROMOTED_UNSIGNED_P.
3731 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
3732 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
3733 * calls.c (precompute_arguments): Use new macro.
3734 (expand_call): Ditto.
3735 * combine.c (nonzero_bits): Ditto.
3736 (record_promoted_value): Ditto.
3737 * expr.c (store_expr): Ditto.
3738 (expand_expr): Ditto.
3739 * function.c (assign_parms): Ditto.
3741 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
3743 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
3744 override -shared and -shared-libgcc.
3746 2002-02-28 David O'Brien <obrien@FreeBSD.org>
3748 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
3750 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
3753 2002-02-28 Richard Henderson <rth@redhat.com>
3755 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
3756 4 cycle latency from MM producers.
3757 (ia64_internal_sched_reorder): Likewise with pipeline flush.
3759 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3761 * mklibgcc.in: Don't use GNU make extension.
3763 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
3765 * c-parse.in (STATIC): New terminal.
3766 (scspec): New non-terminal. Update productions accordingly.
3767 (program): Remove bogus ifc / end ifc.
3768 (array_declarator): Simplify production using STATIC.
3770 2002-02-28 Jim Meyering <meyering@lucent.com>
3772 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
3773 \a still means TARGET_BELL.
3775 2002-02-28 Richard Henderson <rth@redhat.com>
3777 * haifa-sched.c (sched_emit_insn): New.
3778 (schedule_block): Use last_scheduled_insn to track last insn.
3779 * sched-int.h (sched_emit_insn): Prototype.
3780 * config/ia64/ia64.c (last_issued): Remove.
3781 (ia64_variable_issue): Don't set it.
3782 (nop_cycles_until): Use sched_emit_insn.
3784 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
3786 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
3789 2002-02-28 Kazu Hirata <kazu@hxi.com>
3791 * config/h8300/h8300.c: Fix formatting.
3792 * config/h8300/h8300.h: Likewise.
3794 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
3796 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
3797 which may overwrite the high byte of the frame pointer.
3799 2002-02-28 Bo Thorsen <bo@suse.de>
3801 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
3802 (STARTFILE_SPEC): Add 64 bit files.
3803 (ENDFILE_SPEC): Likewise.
3805 2002-02-28 Jason Merrill <jason@redhat.com>
3807 * c-decl.c (finish_function): Only warn about missing return
3808 statement with -Wreturn-type.
3810 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
3812 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
3814 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
3815 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
3817 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
3819 * basic-block.h (BB_REACHABLE): Renumber.
3820 (BB_DIRTY, BB_NEW): New flags.
3821 (clear_bb_flags): Declare.
3822 (update_life_info_in_dirty_blocks): Declare.
3823 * cfg.c (clear_bb_flags): New function.
3824 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
3825 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
3826 reorder_insns, emit_insn_after): Mark block as dirty.
3827 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
3828 (update_life_info_in_dirty_blocks): New function.
3829 * recog.c (apply_change_group): Dirtify block.
3831 * cse.c (cse_insn): Reorder emitting of jump insn to keep
3833 * gcse.c (delete_null_pointer_checks): Likewise.
3835 * toplev.c (dump_file_index): Move cse2 after bp,
3837 (dump_file_info): Similary.
3838 (rest_of_compilation): Avoid most of CFG rebuilds;
3839 do first if converision after null pointer checks, do cse2
3840 after branch prediction; avoid full liveness rebuild after
3841 initializing subregs.
3842 * invoke.texi (-d options): Document -du, renumber.
3844 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
3845 (notice_new_block): Do not set BB_UPDATE_LIFE.
3846 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
3847 merge_blocks_move_successor_nojumps, merge_blocks,
3848 try_crossjump_to_edge): Likewise.
3849 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
3850 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
3851 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
3852 (merge_of_block): Do not use life_data_ok.
3853 (find_if_case_1): Do not use SET_UPDATE_LIFE.
3854 (if_convert): Use BB_DIRTY mechanizm to update life.
3855 * lcm.c (optimize_mode_switching): Update
3856 update_life_info_in_dirty_blocks
3858 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
3860 * Makefile.in (integrate.o): Update.
3861 * c-decl.c (copy_lang_decl): Rename.
3862 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
3863 * integrate.c: Include langhooks.h.
3864 (copy_decl_for_inlining): Update to use langhook.
3865 * langhooks-def.h (lhd_do_nothing_t,
3866 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
3867 (LANG_HOOKS_INITIALIZER): Update.
3868 * langhooks.c (lhd_do_nothing_t): New.
3869 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
3870 * tree.h (copy_lang_decl): Remove.
3872 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
3874 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
3876 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
3877 POST_DEC, and POST_MODIFY.
3879 2002-02-27 Zack Weinberg <zack@codesourcery.com>
3881 * c-typeck.c (digest_init): Remove unused parameter; all
3884 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
3886 * expmed.c (expand_shift): Correctly test for low part of a
3889 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
3891 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
3892 insn UIDs with insn addresses.
3894 2002-02-27 Zack Weinberg <zack@codesourcery.com>
3896 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
3897 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
3898 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
3899 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
3900 gcc.c, toplev.c: Delete code implementing -traditional mode.
3902 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
3903 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
3904 Document removal of -traditional mode for compilation, and
3905 remove documentation only relevant to that mode.
3907 * config/nextstep.h, config/ptx4.h, config/svr4.h,
3908 config/convex/convex.h, config/d30v/d30v.h,
3909 config/i386/dgux.h, config/i386/osf1elf.h,
3910 config/i386/osfelf.h, config/i386/osfrose.h,
3911 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
3912 config/m68k/hp310.h, config/m88k/dgux.h,
3913 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
3914 config/m88k/m88k.h, config/m88k/openbsd.h,
3915 config/mips/abi64.h, config/mips/osfrose.h,
3916 config/mips/svr4-5.h, config/mips/svr4-t.h,
3917 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
3918 config/stormy16/stormy16.h: Remove all references to
3919 -traditional from target specs. Delete all mention of the
3920 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
3921 delete a couple of commented-out definitions of
3922 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
3925 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
3926 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
3928 2002-02-27 Zack Weinberg <zack@codesourcery.com>
3930 * mklibgcc.in: Don't use \n in a line subject to
3931 interpretation by echo.
3933 2002-02-27 Graham Stott <grahams@redhat.com>
3935 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
3938 * loop.c (prescan_loop): Handle PARALLEL.
3940 * unroll.c (loop_iterations): Return 0 if the add_val for
3943 * final.c (output_operand_lossage): Constify PFX_STR.
3945 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
3947 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
3949 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
3950 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
3952 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
3954 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
3956 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
3958 * cpplex.c (_cpp_lex_token): Handle directives in macro
3960 * cpplib.c (_cpp_handle_directive): Save and restore state
3961 if parsing macro args when entering a directive.
3962 * cppmacro.c (collect_args): No need to handle directives
3964 (enter_macro_context, replace_args): Use the original macro
3965 definition in case it was redefined whilst collecting arguments.
3969 2002-02-26 David Edelsohn <edelsohn@gnu.org>
3971 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
3972 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
3973 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
3975 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
3976 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
3977 (load_toc_v4_PIC_2): Same.
3979 2002-02-26 Alan Modra <amodra@bigpond.net.au>
3981 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
3983 2002-02-26 Richard Henderson <rth@redhat.com>
3985 * config/alpha/alpha.md (ashldi_se): Re-enable.
3987 2002-02-26 Richard Henderson <rth@redhat.com>
3989 * config/alpha/alpha.c (alpha_encode_section_info): Examine
3990 MODULE_LOCAL_P; improve commentary.
3992 2002-02-26 Zack Weinberg <zack@codesourcery.com>
3994 * doc/cpp.texi: Clarify documentation of relationship between
3997 2002-02-26 Kazu Hirata <kazu@hxi.com>
3999 * config/h8300/h8300-protos.h: Update the prototype for
4000 compute_logical_op_length. Add the prototype for
4001 compute_logical_op_cc.
4002 * config/h8300/h8300.c (compute_logical_op_length): Figure out
4004 (compute_logical_op_cc): New.
4005 * config/h8300/h8300.md: Combine all the logical op patterns
4006 in HImode and SImode. Use compute_logical_op_cc.
4008 2002-02-26 Kelley Cook <kelleycook@comcast.net>
4010 * config/i386/i386.c (print_operand): Don't append ATT-style
4011 length suffixs to x87 opcodes when in Intel mode.
4013 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
4015 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
4016 (init_emit_once): Update calls.
4017 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
4018 (init_syntax_once): Prototype.
4020 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
4022 * pa-linux.h (LIB_SPEC): Update definition.
4023 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
4025 2002-02-26 Richard Henderson <rth@redhat.com>
4027 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
4028 if we emitted a stop bit.
4030 2002-02-26 Jakub Jelinek <jakub@redhat.com>
4032 * configure.in (libgcc_visibility): Substitute.
4033 * configure: Rebuilt.
4034 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
4035 defined symbols .hidden.
4037 2002-02-26 Jakub Jelinek <jakub@redhat.com>
4039 * attribs.c (c_common_attribute_table): Add visibility.
4040 (handle_visibility_attribute): New function.
4041 * varasm.c (assemble_visibility): New function.
4042 * output.h (assemble_visibility): Add prototype.
4043 * tree.h (MODULE_LOCAL_P): Define.
4044 * crtstuff.c (__dso_handle): Use visibility attribute.
4045 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
4046 for MODULE_LOCAL_P symbols too.
4047 * config/ia64/ia64.c (ia64_encode_section_info): Handle
4048 MODULE_LOCAL_P symbols the same way as local symbols.
4049 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
4050 into .sdata/.sbss by the user.
4051 * doc/extend.texi (Function Attributes): Document visibility
4054 2002-02-26 Jakub Jelinek <jakub@redhat.com>
4057 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
4058 STRING_CST initializer spanning the whole variable without
4060 If expand_expr returned MEM, don't use it.
4062 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
4064 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
4065 generate a die for the lexical block.
4067 2002-02-26 Kazu Hirata <kazu@hxi.com>
4069 * config/h8300/h8300-protos.h: Add a prototype for
4070 compute_logical_op_length.
4071 * config/h8300/h8300.c (compute_logical_op_length): New.
4072 * config/h8300/h8300.md (anonymous logical patterns): Use
4073 compute_logical_op_length for length.
4075 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
4077 * dwarf2out.c (modified_type_die): Do not call type_main_variant
4079 (gen_type_die): Same.
4081 * attribs.c (handle_vector_size_attribute): Set debug information.
4083 2002-02-26 Daniel Egger <degger@fhm.edu>
4085 * config/rs6000/rs6000.md: Swap define_insn attributes to
4086 fix incorrect generation of merge high instructions instead
4089 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
4091 * c-typeck.c (really_start_incremental_init): Use
4092 bitsize_zero_node for vectors.
4094 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
4096 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
4097 ("*set_vrsave_internal"): Same.
4099 2002-02-25 Richard Henderson <rth@redhat.com>
4101 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
4102 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
4104 2002-02-25 Jakub Jelinek <jakub@redhat.com>
4107 * config/i386/i386.c (ix86_return_pops_args): Only pop
4108 fake structure return argument if it was passed on the stack.
4110 2002-02-25 Jason Merrill <jason@redhat.com>
4112 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
4115 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
4117 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
4118 link with shared_name only.
4119 * doc/invoke.texi (Link Options): Document new behavior.
4121 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
4123 * c-typeck.c (push_init_level): Handle vectors.
4125 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
4127 * config/sparc/sparc.c (const64_high_operand): Zero-extend
4128 operands of SPARC_SETHI_P.
4129 (input_operand): Likewise.
4130 (sparc_emit_set_const32): Likewise.
4131 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
4132 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
4133 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
4134 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
4135 (movdi_insn_sp64_vis): Likewise.
4136 (movdi split, movdf split): Use SETHI32.
4137 * doc/md.texi: Document SPARC constraints L, M and N.
4139 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
4141 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
4142 ("*set_vrsave_internal"): use mfspr for Darwin.
4144 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
4145 gen_get_vrsave_internal.
4147 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4149 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
4151 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
4153 * cpplex.c (cpp_interpret_charconst): Get signedness or
4154 otherwise of wide character constants correct.
4155 * cppexp.c (lex): Get signedness of wide charconsts correct.
4157 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4159 * optabs.c (widen_operand): Only call convert_modes for
4160 promoted SUBREG if signedness matches.
4161 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
4163 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
4165 * cpplib.c (glue_header_name): Use local buffer to build up
4168 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
4170 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
4172 2002-02-23 Kazu Hirata <kazu@hxi.com>
4174 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
4175 H8/300[HS] separately.
4176 * config/h8300/h8300.md: Remove the early clobber constraint
4177 from bit field patterns.
4179 2002-02-23 Kazu Hirata <kazu@hxi.com>
4181 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
4183 (mulhisi3): Likewise.
4184 (umulqisi3): Likewise.
4185 (umulhisi3): Likewise.
4187 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
4189 * cppinit.c (output_deps): Correct test for stdout output.
4190 (init_dependency_output): Cure warning.
4192 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4194 * expr.c (store_expr): When converting expression to promoted
4195 equivalent type, allow using SUBREG_REG of TARGET as the target
4196 of the expansion of EXP.
4197 * loop.c (basic_induction_var, case SUBREG): Always look inside.
4198 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
4199 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
4200 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
4201 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
4203 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
4205 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
4206 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
4207 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
4209 2002-02-23 Jakub Jelinek <jakub@redhat.com>
4211 PR optimization/5747
4212 * loop.c (scan_loop): Update reg info if move_movables created new
4215 2002-02-23 David Edelsohn <edelsohn@gnu.org>
4217 * gcc.c (init_gcc_spec): Revert last change.
4219 2002-02-23 David Edelsohn <edelsohn@gnu.org>
4221 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
4222 gpc_reg_operand constraint.
4224 2002-02-23 Alan Modra <amodra@bigpond.net.au>
4226 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
4227 Simplify comparison of `low'.
4228 (add_operand): Fix formatting.
4229 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
4230 (mask_operand): Disallow mask to wrap in 64-bit mode.
4231 (rs6000_stack_info): Remove redundant test setting push_p.
4232 (output_toc): Fix formatting.
4233 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
4234 cc_reg_not_cr0_operand constraint.
4235 (booldi3, boolcdi3 splitters): Same.
4237 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
4239 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
4241 2002-02-22 David Edelsohn <edelsohn@gnu.org>
4243 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
4244 gcc invoked with -shared-libgcc.
4246 2002-02-22 Jakub Jelinek <jakub@redhat.com>
4249 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
4250 decl if any of elements was TREE_USED.
4252 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
4254 * config/sparc/sol2.h: Don't include sys/mman.h.
4255 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
4256 (arith_4096_operand): Don't throw high bits away.
4257 (const64_operand): Take sign extension of CONST_INTs into account.
4258 (const64_high_operand, sparc_emit_set_const32): Likewise.
4259 (GEN_HIGHINT64): Likewise.
4260 (sparc_emit_set_const64_quick1): Likewise.
4261 (const64_is_2insns): Likewise.
4262 (print_operand): Use trunc_int_for_mode for sign extension.
4263 * config/sparc/sparc.h (SMALL_INT32): Likewise.
4264 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
4265 chars. Assume CONST_INT is already properly sign-extended.
4266 (movdi split): Sign-extend each SImode part.
4267 (andsi3 split): Don't mask high bits off, so that result
4268 remains properly sign-extend.
4269 (iorsi3 split): Likewise.
4270 (xorsi3 split): Likewise.
4272 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
4274 * fold-const.c (fold): Fix typo in comments.
4276 2002-02-21 Diego Novillo <dnovillo@redhat.com>
4278 * Makefile.in (langhooks.o): Update dependencies.
4280 2002-02-21 Diego Novillo <dnovillo@redhat.com>
4282 * langhooks.c: Include flags.h.
4284 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
4286 * testsuite/gcc.dg/attr-alwaysinline.c: New.
4288 * c-common.c (c_common_post_options): Set inline trees by
4291 * doc/extend.texi (Function Attributes): Document always_inline
4293 Update documentation about inlining when not optimizing.
4295 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
4297 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
4298 unless DECL_ALWAYS_INLINE.
4300 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
4301 unless DECL_ALWAYS_INLINE.
4302 (c_disregard_inline_limits): Disregard if always_inline set.
4304 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
4305 Disregard if always_inline set.
4306 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
4307 unless DECL_ALWAYS_INLINE.
4309 * attribs.c (handle_always_inline_attribute): New.
4310 (c_common_attribute_table): Add always_inline.
4312 * config/rs6000/altivec.h: Add prototypes for builtins
4313 requiring the always_inline attribute.
4315 2002-02-21 Eric Christopher <echristo@redhat.com>
4317 * expmed.c (store_bit_field): Try to simplify the subreg
4318 before generating a new one when when the mode size of
4319 value is less than maxmode.
4321 2002-02-21 Richard Henderson <rth@redhat.com>
4323 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
4324 than gen_rtx_PLUS to form the sum.
4325 * explow.c (force_reg): Rearrange to not allocate new pseudo
4326 when force_operand returns a register.
4327 * expr.c (expand_assignment): Allow offset_rtx expansion to
4328 return a sum. Do not force addresses into registers.
4329 (expand_expr): Likewise.
4330 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
4331 to canonicalize arithmetic that didn't simpify.
4332 (simplify_plus_minus): New argument force; update
4333 all callers. Don't split CONST unless we can do something with it,
4334 and wouldn't lose the constness of the operands.
4336 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
4337 that we generated earlier.
4339 2002-02-21 Tom Tromey <tromey@redhat.com>
4341 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4342 (output_line_info): Use constant `1', with a long explanatory
4344 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
4346 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
4348 * jump.c (redirect_jump): If old label has no UID, don't try to
4351 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
4353 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
4354 If input is constant, do shifts at compile time.
4356 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
4358 * doc/extend.texi: Fix some more overfull hboxes.
4360 2002-02-21 Jakub Jelinek <jakub@redhat.com>
4362 PR optimization/4994
4363 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
4366 2002-02-21 Jakub Jelinek <jakub@redhat.com>
4369 * expr.h (expand_and): Add mode argument.
4370 * expmed.c (expand_and): Add mode argument.
4371 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
4372 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
4373 * except.c (expand_builtin_extract_return_addr): Likewise.
4374 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
4375 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4376 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
4377 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
4378 * config/c4x/c4x.md: Use GEN_INT (x) instead of
4379 gen_rtx (CONST_INT, VOIDmode, x).
4381 2002-02-21 Jakub Jelinek <jakub@redhat.com>
4384 * stmt.c (warn_if_unused_value): Move side effects test once more.
4386 2002-02-20 Torbjorn Granlund <tege@swox.com>
4388 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
4389 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
4391 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
4393 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
4394 SUBREG or ZERO_EXTEND.
4396 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
4398 * sh.h (current_function_anonymous_args): Remove.
4399 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
4400 of current_function_varargs and current_function_stdarg is set.
4401 * sh.c (sh_expand_prologue): Check current_function_varargs /
4402 current_function_stdarg / TARGET_SH5 instead of
4403 current_function_anonymous_args.
4405 * sh64.h (TARGET_VERSION): Define.
4407 2002-02-20 David Edelsohn <edelsohn@gnu.org>
4409 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
4410 VRSAVE_REGNO on TARGET_ALTIVEC.
4412 2002-02-20 Alan Modra <amodra@bigpond.net.au>
4414 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
4415 bits of SImode const_int.
4416 (includes_rshift_p): Likewise.
4417 (print_operand): Call mask_operand and mask64_operand with correct
4419 (rs6000_output_function_epilogue): Pad traceback table to word.
4420 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
4421 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
4422 mask64_operand with correct mode.
4423 (FUNCTION_ARG_REGNO_P): Correct parentheses.
4425 2002-02-20 Jakub Jelinek <jakub@redhat.com>
4428 * varasm.c (get_pool_constant_mark): New.
4429 * rtl.h (get_pool_constant_mark): Add prototype.
4430 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
4431 be represented if it has not been output.
4433 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
4435 * combine.c (do_SUBST): Sanity check substitutions of
4436 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
4437 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
4438 CONST_INT into its operand.
4439 (known_cond): Likewise, for ZERO_EXTEND.
4440 * simplify-rtx.c (simplify_unary_operation): Fix condition to
4441 allow for simplification of wide modes. Reject CONST_INTs in
4442 ZERO_EXTEND when their actual mode is not given.
4444 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
4446 * c-decl.c (pushdecl): If no global declaration is found for an
4447 extern declaration in block scope, try a limbo one.
4449 2002-02-20 Jakub Jelinek <jakub@redhat.com>
4452 * c-common.c (pointer_int_sum): Moved from...
4453 * c-typeck.c (pointer_int_sum): ...here.
4454 * c-common.h (pointer_int_sum): Add prototype.
4456 2002-02-20 Jakub Jelinek <jakub@redhat.com>
4459 * c-decl.c (duplicate_decls): Return 0 if issued error about
4462 2002-02-20 Roger Sayle <roger@eyesopen.com>
4463 Jakub Jelinek <jakub@redhat.com>
4466 * tree.c (host_integerp): Ensure that the constant integer is
4467 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
4468 when pos is zero or non-zero respectively. Clarify comment.
4469 * c-format.c (check_format_info_recurse): Fix host_integerp
4470 usage; the pos argument should be zero when assigning to a
4471 signed HOST_WIDE_INT.
4473 2002-02-20 Richard Henderson <rth@redhat.com>
4475 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
4476 of the operand, rather than assuming TImode.
4477 (ix86_expand_binop_builtin): Cope with commutative patterns
4478 using nonimmediate_operand for both operands.
4479 (ix86_expand_timode_binop_builtin): Likewise.
4480 (ix86_expand_store_builtin): Validate operand 1.
4481 (ix86_expand_unop1_builtin): Likewise.
4483 2002-02-20 Philip Blundell <philb@gnu.org>
4486 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
4488 2002-02-20 Richard Henderson <rth@redhat.com>
4491 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
4493 2002-02-20 Tom Tromey <tromey@redhat.com>
4495 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4496 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4497 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4498 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4499 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
4502 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
4504 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
4505 for (const_int 0) in X not just INTVAL.
4507 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
4509 * doc/extend.texi: Avoid or reduce overfull hboxes.
4511 2002-02-20 Diego Novillo <dnovillo@redhat.com>
4513 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
4514 operations if the field does not start at a mode boundary.
4516 2001-02-20 Joel Sherrill <joel@OARcorp.com>
4518 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
4519 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
4520 Also done for -Acpu and -Amachine.
4522 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
4524 * cppinit.c (init_dependency_output): Take deps output file
4525 from -o if none given with -MF. Suppress normal output.
4526 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
4527 * doc/cpp.texi, doc/invoke.texi: Update.
4529 2002-02-19 Zack Weinberg <zack@codesourcery.com>
4531 * toplev.c (output_quoted_string): Write unprintable
4532 characters with octal escapes.
4534 2002-02-19 David Edelsohn <edelsohn@gnu.org>
4536 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
4537 really_call_used[VRSAVE_REGNO] if not Altivec.
4539 2002-02-19 Alan Modra <amodra@bigpond.net.au>
4541 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
4543 (constant_pool_expr_1): Fix formatting.
4544 (rs6000_legitimize_reload_address): Likewise.
4546 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4548 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
4549 now that we have one.
4551 2002-02-19 Zack Weinberg <zack@codesourcery.com>
4553 * tree.h (struct tree_common): Remove aux. Add unused_0 at
4554 end of first block of bitfields (which was only seven bits);
4555 rename dummy to unused_1; remove comment which is no longer true.
4557 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
4559 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
4561 2002-02-19 Philip Blundell <pb@nexus.co.uk>
4564 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
4568 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
4569 arm_is_longcall_p rather than inspecting call-type cookie
4571 (call_value_insn) [TARGET_THUMB]: Likewise.
4573 2002-02-19 Graham Stott <grahams@redhat.com>
4575 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
4577 2002-02-19 David Edelsohn <edelsohn@gnu.org>
4579 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
4580 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
4581 (FP_SAVE_INLINE): Delete.
4583 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
4584 * config/rs6000/eabi.asm: Remove ABI save restore routines.
4585 * config/rs6000/t-ppccomm: Build crtsavres.o.
4586 * config/rs6000/crtsavres.asm: New file.
4588 2002-02-19 Philip Blundell <philb@gnu.org>
4590 * config/arm/arm.c (use_return_insn): Don't reject interrupt
4592 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
4593 (output_return_instruction): Allow interrupt functions to return with
4594 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
4595 (arm_expand_prologue): Subtract 4 before stacking LR in an
4598 2002-02-19 Philip Blundell <pb@nexus.co.uk>
4600 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
4601 decl, not just FUNCTION_DECL.
4602 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
4603 (arm_assemble_integer): Likewise.
4604 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
4607 2002-02-19 matthew green <mrg@eterna.com.au>
4609 * config.gcc (sparc-*-netbsdelf*): Enable target.
4610 (sparc64-*-netbsd*): New target.
4611 * config/sparc/netbsd-elf.h: New file.
4612 * config/sparc/t-netbsd64: New file.
4614 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
4616 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
4618 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
4620 * doc/invoke.texi: explicitly list the style guidelines that
4621 -Weffc++ checks for.
4623 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
4625 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
4627 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
4630 * gcc.c (cpp_unique_options): Treat -o as indicating object file
4631 only if not -E. If -E, pass -o through to the preprocessor.
4633 2002-02-19 Kazu Hirata <kazu@hxi.com>
4635 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
4636 register number with an appropriate macro.
4638 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
4640 * doc/rtl.texi (Constants): Close @code tag.
4642 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
4644 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
4645 ("mmx_uavgv4hi3"): Same.
4646 ("pmulhrwv4hi3"): Same.
4648 * tree-inline.c (walk_tree): Handle vectors.
4650 * c-common.c (constant_expression_warning): Handle vectors.
4651 (overflow_warning): Same.
4653 * sched-deps.c (sched_analyze_2): Handle vectors.
4655 * rtlanal.c (rtx_unstable_p): Handle vectors.
4656 (rtx_varies_p): Same.
4657 (count_occurrences): Same.
4658 (regs_set_between_p): Same.
4659 (modified_between_p): Same.
4660 (modified_in_p): Same.
4661 (volatile_insn_p): Same.
4662 (volatile_refs_p): Same.
4663 (side_effects_p): Same.
4665 (inequality_comparisons_p): Same.
4666 (replace_regs): Same.
4667 (computed_jump_p_1): Same.
4669 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
4671 (inner_mode_array): New.
4672 (copy_rtx): Handle vectors.
4673 (copy_most_rtx): Same.
4674 (rtx_equal_p): Same.
4675 (get_mode_alignment): Adjust for vectors.
4677 * resource.c (mark_referenced_resources): Handle vectors.
4678 (mark_set_resources): Same.
4680 * reload1.c (eliminate_regs): Handle vectors.
4681 (elimination_effects): Same.
4682 (scan_paradoxical_subregs): Same.
4684 * reload.c (subst_reg_equivs): Handle vectors.
4686 * regrename.c (scan_rtx): Handle vectors.
4688 * regclass.c (reg_scan_mark_refs): Handle vectors.
4690 * recog.c (find_single_use_1): Handle vectors.
4692 * local-alloc.c (equiv_init_varies_p): Handle vectors.
4693 (contains_replace_regs): Same.
4694 (memref_referenced_p): Same.
4696 * integrate.c (copy_rtx_and_substitute): Handle vectors.
4697 (subst_constants): Same.
4699 * genattrtab.c (attr_copy_rtx): Handle vectors.
4700 (encode_units_mask): Same.
4701 (clear_struct_flag): Same.
4702 (count_sub_rtxs): Same.
4704 * gcse.c (want_to_gcse_p): Handle vectors.
4705 (oprs_unchanged_p): Same.
4706 (hash_expr_1): Same.
4707 (oprs_not_set_p): Same.
4708 (expr_killed_p): Same.
4709 (compute_transp): Same.
4710 (store_ops_ok): Same.
4712 * function.c (purge_addressof_1): Do not allow paradoxical subregs
4714 (fixup_var_refs_1): Same.
4715 (instantiate_virtual_regs_1): Same.
4717 * fold-const.c (operand_equal_p): Handle vectors.
4719 (rtl_expr_nonnegative_p): Same.
4721 * flow.c (mark_used_regs): Handle vectors.
4723 * df.c (df_uses_record): Handle vectors.
4725 * cselib.c (cselib_subst_to_values): Handle vectors.
4726 (cselib_mem_conflict_p): Same.
4729 * cse.c (canon_reg): Handle vectors.
4731 (cse_process_notes): Same.
4732 (count_reg_usage): Same.
4735 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
4737 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
4739 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
4740 (gen_rtx): Handle CONST_VECTOR.
4741 (gen_const_vector_0): New.
4742 (copy_rtx_if_shared): CONST_VECTORs can be shared.
4743 (reset_used_flags): Same.
4744 (copy_insn_1): Same.
4745 (initializer_constant_valid_p): Handle VECTOR_CST.
4747 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
4749 * doc/rtl.texi (Constants): Document const_vector.
4750 (CONST0_RTX): Update for vectors.
4751 (RTL sharing): Same.
4753 * print-tree.c (print_node): Add case for VECTOR_CST.
4755 * tree.h (TREE_VECTOR_CST_ELTS): New.
4756 (struct tree_vector): New.
4757 (union tree_node): Add vector node.
4758 (build_vector): Add prototype.
4760 * tree.def (VECTOR_CST): New.
4762 * tree.c (build_vector): New.
4764 * expmed.c (make_tree): Handle CONST_VECTOR.
4766 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
4767 (CONST_VECTOR_ELT): New.
4768 (CONST_VECTOR_NUNITS): New.
4770 * machmode.h (GET_MODE_INNER): New.
4771 (DEF_MACHMODE): Accept 8th arg.
4773 * machmode.def: Add 8th argument for vector inner mode.
4774 Add inner vector modes for vectors.
4776 * rtl.def (VEC_CONST): Remove.
4777 (CONST_VECTOR): New.
4779 * expr.c (clear_storage): Allow vectors.
4780 (is_zeros_p): Handle VECTOR_CST.
4782 * varasm.c (output_constant_pool): Handle vectors.
4783 (rtx_const): Add veclo and vechi fields.
4784 (kind): Add RTX_VECTOR.
4785 (decode_rtx_const): Add case for vector.
4787 * config/rs6000/rs6000-protos.h: Add zero_constant.
4789 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
4790 constants. Force easy vector constants into memory.
4791 (easy_vector_constant): New.
4792 (emit_easy_vector_constant): New.
4793 (rs6000_legitimize_reload_address): Do not generate bad reloads on
4796 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
4798 ("altivec_lvxl"): Same.
4799 (altivec_lvebx): Same.
4800 (altivec_lvehx): Same.
4801 (altivec_lvewx): Same.
4802 ("*movv4si_const0"): New.
4803 ("*movv4sf_const0"): New.
4804 ("*movv8hi_const0"): New.
4805 ("*movv16qi_const0"): New.
4807 2002-02-18 Kazu Hirata <kazu@hxi.com>
4809 * config/h8300/h8300.c (notice_update_cc): Use
4812 2002-02-18 Kazu Hirata <kazu@hxi.com>
4814 * config/h8300/h8300.md (divmod patterns): Change the
4815 constraints for operands[1] to register_operand.
4817 2002-02-18 Kazu Hirata <kazu@hxi.com>
4819 * config/h8300/h8300-protos.h: Remove the prototype for
4821 * config/h8300/h8300.c (p_operand): Remove.
4822 * config/h8300/h8300.md: Replace p_operand with
4825 2002-02-18 Philip Blundell <pb@nexus.co.uk>
4827 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
4829 (output_return_instruction): Allow use of LDR to unstack
4830 return addresss even for interrupt handlers or when
4831 interworking. If compiling for ARMv5, use interworking-safe
4832 return instructions by default. Remove duplicated code and
4833 lengthy "strcat" sequences.
4835 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4837 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
4838 (LINK_EH_SPEC): Define.
4839 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
4841 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
4843 * config/s390/s390.c (s390_emit_prologue): Do not set the
4844 frame_related flag for call-clobbered registers.
4846 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
4848 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
4849 (construct_container): Fix handling of SSE operands.
4850 (ix86_expand_builtin): Fix handling of 64bit pointers.
4851 (mmx_maskmovq_rex): New pattern.
4853 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
4855 * regrename.c (kill_set_value): Handle subregs properly.
4857 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
4859 * objc/objc-act.c (handle_impent): Remove leading '*'
4860 from objc_class_name.
4862 2002-02-17 Richard Henderson <rth@redhat.com>
4864 * config/alpha/alpha.c (some_small_symbolic_operand,
4865 some_small_symbolic_operand_1, split_small_symbolic_operand,
4866 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
4867 Handle small SYMBOL_REFs anywhere, not just inside memories.
4868 * config/alpha/alpha-protos.h: Update.
4869 * config/alpha/alpha.h (PREDICATE_CODES): Update.
4870 * config/alpha/alpha.md (small symbolic operand splitter): Update.
4872 2002-02-17 Roland McGrath <roland@frob.com>
4874 * config.gcc (powerpc-*-gnu-gnualtivec*,
4875 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
4876 * config/rs6000/gnu.h: New file.
4877 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
4878 Grok "gnu" in rs6000_abi_name.
4879 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
4880 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
4881 Grok -mcall-gnu analogous to -mcall-linux et al.
4882 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
4883 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
4884 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
4886 2002-02-17 Jakub Jelinek <jakub@redhat.com>
4889 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
4892 2002-02-17 Philipp Thomas <pthomas@suse.de>
4894 * config/cris/cris.h: Undefine STARTFILE_SPEC and
4895 ENDFILE_SPEC before (re)defining them.
4897 2002-02-17 Kazu Hirata <kazu@hxi.com>
4899 * config/h8300/h8300.c: Fix formatting.
4900 * config/h8300/h8300.h: Likewise.
4902 2002-02-17 Philipp Thomas <pthomas@suse.de>
4904 * doc/tm.texi: Explain why empty strings should not be
4905 marked for translation.
4907 2002-02-17 Philipp Thomas <pthomas@suse.de>
4909 * final.c (output_operand_lossage): Changed to accept
4910 printf style arguments. Change calls where necessary.
4911 * output.h (output_operand_lossage): Change declaration
4912 accordingly. Update copyright.
4913 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
4914 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
4915 Update copyright date where necessary.
4917 * config/i386/i386.c (print_operand): Likewise. Remove use of
4920 * config/cris/cris.c (cris_operand_lossage): Likewise.
4921 Rename parameter so that exgettext recognizes it as
4922 translatable message.
4923 (LOSE_AND_RETURN): Rename parameter to msgid.
4925 2002-02-17 Kazu Hirata <kazu@hxi.com>
4927 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
4928 hard coded register number with an appropriate macro.
4929 (HARD_REGNO_MODE_OK): Likewise.
4930 (ARG_POINTER_REGNUM): Likewise.
4931 (STATIC_CHAIN_REGNUM): Likewise.
4932 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
4933 * config/h8300/h8300.md (define_constants): Define more
4936 2002-02-17 Philipp Thomas <pthomas@suse.de>
4938 * config/i386/i386.h: Don't mark empty strings for translation.
4940 2002-02-16 H.J. Lu <hjl@gnu.org>
4942 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
4944 2002-02-16 Zack Weinberg <zack@codesourcery.com>
4946 * cppinit.c (merge_include_chains): Check for brack being
4947 NULL before attempting to merge it with qtail.
4949 2002-02-16 Andrew Cagney <ac131313@redhat.com>
4951 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
4954 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
4956 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
4958 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
4960 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
4961 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
4962 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
4964 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4966 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
4967 now only if !TARGET_FIX.
4968 (*movsi_nt_vms_fix): New pattern.
4970 2002-02-16 Douglas B Rupp <rupp@gnat.com>
4972 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
4973 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
4974 (alpha_sa_mask, alpha_sa_size): Reflect above change.
4975 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
4976 (alpha_start_function, alpha_expand_epilogue): Likewise.
4977 (unicosmk_gen_dsib): Likewise.
4979 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4981 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
4983 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
4985 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
4986 check_and_change_labels, s390_final_chunkify): Delete.
4987 (s390_split_branches, s390_chunkify_pool): New functions.
4988 (s390_function_prologue): Call them.
4990 * config/s390/s390.h (S390_REL_MAX): Delete.
4991 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
4993 * config/s390/s390.md (cjump, icjump, jump): Fix length
4994 attribute calculation.
4997 2002-02-15 David Edelsohn <edelsohn@gnu.org>
4999 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
5000 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
5002 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
5004 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
5005 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
5006 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
5008 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
5010 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
5012 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
5014 * reload.c (find_dummy_reload): Check that an output register
5015 is valid for its mode.
5017 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
5019 * combine.c (known_cond): After replacing the REG of a SUBREG, try
5022 * function.c (assign_parms): Demote promoted argument passed by
5023 transparent reference.
5025 2001-02-14 Joel Sherrill <joel@OARcorp.com>
5027 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
5028 -Acpu() and -Amachine() to eliminate warnings.
5030 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
5032 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
5034 2002-02-14 Kazu Hirata <kazu@hxi.com>
5036 * config/h8300/h8300-protos.h: Update the prototype for
5038 * config/h8300/h8300.c (const_costs): Treat SET as a little
5039 more expensive operation.
5040 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
5041 reference to const_costs.
5043 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
5045 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
5047 2002-02-14 Jakub Jelinek <jakub@redhat.com>
5050 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
5051 use arguments from newtype.
5053 2002-02-13 Eric Christopher <echristo@redhat.com>
5055 * config/mips/mips.c (override_options): Add check for march/mipsX
5056 on the same command line. Fix error message in cpu processing.
5057 Remove architecture and ISA checks.
5059 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
5061 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
5063 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
5065 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
5067 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
5069 ("*movv8hi_internal1"): Same.
5070 ("*movv16qi_internal1"): Same.
5071 ("*movv4sf_internal1"): Same.
5073 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
5074 not push_reload for altivec modes.
5076 2002-02-13 Joel Sherrill <joel@OARcorp.com>
5078 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
5079 all RTEMS targets including removal of #includes from config/*/rtems*.h
5080 file and adding them to tm_file setting. Added xm_defines=POSIX to
5082 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
5083 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
5084 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
5085 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
5086 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
5087 config/m68k/rtemself.h: Ditto.
5088 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
5089 config/mips/rtems64.h: Ditto.
5090 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
5091 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
5093 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
5094 config/sparc/rtemself.h: Ditto.
5095 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
5096 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
5097 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
5099 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
5100 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
5101 target made more similar to i386-elf.
5102 * config/i386/t-rtems-i386: Added soft float support and multilibs.
5103 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
5104 be similar to config/m68k/t-m68kelf.
5105 * gthr-rtems.h: Encapsulate with extern "C" for C++.
5107 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
5109 * regmove.c (kill_value): Handle subregs.
5111 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
5113 * i386.md (mul patterns): Allow memory operand to be first;
5114 add expanders where needed; fix constraints.
5115 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
5116 Allow memory operand to be the first.
5118 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
5121 2002-02-13 Jakub Jelinek <jakub@redhat.com>
5124 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
5127 2002-02-13 Jakub Jelinek <jakub@redhat.com>
5129 PR optimization/5547:
5130 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
5131 all valid IA-32 address modes involving non-scaled %ebx and
5132 GOT/GOTOFF as displacement.
5134 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
5136 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
5137 after emitting ltorg insns.
5139 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
5140 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
5141 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
5142 *abssf2): Fix "op_type" attribute.
5144 2002-02-13 Douglas B Rupp <rupp@gnat.com>
5146 * mkconfig.sh: Avoid using a subshell redirect.
5147 ($output.T): Change to $(output)T.
5148 (ENABLE_NLS): Remove unneeded undef.
5150 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
5151 * config/alpha/x-vms (libsubdir): Define.
5153 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
5154 register frame procedures. Optimize retrieving context.
5156 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
5157 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
5158 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
5160 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5162 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
5163 Make same change as for find_base_value.
5165 2002-02-13 Kazu Hirata <kazu@hxi.com>
5167 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
5168 of QImode and SImode.
5170 2002-02-13 Kazu Hirata <kazu@hxi.com>
5172 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
5173 length computation of movsi.
5174 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
5176 2002-02-13 Kazu Hirata <kazu@hxi.com>
5178 * config/h8300/h8300.md (subqi3): Tighten the predicate for
5179 operands[2] to register_operand.
5181 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
5183 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
5185 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
5187 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
5188 for altivec_lvx* and altivec_stvx*.
5189 ("*movv4si_internal"): Add constraint for loading from GPRs.
5190 ("*movv8hi_internal1"): Same.
5191 ("*movv16qi_internal1"): Same.
5192 ("*movv4sf_internal1"): Same.
5194 * config/rs6000/rs6000.c (altivec_register_operand): New.
5196 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
5197 altivec_register_operand.
5199 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
5201 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
5204 2002-02-13 Stan Shebs <shebs@apple.com>
5206 * c-typeck.c (digest_init): Handle vectors.
5207 (really_start_incremental_init): Same.
5208 (pop_init_level): Same.
5209 (process_init_element): Same.
5211 * varasm.c (output_constant): Same.
5213 * expr.c (clear_storage): Same.
5214 (store_constructor): Same.
5216 2002-02-12 Eric Christopher <echristo@redhat.com>
5218 * explow.c (hard_function_value): Add comment explaining
5219 signed/unsigned comparison.
5221 2002-02-12 Jakub Jelinek <jakub@redhat.com>
5223 * jump.c (never_reached_warning): Add finish argument.
5224 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
5225 real insn after end.
5226 * rtl.h (never_reached_warning): Adjust prototype.
5227 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
5228 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
5229 never_reached_warning.
5231 2002-02-12 Graham Stott <grahams@redhat.com>
5233 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
5235 2002-02-12 Kazu Hirata <kazu@hxi.com>
5237 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
5238 logical shifts on H8/300.
5239 (shift_alg_si): Improve several shifts on H8/300.
5240 (get_shift_alg): Likewise.
5242 2002-02-12 Graham Stott <grahams@redhat.com>
5244 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
5246 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5248 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
5249 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
5251 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
5253 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
5254 non-CONST_INT through default_assemble_integer.
5255 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
5256 <case 8>: Abort for CONST_DOUBLE.
5258 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5260 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
5262 * config/pa/pa-linux.h (LIB_SPEC): Delete.
5263 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5265 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
5267 * config/stormy16/stormy16.md (zero_extendqihi2): New.
5269 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
5271 * regrename.c (regrename_optimize): Don't accept a
5272 part-clobbered register if the replaced register is not part
5275 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
5276 take padding into account when computing the argument value.
5278 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
5280 * combine.c (try_combine): Apply substitutions in
5281 CALL_INSN_FUNCTION_USAGE too.
5283 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
5285 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
5286 __builtin_altivec_abs*.
5289 * config/rs6000/rs6000.h (rs6000_builtins): Add
5290 ALTIVEC_BUILTIN_ABS*.
5292 * config/rs6000/altivec.h: Use const char for builtins expecting
5294 (vec_abs): New versions for C and C++.
5297 2002-02-10 Kazu Hirata <kazu@hxi.com>
5299 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
5302 2002-02-10 Kazu Hirata <kazu@hxi.com>
5304 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
5305 constant definition from h8300.md.
5306 (FRAME_POINTER_REGNUM): Likewise.
5307 * config/h8300/h8300.md (define_constants): Add FP_REG.
5309 2002-02-10 Kazu Hirata <kazu@hxi.com>
5311 * config/h8300/h8300.c (print_operand): Remove redundant code.
5313 2002-02-10 Kazu Hirata <kazu@hxi.com>
5315 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
5316 * config/h8300/h8300.c (byte_reg): Make it static.
5318 2002-02-10 Richard Henderson <rth@redhat.com>
5321 * c-typeck.c (incomplete_type_error): Handle flexible array members.
5323 2002-02-10 Richard Henderson <rth@redhat.com>
5326 * tree.c (append_random_chars): Don't abort if main_input_filename
5329 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
5331 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
5333 2002-02-10 Kazu Hirata <kazu@hxi.com>
5335 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
5336 (pushhi1): Likewise.
5338 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
5340 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
5341 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
5343 2002-02-09 David O'Brien <obrien@FreeBSD.org>
5345 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
5347 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
5349 2002-02-09 Kazu Hirata <kazu@hxi.com>
5351 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
5352 a half of an SImode register on H8/300.
5354 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
5356 * i386.md (movdi_2): Add missing '!'.
5358 2002-02-09 Kazu Hirata <kazu@hxi.com>
5360 * config/h8300/h8300.h: Fix formatting. Remove commented-out
5363 2002-02-09 Kazu Hirata <kazu@hxi.com>
5365 * config/h8300/h8300.md (length): Correct the distance valid
5366 for the short branch.
5368 2002-02-09 Kazu Hirata <kazu@hxi.com>
5370 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
5372 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
5374 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
5375 registers in SImode.
5376 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
5379 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
5382 Contribute sh64-elf.
5383 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
5384 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
5385 (sh_cannot_modify_jumps_p): New function.
5386 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
5387 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
5388 (sh_ms_bitfield_layout_p): New function.
5389 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
5390 Zack Weinberg <zack@codesourcery.com>
5391 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
5392 expand_simple_binop instead of expand_binop.
5393 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
5394 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
5395 use of .quad and .uaquad.
5396 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
5397 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
5398 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5399 * config/sh/sh.md (movdi_const, movdi_const_32bit,
5400 movdi_const_16bit): Make sure all CONSTs have modes.
5401 (sym2PIC): Ditto, but by adjusting all callers.
5402 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
5403 if the prologue calls the SHmedia argument decoder or register
5405 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5406 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
5407 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
5408 (sh_expand_epilogue): Don't emit USE of return target register.
5409 (prepare_move_operands): Legitimize DImode PIC addresses.
5410 (sh_media_register_for_return): Skip tr0, used to initialize the
5412 (sh_expand_prologue): Remove explicit USE of return register.
5413 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
5414 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
5415 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
5416 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
5417 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
5419 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
5420 (MOVI_SHORI_BASE_OPERAND_P): New.
5421 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
5422 (EXTRA_CONSTRAINT_T): Define in terms of them.
5423 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
5424 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
5425 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
5426 alternatives supporting TARGET_REGS.
5427 (UNSPEC_GOTPLT): New constant.
5428 (movdi split): Move incrementing of LABEL_NUSES...
5429 (movdi_const, movdi_const_32bit): Here. Use
5430 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
5431 (movdi_const_16bit): New.
5432 (call, call_value) [flag_pic]: Use GOTPLT.
5433 (call_pop, call_value_pop): New expands.
5434 (call_pop_compact, call_pop_rettramp): New insns.
5435 (call_value_pop_compact, call_value_pop_rettramp): New insns.
5436 (sibcall) [flag_pic]: Use GOT.
5437 (builtint_setjmp_receiver): Remove bogus, unused expand.
5438 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
5439 (*pt, *ptb, ptrel): New insns.
5440 (sym2GOT): Handle DImode GOT.
5441 (sym2GOTPLT, symGOTPLT2reg): New expands.
5442 (sym2PIC): New expand.
5443 (shcompact_return_tramp): Use GOTPLT to return trampoline.
5444 (shcompact_return_tramp_i): Use return register explicitly.
5445 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
5446 disable flag_reorder_blocks.
5447 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
5448 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
5449 clobbers, for clarity.
5450 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
5451 restoring of r0 in macl as MAYBE_DEAD.
5452 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
5453 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
5454 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
5455 alter_subreg all over.
5456 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
5457 reload, instead of emitting instructions that would require
5459 (casesi_load_media): Add missing modes.
5460 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
5461 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
5462 as used if the argument decoder is called.
5463 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
5464 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
5465 Pmode, then extend it to DImode if necessary.
5466 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
5467 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
5468 constants in FPU-enabled SHmedia, let them be loaded from memory.
5469 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
5470 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
5471 Adjust whitespace in assembly output templates.
5472 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
5473 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
5474 mode of if_then_else.
5475 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
5476 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
5478 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
5479 Joern Rennecke <amylaar@redhat.com>
5480 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
5481 (SUBTARGET_CPP_PTR_SPEC): New.
5482 (SUBTARGET_CPP_SPEC): Remove.
5483 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
5484 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
5485 Fix typo in previous checkin.
5486 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
5487 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
5488 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
5489 Alexandre Oliva <aoliva@redhat.com>
5490 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
5491 what single FP register can hold for SHmedia target.
5492 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
5493 Alexandre Oliva <aoliva@redhat.com>
5494 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
5495 Do not split into SUBREG.
5496 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
5497 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
5498 and added new functions as specified in SH5 ABI r9.
5499 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
5500 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
5502 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
5503 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
5504 gen_consttable_4 and gen_consttable_8. Emit multiple labels
5505 and consttable_window_ends.
5506 2001-06-03 Graham Stott <grahams@redhat,com>
5507 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
5508 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
5509 * config/sh/sh.c (print_operand): Handle floating-point pair,
5510 vector and matrix registers.
5511 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
5512 vector modes into account.
5513 * config/sh/sh.md (movv2sf): Split move between registers into
5515 (movv4sf, movv16sf): Introduce insns that get split only after
5517 * config/sh/shmedia.h: Fix Copyright dates.
5518 * config/sh/ushmedia.h: Likewise. Move loop counter
5519 declarations into conditionals that uses them.
5520 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
5522 * config/sh/sshmedia.h: Fix Copyright dates.
5523 (sh_media_PUTCFG): Fix constraints.
5524 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
5525 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
5526 ptrmemfunc_vbit_in_delta for SH5.
5527 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
5528 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
5529 * invoke.texi: Likewise.
5530 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
5531 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
5532 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
5533 GCC_pop_shmedia_regs_nofpu): New global symbols.
5534 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
5535 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
5536 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
5537 compact function with nonlocal labels.
5538 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
5539 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
5540 (initial_elimination_offset): Account for their stack space.
5541 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
5542 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
5543 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
5544 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
5545 least one of the operands to be a register.
5546 (movv2sf): Likewise. Renamed to movv2sf_i.
5547 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
5548 prepare_move_operands() before emitting SHmedia insns.
5549 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
5550 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
5551 Don't save nor initialize r12. Don't mis-align the stack.
5552 Pad the code with a nop.
5553 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
5555 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
5556 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
5557 [__SHMEDIA__]: Implement.
5558 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
5559 * config/sh/sh.md: Set latency of `pt' closer to reality.
5560 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
5561 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
5562 Set move, load and store type attributes.
5563 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
5564 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
5566 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
5567 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
5568 * config/sh/sh.c (sh_media_register_for_return): New function.
5569 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
5570 branch-target register.
5571 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
5572 * config/sh/sh.md (return_media_i): Use any call-clobbered
5573 branch-target register.
5574 (return_media): If r18 wasn't copied in the prologue, copy it
5576 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
5577 Clear class FP0_REGS.
5578 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
5580 2001-03-08 DJ Delorie <dj@redhat.com>
5581 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
5582 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
5583 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
5584 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
5585 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
5586 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
5587 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
5588 return value correctly for call_cookie.
5589 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
5590 * config/sh/crt1.asm (start): Modified so as to call
5591 ___setup_argv_and_call_main.
5592 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
5593 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
5595 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
5596 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
5597 (STRIP_NAME_ENCODING): Use it.
5598 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
5599 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
5600 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
5601 prepare_scc_operands().
5602 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
5603 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
5604 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
5605 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
5606 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
5607 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
5608 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
5609 used in shcompact_incoming_args.
5610 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
5612 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
5614 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
5616 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
5617 Simplify. Adjust. Add sanity check.
5618 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
5620 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
5622 (udivsi3, divsi3): Use them.
5623 (force_mode_for_call): New insn.
5624 (call, call_value, sibcall_value): Emit it before SHcompact
5626 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
5627 * config/sh/sh.md (call, call_value, sibcall): Make sure the
5628 call cookie is non-NULL before taking its value.
5629 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
5630 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
5631 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
5632 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
5634 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
5635 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
5636 temporary for stack adjusts. Use MACL and MACH to pass
5637 arguments to shcompact_incoming_args.
5638 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
5640 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
5641 (nested_trampoline): Load static chain address into r1.
5642 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
5643 2001-01-07 Alexandre Oliva <aoliva@redhat.com
5644 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
5645 fp_arith_reg_operand().
5646 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
5647 * config/sh/sh.md (casesi): Sign-extend the first two operands,
5648 and use signed compares for them.
5649 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
5650 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
5651 ones properly aligned.
5652 (find_barrier): Account for extra alignment needed for 8-byte wide
5654 (machine_dependent_reorg): Require a label for the second 4-byte
5655 constant after an 8-byte one.
5656 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
5658 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
5659 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
5660 last_float when switching float modes.
5661 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
5662 auto-increment for general-purpose registers.
5663 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
5665 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
5667 * config/sh/sh.c (sh_builtin_saveregs): Support using all
5668 registers for varargs.
5669 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
5670 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
5671 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
5672 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
5673 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
5674 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
5675 call_cookie accordingly.
5676 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
5677 (SHCOMPACT_BYREF): Likewise.
5678 (SHCOMPACT_FORCE_ON_STACK): New macro.
5679 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
5680 (sh_builtin_saveregs): Likewise.
5681 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
5682 shcompact_incoming_args): Use new shift values. Support
5683 sequences of consecutive and non-consecutive pushes/pops.
5684 * config/sh/sh.md (return): Don't explicitly use PR_REG.
5685 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
5686 * config/sh/sh.h (TEXT_SECTION): Define.
5687 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
5688 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
5689 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
5690 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
5691 return values on FPU-enabled SHmedia.
5692 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
5693 FPU-enabled SHmedia.
5694 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
5695 value is returned in a non-FP reg and is not returned by
5697 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
5699 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
5700 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
5701 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
5702 quad-aligned to be passed by callee-copy reference.
5703 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
5704 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
5705 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
5706 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
5707 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
5708 copying low-numbered FP regs to r7 and r8.
5709 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
5710 FP regs to general-purpose regs only if the copy was passed on the
5712 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
5713 copying FP reg to r9.
5714 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
5715 copy FP regs to general-purpose regs only in outgoing calls.
5716 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
5717 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
5719 * config/sh/sh.h (struct sh_args): Document all fields.
5720 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
5721 passed partially on the stack should not consider making
5723 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
5724 stack_regs only for incoming calls. When passing FP args,
5725 make sure there are FP regs available before modifying
5727 (SHCOMPACT_BYREF): Pass double args in general-purpose
5728 registers by reference.
5729 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
5730 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
5731 attempt to generate sibcalls if the caller got any arguments
5733 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
5734 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
5735 to 8-byte boundaries.
5736 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
5737 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
5738 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
5739 stored in the stack.
5740 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
5741 for the offsets to have the ISA bit set.
5742 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
5743 invocation. Use beq instead of bgt to mark end of sequence of
5745 (shcompact_incoming_args): Fix store of r2. Use beq instead of
5746 bgt to mark end of sequence of stores.
5747 * config/sh/sh.c (arith_operand): Don't check whether
5748 CONST_OK_FOR_J for now.
5749 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
5750 instead of long for conversion.
5751 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
5752 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
5753 before passing it to fprintf.
5754 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
5755 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
5756 Call set_fpscr before reading/writing SR.
5757 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
5759 * config/sh/lib1funcs.asm: Add `.align 2' directives before
5761 (FMOVD_WORKS): Define on SH5 with FPU.
5762 (set_fpscr): Define on SH5. Remove separate _fpscr_values
5764 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
5766 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
5767 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
5769 (ia_main_table): Ditto.
5770 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
5771 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
5772 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
5773 the definitions from sh.h.
5774 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
5776 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
5777 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
5778 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
5779 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
5780 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
5781 Increment LABEL_NUSES.
5783 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
5785 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
5787 * config/sh/elf.h (SIZE_TYPE): Likewise.
5788 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
5789 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
5790 shcompact_incoming_args): Load switch table addresses using
5792 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
5793 (NO_BUILTIN_SIZE_TYPE): Define.
5794 (SIZE_TYPE): Don't define.
5795 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
5796 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
5797 definition of __SH5__=32 for -m5-compact-nofpu.
5798 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
5800 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
5801 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
5802 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
5803 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
5804 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
5805 (INSN_LENGTH_ALIGNMENT): Likewise.
5806 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
5807 * config/sh/sh.md (call, call_value, sibcall): Simplify
5808 copying of non-branch-target register.
5809 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
5810 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
5811 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
5812 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
5813 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
5814 floating-point values as structs.
5815 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
5816 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
5817 general-purpose register.
5818 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
5819 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
5820 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
5821 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
5822 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
5823 (ENCODE_SECTION_INFO): Enclose variables and constants in
5825 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
5826 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
5827 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
5828 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
5829 only for LABEL_REFs. For SYMBOL_REFs, prepend
5830 SH_DATALABEL_ENCODING to the symbol name.
5831 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
5833 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
5834 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
5836 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
5837 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
5838 (DATALABEL_REF_P): Don't require CONST.
5839 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
5841 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
5842 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
5844 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
5845 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
5846 Use shallow_copy_rtx and PUT_MODE to change the mode of
5847 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
5848 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
5849 on SHmedia using GENERAL_REGs.
5850 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
5851 bltu_media_i): Fix reversion of conditions.
5852 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
5853 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
5854 * config/sh/sh.c (output_far_jump): Save r13 in macl.
5855 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
5856 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
5857 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
5858 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
5859 (GCC_nested_trampoline): Likewise.
5860 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
5861 * config/sh/sh.c (gen_datalabel_ref): Define.
5862 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
5863 (INITIALIZE_TRAMPOLINE): Likewise.
5864 (TRAMPOLINE_ADJUST_ADDRESS): Define.
5865 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
5866 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
5867 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
5868 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
5869 (ic_invalidate): Adjust for SH5.
5870 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
5871 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
5873 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
5874 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
5875 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
5876 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
5877 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
5878 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
5879 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
5880 * config/sh/sh.c (target_reg_operand): Match only target-branch
5881 registers and pseudos that aren't virtual registers.
5882 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
5883 Copy operands that don't match target_reg_operand to pseudos.
5884 (call_media, call_value_media, sibcall_media): Use
5885 target_reg_operand instead of target_operand.
5886 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
5887 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
5888 * config/sh/sh.c (target_reg_operand): Match hardware registers
5889 other than branch-target registers.
5890 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
5891 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
5892 (fpscr_values) [SH5 == 32]: Define.
5893 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
5894 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
5895 Handle function addresses coming in SUBREGs.
5896 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
5897 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
5898 shcompact_return_trampoline): Use datalabel where appropriate.
5899 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
5900 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
5901 general-purpose register to copy one branch-target register to
5903 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
5904 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
5905 SYMBOL_REFs with VOIDmode.
5906 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
5907 bltu_media_i): New insns.
5908 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
5909 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
5910 (INIT_CUMULATIVE_ARGS): Likewise.
5911 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
5912 * machmode.def (V16SFmode): New mode.
5913 * c-common.c (type_for_mode): Support V2SF and V16SF.
5914 * tree.c (build_common_tree_nodes_2): Likewise.
5915 * tree.h (tree_index): Likewise.
5916 * calls.c (emit_call_1): Take args_so_far. Adjust all
5917 callers. Introduce CALL_POPS_ARGS.
5918 * tm.texi (CALL_POPS_ARGS): Document.
5919 * config/sh/crt1.asm: Implement in SHmedia mode.
5920 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
5921 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
5922 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
5923 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
5924 Implement divsi and udivsi in SHmedia mode. Introduce
5925 SHcompact trampolines.
5926 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
5928 (regno_reg_class): Rewrite.
5929 (fp_reg_names): Remove.
5930 (sh_register_names, sh_additional_register_names): New.
5931 (print_operand): Added `u'. Support SUBREGs in addresses.
5932 Add parentheses around shifted CONSTs.
5933 (output_file_start): Output .mode and .abi directives.
5934 (shiftcosts, addsubcosts, multcosts): Adjust.
5935 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
5936 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
5937 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
5938 bytes, not registers. Take into account the need for the
5939 SHcompact incoming args trampoline. Adjust all callers.
5940 (sh_expand_prologue): Take stack_regs into account. Call
5941 incoming args trampoline. Keep stack aligned as per SH5 ABI.
5942 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
5943 stack aligned as per SH5 ABI.
5944 (sh_builtin_saveregs): Support SH5 ABI.
5945 (sh_build_va_list, sh_va_start): Likewise.
5946 (initial_elimination_offset): Take alignment into account.
5947 Compute location of PR according to the SH5 stack frame.
5948 (arith_reg_operand): Reject branch-target registers.
5949 (shmedia_6bit_operand): New.
5950 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
5951 (target_reg_operand): Match DImode only. Accept SUBREGs.
5952 (target_operand): New.
5953 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
5954 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
5955 SIBCALL_REGS for SHmedia.
5956 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
5957 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
5958 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
5959 (TARGET_SWITCHES): New SH5 flags.
5960 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
5961 VALID_REGISTER_P to disable unsupported registers.
5962 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
5963 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
5964 (FUNCTION_ARG_PADDING): Define.
5965 (FASTEST_ALIGNMENT): Adjust.
5966 (SH_REGISTER_NAMES_INITIALIZER): New.
5967 (sh_register_names): Declare.
5968 (DEBUG_REGISTER_NAMES): Define.
5969 (REGISTER_NAMES): Define based on sh_register_names.
5970 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
5971 (sh_additional_register_names): Declare.
5972 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
5973 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
5974 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
5975 (REGISTER_NATURAL_MODE): Define.
5976 (FIRST_PSEUDO_REGISTER): Adjust.
5977 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
5978 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
5979 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
5980 (VECTOR_MODE_SUPPORTED_P): Define.
5981 (REG_CLASS_CONTENTS): Adjust.
5982 (SMALL_REGISTER_CLASSES): Adjust.
5983 (REG_ALLOC_ORDER): Adjust.
5984 (INDEX_REG_CLASS): Adjust.
5985 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
5986 (CONST_OK_FOR_LETTER_P): Adjust.
5987 (PREFERRED_RELOAD_CLASS): Adjust.
5988 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
5989 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
5990 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
5991 (FIRST_FP_PARM_REG): Adjust.
5992 (CALL_POPS_ARGS): Define.
5993 (FUNCTION_ARG_REGNO_P): Adjust.
5994 (struct sh_args): New fields.
5995 (GET_SH_ARG_CLASS): Adjust.
5996 (INIT_CUMULATIVE_ARGS): Adjust.
5997 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
5998 (FUNCTION_ARG_ADVANCE): Adjust.
5999 (FUNCTION_ARG): Adjust.
6000 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
6001 (FUNCTION_ARG_CALLEE_COPIES): Define.
6002 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
6003 (STRICT_ARGUMENT_NAMING): Define.
6004 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
6005 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
6006 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
6007 (SETUP_INCOMING_VARARGS): Adjust.
6008 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
6009 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
6010 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
6011 (SUBREG_OK_FOR_INDEX_P): Adjust.
6012 (EXTRA_CONSTRAINT_S): Update.
6013 (EXTRA_CONSTRAINT_T): New.
6014 (EXTRA_CONSTRAINT): Adjust.
6015 (GO_IF_LEGITIMATE_INDEX): Adjust.
6016 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
6017 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
6019 (MAX_MOVE_MAX): Define.
6021 (CONST_COSTS): Adjust.
6022 (REGISTER_MOVE_COST): Adjust.
6023 (BRANCH_COST): Adjust.
6024 (TEXT_SECTION_ASM_OP): Adjust.
6025 (DBX_REGISTER_NUMBER): Adjust.
6026 (ASM_OUTPUT_DOUBLE_INT): New.
6027 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
6028 (PREDICATE_CODES): Adjust.
6029 (PROMOTE_MODE): Adjust.
6030 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
6031 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
6032 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
6033 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
6034 (DR0_REG, DR2_REG, DR4_REG): Renumber.
6035 (TR0_REG, TR1_REG, TR2_REG): New.
6036 (XD0_REG): Renumber.
6037 (UNSPEC_COMPACT_ARGS): New.
6038 (type): Added pt and ptabs.
6039 (length): Default to 4 on SHmedia. Default pt length to 12
6040 and 20 on SHmedia32 and SHmedia64, respectively.
6041 (pt): New function unit.
6042 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
6043 Add whitespace between operands of SHmedia instructions.
6045 (adddi3_media, addsi3_media): Adjust constraints.
6046 (subsi3) [SHmedia]: Force operand 1 into a register.
6047 (udivsi3_i1_media, udivsi3_i4_media): New.
6048 (udivsi3): Support SHmedia.
6049 (divsi3_i1_media, divsi3_i4_media): New.
6050 (divsi3): Support SHmedia.
6051 (anddi3, iordi3, xordi3): Adjust constraints.
6052 (zero_extendhidi2, zero_extendqidi2): New.
6053 (extendsidi2, extendhidi2, extendqidi2): New.
6054 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
6055 (pop_e, pop_fpul, pop_4): Likewise.
6056 (movsi_media): Support FP and BT registers.
6057 (movsi_media_nofpu): New. Adjust splits to DImode.
6058 (lduw, ldub): Renamed to zero_extend* above.
6059 (movqi_media): Fix typo.
6060 (movdi_media): Support FP and BT registers.
6061 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
6062 (movdi_const_32bit): New.
6063 (shori_media): Require immediate operand. Use `u' for output.
6064 (movdf_media, movsf_media): Simplified.
6065 (movdf_media_nofpu, movsf_media_nofpu): New.
6066 (movdf, movsf): Adjust
6067 (movv2sf, movv2sf, movv16sf): New.
6068 (beq_media, beq_media_i): Adjust constraints. Don't use
6069 scratch BT register.
6070 (bne_media, bne_media_i): Likewise.
6071 (bgt_media, bgt_media_i): Likewise.
6072 (bge_media, bge_media_i): Likewise.
6073 (bgtu_media, bgtu_media_i): Likewise.
6074 (bgeu_media, bgeu_media_i): Likewise.
6075 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
6076 bunordered): Emit jump insn. Force operands to registers when
6078 (jump_media, jump): Simplify.
6079 (call_compact, call_compact_rettramp): New.
6080 (call_value_compact, call_value_compact_rettramp): New.
6081 (call_media, call_value_media): Simplify.
6082 (sibcall_compact, sibcall_media): New.
6083 (call, call_value): Adjust for SHmedia and SHcompact.
6084 (sibcall, sibcall_value, untyped_call): Likewise.
6085 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
6086 (indirect_jump): Adjust for SHmedia.
6087 (casesi_jump_media): New.
6088 (nop): Re-enable for SHmedia.
6089 (call_site): Restrict to SH1.
6090 (casesi): Adjust for SHmedia.
6091 (casesi_shift_media, casesi_load_media): New.
6092 (return): Explicitly use PR register. Call return trampoline
6094 (return_i): Explicitly use PR register.
6095 (shcompact_return_tramp, shcompact_return_tramp_i): New.
6096 (return_media): Adjust.
6097 (shcompact_incoming_args): New.
6099 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
6100 (movstrsi): Disable on SH5.
6101 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
6102 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
6103 (subsf3, subsf3_media): Likewise.
6104 (mulsf3, mulsf3_media, mac_media): Likewise.
6105 (divsf3, divsf3_media): Likewise.
6106 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
6107 (floatsisf2, fux_truncsfsi2): Likewise.
6108 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
6110 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
6111 (cmpunsf_media, cmpsf): Likewise.
6112 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
6113 (abssf2, abssf2_media): Likewise.
6114 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
6115 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
6116 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
6117 (floatsidf2, fix_truncdfsi2): Likewise.
6118 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
6120 (cmpeqdf_media, cmpgtdf_media): Likewise.
6121 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
6122 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
6123 (absdf2, absdf2_media): Likewise.
6124 (extendsfdf2, extendsfdf2_media): Likewise.
6125 (truncsfdf2, truncsfdf2_media): Likewise.
6126 * config/sh/sh64.h: New file.
6127 * config/sh/t-sh64: New file.
6128 * config/sh/shmedia.h: New file.
6129 * config/sh/ushmedia.h: New file.
6130 * config/sh/sshmedia.h: New file.
6131 * configure.in: Added sh64-*-elf.
6132 * configure: Rebuilt.
6133 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
6134 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
6135 (reg_class_from_letter): Use `b' for TARGET_REGS.
6136 (print_operand): Support `%M', `%m', `AND' and
6137 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
6138 (andcosts): Adjust for SHmedia.
6139 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
6141 (target_reg_operand): New function.
6142 * config/sh/sh-protos.h (target_reg_operand): Declare.
6143 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
6144 FP registers on SH5.
6145 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
6147 (TARGET_REGISTER_P): New macro.
6148 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
6149 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
6150 (EXTRA_CONSTRAINT_S): New macro.
6151 (EXTRA_CONSTRAINT): Adjust.
6152 (FLOAT_TYPE_SIZE): Define to 32.
6153 (Pmode): DImode on SHmedia.
6154 (CONST_COSTS): Adjust for SHmedia literals.
6155 (PREDICATE_CODES): Added target_reg_operand.
6156 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
6157 * config/sh/sh.md: Remove all attrs from SHmedia insns.
6158 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
6159 (cmpdi): Accept SHmedia.
6160 (movdicc_false, movdicc_true): New insns.
6161 (movdicc): New expand.
6162 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
6164 (addsi3_media): Match `S' constraint.
6165 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
6166 (negdi2): Expand for SHmedia.
6167 (one_cmpldi2): New expand.
6168 (zero_extendsidi2): Change from expand to insn.
6169 (extendsidi2): Add constraints.
6170 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
6171 LD/ST address. Fix SI immediate loading split.
6172 (movhi_media, movqi_media, lduw, ldub): New insns.
6173 (movhi, movqi): Accept SHmedia.
6174 (shori_media, movdi_media): Relax input constraints. Split
6176 (movdf_media, movsf_media): New insn. New split to movdi.
6177 (movdf, movsf): Match on SHmedia.
6178 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
6179 bgeu_media): New insns and splits. New insns with `_i' suffix.
6180 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
6181 (bunordered): New expand.
6182 (jump_compact): Renamed from `jump'.
6183 (jump_media): New insn.
6185 (call_media, call_value_media): New insns.
6186 (call, call_value): Adjust.
6187 (indirect_jump_compact): Renamed from `indirect_jump'.
6188 (indirect_jump_media): New insn.
6189 (indirect_jump): New expand.
6190 (untyped_call, return): Accept SHmedia.
6191 (return_media): New insn.
6192 (prologue, epilogue, blockage): Accept SHmedia.
6193 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
6194 (sunordered): New expand.
6195 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
6196 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
6197 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
6198 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
6199 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
6200 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
6201 abssf2_media): New insns.
6202 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
6203 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
6204 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
6205 floatdidf2, floatsidf2_media, fix_truncdfdi2,
6206 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
6207 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
6208 absdf2_media): New insns.
6209 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
6210 (extendsfdf2_media, truncdfsf2_media): New insns.
6211 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
6212 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
6213 * config/sh/sh.h (CONST_OK_FOR_J): Document.
6214 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
6215 * config/sh/sh.md (adddi3): New expand.
6216 (adddi3_media, adddi3z_media): New insns.
6217 (adddi3_compact): Renamed from adddi3.
6218 (addsi3_media): Use add.l r63 to add constant zero.
6219 (subdi3): New expand.
6220 (subdi3_media): New insn.
6221 (subdi3_compact): Renamed from subdi3.
6222 (mulsidi3): New expand.
6223 (mulsidi3_media): New insn.
6224 (mulsidi3_compact): Renamed from mulsidi3.
6225 (umulsidi3): New expand.
6226 (umulsidi3_media): New insn.
6227 (umulsidi3_compact): Renamed from umulsidi3.
6228 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
6229 (ashlsi3, ashrsi3, lshrsi3): Use them.
6230 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
6231 (ashldi3, ashrdi3, lshrdi3): Use them.
6232 (zero_extendsidi2): New expand.
6233 (extendsidi2): New insn.
6234 (movsi_media): New insn. Split to movdi to load constants.
6235 (movsi): Enable for shmedia.
6236 (movdi_media): New insn. Use shori_media to load wide constants.
6237 (short_media): New insn.
6238 (movdi): Enable for shmedia.
6239 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
6240 * config/sh/sh.h (CPP_SPEC): Added `m5'.
6241 (SUBTARGET_CPP_SPEC): Added `!m5'.
6242 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
6243 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
6244 to all other SH variants.
6245 (TARGET_DEFAULT): Set to SH1_BIT.
6246 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
6247 (BITS_PER_WORD): Raise to 64 on shmedia.
6248 (MAX_BITS_PER_WORD): Change to 64.
6249 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
6250 (INT_TYPE_SIZE): Keep as 32.
6251 (UNITS_PER_WORD): Raise to 8 on shmedia.
6252 (MIN_UNITS_PER_WORD): Keep as 4.
6253 (POINTER_SIZE): Raise to 64 on shmedia.
6254 (CONST_OK_FOR_J): New macro.
6255 (CONST_OK_FOR_LETTER_P): Use it.
6256 (processor_type): Add PROCESSOR_SH5.
6257 * config/sh/sh.md: Conditionalize all expands, insns and
6258 splits to TARGET_SH1.
6260 (addsi3_compact): Renamed from...
6261 (addsi3): Now an expand.
6262 (addsi3_media, subsi3_media): New insns.
6263 (subsi3): Don't negate constants with SHmedia.
6265 * hooks.c: New file.
6266 * hooks.h: New file.
6267 * Makefile.in (HOOKS_H): New.
6268 (TARGET_DEF_H): Added $(HOOKS_H).
6269 (OBJS): Added hooks.o.
6270 (cfgcleanup.o, bb-reorder.o): Added target.h.
6271 (hooks.o): Added dependencies.
6272 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
6273 (TARGET_INITIALIZER): this.
6274 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
6275 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
6276 * bb-reorder.c: Include target.h.
6277 (reorder_basic_blocks): Skip if cannot modify jumps.
6278 * cfgcleanup.c: Include target.h.
6279 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
6281 2002-02-08 Chris Demetriou <cgd@broadcom.com>
6283 * config/mips/mips.md (casesi_internal, casesi_internal_di):
6284 Protect jump delay slot instructions with .set noreorder and
6287 2002-02-08 Chris Demetriou <cgd@broadcom.com>
6289 * config/mips/mips.md (casesi_internal_di): Calculate
6290 the index into the target offset table correctly.
6292 2002-02-08 Richard Henderson <rth@redhat.com>
6294 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
6295 * final.c (output_addr_const): Accept and discard SUBREG.
6296 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
6297 mark them unknown instead.
6298 (simplify_subtraction): Handle RTX_UNKNOWN.
6299 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
6301 2002-02-08 David Edelsohn <edelsohn@gnu.org>
6303 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
6305 2002-02-08 Richard Henderson <rth@redhat.com>
6307 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
6309 2002-02-08 Andreas Jaeger <aj@suse.de>
6311 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
6312 * config/i386/t-linux64: New file.
6314 2002-02-08 Jakub Jelinek <jakub@redhat.com>
6316 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
6317 * c-parse.in (compstmt): Clear last_expr_type.
6319 2002-02-07 Richard Henderson <rth@redhat.com>
6321 * loop.c (strength_reduce): Sink final_value when not
6324 2002-02-07 David O'Brien <obrien@FreeBSD.org>
6326 * config/sparc/freebsd.h: Fix mismatched spec {.
6328 2002-02-07 Richard Henderson <rth@redhat.com>
6330 * cfgrtl.c: Include recog.h and insn-config.h.
6331 (keep_with_call_p): Fix general_operand invocation.
6332 * Makefile.in (cfgrtl.o): Update dependencies.
6334 2002-02-07 Kazu Hirata <kazu@hxi.com>
6336 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
6337 comment. Accept HImode only if TARGET_H8300.
6339 2002-02-07 Eric Christopher <echristo@redhat.com>
6341 * config/mips/crtn.asm: Cleanup #ifdefs.
6343 2002-02-07 Eric Christopher <echristo@redhat.com>
6345 * config/mips/crti.asm: Add changes for mips16. mips16 uses
6346 register 7 as RA instead of $31.
6347 * config/mips/crtn.asm: Ditto.
6348 * config/mips/mips.c (mips_move_2words): Add case for
6349 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
6350 (compute_frame_size): Fix typo.
6351 (save_restore_insns): Ditto. Make documentation about using
6352 register $7 as return register more precise.
6353 (mips_expand_epilogue): Fix comment. Add code to work around not
6354 being able to add to the stack pointer directly.
6355 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
6356 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
6359 2002-02-07 Tom Rix <trix@redhat.com>
6361 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
6362 immediates in ldu and stdu DS opcode field.
6363 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
6364 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
6365 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
6367 2002-02-07 Jeff Sturm <jsturm@one-point.com>
6369 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
6370 offset for stack bias.
6372 2002-02-07 H.J. Lu <hjl@gnu.org>
6374 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
6376 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
6378 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
6380 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
6382 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
6383 * i386.c (x86_order_regs_for_local_alloc): New global function.
6384 * i386.h (REG_ALLOC_ORDER): CLeanup.
6385 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
6387 2002-02-07 Richard Henderson <rth@redhat.com>
6389 PR optimization/2463
6390 * alias.c (find_base_value): Recall base values for fixed hard regs.
6391 * loop.c (loop_regs_update): Don't use single_set on non-insns.
6393 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
6395 * config/mips/mips.md (define_delay) [mips16]: Adjust required
6398 2002-02-06 Richard Henderson <rth@redhat.com>
6401 * stmt.c (resolve_operand_name_1): Take more care with mixed
6402 named and unnamed operands.
6404 2002-02-06 Janis Johnson <janis187@us.ibm.com>
6405 Jan Hubicka <jh@suse.cz>
6407 * loop.c (remove_constant_addition): Avoid clobbering a shared
6410 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
6412 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
6413 * config/s390/t-linux64: New file.
6414 * config/s390/libgcc-glibc.ver: New file.
6416 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
6418 * config/s390/linux64.h: Delete file.
6419 * config/s390/s390x.h: New file.
6420 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
6421 as target header file.
6422 * config/s390/linux.h (TARGET_VERSION): Define depending on
6423 DEFAULT_TARGET_64BIT.
6424 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
6425 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
6426 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
6427 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
6428 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
6429 (EXTRA_SPEC): New define.
6430 * config/s390/s390.h (TARGET_VERSION): Define depending on
6431 DEFAULT_TARGET_64BIT.
6432 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
6434 2002-02-06 Jason Merrill <jason@redhat.com>
6436 * c-decl.c (finish_function): Warn about a non-void function with
6437 no return statement and no abnormal exit.
6438 (current_function_returns_abnormally): New variable.
6439 (start_function): Clear it.
6440 (struct c_language_function): Add returns_abnormally.
6441 (push_c_function_context): Save it.
6442 (pop_c_function_context): Restore it.
6443 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
6444 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
6445 an explicit return type.
6446 * c-tree.h: Declare current_function_returns_abnormally.
6447 (C_FUNCTION_IMPLICIT_INT): New macro.
6448 * c-typeck.c (build_function_call): Set it.
6449 (c_expand_return): Set current_function_returns_value even if the
6452 2002-02-06 Jakub Jelinek <jakub@redhat.com>
6455 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
6456 unsafe for reevaluation.
6458 2002-02-06 Jakub Jelinek <jakub@redhat.com>
6461 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
6462 EXPR_STMT, but COMPOUND_STMT, recurse into it.
6464 2002-02-06 Richard Henderson <rth@redhat.com>
6466 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
6467 be a general_operand. Dest for function value must be a pseudo.
6469 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
6471 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
6472 as SYMBOL_REFs from the constant pool.
6474 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
6476 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
6477 passed by invisible reference.
6479 2002-02-05 Richard Henderson <rth@redhat.com>
6481 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
6483 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
6485 Implement using "base addresses" in insn operands as default.
6486 * config/mmix/mmix.c (mmix_conditional_register_usage): if
6487 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
6488 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
6489 used to read the rtx value.
6490 (mmix_target_asm_function_epilogue): Fix spacing.
6491 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
6492 (mmix_legitimate_address): Ditto.
6493 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
6494 should be loaded with a GETA insn. Don't allocate needless extra
6495 char for nul termination and fix misleading comment.
6496 (mmix_print_operand_address): Handle constants if
6497 TARGET_BASE_ADDRESSES.
6498 (mmix_output_register_setting): Use base addressing if
6499 TARGET_BASE_ADDRESSES and the number of insns is 3.
6500 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
6501 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
6502 to use R as constraint, add LDA to match s.
6503 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
6504 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
6505 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
6506 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
6507 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
6508 order with other fixed registers.
6509 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
6510 other parameter/call-clobbered registers.
6511 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
6512 -mbase-addresses, -mno-base-addresses.
6513 (MMIX Options): Ditto.
6515 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
6517 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
6519 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
6521 * config/rs6000/altivec.h: Change elem to _S_elem.
6523 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
6525 * config/netbsd.h (WCHAR_TYPE): Define.
6526 (WCHAR_TYPE_SIZE): Ditto.
6528 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
6529 (WCHAR_UNSIGNED): Ditto.
6530 (WCHAR_TYPE_SIZE): Ditto.
6532 * config/arm/netbsd.h: Likewise.
6533 * config/i386/netbsd-elf.h: Likewise.
6534 * config/i386/netbsd.h: Likewise.
6535 * config/m68k/netbsd-elf.h: Likewise.
6536 * config/m68k/netbsd.h: Likewise.
6537 * config/ns32k/netbsd.h: Likewise.
6538 * config/sparc/netbsd.h: Likewise.
6539 * config/vax/netbsd.: Likewise.
6541 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
6543 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
6544 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
6545 (TARGET_INITIALIZER): this.
6546 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
6547 (BITFIELD_NBYTES_LIMITED): Markup fix.
6548 * tree.h (default_ms_bitfield_layout_p): Declare.
6549 (record_layout_info): Added prev_field.
6550 * tree.c (default_ms_bitfield_layout_p): New fn.
6551 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
6552 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
6553 * stor-layout.c: Include target.h.
6554 (start_record_layout): Initialize prev_field.
6555 (place_field): Handle MS bit-field layout, and disregard
6556 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
6557 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
6558 * Makefile.in (stor-layout.o): Adjust dependencies.
6560 2002-02-05 Jason Merrill <jason@redhat.com>
6562 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
6564 2002-02-05 Andreas Jaeger <aj@suse.de>
6566 * crtstuff.c: Fix comments.
6568 2002-02-05 Richard Henderson <rth@redhat.com>
6571 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
6572 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
6575 * config/mips/mips.c (function_arg): Handle TImode.
6576 (function_arg_advance): Likewise.
6578 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
6580 * config/rs6000/altivec.h (vec_step_help): Rename to
6583 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
6585 * config/rs6000/altivec.h: Fix typos.
6587 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
6589 * config/arm/netbsd.h: Correct a comment.
6591 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
6593 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
6594 building void typed builtins.
6596 * config/rs6000/altivec.h (vec_ld*): Fix typos.
6597 (vec_step): Implement for C++.
6599 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6601 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
6603 2002-02-04 Richard Henderson <rth@redhat.com>
6605 * combine.c (nonzero_bits): Re-introduce special case for
6606 sp/fp/ap wrt REGNO_POINTER_ALIGN.
6608 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
6610 * doc/extend.texi: Warn about unsupported usage of altivec
6613 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
6614 (altivec_predicate_*): New.
6616 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
6617 Add C++ version of vec_*() functions.
6619 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
6620 (bdesc_2arg): Remove altivec predicates.
6621 (altivec_expand_builtin): Handle predicates.
6622 (altivec_init_builtins): Handle predicates.
6623 (altivec_expand_predicate_builtin): New.
6625 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6627 * pa.c (DO_FRAME_NOTES): Move forward.
6628 (store_reg): Revise handling of frame notes.
6629 (load_reg): Likewise.
6630 (set_reg_plus_d): Likewise.
6631 (hppa_expand_prologue): Likewise.
6632 (hppa_expand_epilogue): Likewise.
6634 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6636 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
6638 2002-02-04 Jakub Jelinek <jakub@redhat.com>
6640 PR c/4475, c++/3780:
6641 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
6642 * c-common.h (SWITCH_TYPE): Define.
6643 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
6644 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
6645 Rename spareness variable to sparseness.
6646 (expand_end_case_type): Renamed from expand_end_case, use orig_type
6647 if non-NULL instead of TREE_TYPE (orig_index).
6648 * tree.h (expand_end_case_type): Renamed from expand_end_case.
6649 (expand_end_case): Define using expand_end_case_type.
6650 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
6651 to expand_end_case_type.
6652 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
6654 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6656 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
6657 (BIGGEST_ALIGNMENT): Change to 128.
6659 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6661 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
6663 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6665 * pa.md (call_internal_reg_64bit): Remove unused variable.
6667 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
6669 * config/arm/arm.h (machine_function): Add uses_anonymous_args
6671 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
6672 * config/arm/arm.c (current_function_anonymous_args): Delete,
6673 replace uses with cfun->machine->uses_anonymous_args.
6674 (arm_reorg): Do not reset uses_anonymous_args.
6676 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
6677 any geenral register.
6679 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
6681 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
6684 2002-02-04 Richard Henderson <rth@redhat.com>
6686 * combine.c (force_to_mode): Remove STACK_BIAS code.
6687 (nonzero_bits): Likewise. Replace sp/fp special case with
6688 REGNO_POINTER_ALIGN.
6690 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
6691 (HARD_FRAME_POINTER_REGNUM): New.
6692 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
6693 (FIXED_REGS, CALL_USED_REGS): Update.
6694 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
6695 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
6696 (HARD_REGNO_NREGS): Update for SFP.
6697 (STACK_POINTER_OFFSET): Include bias here ...
6698 (FIRST_PARM_OFFSET): ... not here.
6699 (STACK_BIAS): Remove.
6700 (INIT_EXPANDERS): New.
6701 (STARTING_FRAME_OFFSET): Do not include bias.
6702 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
6703 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
6704 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
6705 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
6706 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
6707 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
6708 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
6709 (MUST_SAVE_REGISTER): Likewise.
6710 (sparc_flat_function_prologue): Likewise.
6711 (sparc_flat_function_epilogue): Likewise.
6712 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
6713 (sparc_init_modes): SFP is GENERAL_REGS.
6714 (sparc_builtin_saveregs): SFP does not have bias applied.
6716 2002-02-04 Richard Henderson <rth@redhat.com>
6718 * config/alpha/alpha.c (current_function_is_thunk): Don't check
6719 current_function_is_thunk.
6720 (alpha_sa_mask): Distinguish between current_function_is_thunk
6721 called from ASM_OUTPUT_MI_THUNK and not.
6722 (alpha_does_function_need_gp): Thunks always need gp.
6723 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
6724 (alpha_output_mi_thunk_osf): New.
6725 * config/alpha/alpha-protos.h: Update.
6726 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
6728 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
6730 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
6731 function types, not when they're taken away.
6733 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
6735 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
6736 CODE_LABEL and jump table when replacing a table jump with a
6739 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6741 * config/s390/s390-protos.h (legitimize_la_operand,
6742 s390_secondary_input_reload_class, s390_plus_operand,
6743 s390_expand_plus_operand): Add prototypes.
6745 config/s390/s390.c (s390_secondary_input_reload_class,
6746 s390_plus_operand, s390_expand_plus_operand): New functions.
6748 (struct s390_address): New member 'pointer'.
6749 (s390_decompose_address): Compute it.
6750 (legitimate_la_operand_p): Use it.
6751 (legitimize_la_operand): New function.
6752 (movti, movdi, movdf splitters): Call it.
6754 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
6755 (PREDICATE_CODES): Add s390_plus_operand.
6757 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
6758 (la_ccclobber): Allow GENERAL_REGS as output operand.
6760 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
6761 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
6762 (*la_64, *la_31, reload_indi, reload_insi): ... these.
6764 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6766 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
6767 register names for regular asm () construct.
6769 2002-02-04 Jakub Jelinek <jakub@redhat.com>
6771 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
6774 2002-02-04 Jakub Jelinek <jakub@redhat.com>
6776 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
6779 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
6781 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
6782 constant pool to be identical by string address and index.
6784 2002-02-04 Anthony Green <green@redhat.com>
6786 * output.h (SECTION_OVERRIDE): Define.
6787 * varasm.c (named_section): Obey SECTION_OVERRIDE.
6789 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
6791 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
6792 by existing arm*-*-netbsd* (a.out) target.
6793 (ns32k-*-netbsdelf*): Likewise.
6794 (sparc-*-netbsdelf*): Likewise.
6795 (vax-*-netbsdelf*): Likewise.
6797 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
6799 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
6800 headers and libobjc headers.
6802 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
6804 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
6805 (_mingw.h): Remove duplicate include.
6807 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
6809 * config.gcc: Set cpu_type to m68k for 68010, as well.
6810 (m68010-*-netbsdelf*): New...
6811 (m68k*-*-netbsdelf*): ...targets.
6812 * config/m68k/netbsd-elf.h: New file.
6814 2002-02-02 Kazu Hirata <kazu@hxi.com>
6816 * config/h8300/h8300.c (hand_list): Move inside function_arg.
6818 2002-02-02 Kazu Hirata <kazu@hxi.com>
6820 * config/h8300/h8300.c (h8_push_ops): Move inside
6822 (h8_pop_ops): Likewise.
6823 (h8_move_ops): Likewise.
6825 2002-02-02 Kazu Hirata <kazu@hxi.com>
6827 * config/h8300/h8300.c (os_task): Make it static.
6828 (monitor): Likewise.
6829 (pragma_saveall): Likewise.
6831 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
6833 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
6834 constant is a valid sign-extension for Pmode.
6836 2002-02-02 Kazu Hirata <kazu@hxi.com>
6838 * config/h8300/h8300.c: Fix formatting.
6840 2002-02-02 Kazu Hirata <kazu@hxi.com>
6842 * config/h8300/h8300.md: Fix formatting.
6844 2002-02-02 Kazu Hirata <kazu@hxi.com>
6846 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
6847 predicates of operands[1]. Split the patterns for each
6850 2002-02-02 Kazu Hirata <kazu@hxi.com>
6852 * config/h8300/h8300.md (xor patterns): Tighten the predicates
6853 of operands[1] to register_operand.
6855 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
6857 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
6858 * cpphash.c (_cpp_init_hashtable): Similarly.
6859 * cppinit.c (cpp_create_reader): Default the signed_char flag.
6860 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
6861 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
6862 (cpp_handle_option): Handle the new options.
6863 * cpplex.c (cpp_interpret_charconst): Use new flag.
6864 * cpplib.h (struct cpp_options): New member signed_char.
6865 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
6866 (cpp_options): Handle -fsigned-char and -funsigned-char.
6867 (static_specs): Remove signed_char_spec.
6868 (do_spec1): Don't handle %c.
6869 * system.h: Poison SIGNED_CHAR_SPEC.
6870 * tradcif.y (yylex): Use flag_signed_char.
6871 * tradcpp.h (flag_signed_char): New.
6872 * tradcpp.c (flag_signed_char): New.
6873 (main): Handle new command-line options.
6874 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
6876 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
6877 * avr/avr.h: Remove old comments.
6878 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
6879 (CC1_SPEC): Pass -fsigned-char if -mic*.
6880 (SIGNED_CHAR_SPEC): Remove.
6882 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
6884 2002-02-01 Eric Christopher <echristo@redhat.com>
6886 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
6887 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
6888 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
6889 (ASM_OUTPUT_REG_POP): Ditto.
6891 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
6893 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
6896 2002-02-02 Jakub Jelinek <jakub@redhat.com>
6898 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
6900 2002-02-02 Jakub Jelinek <jakub@redhat.com>
6903 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
6906 2002-02-01 Janis Johnson <janis187@us.ibm.com>
6908 * cfganal.c: Include tm_p.h.
6909 (keep_with_call_p): Fix the test that determines if a register holds
6910 the return value of a call.
6912 2002-02-01 DJ Delorie <dj@redhat.com>
6914 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
6915 we are given conflicting registers, switch to the other one we
6916 had allocated for us.
6917 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
6918 as TImode so we know when the "other" register is available.
6920 2002-02-01 David O'Brien <obrien@FreeBSD.org>
6922 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
6925 2002-02-01 Janis Johnson <janis187@us.ibm.com>
6927 * cfganal.c (keep_with_call_p): New function.
6928 (flow_call_edges_add): Prevent splitting a block between a call and
6929 a single-set instruction that should be kept in the same block.
6931 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
6933 * doc/install.texi (avr): Update outdated URL.
6935 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
6937 * config/stormy16/stormy16.md (pushqi): New.
6941 (movhi): Remove stack operands.
6943 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
6944 nonimmediate_nonstack_operand.
6945 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
6947 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
6950 2002-01-31 Jason Merrill <jason@redhat.com>
6952 * Makefile.in (c-parse.c): Handle .output file.
6953 * objc/Make-lang.in (objc-parse.c): Likewise.
6955 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
6957 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
6958 the -me[lb] option is given. Don't output the default flag
6961 2002-01-31 Zack Weinberg <zack@codesourcery.com>
6963 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
6964 the primary source file; this has not been done yet.
6965 * c-decl.c (c_expand_body): Reset input_filename from
6966 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
6968 2002-01-31 Kazu Hirata <kazu@hxi.com>
6970 * rtlanal.c (subreg_regno_offset): Do not use
6971 SUBREG_REGNO_OFFSET.
6972 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
6973 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
6975 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
6977 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
6978 version rather than GNATS version in --version output.
6980 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
6982 * ifcvt.c (noce_process_if_block): Make a copy of the destination
6983 when copying back from a temporary.
6985 2002-01-30 Richard Henderson <rth@redhat.com>
6987 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
6988 and new_dest are the same.
6990 2002-01-30 Richard Henderson <rth@redhat.com>
6993 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
6994 * rtl.c (note_insn_name): Update.
6995 * emit-rtl.c (remove_unnecessary_notes): Kill it.
6996 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
6997 to perform loop rotation.
6998 (expand_exit_loop_top_cond): New.
6999 * tree.h (expand_exit_loop_top_cond): Declare it.
7000 * c-semantics.c (genrtl_while_stmt): Use it.
7001 (genrtl_for_stmt): Likewise.
7003 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
7005 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
7006 arguments to 64-bit boundaries on 64-bit ABIs.
7008 2002-01-30 Steve Ellcey <sje@cup.hp.com>
7010 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
7012 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
7014 * c-decl.c (grokdeclarator): Handle type being a typedef for an
7017 2002-01-30 David O'Brien <obrien@FreeBSD.org>
7019 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
7020 * config/sparc/sparc_bi.h: Remove file.
7021 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
7023 2002-01-30 Richard Henderson <rth@redhat.com>
7025 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
7027 2002-01-30 Zack Weinberg <zack@codesourcery.com>
7029 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
7031 2002-01-30 Jason Merrill <jason@redhat.com>
7033 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
7034 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
7035 (reg_save): Use DW_CFA_offset_extended_sf instead.
7037 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
7039 2002-01-29 Jakub Jelinek <jakub@redhat.com>
7041 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
7044 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
7046 * rs6000.md ("*call_value_local32"): Remove constraints.
7047 ("*call_value_local64"): Same.
7048 ("*call_value_indirect_nonlocal_aix32"): Same.
7049 ("*call_value_nonlocal_aix32"): Same.
7050 ("*call_value_indirect_nonlocal_aix64"): Same.
7051 ("*call_value_nonlocal_aix64"): Same.
7052 ("*call_value_nonlocal_sysv"): Same.
7054 2002-01-29 Richard Henderson <rth@redhat.com>
7056 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
7058 2002-01-29 Richard Henderson <rth@redhat.com>
7060 * expr.c (force_operand): Ignore flag_pic for detecting pic
7062 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
7063 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
7064 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
7065 instead of open-coded loop.
7066 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
7067 be fixed when in use.
7069 2002-01-29 Richard Henderson <rth@redhat.com>
7071 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
7072 * sched-rgn.c (propagate_deps): Update them.
7073 * sched-deps.c (sched_analyze_insn): Update them. Flush the
7074 clobbers list when either gets too long.
7076 2002-01-29 Jakub Jelinek <jakub@redhat.com>
7078 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
7079 and INDEX_REGS the same as GENERAL_REGS.
7080 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
7082 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
7084 * tree.c (build_nonstandard_integer_type): Correct prototype.
7086 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
7088 * config/s390/s390.md (movstrsico, movstrdix_64,
7089 movstrsix_31): Remove, replace by ...
7090 (movstrdi_short, movstrsi_short, movstrdi_long,
7091 movstrsi_long): ... these. New.
7092 (movstrdi, movstrsi): Adapt.
7094 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
7095 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
7096 Remove unnecessary CC clobber.
7097 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
7098 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
7100 (divmoddi4): Don't partially initialize TImode register.
7102 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
7104 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
7106 2002-01-29 Richard Henderson <rth@redhat.com>
7108 * flow.c (print_rtl_and_abort): Remove.
7109 (print_rtl_and_abort_fcn): Remove.
7110 (verify_local_live_at_start): Use dump_bb instead.
7111 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
7112 (verify_wide_reg_1): Return 2 on mode test failure.
7114 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
7116 PR c/3325, c/3326, c/2511, c/3347
7117 * c-decl.c (enum_decl_context): Remove BITFIELD.
7118 (grokdeclarator): Take bitfield width as an input.
7119 Ensure bitfields are given the correct type. Perform
7120 bitfield width validation with build_bitfield_integer_type
7121 rather than waiting for finish_struct.
7122 (grok_typename, grok_typename_in_parm_context, start_decl,
7123 push_parmdecl, grokfield, start_function): Update calls to
7125 (build_bitfield_integer_type): New function.
7126 (finish_struct): Move bitfield validation to grokdeclarator
7127 and build_bitfield_integer_type.
7128 * tree.c (build_nonstandard_integer_type): New function.
7129 * tree.h (build_nonstandard_integer_type): New prototype.
7131 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
7133 2002-01-29 Jakub Jelinek <jakub@redhat.com>
7136 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
7137 don't ignore unrecognized -W* options.
7138 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
7139 * cpplib.h (cpp_handle_option): Adjust prototype.
7140 * c-decl.c (c_decode_options): Pass 0 as last argument to
7144 * gcc.c (cpp_unique_options): Split from cpp_options.
7145 (cpp_options): Source cpp_unique_options.
7146 (default_compilers): Use cpp_unique_options instead of cpp_options
7147 when used together with cc1_options.
7148 (static_specs): Add cpp_unique_options.
7149 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
7150 when used together with cc1_options.
7152 2002-01-29 Kazu Hirata <kazu@hxi.com>
7154 * config/h8300/h8300-protos.h: Update the prototype of
7156 * config/h8300/h8300.c (output_a_shift): Remove an unused
7157 argument 'insn'. Remove redundant code.
7158 * config/h8300/h8300.md: Adust to the new prototype of
7161 2002-01-29 Kazu Hirata <kazu@hxi.com>
7163 * config/h8300/h8300-protos.h: Update the prototypes of
7164 emit_a_rotate and expand_a_rotate.
7165 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
7166 first argument to 'enum rtx_code'.
7167 (expand_a_rotate): Likewise.
7169 2002-01-28 Kazu Hirata <kazu@hxi.com>
7171 * config/h8300/h8300-protos.h: Update the prototype of
7173 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
7175 * config/h8300/h8300.md: Adjust to the new prototype.
7177 2002-01-28 Kazu Hirata <kazu@hxi.com>
7179 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
7182 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
7184 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
7185 is a fixed register before returning pic_offset_table_rtx.
7186 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
7187 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
7189 2002-01-28 Jason Merrill <jason@redhat.com>
7191 * dwarf2.h: Sync with src version.
7193 2002-01-28 Paul Koning <pkoning@equallogic.com>
7195 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
7197 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
7198 * doc/extend.texi (__builtin_prefetch): Update documentation:
7199 first argument is now const void ptr.
7201 2002-01-28 Kazu Hirata <kazu@hxi.com>
7203 * config/h8300/h8300-protos.h: Remove an unused prototype.
7205 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
7207 * toplev.c (lang_independent_init): Round up identifier size.
7209 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
7211 * config.gcc: Revert previous change.
7213 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
7215 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
7217 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
7219 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
7220 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
7221 other non-elf netbsd config frags.
7222 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
7223 collect2 will does that.
7224 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
7225 shared-lib frobbing will work.
7227 2002-01-28 Kazu Hirata <kazu@hxi.com>
7229 * config/h8300/h8300.h: Fix formatting.
7230 * config/h8300/h8300.md: Likewise.
7232 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
7234 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
7235 the old, removed AAA_standards fix.
7236 * fixinc/fixincl.x: Rebuilt.
7238 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
7240 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
7241 atexit call in crtbegin, hooked in after call to frame_dummy;
7242 register EH before registering __fini__start.
7244 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
7246 * config/rs6000/altivec.h: Remove spurious semicolons.
7248 2002-01-27 Kazu Hirata <kazu@hxi.com>
7250 * config/h8300/h8300.md: Replace dead bit extraction patterns
7251 with ones that work.
7253 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7255 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
7256 if not STRICT_ALIGNMENT.
7257 * rtl.h (MEM_ALIGN): Likewise.
7259 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
7261 * doc/invoke.texi (-fdump-translation-unit): Revert this
7262 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
7264 2002-01-27 Kazu Hirata <kazu@hxi.com>
7266 * config/h8300/h8300.md (define_constants): New.
7267 (anonymous patterns) Use defined constants appropriately.
7269 2002-01-27 Kazu Hirata <kazu@hxi.com>
7271 * config/h8300/h8300.c (function_arg): Remove redundant code.
7273 2002-01-26 Richard Henderson <rth@redhat.com>
7275 * sched-deps.c (reg_pending_uses_head): New.
7276 (reg_pending_barrier): Rename from reg_pending_sets_all.
7277 (find_insn_list): Don't mark inline.
7278 (find_insn_mem_list): Remove.
7279 (add_dependence_list, add_dependence_list_and_free): New.
7280 (flush_pending_lists): Replace only_write param with separate
7281 for_read and for_write parameters. Update all callers. Use
7282 add_dependence_list_and_free.
7283 (sched_analyze_1): Do not add reg dependencies here; just set
7284 the pending bits. Use add_dependence_list.
7285 (sched_analyze_2): Likewise.
7286 (sched_analyze_insn): Replace schedule_barrier_found with
7287 reg_pending_barrier. Add all dependencies for pending reg
7288 uses, sets, and clobbers.
7289 (sched_analyze): Don't add reg dependencies for calls, just
7290 set pending bits. Use regs_invalidated_by_call. Treat
7291 sched_before_next_call as a normal list, not a fake insn.
7292 (init_deps): No funny init for sched_before_next_call.
7293 (free_deps): Free pending mems lists. Don't zero reg_last.
7294 (init_deps_global): Init reg_pending_uses.
7295 (finish_deps_global): Free it.
7296 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
7297 (find_insn_mem_list): Remove.
7298 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
7299 (propagate_deps): Use them. Zero temp mem lists.
7301 2002-01-26 Richard Henderson <rth@redhat.com>
7303 * Makefile.in (CRTSTUFF_CFLAGS): New.
7304 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
7305 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
7306 crtstuff.c instead of alpha assembly version.
7307 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
7308 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
7309 not FORCE_{INIT,FINI}_SECTION_ALIGN.
7310 (__do_global_dtors_aux): Mark used.
7311 (frame_dummy, __do_global_ctors_aux): Mark used.
7312 (fini_dummy, init_dummy): Remove.
7314 * config/alpha/crtbegin.asm: Remove file.
7315 * config/alpha/crtend.asm: Remove file.
7316 * config/alpha/t-crtbe: Remove file.
7317 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
7318 (LINK_EH_SPEC): New.
7320 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
7321 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
7322 calling constructors.
7323 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
7325 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
7326 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
7327 CRT_END_INIT_DUMMY hack.
7328 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
7329 FORCE_{INIT,FINI}_SECTION_ALIGN.
7331 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
7332 FORCE_{INIT,FINI}_SECTION_ALIGN.
7334 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
7335 invocation sequence.
7336 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
7338 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
7339 (FORCE_CODE_SECTION_ALIGN): New.
7341 2002-01-26 Richard Henderson <rth@redhat.com>
7343 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
7345 2002-01-26 Richard Henderson <rth@redhat.com>
7347 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
7348 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
7350 2002-01-26 Kazu Hirata <kazu@hxi.com>
7352 * config/h8300/h8300.md: Remove bit extraction patterns that
7353 cannot be triggered.
7354 Restrict each bit extraction pattern to a variant on which the
7357 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
7359 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
7361 2002-01-26 Kazu Hirata <kazu@hxi.com>
7363 * config/h8300/h8300.md: Remove bit test patterns that cannot
7365 Restrict each bit test pattern to a variant on which the
7368 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7370 * builtins.c (expand_builtin_strncat): Remove redundant check for
7373 2002-01-25 David O'Brien <obrien@FreeBSD.org>
7375 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
7377 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
7380 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
7382 * dbxout.c (dbxout_init): Use assemble_name rather than just
7383 stripping off the first character.
7384 (dbxout_source_file): Likewise.
7386 2002-01-25 DJ Delorie <dj@redhat.com>
7388 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
7389 using rtx_equal_p, not by comparing pointers.
7391 2002-01-25 Steve Ellcey <sje@cup.hp.com>
7393 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
7394 for PIC_OFFSET_TABLE_REGNUM.
7395 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
7397 2002-01-25 David O'Brien <obrien@FreeBSD.org>
7399 * config.gcc (x86_64-*-freebsd*): New target.
7400 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
7402 (i[34567]86-*-freebsd*): Don't include svr4.h.
7403 * config/i386/freebsd64.h: New file.
7405 2002-01-25 Douglas B Rupp <rupp@gnat.com>
7407 * config/alpha/x-vms (version): Make static.
7409 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
7410 in previous checkin.
7412 * Makefile.in (install-headers-cp): New target.
7413 * config.gcc (alpha-dec-*vms*): Install headers with
7416 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
7418 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
7421 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7423 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
7424 of compare_tree_int.
7425 (expand_builtin_strncat): Likewise.
7426 * c-decl.c (finish_struct): Use tree_low_cst.
7427 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
7428 * tree.c (compare_tree_int): Likewise.
7430 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
7432 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
7433 adjustments even if they are implemented by more than two insns.
7435 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
7437 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
7438 * df.h (struct ref): Kill B.
7439 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
7441 * basic-block.h (PROP_EQUAL_NOTES): New flag.
7442 * flow.c (propagate_one_insn): Use it.
7443 (mark_used_regs): Handle NIL.
7445 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
7447 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
7450 2002-01-25 David Edelsohn <edelsohn@gnu.org>
7452 * rs6000.md (prefetch): Make address V4SI mode so that the address
7453 is restricted to legitimate form for instruction.
7455 2002-01-25 Bob Wilson <bob.wilson@acm.org>
7457 * doc/install.texi (xtensa-*-elf): New target.
7458 (xtensa-*-linux*): New target.
7459 * doc/contrib.texi: Add myself.
7461 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
7463 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
7464 purpose register to hold an SImode (or smaller) value.
7466 2002-01-25 Jakub Jelinek <jakub@redhat.com>
7468 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
7470 * crtstuff.c: Likewise.
7472 2002-01-25 Kazu Hirata <kazu@hxi.com>
7474 * config/h8300/h8300.md (negation patterns): Tighten
7475 predicates to register_operand.
7477 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
7479 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
7482 * builtins.c (expand_builtin_prefetch): Same.
7484 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7486 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
7489 2002-01-24 Kazu Hirata <kazu@hxi.com>
7491 * config/h8300/h8300.c (print_operand): Remove support for
7492 operand character 'A'.
7493 * config/h8300/h8300.md (three anonymous patterns): Replace
7494 operand character 'A' with either 'T' or 'S'.
7496 2002-01-24 Kazu Hirata <kazu@hxi.com>
7498 * config/h8300/h8300.c (print_operand): Remove support for
7499 operand character 'U'.
7501 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
7503 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
7505 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
7507 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
7508 values to be assigned to the stack pointer.
7510 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
7512 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
7513 to const_double needs to be done right for big-endian systems.
7515 2002-01-24 Jason Merrill <jason@redhat.com>
7518 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
7519 to can_throw_internal.
7521 2002-01-23 Richard Henderson <rth@redhat.com>
7523 * fold-const.c (fold): Change UINT_MAX test to check vs precision
7524 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
7526 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7528 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
7529 (symGOT2reg): Use them, then set as GOT value as unchanging.
7530 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
7531 as a temporary, if possible.
7532 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
7533 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
7535 2002-01-23 Kazu Hirata <kazu@hxi.com>
7537 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
7538 accept to accept 0x80 as operands[2].
7540 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7542 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
7544 2002-01-23 Richard Henderson <rth@redhat.com>
7546 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
7548 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
7550 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
7551 (parmlist_or_identifiers_1): Verify that only a parmlist follows
7554 2002-01-23 Richard Henderson <rth@redhat.com>
7556 * expr.c (move_by_pieces_1): Extend size before negation.
7558 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
7559 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
7560 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
7561 * config/m68k/t-m68kelf: Likewise.
7563 2002-01-23 Bob Wilson <bob.wilson@acm.org>
7565 * config/xtensa/elf.h: New file.
7566 * config/xtensa/lib1funcs.asm: New file.
7567 * config/xtensa/lib2funcs.S: New file.
7568 * config/xtensa/linux.h: New file.
7569 * config/xtensa/t-xtensa: New file.
7570 * config/xtensa/xtensa-config.h: New file.
7571 * config/xtensa/xtensa-protos.h: New file.
7572 * config/xtensa/xtensa.c: New file.
7573 * config/xtensa/xtensa.h: New file.
7574 * config/xtensa/xtensa.md: New file.
7575 * config.gcc (xtensa-*-elf*): New target.
7576 (xtensa-*-linux*): New target.
7577 * cse.c (canon_hash): Compare rtx pointers instead of register
7578 numbers. This is required for the Xtensa port.
7579 * integrate.c (copy_insn_list): Handle case where the static
7580 chain is in memory and the memory address has to be copied to
7582 * doc/invoke.texi (Option Summary): Add Xtensa options.
7583 (Xtensa Options): New node.
7584 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
7586 2002-01-23 Zack Weinberg <zack@codesourcery.com>
7588 * diagnostic.c (internal_error): Do ICE suppression only
7589 when ENABLE_CHECKING is not defined.
7591 * c-typeck.c (require_complete_type): Return error_mark_node
7592 if type is error_mark_node.
7594 2002-01-23 Janis Johnson <janis187@us.ibm.com>
7596 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
7597 -Os and issue a warning.
7599 2002-01-23 Zack Weinberg <zack@codesourcery.com>
7601 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
7602 current (lack of) need for host configuration by hand.
7604 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
7605 references. Documentation of some target macros moved from
7606 hostconfig.texi to tm.texi.
7608 2002-01-23 Will Cohen <wcohen@redhat.com>
7610 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
7613 2002-01-23 Kazu Hirata <kazu@hxi.com>
7615 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
7618 2002-01-23 Jason Merrill <jason@redhat.com>
7620 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
7622 * function.c (assign_parms): Don't put args of inline functions
7623 into registers when not optimizing.
7625 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
7627 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
7628 (prologue_use): New pattern.
7629 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
7630 preference to gen_rtx_USE.
7631 (thumb_expand_prologue): Use gen_prologue_use in preference to
7633 (thumb_expand_epilogue): Use gen_prologue_use in preference to
7636 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
7638 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
7640 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
7643 * doc/extend.texi: Correct documentation of __alignof__.
7645 2002-01-22 Zack Weinberg <zack@codesourcery.com>
7647 * params.h: Rename arguments of DEFPARAM so that it will be
7648 recognized as a translation keyword.
7650 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
7652 * extend.texi: Document altivec functions.
7653 Fix N-bit adjectives in X86 builtin documentation.
7655 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
7657 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
7658 auto_inc_dec values.
7660 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
7662 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
7664 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
7666 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
7668 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
7670 2002-01-22 Richard Henderson <rth@redhat.com>
7672 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
7673 copy_insn not copy_rtx.
7675 2002-01-23 Alan Modra <amodra@bigpond.net.au>
7677 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
7678 "nonzero" as that might add "1" bits. Ensure "constop" is
7679 properly sign extened.
7680 (force_to_mode): Tweak for sign extended constop.
7682 2002-01-22 Richard Henderson <rth@redhat.com>
7684 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
7685 for_each_rtx instead of assuming we're already looking at the MEM.
7686 (split_small_symbolic_mem_operand): Likewise.
7687 * config/alpha/alpha.h (PREDICATE_CODES): Update.
7688 * config/alpha/alpha.md (small symbolic memory splitters): Update.
7690 2002-01-22 Richard Henderson <rth@redhat.com>
7692 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
7693 sequence number for the literal.
7694 (divmoddi_internal_er): Likewise.
7696 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
7699 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
7700 in LIBICONV variable.
7701 * configure: Regenerated.
7703 2002-01-22 Krister Walfridsson <cato@df.lth.se>
7705 * dependence.c (build_def_use): Remove array_idx.
7707 * dwarfout.c (last_filename): Remove.
7708 (output_compile_unit_die): Remove last_filename.
7710 2002-01-22 Roger Sayle <roger@eyesopen.com>
7711 Richard Henderson <rth@redhat.com>
7714 * fold-const.c (fold): Optimize unsigned comparisons against
7715 UINT_MAX (and similar unsigned constants).
7717 2002-01-22 Janis Johnson <janis187@us.ibm.com>
7719 * Makefile.in (loop.o): Depend on OPTABS_H.
7720 * loop.c (emit_prefetch_instructions): Check the prefetch operand
7721 against the predicate.
7724 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
7725 for the address operand.
7727 2002-01-22 Richard Henderson <rth@redhat.com>
7729 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
7731 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
7734 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
7737 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
7739 * config.gcc (x86_64-*-netbsd*): New target.
7740 * config/i386/netbsd64.h: New file.
7742 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
7744 * regrename.c (kill_value): Fix typo.
7746 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
7748 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
7750 * config/rs6000/rs6000.h: Same.
7752 * function.c (instantiate_virtual_regs): Remove
7753 STARTING_FRAME_PHASE.
7754 (assign_stack_local_1): Same.
7755 Calculate frame phase.
7757 2002-01-22 Nick Clifton <nickc@redhat.com>
7759 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
7760 variable declaration to outer scope in order to simplify
7762 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
7763 arm_hard_regno_mode_ok.
7764 * config/arm/arm-protos.h: Add a prototype for
7765 arm_hard_regno_mode_ok.
7766 * config/arm/arm.c (soft_df_operand): Remove now redundant
7767 check for DImode values using IP_REGNUM.
7768 (nonimmediate_soft_df_operand): Remove now redundant check for
7769 DImode values using IP_REGNUM.
7770 (arm_hard_regno_mode_ok): New function. New check: make sure
7771 that DImode values are not stored in IP_REGNUM.
7773 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
7775 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
7777 2002-01-22 Jason Merrill <jason@redhat.com>
7779 * c-semantics.c (genrtl_compound_stmt): Only check nesting
7780 consistency if this COMPOUND_STMT is scoped.
7782 2002-01-22 Kazu Hirata <kazu@hxi.com>
7784 * predict.c: Fix formatting.
7785 * print-tree.c: Likewise.
7786 * protoize.c: Likewise.
7789 * sbitmap.h: Likewise.
7791 * sched-deps.c: Likewise.
7792 * sched-vis.c: Likewise.
7793 * sdbout.c: Likewise.
7794 * sibcall.c: Likewise.
7796 * ssa-ccp.c: Likewise.
7797 * ssa-dce.c: Likewise.
7799 * stor-layout.c: Likewise.
7800 * system.h: Likewise.
7802 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7804 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
7805 if fits in bounds of base type.
7807 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
7808 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
7809 (add_bound_info, default): If can't find a context, make a
7811 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
7813 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
7815 * c-typeck.c (parser_build_binary_op): If result from
7816 build_binary_op is ERROR_MARK just return error_mark_node without
7819 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
7821 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
7822 Split a.out-specific bits into...
7823 * config/netbsd-aout.h: ...this.
7824 * config/netbsd-elf.h: New file.
7825 * config/alpha/netbsd-elf.h: Remove.
7826 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
7827 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
7828 (STARTFILE_SPEC): Remove redundant definition.
7829 (ENDFILE_SPEC): Likewise.
7830 (LINK_SPEC): Likewise.
7831 (CPP_SPEC): Likewise.
7832 (ASM_SPEC): Likewise.
7833 (LIB_SPEC): Likewise.
7834 (SWITCH_TAKES_ARG): Likewise.
7835 (TARGET_MEM_FUNCTIONS): Likewise.
7836 (CPP_PREDEFINES): Redefine.
7837 (ASM_FINAL_SPEC): Remove redefinition.
7838 (ASM_COMMENT_START): Redefine.
7839 (FUNCTION_PROFILER): Define.
7840 (TARGET_VERSION): Redefine.
7841 Comment and formatting cleanup.
7842 * config/i386/netbsd.h: Include <netbsd-aout.h>.
7843 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
7844 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
7845 big- or little-endian.
7846 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
7847 * config.gcc (*-*-netbsd*): Add definitions common to all
7849 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
7850 gnu_ld definitions. Add netbsd-elf.h to and remove
7851 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
7852 tmake_file, and don't lose previous tmake_file contents.
7853 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
7854 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
7855 gnu_ld definitions. Add netbsd-elf.h to tm_file.
7856 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
7857 (mipsel-*-netbsd*): Rename this to...
7858 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
7859 mips/little.h to tm_file for mips*el-*.
7860 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
7861 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
7862 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
7864 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
7866 * pa-protos.h (reg_before_reload_operand): New function prototype.
7867 * pa.c (reg_before_reload_operand): New function implementation.
7868 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
7871 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7873 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
7875 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
7877 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
7878 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
7879 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
7880 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
7881 (ENDFILE_SPEC): Undefine.
7882 (STARTFILE_SPEC): Redefine for PA.
7884 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7886 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
7888 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
7890 * config.gcc: Add entries to supported PowerPC --with-cpu
7893 2002-01-21 Jakub Jelinek <jakub@redhat.com>
7895 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
7896 true for 64-bit mode only SSE registers in 32-bit mode.
7898 2002-01-21 Kazu Hirata <kazu@hxi.com>
7900 * unwind-dw2.c: Fix formatting.
7901 * unwind-dw2-fde.c: Likewise.
7902 * unwind-dw2-fde.h: Likewise.
7903 * unwind-pe.h: Likewise.
7904 * varasm.c: Likewise.
7905 * varray.h: Likewise.
7907 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
7909 Remove workaround for register stack overwrite bug in mmix.
7910 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
7911 support for TARGET_REG_STACK_FILL_BUG.
7912 * config/mmix/mmix.h: Remove member has_call_without_parameters.
7913 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
7915 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
7916 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
7917 -mno-reg-stack-fill-bug-workaround.
7918 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
7919 machine member has_call_without_parameters.
7920 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
7921 -mreg-stack-fill-bug-workaround and
7922 -mno-reg-stack-fill-bug-workaround.
7923 (MMIX Options): Ditto.
7925 2002-01-21 Kazu Hirata <kazu@hxi.com>
7927 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
7929 Remove redundant code.
7931 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
7933 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
7934 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
7935 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
7936 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
7937 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
7938 out target macro definitions and non-target-specific comments
7939 mostly taken from old versions of the manual.
7941 2002-01-20 Kazu Hirata <kazu@hxi.com>
7943 * config/h8300/h8300.h: Fix comment formatting.
7944 * config/ia64/aix.h: Likewise.
7945 * config/ia64/ia64-protos.h: Likewise.
7946 * config/ia64/ia64.c: Likewise.
7947 * config/ia64/ia64.h: Likewise.
7948 * config/ia64/ia64intrin.h: Likewise.
7949 * config/ia64/linux.h: Likewise.
7950 * config/ia64/unwind-aix.c: Likewise.
7951 * config/ia64/unwind-ia64.c: Likewise.
7953 2002-01-20 Kazu Hirata <kazu@hxi.com>
7955 * config/h8300/h8300.c: Revise comments about shift code.
7957 2002-01-20 Kazu Hirata <kazu@hxi.com>
7959 * config/h8300/h8300.c (function_arg): Update a comment.
7961 2002-01-20 Kazu Hirata <kazu@hxi.com>
7963 * config/h8300/h8300.md: Update the comments at the beginning
7966 2002-01-20 Kazu Hirata <kazu@hxi.com>
7968 * config/i370/i370.c: Fix comment formatting.
7969 * config/i370/i370.h: Likewise.
7970 * config/i370/i370.md: Likewise.
7971 * config/i370/linux.h: Likewise.
7973 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7975 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
7977 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
7978 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
7981 2002-01-20 Graham Stott <grahams@redhat.com>
7983 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
7985 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
7987 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
7989 2002-01-19 Tom Rix <trix@redhat.com>
7991 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
7993 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
7995 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
7997 * function.c (assign_stack_local_1): Adjust x_frame_offset with
7998 STARTING_FRAME_PHASE.
7999 (STARTING_FRAME_PHASE): New.
8000 (instantiate_virtual_regs): Check saneness of
8001 STARTING_FRAME_PHASE.
8003 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
8005 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
8007 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
8009 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
8011 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
8012 be used for bootstrapping GCC 3.0.
8014 2002-01-18 Kazu Hirata <kazu@hxi.com>
8016 * config/h8300/h8300.md: Fix an insn length.
8018 2002-01-18 Kazu Hirata <kazu@hxi.com>
8020 * bitmap.h: Fix comment formatting.
8021 * combine.c: Likewise.
8022 * cppfiles.c: Likewise.
8023 * c-pragma.h: Likewise.
8024 * c-typeck.c: Likewise.
8026 * dwarf2out.c: Likewise.
8027 * function.c: Likewise.
8029 * genattrtab.c: Likewise.
8030 * gthr-win32.h: Likewise.
8031 * haifa-sched.c: Likewise.
8032 * predict.c: Likewise.
8033 * rtlanal.c: Likewise.
8035 * unwind-dw2-fde.h: Likewise.
8036 * unwind-pe.h: Likewise.
8037 * vmsdbgout.c: Likewise.
8039 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8041 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
8042 if type_required and passed decl.
8044 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
8046 * config.gcc (cpu_type): Include altivec.h in powerpc
8050 * config/rs6000/altivec.h: New.
8052 2002-01-17 David Edelsohn <edelsohn@gnu.org>
8054 * doc/install.texi (*-ibm-aix*): Update assembler and exception
8055 handling information.
8056 * doc/trouble.texi (Interoperation): Add libstdc++ information
8058 (Misunderstandings): Add template instantiation and static template
8059 member information for AIX.
8061 2002-01-17 Jason Merrill <jason@redhat.com>
8063 * dbxout.c (dbxout_type): Support const and volatile.
8065 * except.c (add_partial_entry): Remove backwards compatibility code.
8066 (end_protect_partials): Likewise.
8068 2002-01-17 Jakub Jelinek <jakub@redhat.com>
8070 * config/ia64/ia64.md (prologue_use): New.
8071 * config/ia64/ia64.c (ia64_expand_prologue): Use
8072 gen_prologue_use instead of gen_rtx_USE.
8073 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
8074 as CODE_FOR_pred_rel_mutex.
8075 (ia64_sched_reorder2): Likewise.
8077 2002-01-16 Eric Christopher <echristo@redhat.com>
8079 * config/mips/r3900.h: Reformat.
8080 (SUBTARGET_CPP_SIZE_SPEC): Remove.
8081 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
8082 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
8083 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
8084 * config/mips/t-elf: Remove mips3 multilib.
8086 2002-01-16 H.J. Lu <hjl@gnu.org>
8088 * config/mips/linux.h: Include "mips/abi64.h".
8090 2002-01-16 H.J. Lu <hjl@gnu.org>
8092 * config/mips/t-linux: New.
8094 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
8096 * config/mips/linux.h: Don't include "gofast.h".
8097 (INIT_SUBTARGET_OPTABS): Removed.
8099 2002-01-16 Kazu Hirata <kazu@hxi.com>
8101 * config/h8300/h8300-protos.h: Replace emit_a_shift with
8103 * config/h8300/h8300.c: Likewise.
8104 * config/h8300/h8300.md: Likewise.
8106 2002-01-16 Kazu Hirata <kazu@hxi.com>
8108 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
8109 spaces after an opcode name.
8110 (pushqi1_h8300hs): Likewise.
8111 (pushhi1_h8300hs): Likewise.
8113 2002-01-16 Kazu Hirata <kazu@hxi.com>
8115 * doc/extend.texi: Replace "option" with "attribute"
8118 2002-01-16 Jakub Jelinek <jakub@redhat.com>
8120 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
8121 (and:DI () (const_int -8)).
8122 (split_small_symbolic_mem_operand): Split
8123 (mem (and:DI () (const_int -8)).
8125 2002-01-16 Jakub Jelinek <jakub@redhat.com>
8128 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
8129 same way as TYPE_IMUL.
8130 (ultrasparc_sched_reorder): Likewise.
8131 * config/sparc/sparc.md (type): Add comment to update
8132 ultrasparc_sched_reorder when making changes.
8134 2002-01-16 Kazu Hirata <kazu@hxi.com>
8136 * doc/invoke.texi: Change the dump file name of block
8137 reordering pass from 28.bbro to 29.bbro.
8140 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
8142 * i386.md (minsf splitter): Fix pasto.
8144 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
8146 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
8147 to frame pointer initialisation instruction.
8148 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
8149 initialisation instruction.
8150 (soft_df_operand): Do not accept the IP register.
8151 (nonimmediate_soft_df_operand): Do not accept the IP register.
8153 2002-01-16 Jakub Jelinek <jakub@redhat.com>
8156 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
8157 MASK_V8 being both set.
8159 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
8161 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
8162 insn for GOT register; add REG_MAYBE_DEAD notes instead.
8163 config/s390/s390.md (call, call_value): Add GOT register to
8164 CALL_INSN_FUNCTION_USAGE where needed.
8165 (call_exp, call_value_exp): New.
8167 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
8169 * config/arm/arm.c: General formatting tidy up.
8171 2002-01-16 Graham Stott <grahams@redhat.com>
8173 * calls.c (try_to_integrate): Use "(size_t)" intermediate
8174 cast and when casting an integer literal to "rtx" pointer.
8175 (expand_call): Likewise.
8176 * flow.c (try_pre_increment): Likewise.
8177 (find_use_as_address): Likewise.
8178 * integrate.c (expand_iline_function): Likewise.
8179 * regmove.c (try_auto_increment): Likewise.
8181 2002-01-16 Graham Stott <grahams@redhat.com>
8183 * sched-rgn.c (passed): Use sbitmap_free.
8186 (in_queue): Likewise.
8187 (in_stack): Likewise.
8189 2002-01-15 Eric Christopher <echristo@redhat.com>
8191 * flow.c (propagate_one_insn): Change to use fatal_insn.
8193 2002-01-15 Kazu Hirata <kazu@hxi.com>
8195 * expmed.c (extract_fixed_bit_field): Remove unused code.
8196 * system.h: Poison SLOW_ZERO_EXTEND.
8197 * doc/tm.texi: Remove.
8198 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
8199 * config/arm/arm.h: Likewise.
8200 * config/avr/avr.h: Likewise.
8201 * config/clipper/clipper.h: Likewise.
8202 * config/convex/convex.h: Likewise.
8203 * config/d30v/d30v.h: Likewise.
8204 * config/dsp16xx/dsp16xx.h: Likewise.
8205 * config/elxsi/elxsi.h: Likewise.
8206 * config/fr30/fr30.h: Likewise.
8207 * config/h8300/h8300.h: Likewise.
8208 * config/i370/i370.h: Likewise.
8209 * config/i386/i386.h: Likewise.
8210 * config/m68k/m68k.h: Likewise.
8211 * config/mips/mips.h: Likewise.
8212 * config/ns32k/ns32k.h: Likewise.
8213 * config/pdp11/pdp11.h: Likewise.
8214 * config/pj/pj.h: Likewise.
8215 * config/s390/s390.h: Likewise.
8216 * config/sh/sh.h: Likewise.
8217 * config/stormy16/stormy16.h: Likewise.
8218 * config/v850/v850.h: Likewise.
8219 * config/vax/vax.h: Likewise.
8220 * config/we32k/we32k.h: Likewise.
8222 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
8224 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
8225 (altivec_lvsl): Change constraint to b.
8226 (altivec_lvsr): Same.
8227 (altivec_lvebx): Same.
8228 (altivec_lvehx): Same.
8229 (altivec_lvewx): Same.
8230 (altivec_lvxl): Same.
8231 (altivec_lvx): Same.
8232 (altivec_stvx): Add parallel.
8233 (altivec_stvxl): Same.
8234 (altivec_stvehx): Same.
8235 (altivec_stvebx): Same.
8236 (altivec_stvebx): Same.
8238 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
8240 * config.gcc: Change altivec.h to altivec-defs.h.
8242 * config/rs6000/altivec.h: Delete.
8244 * config/rs6000/altivec-defs.h: Add.
8246 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
8248 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
8251 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
8252 less than or equal to eight bytes.
8254 * vax.md (andsi3): Remove constraints and change SET destination
8255 operand type to nonimmediate_operand.
8256 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
8257 when it is a CONST_INT.
8259 2002-01-15 Jason Merrill <jason@redhat.com>
8261 * c-common.def (FILE_STMT): New code.
8262 * c-common.c (statement_code_p): It's a statement.
8263 * c-common.h (stmt_tree_s): Add x_last_filename.
8264 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
8265 (last_expr_filename): New macro.
8266 * c-semantics.c (begin_stmt_tree): Initialize it.
8267 (add_stmt): If the filename changed, also insert a
8269 (expand_stmt): Handle seeing one.
8271 2002-01-15 Eric Christopher <echristo@redhat.com>
8273 * flow.c (propagate_one_insn): Add error message and print out
8276 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
8278 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
8279 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
8280 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
8281 TRAMPOLINE_ALIGNMENT.
8282 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
8284 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
8285 PCC_BITFIELD_TYPE_MATTERS.
8286 * config/interix.h (STDC_VALUE): Remove. Use
8287 STDC_0_IN_SYSTEM_HEADERS.
8288 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
8289 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
8290 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
8292 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
8294 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
8295 not work on this platform currently.
8297 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
8299 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
8300 readonly_warning in _().
8302 2002-01-15 Douglas B Rupp <rupp@gnat.com>
8304 * gcc.c (delete_if_ordinary): Backout previous change.
8306 2002-01-15 Kazu Hirata <kazu@hxi.com>
8308 * config/h8300/h8300.c (print_operand): Remove support for
8309 unused operand characters.
8311 * read-rtl.c: Fix formatting.
8313 * recog.c: Likewise.
8314 * regclass.c: Likewise.
8315 * regmove.c: Likewise.
8316 * reg-stack.c: Likewise.
8317 * reload1.c: Likewise.
8318 * rtlanal.c: Likewise.
8320 2002-01-15 Kazu Hirata <kazu@hxi.com>
8322 * config/i386/i386.c: Fix formatting.
8324 2002-01-15 Jakub Jelinek <jakub@redhat.com>
8326 * c-typeck.c (process_init_element): Don't save_expr
8327 COMPOUND_LITERAL_EXPR if just its initializer will be used.
8329 2002-01-15 David Edelsohn <edelsohn@gnu.org>
8331 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
8332 emit optional traceback table if optimize_size or TARGET_ELF.
8333 * config/rs6000/rs6000.md (prefetch): New.
8335 2002-01-15 Andreas Jaeger <aj@suse.de>
8337 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
8339 2002-01-15 Kazu Hirata <kazu@hxi.com>
8341 * mips-tfile.c: Fix formatting.
8343 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
8345 * unroll.c (final_reg_note_copy): Fix previous commit.
8347 2002-01-14 Kazu Hirata <kazu@hxi.com>
8349 * config/h8300/h8300-protos.h: Remove the prototype for
8351 * config/h8300/h8300.c (eq_operator): Remove.
8353 2002-01-14 Richard Henderson <rth@redhat.com>
8355 * config/i386/i386.md (prefetch): Tidy.
8356 (prefetch_3dnow): Fix locality operand.
8358 2002-01-14 Richard Henderson <rth@redhat.com>
8360 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
8361 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
8363 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
8365 * reload1.c (reload_combine): Pass reg_sum replacement through
8366 copy_rtx in loop performing multiple changes.
8368 2002-01-14 Jakub Jelinek <jakub@redhat.com>
8370 * except.c (remove_unreachable_regions): New.
8371 (free_eh_status): Clear exception_handler_labels.
8372 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
8373 (find_exception_handler_labels): Don't add the same label more than
8375 (remove_exception_handler_label): Don't die if
8376 find_exception_handler_labels hasn't been called for the current
8379 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
8381 * toplev.c (rest_of_compilation): Rebuild jump labels after
8384 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
8386 * doc/extend.texi: Move documentation of X86 built-in functions
8388 * doc/invoke.texi: From here.
8389 * doc/sourcebuild.texi: Document location of documentation for
8390 machine built-in functions.
8392 2002-01-13 Christopher Faylor <cgf@redhat.com>
8394 * cppfiles.c (TEST_THRESHOLD): New macro.
8395 (SHOULD_MMAP): Ditto.
8396 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
8399 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
8401 * unroll.c (final_reg_note_copy): Properly handle
8403 (unroll_loops): Fix LOOP_CONDITION heuristics.
8405 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
8407 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
8408 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
8410 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
8412 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
8415 2002-01-14 Tom Rix <trix@redhat.com>
8417 * config/rs6000/rs6000.md: Fix typo with sradi.
8419 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
8421 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
8422 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
8423 (clrstrdi, clrstrsi): Adapt callers.
8425 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
8427 (movti splitter): Never use register 0 as base register.
8429 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
8431 * combine.c (simplify_shift_const): Always generate new rtx
8432 for shift expression instead of reusing given expression.
8434 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8436 * config/alpha/alpha.c (alpha_expand_mov): Don't call
8437 alpha_legitimize_address unless mode is Pmode.
8439 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
8441 * doc/md.texi (Modifiers): Document the '*' constraint for the
8444 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
8445 * doc/extend.texi (Function Attributes): 'interrupt' is valid
8448 2002-01-13 Richard Henderson <rth@redhat.com>
8450 * reload.c (find_reloads): Use a hard reg destination as reload reg
8451 for an input reload of the source.
8453 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8455 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
8458 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
8460 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
8461 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
8463 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
8465 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8467 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
8469 2002-01-12 Tom Rix <trix@redhat.com>
8471 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
8474 2002-01-12 Richard Henderson <rth@redhat.com>
8476 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
8478 * doc/invoke.texi: Update Alpha options.
8480 * doc/invoke.texi: Update i386 built-in function lists.
8482 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
8484 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
8485 referencing outside.
8487 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8489 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
8490 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
8491 offsets, and change line folding.
8492 * optabs.c (expand_binop): Remove warnings.
8493 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
8495 2002-01-12 Graham Stott <grahams@redhat.com>
8497 * attribs.c (handle_deprecated_attribute): constify WHAT.
8498 * diagnostic.c (warn_deprecated_use): Add braces, fixes
8499 dangling else warning and constify WHAT.
8500 * except.h (struct function, struct inline_remap): Move
8501 struct tag forward defs before all prototypes.
8502 (duplicate_eh_regions): Whitespace.
8504 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
8506 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8507 MODE_BASE_REG_CLASS.
8508 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
8510 2002-01-12 Richard Henderson <rth@redhat.com>
8512 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
8513 (ix86_expand_vector_move): New.
8514 (bdesc_2arg): Remove andps, andnps, orps, xorps.
8515 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
8516 Remove old prefetch builtins. Special case the logicals removed above.
8517 (ix86_expand_builtin): Likewise.
8518 (safe_vector_operand): Use V4SFmode, not TImode.
8519 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
8520 (ix86_expand_timode_binop_builtin): New.
8521 * config/i386/i386-protos.h: Update.
8522 * config/i386/i386.h (enum ix86_builtins): Update.
8523 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
8524 Use ix86_expand_vector_move in vector move expanders.
8525 (movti_internal, movti_rex64): Add xorps alternative.
8526 (sse_clrv4sf): Rename and adjust from sse_clrti.
8527 (prefetch): Don't work so hard.
8528 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
8529 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
8530 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
8532 2002-01-11 Richard Henderson <rth@redhat.com>
8534 * config/i386/mmintrin.h: New file.
8535 * config/i386/xmmintrin.h: New file.
8536 * config.gcc (i?86-*-*): Add extra_headers.
8537 * simplify-rtx.c (simplify_unary_operation): Handle saturating
8539 (simplify_binary_operation): Handle saturating arithmetic codes.
8540 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
8541 not the lowpart subreg.
8542 (ix86_expand_builtin): Return a TImode dummy register instead of 0
8544 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
8546 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8548 * conflict.c (conflict_graph_compute): Free regsets when finished.
8549 * ssa.c (compute_coalesced_reg_partition): Likewise.
8551 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8553 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
8554 every where we allocate a register.
8556 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8558 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
8559 * lcm.c (compute_earliest, compute_farthest): Likewise.
8561 2002-01-11 Janis Johnson <janis187@us.ibm.com>
8563 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
8565 2002-01-11 Janis Johnson <janis187@us.ibm.com>
8567 * doc/rtl.texi (Insns): Fix 2 typos.
8569 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
8571 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
8572 options. Use @table @gcctabopt for MMIX options. Add index
8573 entries for MMIX options. Start new paragraph with first
8574 heading of the machine-dependent options.
8576 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
8579 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
8580 * combine.c (force_to_mode): Same.
8581 * reload1.c (clear_reload_reg_in_use): Same.
8583 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
8585 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
8588 2002-01-11 Andreas Jaeger <aj@suse.de>,
8589 Brad Lucier <lucier@math.purdue.edu>
8591 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
8594 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
8596 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
8597 Protect with IN_LIBGCC.
8598 (LINK_EH_SPEC): Add required trailing space.
8600 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
8602 * c-tree.h: Move function declarations so that they are listed
8603 under the filename which contains them.
8604 (check_identifier, finish_decl_top_level,
8605 lookup_name_current_level_global, shadow_record_fields): Remove.
8607 2002-01-11 Andreas Jaeger <aj@suse.de>
8609 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
8612 2002-01-10 Richard Henderson <rth@redhat.com>
8614 * config/alpha/alpha.c (print_operand): Add 'J'.
8615 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
8616 new operand with the sequence number for the lituse. When splitting
8617 the insns, use gen_movdi_er_high_g and generate a sequence number.
8618 (gen_movdi_er_high_g): Print the sequence number if non-zero.
8620 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
8622 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
8623 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
8625 (altivec_expand_builtin): Same.
8626 (altivec_expand_stv_builtin): New.
8628 * config/rs6000/rs6000.h (rs6000_builtins): Same.
8630 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
8631 ("altivec_lvehx"): New.
8632 ("altivec_lvewx"): New.
8633 ("altivec_lvxl"): New.
8634 ("altivec_lvx"): New.
8635 ("altivec_stvx"): New.
8636 ("altivec_stvebx"): New.
8637 ("altivec_stvehx"): New.
8638 ("altivec_stvewx"): New.
8639 ("altivec_stvxl"): New.
8641 2002-01-10 Richard Henderson <rth@redhat.com>
8643 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
8644 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
8645 care not to delete instructions twice.
8647 2002-01-10 Zack Weinberg <zack@codesourcery.com>
8649 * toplev.c: Don't declare environ (it's not used anywhere).
8650 * configure.in: Don't check for declaration of environ.
8651 * config/i386/xm-mingw32.h: Don't #define environ.
8652 * config.in, configure: Regenerate.
8654 2002-01-10 Zack Weinberg <zack@codesourcery.com>
8656 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
8657 * configure: Regenerate.
8659 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
8660 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
8661 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
8663 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
8664 LIMITS_H_TEST here, not in m68k/x-next.
8665 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
8666 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
8668 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
8669 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
8670 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
8672 * config/i386/x-djgpp: Renamed i386/t-djgpp.
8673 * config/m88k/x-dolph: Renamed m88k/t-dolph.
8674 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
8675 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
8676 replacement of quadlib.asm with quadlib.c.
8678 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
8679 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
8680 config/rs6000/xm-beos.h: Delete file.
8682 * config.gcc: Update to match above changes.
8684 2002-01-10 Kazu Hirata <kazu@hxi.com>
8686 * config/h8300/h8300.h: Fix comment typos.
8687 * config/h8300/h8300.md: Likewise.
8688 * config/h8300/lib1funcs.asm: Likewise.
8690 2002-01-10 Dale Johannesen <dalej@apple.com>
8692 PR optimization/5269
8693 * unroll.c (precondition_loop_p): Make *increment be the correct
8694 sign when n_iterations known, to avoid confusing caller.
8696 2002-01-10 Kazu Hirata <kazu@hxi.com>
8698 * doc/extend.texi (deprecated): Fix a typo.
8700 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
8702 * basic-block.h (update_br_prob_note): Declare.
8703 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
8704 (try_forward_edges): Care negative frequencies and update note.
8705 (outgoing_edges_match): Tweek conditional merging heuristics.
8706 (try_crossjump_to_edge): use update_br_prob_note.
8707 * cfglayout.c (fixup_reorder_chain): Likewise.
8708 * cfrtl.c (update_br_prob_note): New.
8709 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
8711 * i386.c (ix86_decompose_address): Return -1 if address contains
8713 (legitimate_address_p): Require ix86_decompose_address to return 1.
8715 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
8716 (cprop_insn): Likewise.
8718 2002-01-10 Kazu Hirata <kazu@hxi.com>
8720 * toplev.c: Fix formatting.
8722 * tree-dump.c: Likewise.
8723 * unroll.c: Likewise.
8724 * unwind-dw2.c: Likewise.
8725 * unwind-dw2-fde.c: Likewise.
8726 * unwind-dw2-fde-glibc.c: Likewise.
8727 * unwind-sjlj.c: Likewise.
8729 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
8731 * doc/invoke.texi: Document PDP-11 options.
8733 2002-01-10 Kazu Hirata <kazu@hxi.com>
8735 * config/h8300/h8300.h: Fix formatting.
8737 2002-01-10 Ira Ruben <ira@apple.com>
8739 Add __attribute__ ((deprecated)).
8740 * extend.texi: Document __attribute__ ((deprecated)).
8741 * invoke.texi: Document -Wno-deprecated-declarations.
8742 * testsuite/g++.dg/other/deprecated.C: New C++ test.
8743 * testsuite/gcc.dg/deprecated.c: New C test.
8744 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
8745 (c_common_attribute_table): Add "deprecated" entry.
8746 (handle_deprecated_attribute): New function.
8747 * c-decl.c (deprecated_states): New enum.
8748 deprecated_state: State of "deprecated" handling.
8749 (start_decl): Set deprecated_state based on attributes.
8750 (grokdeclarator): Test for deprecated uses, propagate attribute.
8751 * c-typeck.c (build_component_ref): Test for deprecated fields.
8752 (build_external_ref): Test for deprecated primaries.
8753 * diagnostic.c (warn_deprecated_use) New function to issue
8754 warnings about __attribute__ ((depricated)) references.
8755 * flags.h (warn_deprecated_decl): Extern declared for
8756 -W[no-]deprecated-declarations option.
8757 * print-tree.c (print_node): Show deprecated flag status.
8758 * toplev.c (warn_deprecated_decl): Defined.
8759 (W_options): Added "deprecated-declaration".
8760 * toplev.h (warn_deprecated_use): Extern declared.
8761 * tree.h (struct tree_common): Define deprecated_flag.
8762 (TREE_DEPRECATED): New macro to access flag.
8763 * cp/call.c (build_call): Test for deprecated calls.
8764 * cp/class.c (add_implicitly_declared_members): Set global
8765 flag to tell grokdeclarator to not issue deprecated warnings.
8766 * cp/cp-tree.h: Add extern for adding_implicit_members.
8767 * cp/decl.c (deprecated_states): New enum.
8768 (start_decl): Set deprecated_state based on attributes.
8769 (grokdeclarator): Test for deprecated uses, propagate attribute.
8770 * cp/lex.c (do_identifier): Test for deprecated primaries.
8771 * cp/typeck.c (build_component_ref): Test for deprecated fields.
8773 2002-01-10 Ira Ruben <ira@apple.com>
8775 Fix to assign attributes to inline member functions.
8776 * cp/decl.c (start_method): Handle attrlist.
8778 2002-01-10 Kazu Hirata <kazu@hxi.com>
8780 * combine.c (expand_field_assignment): Use subreg_lsb().
8782 2002-01-10 David Edelsohn <edelsohn@gnu.org>
8784 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
8785 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
8786 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
8787 Recurse for any operand of AND as long as constant is non-zero.
8789 2002-01-10 Kazu Hirata <kazu@hxi.com>
8791 * config/h8300/h8300.md: Remove constraints from expanders.
8793 2002-01-10 Kazu Hirata <kazu@hxi.com>
8795 * varasm.c: Fix formatting.
8796 * varray.c: Likewise.
8797 * vmsdbgout.c: Likewise.
8798 * xcoffout.c: Likewise.
8800 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
8802 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
8803 update edge probabilities to match.
8805 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
8807 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
8809 * doc/languages.texi, doc/sourcebuild.texi: New files.
8810 * doc/configfiles.texi: Make a subsubsection. Update.
8811 * doc/configterms.texi: Add @node. Remove warning that this isn't
8812 instructions for building GCC.
8813 * doc/makefile.texi: Make a subsection.
8814 * doc/gccint.texi: Update.
8816 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
8818 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
8820 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
8822 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
8824 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
8826 * optabs.c (expand_fix): Look for wider integer modes first.
8828 * i386.md (mov?f): Avoid the fake const double trick for medium
8830 (min?f*/max?f*): Prohibit memory operands for i387 variant.
8831 (fop_df_4): Disable for SSE compilation.
8833 2002-01-10 Graham Stott <grahams@redhat.com>
8835 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
8836 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
8838 2002-01-10 Richard Henderson <rth@redhat.com>
8840 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
8842 2002-01-10 Richard Henderson <rth@redhat.com>
8844 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
8845 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
8847 2002-01-10 Kazu Hirata <kazu@hxi.com>
8849 * combine.c (can_combine_p): Fix a comment typo.
8851 2002-01-09 Zack Weinberg <zack@codesourcery.com>
8853 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
8854 empty list correctly. Change loop index $t to $f for
8855 consistency with rest of Makefile.
8857 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
8859 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
8860 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
8862 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
8863 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
8864 (altivec_init_builtins): Same.
8865 (altivec_expand_unop_builtin): Return NULL_RTX on error.
8866 (altivec_expand_binop_builtin): Same.
8867 (altivec_expand_ternop_builtin): Same.
8870 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
8871 ("altivec_vctuxs"): Fix typo.
8872 ("altivec_vnmsubfp"): Same.
8873 ("altivec_dssall"): New.
8874 ("altivec_mfvscr"): New.
8875 ("altivec_dss"): New.
8876 ("altivec_lvsl"): New.
8877 ("altivec_lvsr"): New.
8878 ("altivec_dstt"): New.
8879 ("altivec_dstst"): New.
8880 ("altivec_dststt"): New.
8881 ("altivec_dst"): New.
8883 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
8884 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
8886 2002-01-09 Richard Henderson <rth@redhat.com>
8888 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
8890 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
8892 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
8894 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
8896 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
8898 2002-01-09 Kazu Hirata <kazu@hxi.com>
8900 * read-rtl.c: Fix formatting.
8902 * regclass.c: Likewise.
8903 * regrename.c: Likewise.
8904 * reg-stack.c: Likewise.
8905 * reload1.c: Likewise.
8906 * reload.c: Likewise.
8909 2002-01-09 Kazu Hirata <kazu@hxi.com>
8911 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
8912 to extract items in the expr_list chain.
8914 2002-01-09 Richard Henderson <rth@redhat.com>
8916 * config/vax/vax.c (vax_rtx_cost): Never abort.
8918 * config/vax/vax.h (REAL_ARITHMETIC): Define.
8920 2002-01-09 Jan Hubicka <jh@suse.cz>
8922 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
8924 2002-01-09 Richard Henderson <rth@redhat.com>
8926 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
8927 Unify code from various alternatives.
8929 2002-01-09 Richard Henderson <rth@redhat.com>
8931 * regrename.c (copy_value): Ignore the copy if the source register
8932 is present in the value chain with a narrower mode.
8934 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8936 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
8937 for the c4x target. Also improve layout.
8939 2002-01-09 Richard Henderson <rth@redhat.com>
8941 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
8942 * config/m32r/m32r.md (and ior xor splitters): Swap operands
8943 to match insn patterns.
8945 2002-01-09 Richard Henderson <rth@redhat.com>
8947 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
8948 (copyprop_hardreg_forward_1): Likewise.
8950 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
8952 * pa.md (decrement_and_branch_until_zero): Change predicate for
8953 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
8955 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
8957 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
8958 gets undefined. For Darwin.
8960 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8962 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
8964 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8966 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
8968 2002-01-08 Richard Henderson <rth@redhat.com>
8970 * regrename.c (copy_value): Ignore overlapping copies.
8972 2002-01-08 Richard Henderson <rth@redhat.com>
8974 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
8975 as needed to avoid shared structure.
8977 2002-01-08 Kazu Hirata <kazu@hxi.com>
8979 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
8982 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
8984 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
8985 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
8986 documentation of obsolete macros.
8987 * system.h: Poison these macros.
8988 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
8989 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
8990 config/c4x/c4x.h, config/clipper/clipper.h,
8991 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
8992 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
8993 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
8994 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
8995 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
8996 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
8997 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
8998 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
8999 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
9000 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
9001 config/sparc/sparc.h, config/stormy16/stormy16.h,
9002 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
9003 definitions and commented out definitions of obsolete macros.
9004 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
9005 of MAX_INT_TYPE_SIZE.
9007 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9009 * config/s390/s390.c (s390_preferred_reload_class): Never
9010 return ADDR_REGS if it isn't a subset of the given class.
9011 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
9012 FP_REGS, but all superclasses as well.
9014 * config/s390/s390.c (s390_function_profiler): Fix thinko.
9016 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
9017 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
9018 must not be a const_int.
9020 2002-01-08 Richard Henderson <rth@redhat.com>
9022 * Makefile.in (toplev.o): Depend on options.h.
9023 (gcc.o): Depend on specs.h.
9025 2002-01-08 Jakub Jelinek <jakub@redhat.com>
9027 * expr.c (store_expr): Convert VOIDmode constants back to target's
9030 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9032 * doc/invoke.texi: Markup gcc as @command. Refer to
9033 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
9034 of http://gcc.gnu.org/thanks.html.
9036 2002-01-08 Dale Johannesen <dalej@apple.com>
9038 * config/rs6000/rs6000.md: Add missing int register
9039 target case to movdf_low.
9041 2002-01-08 Zack Weinberg <zack@codesourcery.com>
9043 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
9044 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
9045 (cppinit.o): Depend on except.h.
9046 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
9047 s-specs): New rules.
9049 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
9050 Don't create specs.h/options.h/gencheck.h here. Remove
9051 unnecessary variable settings from last argument of AC_OUTPUT.
9052 * config.in, configure: Regenerate.
9053 * intl.c: Hardcode package name as "gcc".
9055 * cppinit.c: Include except.h.
9056 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
9058 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
9059 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
9060 (!)USING_SJLJ_EXCEPTIONS.
9061 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
9063 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
9065 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
9066 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
9067 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
9068 documentation of obsolete macros.
9069 * system.h: Poison these macros.
9070 * config/d30v/d30v.h, config/ns32k/encore.h,
9071 config/stormy16/stormy16.h: Remove definitions and commented out
9072 definitions of obsolete macros.
9074 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
9076 * objc/objc-act.c (handle_class_ref): Mark the declaration of
9077 %sobjc_class_ref_%s as used - to prevent unwanted compiler
9080 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9082 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
9083 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
9084 to insn adjusting stack/frame pointer.
9085 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
9086 accept operands that cause the insn to be non-splittable.
9088 2002-01-08 Graham Stott <grahams@redhat.com>
9090 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
9091 (C_TYPE_FIELDS_VOLATILE): Likewise.
9092 (C_TYPE_BEING_DEFINED): Likewise.
9093 (C_IS_RESERVED_WORD): Likewise.
9094 (C_TYPE_VARIABLE_SIZE): Likewise.
9095 (C_DECL_VARIABLE_SIZE): Likewise.
9096 (C_MISSING_PROTOTYPE_WARNED): Likewise.
9097 (C_SET_EXP_ORIGINAL_CODE): Likewise.
9098 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
9100 (C_DECL_ANTICIPATED): Likewise.
9101 (c_build_type_variant): Add parenthesis.
9103 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
9105 * gcc.c (option_map): Remove --version.
9106 (process_command): Handle -fversion following the GNU Coding
9107 Standards. Partially addresses PR other/704.
9109 2002-01-08 Graham Stott <grahams@redhat.com>
9111 * combine.c (combine_instructions): Fix typo.
9113 2002-01-08 Graham Stott <grahams@redhat.com>
9115 * debug.h: Use "tree" and "rtx" throughout.
9117 * debug.c: Likewise.
9119 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
9121 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
9122 constant pool, use the pool's version of the symbol instead.
9124 2002-01-07 Richard Henderson <rth@redhat.com>
9126 * regrename.c (find_oldest_value_reg): Ignore the value chain if
9127 the original register was copied in a mode with a fewer number of
9128 hard registers than the desired mode.
9129 (copyprop_hardreg_forward_1): Likewise.
9130 (debug_value_data): Fix loop test.
9131 * toplev.c (parse_options_and_default_flags): Reenable
9132 -fcprop-registers at -O1.
9134 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
9136 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
9137 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
9139 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
9142 * config/rs6000/rs6000.md: Add altivec predicate patterns.
9144 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
9146 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
9147 (pa_output_function_prologue): Output local label at the beginning of
9148 the prologue when profiling.
9149 (hppa_profile_hook): Use the local label rather than the function label.
9150 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
9152 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
9154 * config/rs6000/rs6000.c (print_operand): Remove extra space.
9155 (altivec_expand_unop_builtin): Fix thinko.
9156 (altivec_expand_binop_builtin): Same.
9157 (altivec_expand_ternop_builtin): Same.
9158 (altivec_expand_builtin): Same.
9160 2002-01-07 Richard Henderson <rth@redhat.com>
9162 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
9164 2002-01-07 Jason Merrill <jason@redhat.com>
9166 * unwind-dw2.c (execute_cfa_program): Use < again.
9168 2002-01-07 Jakub Jelinek <jakub@redhat.com>
9170 * predict.c (combine_predictions_for_insn): Avoid division by zero.
9172 2002-01-07 Jakub Jelinek <jakub@redhat.com>
9174 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
9175 Don't allow -1 - x -> ~x simplifications in the first pass.
9177 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
9179 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
9181 (altivec_expand_binop_builtin): Same.
9182 (altivec_expand_unop_builtin): Same.
9183 (print_operand): Fix typo.
9184 (bdesc_1arg): Add vupk* variants.
9186 * rs6000.h (rs6000_builtins): Add vupk* enums.
9188 * rs6000.md: Add altivec_vupk* variants.
9190 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
9192 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
9193 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
9194 and last update dates.
9196 2002-01-07 Janis Johnson <janis187@us.ibm.com>
9198 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
9200 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
9202 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
9203 * config/avr/avr.h (CPP_SPEC): Likewise.
9204 (LINK_SPEC): Likewise.
9205 (CRT_BINUTILS_SPECS): Likewise.
9206 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9207 * doc/invoke.texi (AVR Options): Document them.
9209 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
9211 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
9214 2002-01-07 Graham Stott <grahams@redhat.com>
9216 * config/i386/i386.h: Update copyright date.
9217 (HALF_PIC_PTR): Add parenthesis.
9218 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
9219 (CONSTANT_ALIGNMENT): Add parenthesis.
9220 (DATA_ALIGNMENT): Likewise.
9221 (LOCAL_ALIGNMENT): Likewise.
9222 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
9223 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
9224 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
9225 (HARD_REGNO_NREGS): Add paranethesis.
9226 (VALID_SSE_REG_MODE): Whitespace.
9227 (VALID_MMX_REG_MODE): Whitespace.
9228 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
9229 (ix86_hard_regno_mode_ok): Add parenthesis.
9230 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
9231 (RETURN_IN_MEMORY): Whitespace.
9232 (N_REG_CLASSES): Add parenthesis.
9233 (INTEGER_CLASS_P): Add parenthesis and wrap.
9234 (FLOAT_CLASS_P): Likewise.
9235 (SSE_CLASS_P): Likewise.
9236 (MMX_CLASS_P): Likewise.
9237 (MAYBE_INTEGER_CLASS_P): Likewise.
9238 (MAYBE_FLOAT_CLASS_P): Likewise.
9239 (MAYBE_SSE_CLASS_P): Likewise.
9240 (MAYBE_MMX_CLASS_P): Likewise.
9241 (Q_CLASS_P): Likewise.
9242 (GENERAL_REGNO_P): Uppercase macro parameter.
9243 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
9244 (FP_REGNO_P): Likewise.
9245 (ANY_FP_REGNO_P): Uppercase macro parameter.
9246 (SSE_REGNO_P): Likewise.
9247 (SSE_REGNO): Likewise.
9248 (SSE_REG_P): Likewise.
9249 (SSE_FLOAT_MODE_P): Likewise.
9250 (MMX_REGNO_P): Likewise.
9251 (MMX_REG_P):Likewise.
9252 (STACK_REG_P): Likewise.
9253 (NON_STACK_REG_P): Likewise.
9254 (STACK_TOP_P): Likewise.
9255 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
9256 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
9257 (SECONDARY_MEMORY_NEEDED): Likewise.
9258 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
9259 (MD_ASM_CLOBBERS): Whitespace and wrap.
9260 (MUST_PASS_IN_STACK): Whitespace and wrap.
9261 (RETURN_POPS_ARGS): Add parenthesis.
9262 (INIT_CUMULATIVE_ARGS): Likewise.
9263 (FUNCTION_ARG): Likewise.
9264 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
9265 (SETUP_INCOMING_VARARGS): Likewise.
9266 (BUILD_VA_LIST_TYPE): Add parenthesis.
9267 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
9269 (EXPAND_BUILTIN_VA_ARG): Likewise.
9270 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
9271 (INITIALIZE_TRAMPOLINE): Add parenthesis.
9272 (INITIAL_ELIMINATION_OFFSET): Likewise.
9273 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
9274 (REGNO_OK_FOR_BASE_P): Likewise.
9275 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
9276 (REGNO_OK_FOR_DIREG_P): Likewise.
9277 (REG_OK_FOR_INDEX_P): Whitespace.
9278 (REG_OK_FOR_BASE_P): Whitespace.
9279 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
9281 (FIND_BASE_TERM): Fix typo.
9282 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
9283 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
9284 (SYMBOLIC_CONST; Whitespace.
9285 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
9286 (ENCODE_SECTION_INFO): Whitespace.
9287 (FINALIZE_PIC): Remove do { ... } while (0).
9288 (PROMOTE_MODE): Wrap in do { ... } while (0).
9289 (CONST_COSTS): Whitespace.
9290 (RTX_COSTS): Add paramethesis, whitespace and wrap.
9291 (REGISTER_MOVE_COST): Add parenthesis.
9292 (MEMORY_MOVE_COST): Likewise.
9293 (EXTRA_CC_MODES): Whitespace.
9294 (SELECT_CC_MODE): Add parenthesis and whitespace.
9295 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
9296 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
9297 (ASM_OUTPUT_LABEL): Add paramethesis.
9298 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
9299 (ASM_OUTPUT_REG_POP): Likewise.
9300 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
9301 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9303 * config/i386/i386.c: Update copyright.
9304 (CHECK_STACK_LIMIT): Add parenthesis.
9305 (AT_BP): Uppercase macro parameter.
9306 (x86_64_int_parameter_registers): Constify.
9307 (x86_64_int_return_registers): Likewise.
9308 (ix86_compare_op0): Use rtx.
9309 (construct_container): Constify INTREG parameter.
9310 (function_arg): Use rtx.
9312 * diagnostic.h: Update copyright date.
9313 (output_buffer_state): Add parenthesis.
9314 (output_buffer_format_args): Likewise.
9316 * combine.c (combine_instructions): Replace XEXP (links, 0)
9319 2002-01-06 H.J. Lu <hjl@gnu.org>
9321 * cfgcleanup.c (thread_jump): Fix 2 typos.
9323 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
9325 * config.gcc: Add support for --enable-altivec.
9327 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
9329 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
9331 2002-01-06 Jakub Jelinek <jakub@redhat.com>
9333 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
9334 __objc_class_name_*.
9336 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
9338 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
9340 2002-01-06 Richard Henderson <rth@redhat.com>
9342 * reorg.c (emit_delay_sequence): Remove death notes, not merely
9343 nop them out. Increment label reference count for REG_LABEL.
9344 (fill_slots_from_thread): Frob label reference count around
9345 delete_related_insns.
9347 2002-01-05 Richard Henderson <rth@redhat.com>
9349 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
9352 2002-01-05 Richard Henderson <rth@redhat.com>
9354 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
9355 * integrate.c (output_inline_function): Likewise.
9356 * toplev.c (rest_of_compilation): Do it here instead. Move call
9357 to remove_unnecessary_notes after emitting abstract instance.
9358 Force an emitted nested function to have its parent emited as well.
9359 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
9361 (rtl_for_decl_location): Do not look at reload data structures
9362 before reload has run.
9364 2002-01-05 Kazu Hirata <kazu@hxi.com>
9366 * cse.c: Fix formatting.
9367 * dwarf2asm.c: Likewise.
9368 * dwarf2out.c: Likewise.
9369 * explow.c: Likewise.
9370 * expmed.c: Likewise.
9371 * function.c: Likewise.
9373 * gencheck.c: Likewise.
9374 * genrecog.c: Likewise.
9375 * ggc-common.c: Likewise.
9376 * ggc-page.c: Likewise.
9377 * global.c: Likewise.
9379 2002-01-05 Kazu Hirata <kazu@hxi.com>
9381 * combine.c: Fix formatting.
9383 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
9386 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
9388 2002-01-05 David Edelsohn <edelsohn@gnu.org>
9390 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
9391 as 1 for __powerpc64__ as well.
9393 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
9395 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
9398 2002-01-05 Daniel Berlin <dan@dberlin.org>
9400 * lcm.c: Revert change, due to performance regression it causes on
9401 SPEC because it's slightly more conservative (sigh, I hate
9404 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
9406 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
9408 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
9410 * doc/cppinternals.texi: Update.
9412 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
9414 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
9415 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
9417 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
9418 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
9419 kludge for pre-october-14th mmix versions to handle new-found bug
9420 with PUSHJ/PUSHGO and the register stack.
9421 * config/mmix/mmix.h (struct machine_function): Rename member
9422 has_call_value_without_parameters to has_call_without_parameters.
9423 All referers changed.
9424 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
9425 TARGET_MASK_BRANCH_PREDICT): New macros.
9426 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
9427 -mno-reg-stack-fill-bug-workaround.
9428 * config/mmix/mmix.md ("call"): Set struct machine member
9429 has_call_without_parameters.
9431 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
9433 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
9435 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
9437 * cfgcleanup.c: Include tm_p.h
9438 (mark_effect): Fix handling of hard register; fix handling of SET
9440 2002-01-04 Kazu Hirata <kazu@hxi.com>
9442 * config/h8300/h8300.md (anonymous patterns): Check that
9443 operands are registers before using REGNO on them.
9445 2002-01-03 Roland McGrath <roland@frob.com>
9447 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
9449 2002-01-04 Jakub Jelinek <jakub@redhat.com>
9451 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
9452 * c-common.h (genrtl_expr_stmt_value): Likewise.
9453 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
9454 (expand_expr_stmt_value): Add maybe_last argument.
9455 Don't warn about statement with no effect if it is the last statement
9456 in expression statement.
9457 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
9458 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
9459 expand_expr_stmt_value.
9460 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
9461 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
9462 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
9463 as maybe_last to expand_expr_stmt_value.
9465 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
9467 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
9468 be passed in, do not build it.
9469 (c_begin_if_stmt): New function.
9470 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
9471 * c-common.h (c_expand_start_cond): Update prototype.
9472 (c_begin_if_stmt): Prototype new function.
9473 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
9474 * c-parse.in (if_prefix): Use c_begin_if_stmt,
9475 c_begin_while_stmt and c_finish_while_stmt_cond.
9477 2002-01-04 William Cohen <wcohen@redhat.com>
9479 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
9480 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
9481 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
9482 * config/pa/som.h (ASM_FILE_START): Likewise.
9484 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
9486 * lcm.c: Include df.h.
9487 Add available_transfer_function prototype.
9488 (compute_available): Rework to use iterative dataflow framework.
9489 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
9490 with bb_info in df.h
9491 (available_transfer_function): New function.
9493 * Makefile.in (lcm.o): add df.h to dependencies.
9495 2002-01-04 Richard Henderson <rth@redhat.com>
9497 * config/alpha/alpha.c (some_operand): Accept HIGH.
9498 (input_operand): Likewise; accept simple references to globals.
9499 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
9500 (alpha_const_double_ok_for_letter_p): Likewise.
9501 (alpha_extra_constraint): Likewise.
9502 (alpha_preferred_reload_class): Likewise. Do not force
9503 symbolic constants to memory.
9504 (alpha_legitimate_address_p): Accept simple references
9505 to small_symbolic_operand.
9506 (alpha_legitimize_address): New arg scratch. Be prepared to be
9507 called when no_new_pseudos. Emit simple symbolic references.
9508 Split integers into low, high, and rest.
9509 (alpha_expand_mov): Use alpha_legitimize_address.
9510 (some_small_symbolic_mem_operand): New.
9511 (split_small_symbolic_mem_operand): New.
9512 * config/alpha/alpha-protos.h: Update.
9513 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
9514 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
9515 (EXTRA_CONSTRAINT): Likewise.
9516 (PREFERRED_RELOAD_CLASS): Likewise.
9517 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
9518 (PREDICATE_CODES): Update.
9519 * config/alpha/alpha.md: New post-reload splitters to convert
9520 simplfied symbolic operands to the form that references $29.
9521 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
9522 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
9524 2002-01-03 Richard Henderson <rth@redhat.com>
9526 * local-alloc.c (function_invariant_p): Update commentary.
9528 2002-01-04 H.J. Lu <hjl@gnu.org>
9530 * toplev.c (rest_of_compilation): Fix a typo when calling
9533 2002-01-03 Kazu Hirata <kazu@hxi.com>
9535 * c-common.c: Fix formatting.
9536 * diagnostic.c: Likewise.
9537 * doloop.c: Likewise.
9538 * dwarf2out.c: Likewise.
9540 2002-01-03 Kazu Hirata <kazu@hxi.com>
9542 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
9543 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
9545 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
9547 * cpperror.c: Update comments and copyright.
9548 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
9549 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
9551 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
9553 * collect2.c (main): Use strcmp when testing for "-shared".
9555 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
9557 * cppmacro.c: Don't include intl.h. Update comments.
9558 (new_number_token): Allocate enough buffer for 64-bit unsigned
9559 integers; update prototype.
9560 * cppmain.c: Update comments.
9562 2002-01-03 William Cohen <wcohen@redhat.com>
9564 * function.h (struct function): Add profile.
9565 (current_function_profile): New.
9566 doc/extend.texi: Update documentation.
9567 * final.c (final_start_function): Use current_function_profile
9568 instead of profile_flag.
9569 (profile_after_prologue): Likewise.
9570 * function.c (expand_function_start): Likewise.
9571 (expand_function_start): Likewise.
9572 * config/alpha/alpha.c (direct_call_operand):
9573 (alpha_does_function_need_gp): Likewise.
9574 (alpha_expand_prologue): Likewise.
9575 * config/arm/arm.c (arm_expand_prologue): Likewise.
9576 thumb_expand_prologue: Likewise.
9577 * config/d30v/d30v.c (d30v_stack_info): Likewise.
9578 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
9579 (fr30_expand_prologue): Likewise.
9580 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
9581 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
9582 * config/i386/i386.h (FINALIZE_PIC): Likewise.
9583 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
9584 * config/i960/i960.c (i960_output_function_prologue): Likewise.
9585 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
9586 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
9587 (m32r_expand_prologue): Likewise.
9588 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
9589 (m88k_expand_prologue): Likewise.
9590 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
9591 * config/mips/mips.c (compute_frame_size): Likewise.
9592 (mips_expand_prologue): Likewise.
9593 (mips_can_use_return_insn): Likewise.
9594 * config/pa/elf.h (ASM_FILE_START): Likewise.
9595 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
9596 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
9597 * config/pa/som.h (ASM_FILE_START): Likewise.
9598 * config/romp/romp.c (romp_using_r14): Likewise.
9599 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
9600 (rs6000_stack_info): Likewise.
9601 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9602 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
9603 * config/v850/v850.c (compute_register_save_size): Likewise.
9605 2002-01-03 Jakub Jelinek <jakub@redhat.com>
9607 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
9608 gen_lowpart_common fails, use gen_lowpart_SUBREG.
9610 2002-01-03 Turly O'Connor <turly@apple.com>
9612 * darwin.c (machopic_output_possible_stub_label): Don't generate
9613 stub routines for pseudo-stubs which we've just defined.
9615 2002-01-03 Kazu Hirata <kazu@hxi.com>
9617 * builtins.c: Fix formatting.
9618 * c-typeck.c: Likewise.
9619 * combine.c: Likewise.
9623 2002-01-03 Andreas Schwab <schwab@suse.de>
9625 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
9626 and return true if _cpp_push_next_buffer pushed a new include
9628 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
9629 _cpp_pop_file_buffer did not push a new file.
9630 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
9632 2002-01-02 Eric Christopher <echristo@redhat.com>
9634 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
9635 FIND_REG_INC_NOTE call. Update copyright.
9636 * loop.c (canonicalize_condition): Ditto.
9637 * reorg.c (delete_scheduled_jump): Ditto.
9639 2002-01-03 Kazu Hirata <kazu@hxi.com>
9641 * gcse.c: Fix formatting.
9643 2002-01-03 Graham Stott <grahams@redhat.com>
9645 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
9646 forward defs for struct tags rtx_def, union_tree, rtvec_def
9647 also output corresponding typedefs for rtx, tree, and rtvec.
9649 * system.h: Move forward defs for struct tags rtx_def, union_tree,
9650 rtvec_def along with corresponding typedefs for rtx, tree, and
9651 rtvec to config.h, hconfig.h, tconfig.h.
9653 2002-01-03 Graham Stott <grahams@redhat.com>
9655 * tree.h: Update copyright date.
9656 (IS_EXPR_CODE_CLASS): Add parenthesis.
9657 (TREE_SET_CODE): Add whitespace.
9658 (TREE_CHECK): Add parenthesis.
9659 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
9660 (CST_OR_CONSTRUCTOR_CHECK):
9661 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
9662 (TREE_SYMBOL_REFERENCED): Whitespace.
9663 (INT_CST_LT): Likewise.
9664 (INT_CST_LT_UNSIGNED): Likewise.
9665 (tree_real_cst): Unwrap comment.
9666 (tree_string): Likewise.
9667 (tree_complex): Likewise.
9668 (IDENTIFIER_POINTER): correct cast.
9669 (SAVE_EXPR_CONTEXT): Whitespace.
9670 (EXPR_WFL_FILENAME_NODE): Likewise.
9671 (EXPR_WFL_FILENAME): Remove parenthesis.
9672 (DECL_ORIGIN): Add parenthesis.
9673 (DECL_FROM_INLINE): Use NULL_TREE.
9674 (build_int_2): Whitespace.
9675 (build_type_variant): Add parenthesis.
9677 * gcc/jcf-parse.c: Update copyright date.
9678 (yyparse): Constify resource_filename.
9680 2002-01-03 Graham Stott <grahams@redhat.com>
9682 * rtl.h: Update copyright date.
9683 (RTL_CHECK1): Wrap long line.
9684 (RTL_CHECK2): Likewise.
9685 (RTL_CHECKC1): Wrap long line and whitespace.
9686 (RTL_CHECKC2): Likewise.
9687 (XWINT): Whitespace.
9693 (XBITMAP): Likewise.
9704 (X0BITMAP): Likewise.
9706 (X0BBDEF): Likewise.
9707 (X0ADVFLAGS): Likewise.
9708 (X0CSELIB): Likewise.
9709 (X0MEMATTR): Likewise.
9717 (XCBITMAP): Likewise.
9719 (XCBBDEF): Likewise.
9720 (XCADVFLAGS): Likewise.
9721 (XCCSELIB): Likewise.
9723 (INSN_UID): Likewise.
9724 (PREV_INSN): Likewise.
9725 (PATTERN): Likewise.
9726 (INSN_CODE): Likewise.
9727 (PUT_REG_NOTE_KIND): Likewise.
9728 (CODE_LABEL_NUMBER): Likewise.
9729 (NOTE_SOURCE_FILE): Likewise.
9730 (NOTE_BLOCK): Likewise.
9731 (NOTE_EH_HANDLER): Likewise.
9732 (NOTE_RANGE_INFO): Likewise.
9733 (NOTE_LIVE_INFO): Likewise.
9734 (NOTE_BASIC_BLOCK): Likewise.
9735 (NOTE_EXPECTED_VALUE): Likewise.
9736 (NOTE_LINE_NUMBER): Likewise.
9737 (LABEL_NAME): Likewise.
9738 (LABEL_NUSES): Likewise.
9739 (LABEL_ALTERNATE_NAME): Likewise.
9740 (ADDRESSOF_DECL): Likewise.
9741 (JUMP_LABEL): Likewise.
9742 (LABEL_NEXTREF): Likewise.
9744 (ORIGINAL_REGNO: Likewise.
9745 (HARD_REGISTER_NUM_P): Add parenthesis.
9746 (SUBREG_REG): Whitespace.
9747 (SUBREG_BYTE): Likewise.
9748 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
9749 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
9750 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
9751 (ASM_OPERANDS_INPUT_VEC): Likewise.
9752 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
9753 (ASM_OPERANDS_INPUT): Likewise.
9754 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
9755 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
9756 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
9757 (ASM_OPERANDS_INPUT_MODE): Likewise.
9758 (ASM_OPERANDS_SOURCE_FILE): Likewise.
9759 (ASM_OPERANDS_SOURCE_LINE): Likewise.
9760 (MEM_SET_IN_STRUCT_P): Minor reformat.
9761 (TRAP_CONDITION): Whitespace.
9762 (TRAP_CODE): Likewise.
9763 (COND_EXEC_TEST): Likewise.
9764 (COND_EXEC_CODE): Likewise.
9765 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
9766 (PHI_NODE_P): Add parenthesis.
9767 (plus_constant): Whitespace and add parenthesis.
9769 2002-01-03 Kazu Hirata <kazu@hxi.com>
9771 * config/avr/avr.c: Fix comment typos.
9772 * config/c4x/c4x.md: Likewise.
9773 * config/dsp16xx/dsp16xx.h: Likewise.
9774 * config/dsp16xx/dsp16xx.md: Likewise.
9775 * config/i386/i386.md: Likewise.
9776 * config/ia64/ia64.c: Likewise.
9777 * config/m32r/m32r.h: Likewise.
9778 * config/m68hc11/m68hc11.md: Likewise.
9779 * config/mmix/mmix.c: Likewise.
9780 * config/mn10200/mn10200.c: Likewise.
9781 * config/romp/romp.c: Likewise.
9782 * config/sh/sh.c: Likewise.
9783 * config/stormy16/stormy16.c: Likewise.
9784 * config/stormy16/stormy16.h: Likewise.
9785 * config/stormy16/stormy16.md: Likewise.
9787 2002-01-03 Graham Stott <grahams@redhat.com>
9789 * loop.h: Update copyright date.
9790 (LOOP_MOVABLES): Fix typo.
9791 (LOOP_REGS): Likewise.
9792 (LOOP_IVS): Likewise.
9794 2002-01-03 Graham Stott <grahams@redhat.com>
9796 * cppinit.c: Update copyright date.
9797 Don't include output.h
9798 * Makefile.in: Update copyright date.
9801 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
9804 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
9805 (-pthread) Add to RS/6000 options.
9807 2002-01-02 Kazu Hirata <kazu@hxi.com>
9809 * except.c: Fix comment typos.
9811 * varasm.c: Likewise.
9812 * doc/tm.texi: Fix a typo.
9814 2002-01-02 Jakub Jelinek <jakub@redhat.com>
9816 * c-typeck.c (output_init_element): Allow initializing static storage
9817 duration objects with compound literals.
9819 2002-01-02 Richard Henderson <rth@redhat.com>
9821 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
9824 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9826 * gcc.c (default_compilers): Const-ify.
9827 * mips-tdump.c (stab_names): Likewise.
9828 * mips-tfile.c (map_coff_types, map_coff_storage,
9829 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
9830 pseudo_ops_t, pseudo_ops): Likewise.
9831 * protoize.c (default_include): Likewise
9833 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
9834 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
9835 Add array size in declaration.
9836 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
9837 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
9838 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
9839 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
9840 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
9841 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
9842 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
9843 emtens, make_nan): Const-ify.
9844 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
9845 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
9847 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
9849 * config.gcc (ia64-*-*): Set extra_headers.
9850 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
9851 * config/alpha/t-osf: Remove.
9852 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
9854 2002-01-02 David Edelsohn <edelsohn@gnu.org>
9856 * config/rs6000/t-aix43: Revert previous change.
9858 2002-01-02 Jason Merrill <jason@redhat.com>
9860 * c-decl.c (c_expand_body): Call outlining_inline_function when
9861 emitting an inline function out of line.
9863 2002-01-02 Richard Henderson <rth@redhat.com>
9865 * dwarf2out.c (limbo_die_node): Add created_for member.
9866 (new_die): New argument created_for. Update all callers.
9867 (mark_limbo_die_list): New.
9868 (dwarf2out_init): Register limbo_die_list as a root.
9869 (dwarf2out_finish): Force insert limbo dies into their function
9872 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
9875 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
9877 2002-01-02 Kazu Hirata <kazu@hxi.com>
9879 * config/h8300/fixunssfsi.c: Update copyright.
9882 * config/h8300/h8300.c: Update copyright.
9885 2002-01-02 Kazu Hirata <kazu@hxi.com>
9887 * config/romp/romp.c: Fix comment formatting.
9888 * config/romp/romp.h: Likewise.
9889 * config/romp/romp.md: Likewise.
9890 * config/s390/s390.c: Likewise.
9891 * config/stormy16/stormy16.c: Likewise.
9892 * config/stormy16/stormy16.h: Likewise.
9894 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
9896 * c-common.h (genrtl_expr_stmt_value): Declare.
9897 * c-semantics.c (genrtl_goto_stmt): Redirect to...
9898 (genrtl_goto_stmt_value): ... this new function. Pass new
9899 argument down to expand_expr_stmt_value, taking
9900 TREE_ADDRESSABLE into account.
9901 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
9902 STMT_EXPR as addressable, i.e., one whose result we want.
9903 * expr.c (expand_expr): Don't save expression statement value
9904 of labeled_blocks or loop_exprs.
9905 * stmt.c (expand_expr_stmt): Redirect to...
9906 (expand_expr_stmt_value): ... this new function. Use new
9907 argument to tell whether to save expression value.
9908 (expand_end_stmt_expr): Reset last_expr_type and
9909 last_expr_value if we don't have either.
9910 * tree-inline.c (declare_return_variable): Mark its use
9911 statement as addressable.
9912 * tree.h: Document new use of TREE_ADDRESSABLE.
9913 (expand_expr_stmt_value): Declare.
9915 2002-01-01 Tom Rix <trix@redhat.com>
9917 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
9918 rs6000_emit_allocate_stack.
9920 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
9922 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
9923 ${srcdir}/ginclude/ to every entry in extra_headers.
9924 * configure: Regenerate.
9925 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
9926 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
9927 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
9928 * ginclude/proto.h: Rename to config/convex/proto.h.
9930 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9932 * attribs.c (handle_vector_size_attribute): Use host_integerp
9933 and tree_int_cst; remove warnings.
9934 * caller-save.c (insert_restore): Add cast to get rid of warning.
9935 (insert_save): Likewise.
9936 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
9937 * regmove.c (find_matches): Add temporary var to kill a warning.
9939 2002-01-01 Douglas B Rupp <rupp@gnat.com>
9941 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
9942 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
9943 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
9944 (vms-dwarf2eh.o): Add Makefile rule.
9945 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
9946 * config/alpha/vms-dwarf2eh.asm: New file.
9948 * gcc.c (delete_if_ordinary): Delete all versions.
9950 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
9952 * config/mmix/mmix.md: Update FIXME to not mention
9954 (MMIX_rJ_REGNUM): New define_constants constant.
9955 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
9956 "*movdicc_real"): Adjust contraints formatting.
9957 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
9958 for branch prediction.
9959 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
9961 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
9962 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
9963 number. Delete related FIXMEs.
9964 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
9965 from number to MMIX_rJ_REGNUM.
9966 (TARGET_MASK_BRANCH_PREDICT): New.
9967 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
9968 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
9969 value. Add -mbranch-predict and -mno-branch-predict.
9970 (TARGET_VERSION): Drop date.
9971 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
9972 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
9973 for finding out global symbols.
9974 (mmix_asm_output_labelref): Revert condition for global symbol.
9975 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
9976 (mmix_print_operand_punct_valid_p): A '+' is valid.
9978 See ChangeLog.6 for earlier changes.