platform/upstream/gcc.git
25 years agocp-tree.h (warn_float_equal): Declare.
Dirk Zoller [Thu, 30 Sep 1999 06:15:53 +0000 (06:15 +0000)]
cp-tree.h (warn_float_equal): Declare.

        * cp-tree.h (warn_float_equal): Declare.
        * decl2.c (warn_float_equal): Define.
        (lang_decode_option): Recognize -W[no-]float-equal.
        * typeck.c (build_binary_op_nodefault): Conditionally warn
        about equality tests of floating point types.

From-SVN: r29721

25 years ago* gcc.misc-tests/mg.exp: delete extraneous redirection.
Donn Terry [Thu, 30 Sep 1999 05:50:28 +0000 (05:50 +0000)]
* gcc.misc-tests/mg.exp: delete extraneous redirection.

From-SVN: r29720

25 years agocse.c (struct set): Delete inner_dest_loc field.
Jeffrey A Law [Thu, 30 Sep 1999 05:43:58 +0000 (05:43 +0000)]
cse.c (struct set): Delete inner_dest_loc field.

        * cse.c (struct set): Delete inner_dest_loc field.
        (cse_insn): Remove assignments to inner_dest_loc field.

From-SVN: r29719

25 years agoREADME: New file.
Bryce McKinlay [Thu, 30 Sep 1999 02:17:36 +0000 (02:17 +0000)]
README: New file.

1999-09-29  Bryce McKinlay  <bryce@albatross.co.nz>

        * README: New file.

From-SVN: r29717

25 years agoupdate -fno-rtti
Jason Merrill [Thu, 30 Sep 1999 00:50:37 +0000 (20:50 -0400)]
update -fno-rtti

From-SVN: r29716

25 years agoSupport normal type_info-based EH mechanisms with -fno-rtti.
Jason Merrill [Thu, 30 Sep 1999 00:50:29 +0000 (00:50 +0000)]
Support normal type_info-based EH mechanisms with -fno-rtti.

* except.c (build_eh_type_type): Remove special -fno-rtti handling.
(build_eh_type_type_ref): Likewise.
(build_eh_type): Remove.
(expand_throw): Call build_eh_type_type, not build_eh_type.
* decl2.c (import_export_decl): Don't associate the tinfo fn with
the vtable if -fno-rtti.
* decl.c (init_decl_processing): Always init_rtti_processing.

* rtti.c (get_typeid): Don't complain about -fno-rtti.

From-SVN: r29715

25 years agore GNATS gcj/55 (jc1 dies on implicit String conversion)
Tom Tromey [Wed, 29 Sep 1999 23:10:11 +0000 (23:10 +0000)]
re GNATS gcj/55 (jc1 dies on implicit String conversion)

* libjava.lang/PR55.out: New file.
* libjava.lang/PR55.java: New file.

From-SVN: r29714

25 years agoggc-page.c: Don't include <unistd.h> etc taken care of by "system.h".
Richard Henderson [Wed, 29 Sep 1999 23:08:11 +0000 (16:08 -0700)]
ggc-page.c: Don't include <unistd.h> etc taken care of by "system.h".

        * ggc-page.c: Don't include <unistd.h> etc taken care of
        by "system.h".  Include <sys/mman.h> afterward.

From-SVN: r29713

25 years agors6000.c (rs6000_encode_section_info): If ggc_p, use ggc_alloc_string.
Richard Henderson [Wed, 29 Sep 1999 23:05:46 +0000 (16:05 -0700)]
rs6000.c (rs6000_encode_section_info): If ggc_p, use ggc_alloc_string.

        * rs6000.c (rs6000_encode_section_info): If ggc_p, use
        ggc_alloc_string.

From-SVN: r29712

25 years agoclass.c (class_cache_obstack, [...]): Remove.
Jason Merrill [Wed, 29 Sep 1999 22:52:57 +0000 (22:52 +0000)]
class.c (class_cache_obstack, [...]): Remove.

* class.c (class_cache_obstack, class_obstack): Remove.
(init_class_processing): Don't initialize class_obstack.
(push_cache_obstack): Remove.
(pushclass): Don't call it.
* cp-tree.h: Remove prototype for push_cache_obstack.
* decl.c (decl_obstack, decl_stack, push_decl_level): Remove.
(pushlevel_class): Don't push_decl_level.
(poplevel_class): Don't pop_stack_level.
(push_class_level_binding): Don't push_cache_obstack.
(init_decl_processing): Don't intialize decl_obstack.
* search.c (push_class_decls): Don't push_cache_obstack.
* tree.c (list_hash_add): Put hash node on permanent_obstack.
(hash_tree_cons): Don't mess with obstacks.
(print_lang_statistics): Don't print stats for class_obstack and
decl_obstack.

From-SVN: r29711

25 years agodump.c (dequeue_and_dump): Dump DECL_EXTERNAL.
Mark Mitchell [Wed, 29 Sep 1999 20:07:56 +0000 (20:07 +0000)]
dump.c (dequeue_and_dump): Dump DECL_EXTERNAL.

* dump.c (dequeue_and_dump): Dump DECL_EXTERNAL.
* ir.texi: Document DECL_EXTERNAL.

From-SVN: r29710

25 years agodump.c (dequeue_and_dump): Improve support for dumping THUNK_DECLs.
Mark Mitchell [Wed, 29 Sep 1999 19:00:46 +0000 (19:00 +0000)]
dump.c (dequeue_and_dump): Improve support for dumping THUNK_DECLs.

* dump.c (dequeue_and_dump): Improve support for dumping THUNK_DECLs.
* ir.texi: Document THUNK_DECLs.

From-SVN: r29709

25 years agocp-tree.h (TMPL_ARGS_HAVE_MULTIPLE_LEVELS): Move here from pt.c.
Mark Mitchell [Wed, 29 Sep 1999 17:24:21 +0000 (17:24 +0000)]
cp-tree.h (TMPL_ARGS_HAVE_MULTIPLE_LEVELS): Move here from pt.c.

