Commit Graph

24281 Commits

Author SHA1 Message Date
Tom Tromey
b65fcf051f * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
From-SVN: r29737
1999-09-30 22:20:29 +00:00
Jeff Law
87ff35c2fe Update copyright dates.
From-SVN: r29736
1999-09-30 16:08:56 -06:00
Jeffrey A Law
e85cde9a93 h8300.h (INIT_TARGET_OPTABS): Use init_one_optab instead of generating RTL directly.
* h8300.h (INIT_TARGET_OPTABS): Use init_one_optab instead of
        generating RTL directly.
        * mips.h (INIT_TARGET_OPTABS): Likewise.
        * mn10200.h (INIT_TARGET_OPTABS): Likewise.

From-SVN: r29734
1999-09-30 12:50:56 -06:00
Mark Mitchell
af3b4e599c cp-tree.h (lang_decl_flags): Add global_ctor_p and global_dtor_p.
* cp-tree.h (lang_decl_flags): Add global_ctor_p and
	global_dtor_p.  Add init_priority.
	(DECL_ACCESS): Adjust accordingly.
	(DECL_GLOBAL_CTOR_P, DECL_GLOBAL_DTOR_P): New macros.
	(GLOBAL_INIT_PRIORITY): Likewise.
	* decl.c (lang_mark_tree): Adjust accordingly.
	(start_objects): Set DECL_GLOBAL_CTOR_P, DECL_GLOBAL_DTOR_P,
	and GLOBAL_INIT_PRIORITY.
	* dump.c (dequeue_and_dump): Print them.
	* ir.texi: Document them.

From-SVN: r29733
1999-09-30 17:43:44 +00:00
Jeff Law
f793a95e2e Move -Wfloat-equal into the correct location.
From-SVN: r29732
1999-09-30 11:21:30 -06:00
Mark Mitchell
313bc2c262 decl2.c (struct priority_info_s): Remove initialization_sequence and destruction_sequence.
* decl2.c (struct priority_info_s): Remove initialization_sequence
	and destruction_sequence.
	(start_static_storage_duration_function): Return the body of the
	function.  Convert for function-at-a-time mode.
	(generate_inits_for_priority): Remove.
	(finish_static_storage_duration_function): Change prototype.
	Adjust for function-at-a-time mode.
	(do_static_initialization): Likewise.
	(do_static_destruction): Likewise.
	(do_static_initialization_and_destruction): Remove.
	(start_static_initialization_or_destruction): New function.
	(finish_static_initialization_or_destruction): Likewise.
	(get_priority_info): Don't manipulation initialization_sequence or
	destruction_sequence.
	(prune_vars_needing_no_initialization): New function.
	(write_out_vars): Likewise.
	(finish_file): Use the various new functions instead of the old.

From-SVN: r29731
1999-09-30 15:48:19 +00:00
Bernd Schmidt
d9d5c9de1c Use lookup table to get register sizes in dwarf2 eh
From-SVN: r29730
1999-09-30 13:40:41 +00:00
Richard Earnshaw
a89e95f9fb c-lang.c (finish_file case ndef ASM_OUTPUT_{CON,DE}STRUCTOR): Correctly build argument list to constructor and destructor functions.
* c-lang.c (finish_file case ndef ASM_OUTPUT_{CON,DE}STRUCTOR):
Correctly build argument list to constructor and destructor functions.

From-SVN: r29728
1999-09-30 09:46:08 +00:00
Jeff Law
c61d8a8f41 Daily bump.
From-SVN: r29727
1999-09-30 01:45:12 -06:00
Jeffrey A Law
fec512b07e * expr.h (init_mov_optab): Delete declaration
From-SVN: r29726
1999-09-30 01:14:18 -06:00
Jeffrey A Law
2fa18a53bb * editbuf.cc, parsestream.cc, pfstream.cc: Include string.h.
From-SVN: r29725
1999-09-30 01:10:07 -06:00
Jeffrey A Law
fc80ea735e h8300.c (WORD_REG_USED): Update to avoid useless register saves in interrupt functions and functions...
* h8300.c (WORD_REG_USED): Update to avoid useless register
        saves in interrupt functions and functions which never return.

From-SVN: r29724
1999-09-30 01:00:53 -06:00
Dirk Zoller
b8d2540a85 * invoke.texi: Add docs for -Wfloat-equal warning.
From-SVN: r29723
1999-09-30 00:22:45 -06:00
Dirk Zoller
b843d2101e c-tree.h (warn_float_equal): Declare.
* c-tree.h (warn_float_equal): Declare.
        * c-decl.c (warn_float_equal): Define.
        (c_decode_option): Recognize -W[no-]float-equal.
        * c-typeck.c (build_binary_op): Conditionally warn
        about equality tests of floating point types.
        * toplev.c (documented_lan_options): Add -W[no-]float-equal.

