OSDN Git Service

* dwarf2out.c (is_cxx): New fn.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
index ab35538..ac2de5f 100644 (file)
@@ -1,3 +1,361 @@
+2001-11-30  Jason Merrill  <jason@redhat.com>
+
+       * dwarf2out.c (is_cxx): New fn.
+       (add_data_member_location_attribute): Check it.
+       * dbxout.c (dbxout_type): Only look at BINFO_VPTR_FIELD for C++.
+
+Fri Nov 30 08:26:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Handle const1_rtx.
+
+2001-11-30  Daniel Berlin  <dan@cgsoftware.com>
+
+       * genopinit.c (gen_insn): Handle MODE_VECTOR_INT and
+       MODE_VECTOR_FLOAT as allowed.
+
+2001-11-29  Zack Weinberg  <zack@codesourcery.com>
+
+       Purge cruft now we have build libiberty.
+
+       * Makefile.in (OBSTACK, VFPRINTF, DOPRINT, STRSTR,
+       HOST_OBSTACK, HOST_VFPRINTF, HOST_DOPRINT, HOST_STRSTR,
+       USE_HOST_OBSTACK, USE_HOST_VFPRINTF, USE_HOST_DOPRINT,
+       USE_HOST_STRSTR): Delete variables.
+       (vfprintf.o, doprint.o, strstr.o, splay-tree.o, obstack.o,
+       hashtab.o, safe-ctype.o, $(HOST_PREFIX_1)obstack.o,
+       $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
+       $(HOST_PREFIX_1)strstr.o), $(HOST_PREFIX_1)): Delete rules.
+       (LIBIBERTY, BUILD_LIBIBERTY): New variables.
+       (LIBDEPS): Now just $(INTLDEPS) $(LIBIBERTY).
+       (LIBS): Now just $(INTLLIBS) @LIBS@ $(LIBIBERTY).
+       (HOST_LIBDEPS): Now just $(BUILD_LIBIBERTY).
+       (HOST_LIBS): Ditto.
+       (HOST_RTL): Remove hashtab.o safe-ctype.o.
+       (OBJS): Remove splay-tree.o.
+       (gen-protos): Depend on $(HOST_LIBS), not ../libiberty/libiberty.a.
+       (distclean): No need to delete splay-tree.c obstack.c
+       hashtab.c safe-ctype.c.
+       (mostlyclean): Delete build copies of print-rtl.c bitmap.c
+       errors.c ggc-none.c (all prefixed with $(HOST_PREFIX_1).
+       * aclocal.m4 (gcc_AC_FUNC_VFPRINTF_DOPRNT, gcc_AC_FUNC_STRSTR):
+       Delete.
+       * configure.in: Don't use them.
+       Set and substitute @FORBUILD@.
+       * config.in, configure: Regenerate.
+       * doprint.c: Move to libiberty/_doprnt.c.
+       * doc/configterms.texi: Document that libiberty is now built
+       up to three times.  Fix typo.
+
+2001-11-30  Jason Merrill  <jason@redhat.com>
+
+       * dwarf2out.c (add_data_member_location_attribute): Do the
+       right thing for virtual bases.
+       * dbxout.c (dbxout_type): For a virtual base, print the offset
+       within the vtable.
+
+2001-11-29  Zoltan Hidvegi  <hzoli@hzoli.2y.net>
+
+       * doloop.c (doloop_valid_p): Check for LTU and GTU as well.
+
+2001-11-29  Aldy Hernandez  <aldyh@redhat.com>
+
+       * config/rs6000/rs6000.c (function_arg): Unnamed vector arguments
+       go in memory.
+       Remove unused attribute for named.
+
+2001-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * genattrtab.c (attr_rtx_1): New function containing the
+       majority of `attr_rtx'.  Move variable declarations into the
+       scope where they are used.  Eliminate unnecessary gotos.
+       (attr_rtx): Now just a wrapper for `attr_rtx_1' using VA_OPEN,
+       VA_FIXEDARG, and VA_CLOSE.
+
+2001-11-30  Hans-Peter Nilsson  <hp@axis.com>
+
+       * config/cris/cris.c (cris_notice_update_cc): Check first
+       destination also against overlap with cc_status.value2 and second
+       destination against overlap with cc_status.value1.  For overlaps,
+       clear overlapped value, don't just CC_STATUS_INIT.
+
+       * config/cris/cris.h (EXTRA_CONSTRAINT_T): Fix spacing and FIXME.
+       Fix typo in comment.
+       (LINK_SPEC): Remove whitespace at end of line.
+
+2001-11-29  Jakub Jelinek  <jakub@redhat.com>
+
+       * c-lex.c (init_c_lex): Canonicalize "-" filename to "".
+
+2001-11-29  Jakub Jelinek  <jakub@redhat.com>
+
+       * gcc.c (ASM_DEBUG_SPEC): Only check HAVE_AS_G*_DEBUG_FLAG
+       macros for the supported debugging types.
+
+2001-11-29  Craig Rodrigues  <rodrigc@gcc.gnu.org>
+
+       PR other/4932
+       * config/i386/i386.c (print_operand):  Verify that the
+         argument to %c is a constant and not a conditional which
+         needs to be reversed.
+
+Thu Nov 29 11:12:59 2001  Geoffrey Keating (geoffk@redhat.com)
+
+       * emit-rtl.c (gen_lowpart_common): Fix conversion of
+       REAL_VALUE_TYPEs to an array of target integers.  Fix extraction
+       of low part of those arrays for 32bit and 64bit hosts.
+
+2001-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * Makefile.in (insn-output.o): Depend on insn-codes.h.
+
+2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * configure.in (target_list): Add generated-manpages.
+       * configure: Regenerate.
+       * Makefile.in (generated-manpages): Depend on
+       lang.generated-manpages.
+       * objc/Make-lang.in (objc.generated-manpages): New dummy target.
+
+2001-11-29  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * config/arm/crti.asm (_init): Add .thumb_func if compiled
+       with -mthumb.
+       (_fini): Add .thumb_func if compiled with -mthumb.
+
+2001-11-28  Eric Christopher  <echristo@redhat.com>
+
+       * config/mips/mips.c (override_options): Fix thinko in mips_tune
+       for mips32/mips64. Remove MASK_SOFT_FLOAT configuration bits.
+
+Thu Nov 29 00:24:15 EST 2001  John Wehle  (john@feith.com)
+
+       * alpha.md (tablejump): Use pic_offset_table_rtx
+       instead of gen_rtx_REG.
+
+Wed Nov 28 15:36:13 2001  Jeffrey A Law  (law@cygnus.com)
+
+       * expr.c (store_expr): When copying a string constant into an
+       array, reset the known alignment of the MEM for the section to
+       be cleared to BITS_PER_UNIT.
+
+2001-11-28  Hans-Peter Nilsson  <hp@axis.com>
+
+       * config/cris/cris.c: Remove whitespace at end of line.
+
+Wed Nov 28 14:51:23 2001  Douglas B. Rupp  <rupp@gnat.com>
+
+       * config.gcc (i[34567]86-*-interix3*): New case.
+       * config/x-interix3, config/interix3.h, config/i386/i386-interix3.h:
+       New files.
+
+2001-11-28  Richard Henderson  <rth@redhat.com>
+
+       * config/alpha/alpha.md (sibcall_osf_1, sibcall_value_osf_1): Use
+       symbolic_operand as the predicate.
+
+2001-11-28  Richard Henderson  <rth@redhat.com>
+
+       * doloop.c (doloop_modify_runtime): Properly select induction
+       variable; skip late entry test if biv initializer created by loop.
+
+Wed Nov 28 08:21:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * tree.h (EXPR_WFL_LINECOL): Used by Java in node other than
+       EXPR_WITH_FILE_LOCATION, so change checks and documentation.
+
+       * tree.h (TREE_VIA_PROTECTED): Update to show can be in TREE_VEC.
+
+       * tree.h: Add missing checks on some macros; make formatting more
+       consistent.
+
+       * stor-layout.c (put_pending_size): Look for SAVE_EXPR if not at top
+       level; only add to pending_sizes if find it.
+
+       * langhooks.c (lhd_safe_from_p): Add ATTRIBUTE_UNUSED.
+
+       * df.c (iterate_dataflow_sbitmap, iterate_dataflow_bitmap):
+       Add casts to remove warnings.
+
+       * Makefile.in (OBJS): Sort alphabetically.
+
+       * print-rtl.c (print_rtx): If RTX code is bad, just say so.
+       Also minor cleanups.
+
+Wed Nov 28 06:52:27 2001  Arnaud Charlet  <charlet@ACT-Europe.FR>
+
+       * Makefile.in (ORDINARY_FLAGS_TO_PASS): Remove STAGE_PREFIX.
+       (FLAGS_TO_PASS): Add STAGE_PREFIX.
+       (SUBDIR_FLAGS_TO_PASS): Apply PREPEND_DOTDOT_TO_RELATIVE_PATH
+       to STAGE_PREFIX.
+
+Wed Nov 28 10:42:19 CET 2001  Jan Hubicka  <jh@suse.cz>
+
+       * cse.c (true_dependence_in_rtx): New function.
+       (invalidate): Use it.
+
+       * c-common.h (GOTO_FAKE_P): New macro.
+       * tree-inline.c (GOTO_FAKE_P): Set.
+       * c-tree.texi (GOTO_FAKE_P): Document.
+
+       * varasm.c (assemble_variable): Set reloc to 3 for error_mark
+       containing pointers.
+       (output_addressed_constants): Check for local/external relocations.
+       * elfos.h (SELECT_SECTION): Classify data section.
+       * tm.texi (SELECT_SECTION): Update documentation.
+
+       * cfganal.c (flow_dfs_compute_reverse_add_bb): set visited bit.
+       (flow_dfs_compute_reverse_execute): Add only unvisited blocks.
+
+2001-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
+       UNALIGNED_DOUBLE_INT_ASM_OP): Also provide defaults when we have
+       OBJECT_FORMAT_ROSE.
+
+2001-11-28  Hans-Peter Nilsson  <hp@axis.com>
+
+       * config/cris/cris.c: Tweak spacing for prototypes.
+       (LOSE_AND_RETURN): New macro.
+       (cris_operand_lossage): New function.
+       (cris_print_index, cris_print_base): Use cris_operand_lossage
+       rather than fatal_insn.
+       (cris_print_operand, cris_print_operand_address): Use
+       LOSE_AND_RETURN rather than fatal_insn and internal_error.
+       (cris_output_addr_const): Use LOSE_AND_RETURN and
+       output_operand_lossage rather than fatal_insn and internal_error
+       for valid but unexpected rtx expressions.
+
+       * config/cris/cris.c (cris_split_movdx): Don't call alter_subreg
+       for a SUBREG in src or dest, abort instead.
+
+2001-11-28  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * doc/passes.texi: Remove reference to c-dump.c. Update tree inlining
+       doc.
+
+2001-11-27  Jakub Jelinek  <jakub@redhat.com>
+
+       * gcc.c (ASM_DEBUG_SPEC): Use conditional expression rather than
+       preprocessor define.  If only DBX_DEBUGGING_INFO or only
+       DWARF2_DEBUGGING_INFO is supported for the target, provide
+       appropriate definitions.
+
+2001-11-27  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+       * Makefile.in: Update, and add c-objc-common.o dependencies.
+       * c-lang.c: Remove unnecessary includes.
+       (c_init): Move bulk of code to c_objc_common_init, and call it.
+       (c_tree_printer, c_missing_noreturn_ok_p, c_disregard_inline_limits,
+       inline_forbidden_p, c_cannot_inline_tree_fn): Move to
+       c-objc-common.c.
+       * c-objc-common.c: New.  Mostly pulled from c-lang.c.
+       * c-tree.h (c_disregard_inline_limits, c_cannot_inline_fn,
+       c_objc_common_init, c_missing_noreturn_ok_p): New.
+       * toplev.c: Update comment.
+       * doc/passes.texi: Update.
+objc:
+       * ojbc-act.c (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
+       LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
+       LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Override.
+       (objc_init): Update to use c_objc_common_init.
+
+2001-11-27  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+       * cpphash.c (_cpp_init_hashtable): Update.
+       * cpphash.h (struct spec_nodes): Remove n_L.
+       * cpplex.c (_cpp_lex_direct): Check for prefix L separately.
+
+2001-11-17  Richard Henderson  <rth@redhat.com>
+
+       * unroll.c (loop_iterations): Move last change ...
+       * doloop.c (doloop_modify_runtime): ... here.
+
+2001-11-17  Corey Minyard  <minyard@acm.org>
+           Richard Henderson  <rth@redhat.com>
+
+       * unroll.c (loop_iterations): Detect one situation in which we
+       overestimate the number of iterations.
+
+2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       * gcc.c (set_input): Export.
+       Move declaration ...
+       gcc.h (set_input): ... here.
+
+2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       * gcc.c (set_collect_gcc_options): New function, split out from
+       main.
+       Ignore elided switches.
+       (do_spec): Invoke before executing command.
+       (do_spec_1): Likewise.
+       Fixes PR other/3968.
+
+2001-11-27  Hans-Peter Nilsson  <hp@axis.com>
+
+       * config/cris/cris.h (INT_ASM_OP): Remove.
+
+2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       * config/i386/sol2.h (WINT_TYPE): Redefine.
+       (WINT_TYPE_SIZE): Likewise.
+
+2001-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
+       (dup2): Make static and add prototype.
+       * m68k/plexus.h: Don't define NO_DUP2.
+       * configure.in (AC_CHECK_FUNCS): Add dup2.
+       * config.in, configure: Regenerate.
+
+       * ia64/aix.h (REG_SIZE): Don't #undef.
+       * sparc.h (REG_SIZE): Delete.
+       * flow.c (mark_used_regs): Don't use REG_SIZE.
+       * regs.h (REG_SIZE): Delete.
+
+2001-11-27  Andreas Schwab  <schwab@suse.de>
+
+       * gcc.c: Fix typo PREFERRED_DEBUGGING_FORMAT ->
+       PREFERRED_DEBUGGING_TYPE.
+
+Tue Nov 27 08:21:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * Makefile.in (c-lang.o): Depends on langhooks-def.h.
+       (expr.o, varasm.o): Depends on langhooks.h.
+       * c-common.c (c_safe_from_p): Always declare.
+       (c_expand_expr): Refine when declared.
+       * c-lang.c (c-common.h): Now include.
+       (LANG_HOOKS_SAFE_FROM_P): Define new hook.
+       (c_init): Don't set lang_safe_from_expr.
+       * expr.c (langhooks.h): Now include.
+       (lang_safe_from_p): No longer define.
+       (safe_from_p): Use lang hook.
+       (expand_expr): Set IGNORE if VOID_TYPE result of VIEW_CONVERT_EXPR too.
+       (expand_expr, case VIEW_CONVERT_EXPR): Pass ro_modifier down.
+       * expr.h (lang_expand_constant, lang_safe_from_p): Delete.
+       * langhooks-def.h (lhd_return_tree, lhd_safe_from_p): New decls.
+       (LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
+       * langhooks.c (lhd_return_tree, lhd_safe_from_p): New functions.
+       * langhooks.h (struct lang_hooks): New fields expand_constant
+       and safe_from_p.
+       * output.h (output_constant): Size arg is HOST_WIDE_INT.
+       * stmt.c (expand_decl_init): No longer need to expand constant
+       for CONST_DECL.
+       * stor-layout.c (put_pending_size): Don't check for SAVE_EXPR.
+       * toplev.c (lang_expand_constant): Delete var.
+       * tree.c (save_expr): Don't put another SAVE_EXPR around simple
+       operations on SAVE_EXPR.
+       * varasm.c (langhooks.h): Now include.
+       (compare_constant_1): Use lang_hooks, not lang_expand_constant.
+       (record_constant_1, output_addressed_constants): Likewise.
+       (initializer_constant_valid_p, output_constant): Likewise.
+       (output_constant_def): Process no-defer of string constant.
+       (output_addressed_constants, case ADDR_EXPR): Use handled_component_p.
+       (output_constant): Strip more conversions.
+       Track our size and pad for the rest.
+       (array_size_for_constructor): Remove code for non-byte STRING_CST.
+       (output_constructor): SIZE now HOST_WIDE_INT.
+
 2001-11-27  Richard Henderson  <rth@redhat.com>
 
        * ifcvt.c (noce_try_store_flag_constants): Test for overflow
@@ -133,12 +491,12 @@ Mon Nov 26 11:36:20 CET 2001  Jan Hubicka  <jh@suse.cz>
 2001-11-25  Daniel Berlin  <dan@cgsoftware.com>
 
        * df.c: Add prototypes for hybrid_search_bitmap and
-       hybrid_search_sbitmap. 
+       hybrid_search_sbitmap.
        (hybrid_search_bitmap): New function.
        (hybrid_search_sbitmap): New function.
        (iterative_dataflow_sbitmap): Change to use hybrid_search_sbitmap.
        (iterative_dataflow_bitmap): Ditto.
-       
+
 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
 
        * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
@@ -253,7 +611,7 @@ Thu Nov 22 06:49:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
        targets.
 
        * config.gcc (xscale-coff): Add necessary header files to
-        tm_file variable.
+       tm_file variable.
 
 2001-11-20  Zack Weinberg  <zack@codesourcery.com>