* cp-tree.h (TMPL_ARGS_HAVE_MULTIPLE_LEVELS): Move here from pt.c.
(TMPL_ARGS_DEPTH, TMPL_ARGS_LEVEL, SET_TMPL_ARGS_LEVEL): Likewise.
(TMPL_ARG, SET_TMPL_ARG, NUM_TMPL_ARGS, TMPL_PARMS_DEPTH): Likewise.
* error.c (dump_template_bindings): Remove unused parameter.
Handle multiple levels of template parameters.
(dump_template_decl): Use `parms', not `args', for template
parameters.  Fix thinko.
(dump_function_decl): Use DECL_TEMPLATE_INSTANTIATION.  Don't pass
flags to dump_template_bindings.
* pt.c (TMPL_ARGS_HAVE_MULTIPLE_LEVELS): Move to cp-tree.h.
(TMPL_ARGS_DEPTH, TMPL_ARGS_LEVEL, SET_TMPL_ARGS_LEVEL): Likewise.
(TMPL_ARG, SET_TMPL_ARG, NUM_TMPL_ARGS, TMPL_PARMS_DEPTH): Likewise.
(tsubst_copy): Clarify variable name.
(most_general_template): Robustify.

From-SVN: r29708

25 years agoerror.c (dump_template_parms): Don't use TS_PEDANTIC_NAME to change primary template...
Nathan Sidwell [Wed, 29 Sep 1999 14:59:56 +0000 (14:59 +0000)]
error.c (dump_template_parms): Don't use TS_PEDANTIC_NAME to change primary template rendering.

* error.c (dump_template_parms): Don't use TS_PEDANTIC_NAME
to change primary template rendering.

From-SVN: r29707

25 years agocp-tree.h (UPT_TEMPLATE): Remove.
Mark Mitchell [Wed, 29 Sep 1999 08:16:38 +0000 (08:16 +0000)]
cp-tree.h (UPT_TEMPLATE): Remove.

* cp-tree.h (UPT_TEMPLATE): Remove.
(UPT_PARMS): Likewise.
(DECL_NEEDED_P): New macro.
* decl2.c (finish_vtable_vardecl): Use it.
(finish_objects): Don't crash with -fsyntax-only.
(finish_file): Use DECL_NEEDED_P.  Don't prune vtables when
-fsyntax-only.
* pt.c (tsubst_friend_function): Remove FIXME that talks about
obstacks.
(tsubst_expr): Correct handling of function try-blocks.
* semantics.c: Include flags.h.
(expand_body): Don't do RTL generation if -fsyntax-only.
* Makefile.in (semantics.o): Depends on flags.h.

From-SVN: r29706

25 years agocp-tree.h (UPT_TEMPLATE): Remove.
Mark Mitchell [Wed, 29 Sep 1999 08:06:21 +0000 (08:06 +0000)]
cp-tree.h (UPT_TEMPLATE): Remove.

* cp-tree.h (UPT_TEMPLATE): Remove.
(UPT_PARMS): Likewise.
(DECL_NEEDED_P): New macro.
* decl2.c (finish_vtable_vardecl): Use it.
(finish_objects): Don't crash with -fsyntax-only.
(finish_file): Use DECL_NEEDED_P.  Don't prune vtables when
-fsyntax-only.
* pt.c (tsubst_friend_function): Remove FIXME that talks about
obstacks.
(tsubst_expr): Correct handling of function try-blocks.
* semantics.c: Include flags.h.
(expand_body): Don't do RTL generation if -fsyntax-only.
* Makefile.in (semantics.o): Depends on flags.h.

From-SVN: r29705

