Commit Graph

24309 Commits

Author SHA1 Message Date
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
Jeffrey A Law
82bd61bdd4 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
1999-09-27 19:11:08 -06:00
Tom Tromey
8c14177ca8 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
1999-09-27 21:16:40 +00:00
Marc Espie
9e28024a9b 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
1999-09-27 20:02:46 +00:00
Richard Henderson
2c45d1a04d 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
1999-09-27 11:45:52 -06:00
Ulrich Drepper
e5da599a0c 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
1999-09-27 11:39:43 -06:00
Jeff Law
40d0e0df0a Kill RCSid strings.
From-SVN: r29678
1999-09-27 11:36:14 -06:00
Jeff Law
8442ccc4c7 Update copyright.
From-SVN: r29677
1999-09-27 11:33:09 -06:00
Andreas Schwab
6e8313feb2 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
1999-09-27 08:43:01 +00:00
Nathan Sidwell
cc52a736ff Reformat ChangeLog 1999-09-27 Nathan Sidwell <nathan@acm.org>
From-SVN: r29675
1999-09-27 08:34:37 +00:00
Nathan Sidwell
a0cc9ab624 memtemp77.C: Adjust expected __PRETTY_FUNCTION__.
* g++.old-deja/g++.pt/memtemp77.C: Adjust expected
	__PRETTY_FUNCTION__.

From-SVN: r29674
1999-09-27 08:28:19 +00:00
Nathan Sidwell
9e93bc9dcc 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
1999-09-27 08:26:00 +00:00
Jeff Law
cf9d61d569 Daily bump.
From-SVN: r29672
1999-09-27 01:45:12 -06:00
Mark Mitchell
59ccf49da3 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
1999-09-27 01:27:18 +00:00
Robert Lipe
bfcccecc56 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
1999-09-26 21:43:48 +00:00
Mark Mitchell
2aa3110af4 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
1999-09-26 18:16:47 +00:00
Mark Mitchell
d43163b742 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
1999-09-26 18:13:28 +00:00
Kaveh R. Ghazi
f0305a2b79 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
1999-09-26 11:40:53 +00:00
Jeff Law
4e32193ac9 Daily bump.
From-SVN: r29666
1999-09-26 01:45:09 -06:00
Jeffrey A Law
e48a7fbe7b 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
1999-09-25 13:13:18 -06:00
Mark Mitchell
57151693bc 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
1999-09-25 18:16:08 +00:00
Mark Mitchell
efee38a99a 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
1999-09-25 18:10:04 +00:00
Kaveh R. Ghazi
5a657fc371 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
1999-09-25 13:11:17 +00:00