From-SVN: r29722
1999-09-30 00:19:54 -06:00
Dirk Zoller
1bdba2c09c 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
1999-09-30 00:15:53 -06:00
Donn Terry
061f7e4721 * gcc.misc-tests/mg.exp: delete extraneous redirection.
From-SVN: r29720
1999-09-29 23:50:28 -06:00
Jeffrey A Law
0339ce7e77 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
1999-09-29 23:43:58 -06:00
Bryce McKinlay
faf1fdf0b2 README: New file.
1999-09-29  Bryce McKinlay  <bryce@albatross.co.nz>

        * README: New file.

From-SVN: r29717
1999-09-30 03:17:36 +01:00
Jason Merrill
a7fbfcf92a update -fno-rtti
From-SVN: r29716
1999-09-29 20:50:37 -04:00
Jason Merrill
db48b8315f 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
1999-09-29 20:50:29 -04:00
Tom Tromey
2450ddbbda 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
1999-09-29 23:10:11 +00:00
Richard Henderson
e5ecd4eab3 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
1999-09-29 16:08:11 -07:00
Richard Henderson
ff669a6ce0 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
1999-09-29 16:05:46 -07:00
Jason Merrill
0a2c2fd1c2 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
1999-09-29 18:52:57 -04:00
Mark Mitchell
3bc6a13bb6 dump.c (dequeue_and_dump): Dump DECL_EXTERNAL.
* dump.c (dequeue_and_dump): Dump DECL_EXTERNAL.
	* ir.texi: Document DECL_EXTERNAL.

From-SVN: r29710
1999-09-29 20:07:56 +00:00
Mark Mitchell
e9e7f18109 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
1999-09-29 19:00:46 +00:00
Mark Mitchell
b5ac18ea8c 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
1999-09-29 17:24:21 +00:00
Nathan Sidwell
0acbb8d94d 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
1999-09-29 14:59:56 +00:00
Mark Mitchell
bea5d553af 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
1999-09-29 08:16:38 +00:00
Mark Mitchell
84df082b38 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
1999-09-29 08:06:21 +00:00
Jeff Law
ddb34a2955 Daily bump.
From-SVN: r29704
1999-09-29 01:45:09 -06:00
Jeff Law
0f5c41613e Copyright tweaks.
From-SVN: r29703
1999-09-28 21:40:50 -06:00
Gabriel Dos Reis
612c671a4f 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
1999-09-29 01:10:44 +00:00
Chris Ball
224a6bca72 Fixed deallocation of a mutex in thr-single.c (patch from Chris Ball <cball@fmco.com>).
From-SVN: r29701
1999-09-29 00:37:49 +00:00
Tom Tromey
ab31268c62 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
1999-09-28 22:16:57 +00:00
Tom Tromey
025fd00efa aclocal.m4, configure: Rebuilt.
* aclocal.m4, configure: Rebuilt.
	* acinclude.m4 (LIB_AC_PROG_CC): Provide appropriate AC_PROG_ symbol.

From-SVN: r29699
1999-09-28 20:37:20 +00:00
Tom Tromey
54ce745286 aclocal.m4, configure: Rebuilt.
* aclocal.m4, configure: Rebuilt.
	* acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide

From-SVN: r29698
1999-09-28 20:14:11 +00:00
David Edelsohn
c81fc13e34 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
1999-09-28 14:13:58 -04:00
Nick Clifton
628d441075 New test: check ability to generate debug information for incomplete types in
inline functions.

From-SVN: r29696
1999-09-28 17:26:01 +00:00
Nick Clifton
bbc6ae08af Fix the handling of inline, unresolved type references.
From-SVN: r29695
1999-09-28 17:11:44 +00:00
Bernd Schmidt
d25cf6335e 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
1999-09-28 13:43:34 +00:00
Nathan Sidwell
24d5059886 * g++.old-deja/g++.other/decl6.C: New test.
From-SVN: r29693
1999-09-28 12:46:10 +00:00
Nathan Sidwell
34fc957d12 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
1999-09-28 12:30:22 +00:00
Franz Sirl
8bbcc7ce6b * gcc.c-torture/execute/va-arg-10.c: New test.
From-SVN: r29691
1999-09-28 01:20:28 -07:00
Richard Henderson
8ebecc3b1c 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
1999-09-28 01:15:38 -07:00
Jeff Law
5e49cb95ea Daily bump.
From-SVN: r29689
1999-09-28 01:45:12 -06:00
Mark Mitchell
2f53bab57a * ir.texi: Improve documentation for TARGET_EXPR.
From-SVN: r29688
1999-09-28 07:40:15 +00:00
Richard Henderson
18def38f7b * rtl.h (struct rtx_def): Move gc_mark to align mode field.
From-SVN: r29687
1999-09-27 23:28:33 -07:00
Mark Mitchell
c465d914bb 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
1999-09-28 06:18:11 +00:00
Richard Henderson
a70261eec1 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
1999-09-27 23:05:53 -07:00