25 years agoDaily bump.
Jeff Law [Wed, 29 Sep 1999 07:45:09 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r29704

25 years agoCopyright tweaks.
Jeff Law [Wed, 29 Sep 1999 03:40:50 +0000 (21:40 -0600)]
Copyright tweaks.

From-SVN: r29703

25 years agoImplement function template instantiation pretty printing.
Gabriel Dos Reis [Wed, 29 Sep 1999 01:10:44 +0000 (01:10 +0000)]
Implement function template instantiation pretty printing.

1999-09-28  Gabriel Dos Reis  <gdr@codesourcery.com>

Implement function template instantiation pretty printing.

        * pt.c (most_general_template): Adjust declaration.

        * cp-tree.h: (most_general_template): Declare.

        * error.c (dump_template_value): Rename to ...
        (dump_template_argument): This.
        (dump_template_argument_list): New function.
        (dump_type): Use it.
        (dump_template_parameter): New function.
        (dump_template_decl): Use it.
        (dump_template_bindings): New function.
        (dump_function_decl): Use it. Pretty print function template
        instantiations.

From-SVN: r29702

25 years agoFixed deallocation of a mutex in thr-single.c (patch from Chris Ball <cball@fmco...
Chris Ball [Wed, 29 Sep 1999 00:37:49 +0000 (00:37 +0000)]
Fixed deallocation of a mutex in thr-single.c (patch from Chris Ball <cball@fmco.com>).

From-SVN: r29701

25 years agoconfigure: Rebuilt.
Tom Tromey [Tue, 28 Sep 1999 22:16:57 +0000 (22:16 +0000)]
configure: Rebuilt.

* configure: Rebuilt.
* configure.in (PROCESS): In POSIX case, only set if not already
set.
* configure.host (PROCESS): Set in mips-tx39 case.

From-SVN: r29700

25 years agoaclocal.m4, configure: Rebuilt.
Tom Tromey [Tue, 28 Sep 1999 20:37:20 +0000 (20:37 +0000)]
aclocal.m4, configure: Rebuilt.

* aclocal.m4, configure: Rebuilt.
* acinclude.m4 (LIB_AC_PROG_CC): Provide appropriate AC_PROG_ symbol.

From-SVN: r29699

25 years agoaclocal.m4, configure: Rebuilt.
Tom Tromey [Tue, 28 Sep 1999 20:14:11 +0000 (20:14 +0000)]
aclocal.m4, configure: Rebuilt.

* aclocal.m4, configure: Rebuilt.
* acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide

From-SVN: r29698

25 years agoxcoffout.c (xcoffout_declare_function): Add documentation.
David Edelsohn [Tue, 28 Sep 1999 18:13:58 +0000 (14:13 -0400)]
xcoffout.c (xcoffout_declare_function): Add documentation.

* xcoffout.c (xcoffout_declare_function): Add documentation.
* rs6000.c (num_insns_constant_wide): Use TARGET_POWERPC64 not
TARGET_64BIT.  Compare constant to -1, not bit pattern.
(easy_fp_constant): Use TARGET_POWERPC64 not TARGET_64BIT.
(expand_block_move): Allow 8 DImode loads for PowerPC64.  Fix
gen_movsi typos.

From-SVN: r29697

25 years agoNew test: check ability to generate debug information for incomplete types in
Nick Clifton [Tue, 28 Sep 1999 17:26:01 +0000 (17:26 +0000)]
New test: check ability to generate debug information for incomplete types in
inline functions.

From-SVN: r29696

25 years agoFix the handling of inline, unresolved type references.
Nick Clifton [Tue, 28 Sep 1999 17:11:44 +0000 (17:11 +0000)]
Fix the handling of inline, unresolved type references.

From-SVN: r29695

25 years agoc-decl.c (init_decl_processing): If MD_INIT_BUILTINS is defined, call it.
Bernd Schmidt [Tue, 28 Sep 1999 13:43:34 +0000 (13:43 +0000)]
c-decl.c (init_decl_processing): If MD_INIT_BUILTINS is defined, call it.

* c-decl.c (init_decl_processing): If MD_INIT_BUILTINS is defined,
call it.
* reg-stack.c (straighten_stack): Copy hard reg set with
COPY_HARD_REG_SET.

From-SVN: r29694

25 years ago* g++.old-deja/g++.other/decl6.C: New test.
Nathan Sidwell [Tue, 28 Sep 1999 12:46:10 +0000 (12:46 +0000)]
* g++.old-deja/g++.other/decl6.C: New test.

From-SVN: r29693

25 years agodecl.c (grokdeclarator): Distinguish parameter context for diagnostics.
Nathan Sidwell [Tue, 28 Sep 1999 12:30:22 +0000 (12:30 +0000)]
decl.c (grokdeclarator): Distinguish parameter context for diagnostics.

* decl.c (grokdeclarator): Distinguish parameter context for
diagnostics. Tidy up missing type diagnostic.
Diagnose `explicit' in one place. Diagnose `mutable' in one place.

From-SVN: r29692

25 years ago* gcc.c-torture/execute/va-arg-10.c: New test.
Franz Sirl [Tue, 28 Sep 1999 08:20:28 +0000 (08:20 +0000)]
* gcc.c-torture/execute/va-arg-10.c: New test.

From-SVN: r29691

25 years agobuiltins.c (stabilize_va_list): Stabilize array type va_list to a pointer type, not...
Richard Henderson [Tue, 28 Sep 1999 08:15:38 +0000 (01:15 -0700)]
builtins.c (stabilize_va_list): Stabilize array type va_list to a pointer type, not the base record type.

        * builtins.c (stabilize_va_list): Stabilize array type va_list
        to a pointer type, not the base record type.
        (expand_builtin_va_copy): Dereference the pointers explicitly;
        use the correct size for the copy.

        * rs6000.c (rs6000_va_start): Dereference valist to get to the record.
        (rs6000_va_arg): Likewise.

From-SVN: r29690

25 years agoDaily bump.
Jeff Law [Tue, 28 Sep 1999 07:45:12 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r29689

25 years ago* ir.texi: Improve documentation for TARGET_EXPR.
Mark Mitchell [Tue, 28 Sep 1999 07:40:15 +0000 (07:40 +0000)]
* ir.texi: Improve documentation for TARGET_EXPR.

From-SVN: r29688

25 years ago* rtl.h (struct rtx_def): Move gc_mark to align mode field.
Richard Henderson [Tue, 28 Sep 1999 06:28:33 +0000 (23:28 -0700)]
* rtl.h (struct rtx_def): Move gc_mark to align mode field.

From-SVN: r29687

25 years agotree.h (struct tree_decl): Use `bclass', not `class', in name of field.
Mark Mitchell [Tue, 28 Sep 1999 06:18:11 +0000 (06:18 +0000)]
tree.h (struct tree_decl): Use `bclass', not `class', in name of field.

* tree.h (struct tree_decl): Use `bclass', not `class', in name of
field.
(DECL_BUILT_IN_CLASS): Adjust accordingly.

From-SVN: r29686

25 years agoggc-page.c (GGC_MIN_LAST_ALLOCATED): New.
Richard Henderson [Tue, 28 Sep 1999 06:05:53 +0000 (23:05 -0700)]
ggc-page.c (GGC_MIN_LAST_ALLOCATED): New.

        * ggc-page.c (GGC_MIN_LAST_ALLOCATED): New.
        (init_ggc): Use it instead of a constant.
        (ggc_collect): Bound allocated_last_gc by it.

From-SVN: r29685

25 years agofixinc.irix (stdio.h): Hack stdio.h to avoid problems with va_list.
Jeffrey A Law [Tue, 28 Sep 1999 01:11:08 +0000 (01:11 +0000)]
fixinc.irix (stdio.h): Hack stdio.h to avoid problems with va_list.

        * fixinc/fixinc.irix (stdio.h): Hack stdio.h to avoid problems
        with va_list.

From-SVN: r29683

25 years agosparc-signal.h (SIGNAL_HANDLER): Third argument now a `void *'.
Tom Tromey [Mon, 27 Sep 1999 21:16:40 +0000 (21:16 +0000)]
sparc-signal.h (SIGNAL_HANDLER): Third argument now a `void *'.

* include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
`void *'.
(MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.

From-SVN: r29682

25 years agoconfigure.in (mips*el-*-openbsd*): Don't duplicate default settings.
Marc Espie [Mon, 27 Sep 1999 20:02:46 +0000 (20:02 +0000)]
configure.in (mips*el-*-openbsd*): Don't duplicate default settings.

* configure.in (mips*el-*-openbsd*):  Don't duplicate default settings.
(mips*-*-openbsd*):  Let big endian configuration be a fragment.
* configure:  Regen.
* config/mips/openbsd.h:  New, OpenBSD little endian target.
* config/mips/openbsd-be.h:  New, OpenBSD big endian target fragment.
* config/mips/xm-openbsd.h:  New, OpenBSD host.

From-SVN: r29681

25 years agoalloca-conf.h (alloca): Don't use Gcc builtin or <alloca.h>.
Richard Henderson [Mon, 27 Sep 1999 17:45:52 +0000 (10:45 -0700)]
alloca-conf.h (alloca): Don't use Gcc builtin or <alloca.h>.

        * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
        or <alloca.h>.
        * clock.c (GNU_HZ): New definition.
        (clock): Use it.
        * getruntime.c: Likewise.

        * config.table: Use mh-beos.
        * config/mh-beos: New file.

From-SVN: r29680

25 years agoconfigure.in: Recognize target *vxworks* and add fragment vxworks.mt.
Ulrich Drepper [Mon, 27 Sep 1999 17:39:43 +0000 (17:39 +0000)]
configure.in: Recognize target *vxworks* and add fragment vxworks.mt.

        * configure.in: Recognize target *vxworks* and add fragment vxworks.mt.
        * config/vxworks.mt: New file.
        * gen-params: Let configure override HAVE_PRINTF_FP.

From-SVN: r29679

25 years agoKill RCSid strings.
Jeff Law [Mon, 27 Sep 1999 17:36:14 +0000 (11:36 -0600)]
Kill RCSid strings.

From-SVN: r29678

25 years agoUpdate copyright.
Jeff Law [Mon, 27 Sep 1999 17:33:09 +0000 (11:33 -0600)]
Update copyright.

From-SVN: r29677

25 years agom68k.c (output_function_prologue, [...]): Use current_function_uses_pic_offset_table...
Andreas Schwab [Mon, 27 Sep 1999 08:43:01 +0000 (08:43 +0000)]
m68k.c (output_function_prologue, [...]): Use current_function_uses_pic_offset_table instead of regs_ever_live to decide...

* config/m68k/m68k.c (output_function_prologue,
output_function_epilogue): Use
current_function_uses_pic_offset_table instead of regs_ever_live
to decide whether to save/restore pic register.
(legitimize_pic_address): Don't modify regs_ever_live any more.

From-SVN: r29676

25 years agoReformat ChangeLog 1999-09-27 Nathan Sidwell <nathan@acm.org>
Nathan Sidwell [Mon, 27 Sep 1999 08:34:37 +0000 (08:34 +0000)]
Reformat ChangeLog 1999-09-27  Nathan Sidwell  <nathan@acm.org>

From-SVN: r29675

25 years agomemtemp77.C: Adjust expected __PRETTY_FUNCTION__.
Nathan Sidwell [Mon, 27 Sep 1999 08:28:19 +0000 (08:28 +0000)]
memtemp77.C: Adjust expected __PRETTY_FUNCTION__.

* g++.old-deja/g++.pt/memtemp77.C: Adjust expected
__PRETTY_FUNCTION__.

From-SVN: r29674

25 years agoAugment stringification of trees.
Nathan Sidwell [Mon, 27 Sep 1999 08:26:00 +0000 (08:26 +0000)]
Augment stringification of trees.

* cp-tree.h (tree_string_flags): New error stringifying enumeration.
(fndecl_as_string, type_as_string_real, args_as_string,
code_as_string, language_as_string, parm_as_string,
op_as_string, assop_as_string, cv_as_string): Remove.
(type_as_string, decl_as_string, expr_as_string): Adjust prototype.
(context_as_string): Declare new function.
* error.c (cp_printers): Move definition.
(OB_UNPUT): Remove.
(OB_END_TEMPLATE_ID): Adjust.
(interesting_scope_p): Remove.
(dump_scope): New static function.
(dump_qualifiers): Adjust prototype, reimplement.
(dump_template_value): Use tree_string_flags.
(dump_type_real): Move back to dump_type.
(dump_type): Adjust prototype. Use tree_string_flags.
(dump_aggr_type): Likewise. Use dump_template_parms.
(dump_type_prefix): Adjust prototype. Use tree_string_flags. Return pad flag.
(dump_type_suffix): Adjust prototype. Use tree_string_flags.
(dump_simple_decl): Likewise.
(dump_decl): Likewise. Use dump_template_decl.
(dump_template_decl): New static function broken out of dump_decl.
(dump_function_decl): Adjust prototype. Use tree_string_flags.
(dump_parameters): Likewise. Prefix space.
(dump_exception_spec): Adjust prototype. Use tree_string_flags.
(dump_function_name): Likewise. Use dump_template_parms.
(dump_template_parms): New static function broken out of
dump_function_name.
(dump_expr_list): Adjust prototype. Use tree_string_flags.
(dump_expr): Likewise.
(fndecl_as_string): Removed
(type_as_string_real): Removed
(dump_binary_op): Adjust prototype. Use tree_string_flags.
(dump_unary_op): Likewise.
(type_as_string): Likewise.
(expr_as_string): Likewise.
(decl_as_string): Likewise.
(context_as_string): New function.
(lang_decl_name): Adjust.
(decl_to_string): New static print callback.
(expr_to_string): Likewise.
(fndecl_to_string): Likewise.
(code_as_string): Renamed to ...
(code_to_string): ... here. Adjust.
(language_as_string): Renamed to ...
(language_to_string): ... here. Adjust.
(parm_as_string): Renamed to ...
(parm_to_string): ... here.
(op_as_string): Renamed to ...
(op_to_string): ... here.
(assop_as_string): Renamed to ...
(assop_to_string): ... here.
(type_to_string): New static print callback.
(args_as_string): Renamed to ...
(args_to_string): ... here. Adjust.
(cv_as_string): Renamed to ...
(cv_to_string): ... here. Adjust.
* pt.c (mangle_class_name_for_template): Use tree_string_flags.
(print_template_context): Likewise.

From-SVN: r29673

25 years agoDaily bump.
Jeff Law [Mon, 27 Sep 1999 07:45:12 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r29672

25 years agocp-tree.h (expand_throw): Remove prototype.
Mark Mitchell [Mon, 27 Sep 1999 01:27:18 +0000 (01:27 +0000)]
cp-tree.h (expand_throw): Remove prototype.

* cp-tree.h (expand_throw): Remove prototype.
* except.c (expand_throw): Make it static.  Use tree-generation
functions, rather than RTL-generation functions.
(build_throw): Use it.
* expr.c: Include except.h.
(cplus_expand_expr): Don't call expand_throw here.
* Makefile.in (expr.o): Depend on except.h.
* ir.texi: Update documentation for THROW_EXPR.

* decl.c (start_function): Set x_dont_save_pending_sizes rather
than calling get_pending_sizes.
* init.c (build_new): Don't save and restore
immediate_size_expand; instead, assert that it has the expected
value already.

From-SVN: r29671

25 years agodgux.h (SELECT_RTX_SECTION): Provide dummy argument for symbolic_operand().
Robert Lipe [Sun, 26 Sep 1999 21:43:48 +0000 (21:43 +0000)]
dgux.h (SELECT_RTX_SECTION): Provide dummy argument for symbolic_operand().

* config/i386/dgux.h (SELECT_RTX_SECTION): Provide dummy argument
for symbolic_operand().
* config/i386/sco5.h (SELECT_RTX_SECTION): Likewise.

From-SVN: r29670

25 years agodecl.c (start_function): Set x_dont_save_pending_sizes rather than calling get_pendin...
Mark Mitchell [Sun, 26 Sep 1999 18:16:47 +0000 (18:16 +0000)]
decl.c (start_function): Set x_dont_save_pending_sizes rather than calling get_pending_sizes.

* decl.c (start_function): Set x_dont_save_pending_sizes rather
than calling get_pending_sizes.
* init.c (build_new): Don't save and restore
immediate_size_expand; instead, assert that it has the expected
value already.

From-SVN: r29669

25 years agofunction.h (struct function): Add x_dont_save_pending_sizes_p.
Mark Mitchell [Sun, 26 Sep 1999 18:13:28 +0000 (18:13 +0000)]
function.h (struct function): Add x_dont_save_pending_sizes_p.

* function.h (struct function): Add x_dont_save_pending_sizes_p.
* stor-layout.c (variable_size): Don't add sizes to the pending
sizes list if x_dont_save_pending_sizes_p is set.

From-SVN: r29668

25 years agocombine.c (gen_rtx_combine): Add missing call to va_end().
Kaveh R. Ghazi [Sun, 26 Sep 1999 11:40:53 +0000 (11:40 +0000)]
combine.c (gen_rtx_combine): Add missing call to va_end().

* combine.c (gen_rtx_combine): Add missing call to va_end().

* final.c (asm_fprintf): Likewise.

* genattrtab.c (attr_rtx): Likewise.

cp:
* lex.c (compiler_error): Add missing call to va_end().

From-SVN: r29667

25 years agoDaily bump.
Jeff Law [Sun, 26 Sep 1999 07:45:09 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r29666

25 years agocse.c: Update comments.
Jeffrey A Law [Sat, 25 Sep 1999 19:13:18 +0000 (19:13 +0000)]
cse.c: Update comments.

        * cse.c: Update comments.
        (cse_insn): When converting a conditional/computed jump into
        an unconditional jump, always make sure a BARRIER immediately
        follows the converted jump.  Do not delete unreachable code.
        (cse_basic_block): Do not delete unreachable code.
        * toplev.c (rest_of_compilation): Move call to
        delete_trivially_dead_insns after the conditional call to
        jump_optimize.

From-SVN: r29665

25 years agodump.c (dequeue_and_dump): Handle RESULT_DECL.
Mark Mitchell [Sat, 25 Sep 1999 18:16:08 +0000 (18:16 +0000)]
dump.c (dequeue_and_dump): Handle RESULT_DECL.

* dump.c (dequeue_and_dump): Handle RESULT_DECL.
* ir.texi: Document RESULT_DECL and DECL_RESULT.

From-SVN: r29664

25 years agocp-tree.h (check_return_expr): New function.
Mark Mitchell [Sat, 25 Sep 1999 18:10:04 +0000 (18:10 +0000)]
cp-tree.h (check_return_expr): New function.

* cp-tree.h (check_return_expr): New function.
* decl.c (finish_constructor_body): New function.
(pushdecl): Put global friend functions in namespace binding
level, not the class binding level.
(finish_destructor_body): Make sure the dtor_label is always
defined.  Fix typo in comment.
(finish_function): Move generation of constructor-termination code
to semantic-analysis time.  Move generation of implicit `main'
return value to semantic-analysis time.
* semantics.c (finish_return_stmt): Generate goto's to
ctor_label/dtor_label here.  Use check_return_expr to do semantic
analysis on the returned expression.
* typeck.c (maybe_warn_about_returning_address_of_local): New
function split out from c_expand_return.
(check_return_expr): Likewise.
(c_expand_return): Just generate the RTL for the return.

From-SVN: r29663

25 years agolibiberty.h (make_temp_file): Add a prototype.
Kaveh R. Ghazi [Sat, 25 Sep 1999 13:11:17 +0000 (13:11 +0000)]
libiberty.h (make_temp_file): Add a prototype.

include:

        * libiberty.h (make_temp_file):  Add a prototype.

libiberty:

        * choose-temp.c: Remove obsolete comment about gcc.
        (make_temp_file): Constify a char*.

gcc:

        * collect2.c (make_temp_file): Don't prototype.

        * gcc.c (make_temp_file): Likewise.

        * mips.c (mips_make_temp_file): Renamed from `make_temp_file'.

From-SVN: r29662

25 years agoTidy up assemble_variable()'s handling of uninitialised varaibles.
Nick Clifton [Sat, 25 Sep 1999 12:45:09 +0000 (12:45 +0000)]
Tidy up assemble_variable()'s handling of uninitialised varaibles.

From-SVN: r29661

25 years agoDaily bump.
Jeff Law [Sat, 25 Sep 1999 07:45:09 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r29660

25 years agocp-tree.h (CPTI_CLEANUP_TYPE): New macro.
Mark Mitchell [Fri, 24 Sep 1999 20:54:08 +0000 (20:54 +0000)]
cp-tree.h (CPTI_CLEANUP_TYPE): New macro.

* cp-tree.h (CPTI_CLEANUP_TYPE): New macro.
(cleanup_type): Likewise.
(search_tree): Change prototype.
* decl.c (local_variable_p): Adjust for new interface to
search_tree.
(check_default_argument): Likewise.
* error.c (dump_expr): Handle INIT_EXPR.
* except.c (expand_throw): Don't make cleanup_type a local static.
* expr.c (cplus_expand_expr): Don't handle NEW_EXPR.
* init.c (build_new): Call build_new_1 directly, rather than
building a NEW_EXPR.
(build_new_1): Tidy.  Don't build a VEC_INIT_EXPR except when
processing file-scope initializers.
* lex.c (init_parse): Add an opname_tab entry for INIT_EXPR.
* tree.c: Include splay-tree.h
(no_linkage_helper): Adjust for new interface to search_tree.
(search_tree): Pass around pointers to tree nodes, rather than the
nodes themselves.  Handle VEC_INIT_EXPR.
(no_linkage_check): Adjust for new interface to search_tree.
(mapcar): Handle VEC_INIT_EXPR.
(target_remap): New variable.
(bot_manip): Use it.
(bot_replace): New function.
(break_out_target_exprs): Use it to remap all variables used in a
default argument expression.
* typeck.c (build_modify_expr): Don't crash when outside a
function and presented with an INIT_EXPR assignment
* Makefile.in (tree.o): Depend on splay-tree.h.

From-SVN: r29659

25 years agoChanged credit to the right person.
Glenn Chambers [Fri, 24 Sep 1999 19:33:23 +0000 (12:33 -0700)]
Changed credit to the right person.

From-SVN: r29658

25 years agodecl.c (insert_block): Removed unconditional `abort'.
Glenn Chambers [Fri, 24 Sep 1999 19:24:19 +0000 (12:24 -0700)]
decl.c (insert_block): Removed unconditional `abort'.

Fri Sep 24 12:23:05 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* decl.c (insert_block): Removed unconditional `abort'.

From-SVN: r29657

25 years agore GNATS java.util/47 (Date.toString() returns embedded newline)
Tom Tromey [Fri, 24 Sep 1999 19:12:23 +0000 (19:12 +0000)]
re GNATS java.util/47 (Date.toString() returns embedded newline)

Fix for PR java.util/47:
* configure, include/config.h: Rebuilt.
* configure.in: Don't look for ctime or ctime_r.
* Makefile.in: Rebuilt.
* Makefile.am (nat_source_files): Don't mention natDate.cc.
* java/util/natDate.cc: Removed.
* java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
static fields.
(getAvailableIDs): Rewrote.
(getTimeZone): Rewrote.
* java/util/Date.java (toGMTString): New method.
(toLocaleString): New method.
(toString): Rewrote.

From-SVN: r29656

25 years agoCope with down shifting a 32 bit constant on a 64 bit host.
Nick Clifton [Fri, 24 Sep 1999 16:12:44 +0000 (16:12 +0000)]
Cope with down shifting a 32 bit constant on a 64 bit host.

From-SVN: r29655

25 years agoMake Pmode be defined in terms of word_mode again now that emit-rtl.c
Jeff Law [Fri, 24 Sep 1999 15:39:31 +0000 (09:39 -0600)]
Make Pmode be defined in terms of word_mode again now that emit-rtl.c
has been fixed.

From-SVN: r29654

25 years agoAllow to distinguish between three classes of builtin functions
Bernd Schmidt [Fri, 24 Sep 1999 10:07:04 +0000 (10:07 +0000)]
Allow to distinguish between three classes of builtin functions

From-SVN: r29653

25 years ago* optabs.c (init_traps): Fix typo in last change.
Mark Mitchell [Fri, 24 Sep 1999 08:40:11 +0000 (08:40 +0000)]
* optabs.c (init_traps): Fix typo in last change.

From-SVN: r29652

25 years ago* toplev.c (rest_of_decl_compilation): Update comment.
Mark Mitchell [Fri, 24 Sep 1999 08:05:28 +0000 (08:05 +0000)]
* toplev.c (rest_of_decl_compilation): Update comment.

From-SVN: r29651

25 years agodecl.c (pushdecl): Don't make local declarations of extern variables give the variabl...
Mark Mitchell [Fri, 24 Sep 1999 08:03:42 +0000 (08:03 +0000)]
decl.c (pushdecl): Don't make local declarations of extern variables give the variable a...

* decl.c (pushdecl): Don't make local declarations of extern
variables give the variable a DECL_CONTEXT for the function.
(make_rtl_for_nonlocal_decl): Don't fuss with obstacks.  Simplify.
Don't accidentally make RTL for local declarations.
(emit_local_var): Handle declarations with asm-specifiers here.

From-SVN: r29650

25 years agoDaily bump.
Jeff Law [Fri, 24 Sep 1999 07:45:16 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r29649

25 years agoelf.h (ASM_OUTPUT_ALIGNED_BSS): Put the symbol in .sbss if appropriate.
Geoff Keating [Fri, 24 Sep 1999 02:01:08 +0000 (02:01 +0000)]
elf.h (ASM_OUTPUT_ALIGNED_BSS): Put the symbol in .sbss if appropriate.

* config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Put the symbol
in .sbss if appropriate.
(EXTRA_SECTION_FUNCTIONS): Add sbss.
(SBSS_SECTION_ASM_OP): New macro.
* config/mips/linux.h (EXTRA_SECTION_FUNCTIONS): Add sbss.
(EXTRA_SECTIONS): Add in_sbss.
* config/mips/mips.h: Prototype sbss_section.

From-SVN: r29648

25 years agoir.texi: Improve documentation for TARGET_EXPRs.
Mark Mitchell [Fri, 24 Sep 1999 01:43:49 +0000 (01:43 +0000)]
ir.texi: Improve documentation for TARGET_EXPRs.

* ir.texi: Improve documentation for TARGET_EXPRs.  Discuss
STMT_IS_FULL_EXPR_P.

From-SVN: r29647

25 years agocp-tree.h (language_function): Add cannot_inline.
Mark Mitchell [Fri, 24 Sep 1999 01:29:29 +0000 (01:29 +0000)]
cp-tree.h (language_function): Add cannot_inline.

* cp-tree.h (language_function): Add cannot_inline.
* decl.c (start_function): Restore current_function_cannot_inline
from the saved value.
(save_function_data): Save current_function_cannot_inline.
* decl2.c (start_objects): Change prototype.  Build the function
in function-at-a-time mode.
(finish_objects): Likewise.
(generate_ctor_or_dtor_function): Adjust accordingly.

From-SVN: r29646

25 years agocp-tree.h (DECL_ANON_UNION_ELEMS): New macro.
Mark Mitchell [Fri, 24 Sep 1999 01:17:29 +0000 (01:17 +0000)]
cp-tree.h (DECL_ANON_UNION_ELEMS): New macro.

* cp-tree.h (DECL_ANON_UNION_ELEMS): New macro.
* decl2.c (finish_anon_union): Set DECL_ANON_UNION_ELEMS.
Don't call expand_anon_union_decl here
* semantics.c (exapnd_stmt): Call it here, instead.
* typeck.c (mark_addressable): Addressed variables are implicitly
used.

From-SVN: r29645

25 years agostmt.c (expand_start_bindings): Don't allow cleanup isntructions to disappear.
Mark Mitchell [Fri, 24 Sep 1999 01:14:54 +0000 (01:14 +0000)]
stmt.c (expand_start_bindings): Don't allow cleanup isntructions to disappear.

* stmt.c (expand_start_bindings): Don't allow cleanup isntructions
to disappear.

From-SVN: r29644

25 years ago* optabs.c (init_traps): Register trap_rtx as a GC root.
Mark Mitchell [Fri, 24 Sep 1999 01:03:58 +0000 (01:03 +0000)]
* optabs.c (init_traps): Register trap_rtx as a GC root.

From-SVN: r29643

25 years agocp-tree.h (VAR_OR_FUNCTION_DECL_CHECK): New macro.
Martin v. Löwis [Thu, 23 Sep 1999 22:20:08 +0000 (22:20 +0000)]
cp-tree.h (VAR_OR_FUNCTION_DECL_CHECK): New macro.

* cp-tree.h (VAR_OR_FUNCTION_DECL_CHECK): New macro.
(RECORD_OR_UNION_TYPE_CHECK, LANG_IDENTIFIER_CAST): Likewise.
(DEFARG_NODE_CHECK): Remove; replace with DEFAULT_ARG_CHECK.
* cp-tree.h: Add tree checking macros to various tree access
macros.
* ptree.c (print_lang_decl): Test for function or variable
before accessing template info.

From-SVN: r29642

25 years agomips.c (function_arg_pass_by_reference): Define unconditionally, since it's called...
Alexandre Oliva [Thu, 23 Sep 1999 21:42:45 +0000 (21:42 +0000)]
mips.c (function_arg_pass_by_reference): Define unconditionally, since it's called unconditionally.

* config/mips/mips.c (function_arg_pass_by_reference): Define
unconditionally, since it's called unconditionally.

From-SVN: r29641

25 years agodocument -fshort-wchar
Jason Merrill [Thu, 23 Sep 1999 21:19:09 +0000 (17:19 -0400)]
document -fshort-wchar

From-SVN: r29640

25 years agolex.c: Get WCHAR_TYPE_SIZE from wchar_type_node.
Jason Merrill [Thu, 23 Sep 1999 21:04:10 +0000 (21:04 +0000)]
lex.c: Get WCHAR_TYPE_SIZE from wchar_type_node.

* lex.c: Get WCHAR_TYPE_SIZE from wchar_type_node.
* lang-specs.h: If -fshort-wchar, override __WCHAR_TYPE__.
* decl2.c (lang_f_options): Add -fshort-wchar.
* cp-tree.h: Declare flag_short_wchar.
* decl.c (init_decl_processing): If -fshort-wchar, use 'short unsigned
int' for wchar_t.

From-SVN: r29639

25 years agotoplev.c (documented_lang_options): Add -fshort-wchar.
Jason Merrill [Thu, 23 Sep 1999 21:03:53 +0000 (21:03 +0000)]
toplev.c (documented_lang_options): Add -fshort-wchar.

* toplev.c (documented_lang_options): Add -fshort-wchar.
* c-decl.c (c_decode_option): Likewise.
(init_decl_processing): If -fshort-wchar, use 'short unsigned int'
for wchar_t.
* c-common.c, c-lex.c: Get WCHAR_TYPE_SIZE from wchar_type_node.
* gcc.c (default_compilers): If -fshort-wchar,
override __WCHAR_TYPE__.
* tm.texi (C Dialect Options): Add -fshort-wchar.

From-SVN: r29638

25 years agodwarf2out.c (output_aranges): Use DW_AT_location to find the symbol for a variable.
Jason Merrill [Thu, 23 Sep 1999 20:51:06 +0000 (20:51 +0000)]
dwarf2out.c (output_aranges): Use DW_AT_location to find the symbol for a variable.

* dwarf2out.c (output_aranges): Use DW_AT_location to find the
symbol for a variable.

From-SVN: r29637

25 years ago* cpplib.h (CPP_PREPROCESSED): New macro.
Jason Merrill [Thu, 23 Sep 1999 20:40:51 +0000 (20:40 +0000)]
* cpplib.h (CPP_PREPROCESSED): New macro.

From-SVN: r29636

25 years agoFix PA problem in order of initializations.
Alex Samuel [Thu, 23 Sep 1999 20:34:19 +0000 (20:34 +0000)]
Fix PA problem in order of initializations.

* emit-rtl.c (init_emit_once): Initialize modes first.

        Also add missing ChangeLog entry.

From-SVN: r29635

25 years agocpplib.c (handle_directive): Don't complain about `# NUMBER' if we're seeing this...
Jason Merrill [Thu, 23 Sep 1999 20:28:40 +0000 (20:28 +0000)]
cpplib.c (handle_directive): Don't complain about `# NUMBER' if we're seeing this input for a second time.

* cpplib.c (handle_directive): Don't complain about `# NUMBER' if
we're seeing this input for a second time.

From-SVN: r29634

25 years agoRevert unintended GGC change.
Richard Henderson [Thu, 23 Sep 1999 20:07:28 +0000 (13:07 -0700)]
Revert unintended GGC change.

From-SVN: r29633

25 years agoggc-page.c: New file.
Alex Samuel [Thu, 23 Sep 1999 20:00:57 +0000 (20:00 +0000)]
ggc-page.c: New file.

        * ggc-page.c: New file.
        * Makefile.in (ggc-page.o): New.

Co-Authored-By: Richard Henderson <rth@cygnus.com>
From-SVN: r29632

25 years agoinvoke.texi: Document -fdelete-null-pointer-checks
Jeffrey A Law [Thu, 23 Sep 1999 19:57:50 +0000 (19:57 +0000)]
invoke.texi: Document -fdelete-null-pointer-checks

        * invoke.texi: Document -fdelete-null-pointer-checks
        * toplev.c (flag_delete_null_pointer_checks): New.
        (f_options): Add entry for -fdelete-null-pointer-checks.
        (rest_of_compilation): Conditionalize null pointer check
        elimination on flag_delete_null_pointer_checks.
        (main): If -O2 or greater, enable -fdelete-null-pointer-checks

From-SVN: r29631

25 years agojvspec.c (lang_specific_driver): Don't read spec file if -fsyntax-only given.
Tom Tromey [Thu, 23 Sep 1999 19:45:39 +0000 (19:45 +0000)]
jvspec.c (lang_specific_driver): Don't read spec file if -fsyntax-only given.

* jvspec.c (lang_specific_driver): Don't read spec file if
-fsyntax-only given.

From-SVN: r29630

25 years agoShould have been checked in with Kingdon's change.
Jeff Law [Thu, 23 Sep 1999 19:41:04 +0000 (13:41 -0600)]
Should have been checked in with Kingdon's change.

From-SVN: r29629

25 years agoconfigure: Rebuilt.
Tom Tromey [Thu, 23 Sep 1999 19:38:11 +0000 (19:38 +0000)]
configure: Rebuilt.

* configure: Rebuilt.
* configure.in: Print message when checking to see if gcj can
handle -fuse-divide-subroutine.

From-SVN: r29628

25 years agoFix typo in yesterday's massive change.
Jeff Law [Thu, 23 Sep 1999 19:11:51 +0000 (13:11 -0600)]
Fix typo in yesterday's massive change.

From-SVN: r29627

25 years agonatFirstThread.cc (run): Renamed from `run0'.
Tom Tromey [Thu, 23 Sep 1999 19:05:50 +0000 (19:05 +0000)]
natFirstThread.cc (run): Renamed from `run0'.

* java/lang/natFirstThread.cc (run): Renamed from `run0'.  Removed
dead code.
* java/lang/FirstThread.java (run0): Renamed to `run'.
(run): Removed.

From-SVN: r29626

25 years agore GNATS gcj/51 (Writing on OutputStream of bad Socket kills app with "Broken pipe")
Tom Tromey [Thu, 23 Sep 1999 18:50:59 +0000 (18:50 +0000)]
re GNATS gcj/51 (Writing on OutputStream of bad Socket kills app with "Broken pipe")

* prims.cc (main_init): New function.
(JvRunMain): Call it.
(_Jv_RunMain): Likewise.
Include <signal.h>.
(main_init): Ignore SIGPIPE.  Fixes PR 51.

From-SVN: r29625

25 years agoiso646.h, [...]: Add copyright notice and special exception to GPL.
Zack Weinberg [Thu, 23 Sep 1999 18:02:55 +0000 (18:02 +0000)]
iso646.h, [...]: Add copyright notice and special exception to GPL.

1999-09-23 10:56 -0700  Zack Weinberg  <zack@bitmover.com>

* iso646.h, stdarg.h, stdbool.h, stddef.h, varargs.h: Add
copyright notice and special exception to GPL.

From-SVN: r29624

25 years agoabi64.h (mips_function_value): Add prototype arguments.
Kaveh R. Ghazi [Thu, 23 Sep 1999 17:46:23 +0000 (17:46 +0000)]
abi64.h (mips_function_value): Add prototype arguments.

* abi64.h (mips_function_value): Add prototype arguments.

* mips-protos.h: New file with mips prototypes.

* mips.c: Include "tm_p.h".
(mktemp, lookup_name): Add prototype arguments.
(extern_list, string_constant, mips_fill_delay_slot,
mips_output_external, mips_output_external_libcall,
mips_output_filename, mips_declare_object, function_prologue,
mips_expand_prologue, function_epilogue, mips16_constant,
build_mips16_function_stub, mips_output_conditional_branch):
Constify a char*.
(mips_va_start): Remove unused variable `u'.
(mips_va_arg): Cast value to unsigned when comparing against one.
(trace): Delete.
(save_restore_insns, mips_expand_prologue): Add missing arg in
call to `large_int'.

* mips.h: Move prototypes to mips-protos.h.
(data_section, memory_address_p, rdata_section,
readonly_data_section, simple_epilogue_p, text_section): Delete
prototypes delcared elsewhere.
(mips_epilogue_delay_slots, print_options): Delete unused decls.
(trace): Delete.
(GO_PRINTF, GO_PRINTF2): Call fprintf, not trace.

* mips.md: Delete extra args in call to `mips_move_2words'.

* xm-iris6.h (alloca): Add prototype argument.

* genpeep.c: Include "tm_p.h" in generated output file.

From-SVN: r29623

25 years agobasic-block.h (find_edge_index): Change parameters.
Andrew MacLeod [Thu, 23 Sep 1999 15:07:26 +0000 (15:07 +0000)]
basic-block.h (find_edge_index): Change parameters.

Thu Sep 23 10:36:55 EDT 1999  Andrew MacLeod  <amacleod@cygnus.com>

* basic-block.h (find_edge_index): Change parameters.
* flow.c (verify_edge_list): Pass basic_block parameters to
find_edge_index instead of integers.

From-SVN: r29622

25 years agoUse unsigned shift instead of signed shift.
Nick Clifton [Thu, 23 Sep 1999 14:58:54 +0000 (14:58 +0000)]
Use unsigned shift instead of signed shift.

From-SVN: r29621

25 years agoAdd test case for this patch to combine.c:
Nick Clifton [Thu, 23 Sep 1999 14:58:00 +0000 (14:58 +0000)]
Add test case for this patch to combine.c:

* combine.c (simplify_comparison): Use an unsigned shift to adjust
the constant.

From-SVN: r29620