Commit Graph

17853 Commits

Author SHA1 Message Date
Bruce Korb
725471d2bd Changes to allow bypassing tests for certain machines
From-SVN: r21614
1998-08-05 10:20:13 +00:00
Bruce Korb
7c3b5ba531 Document today's changes
From-SVN: r21613
1998-08-05 10:18:37 +00:00
Jeff Law
2dfef45f14 Daily bump.
From-SVN: r21611
1998-08-04 18:45:02 -06:00
Andreas Jaeger
887e305815 libioP.h: Use __PMT in typedefs.
* libioP.h: Use __PMT in typedefs.
* strfile.h: Likewise.

From-SVN: r21610
1998-08-04 15:21:08 +00:00
Mark Mitchell
e4a8420974 decl.c (pushtag): Don't mangle the name of a TYPE_DECL if it uses template parameters.
* decl.c (pushtag): Don't mangle the name of a TYPE_DECL if it
	uses template parameters.
	* method.c (build_template_parm_names): Use the full set of
	template arguments for tsubst'ing.
	(build_overload_identifier): Pass the full set of template
	arguments to build_template_parm_names, not just the
	innermost_args.
	* pt.c (TMPL_ARGS_DEPTH): Define using
	TMPL_ARGS_HAVE_MULTIPLE_LEVELS, for clarity.
	(NUM_TMPL_ARGS): New macro.
	(add_outermost_template_args): Deal with the case where the outer
	args will be completely discarded.
	(coerce_template_parms): Use the full set of template arguments
	for tsubst'ing.  Simplify.  Add some asserts.  Improve
	error messages.
	(lookup_template_class): Pass the full set of template arguments
	to coerce_template_parms.
	(tsubst): Add assertion.
	(do_type_instantiation): Don't instantiate member template
	classes.
	* init.c (build_offset_ref): Deal with a TEMPLATE_ID_EXPR whose
	name is a LOOKUP_EXPR, rather than an IDENTIFIER_NODE.

From-SVN: r21609
1998-08-04 11:46:41 +00:00
Jeff Law
be5ceb725b Daily bump.
From-SVN: r21554
1998-08-03 18:45:02 -06:00
Jason Merrill
c1def683c1 method.c (set_mangled_name_for_decl): Change return type to void.
* method.c (set_mangled_name_for_decl): Change return type to void.
	* decl.c (lookup_name_real): A namespace-level decl takes priority
	over implicit typename.  Avoid doing the same lookup twice.
	* search.c (dependent_base_p): New fn.
	(dfs_pushdecls, dfs_compress_decls): Use it.
	* typeck.c (get_member_function_from_ptrfunc): Don't try to handle
	virtual functions if the type doesn't have any.

From-SVN: r21551
1998-08-03 18:11:25 -04:00
Gerald Pfeifer
090f136ad2 Add myself, as per Jeff Law's request.
From-SVN: r21550
1998-08-03 11:22:28 +00:00
Mark Mitchell
93b7fd0af4 decl2.c (grokfield): Don't mangle the name of a TYPE_DECL if it uses template parameters.
* decl2.c (grokfield): Don't mangle the name of a TYPE_DECL if it
	uses template parameters.

From-SVN: r21549
1998-08-03 09:59:39 +00:00
Mark Mitchell
35fce3ceb2 decl2.c (grokfield): Don't mangle the name of a TYPE_DECL is it uses template parameters.
* decl2.c (grokfield): Don't mangle the name of a TYPE_DECL is it
	uses template parameters.

From-SVN: r21548
1998-08-03 09:58:34 +00:00
Jeff Law
9471ad135d Daily bump.
From-SVN: r21546
1998-08-02 18:45:02 -06:00
Robert Lipe
b72612b0c7 * config.sub: Fix typo.
From-SVN: r21545
1998-08-02 22:10:44 +00:00
Mark Mitchell
672476cbdf cp-tree.def (LOOKUP_EXPR): Document.
* cp-tree.def (LOOKUP_EXPR): Document.  Remove second argument.
	* cp-tree.h (DECL_TI_TEMPLATE): Improve documentation.
	* lex.c (do_identifier): Don't use a second argument, or a type,
	when building LOOKUP_EXPRs.
	(do_identifier): Likewise.
	(do_scoped_id): Likewise.
	* method.c (hack_identifier): Improve error message.
	* pt.c (lookup_template_function): Don't needlessly call
	copy_to_permanent or build_min.
	(tsubst_copy): Remove #if 0'd code.  Tsubst into LOOKUP_EXPRs if
	necessary.
	(do_decl_instantiation): Improve error message.
	* tree.c (mapcar, case LOOKUP_EXPR): Don't be sorry; make a copy.
	(build_min): Copy the type to the permanent obstack, too.

From-SVN: r21544
1998-08-02 21:37:23 +00:00
Mark Mitchell
151ab2f29e New test
From-SVN: r21543
1998-08-02 21:27:51 +00:00
Hans-Peter Nilsson
46103ab43a invoke.texi (Environment Variables): Typo: Change "ascpects" into "aspects".
(
        * invoke.texi (Environment Variables): Typo: Change "ascpects"
        into "aspects".
        (Running Protoize): Typo: Change "ther" into "other".

From-SVN: r21542
1998-08-02 10:00:17 -06:00
Hans-Peter Nilsson
b28dd84028 invoke.texi (Environment Variables): Typo: Change "ascpects" into "aspects".
* invoke.texi (Environment Variables): Typo: Change "ascpects"
        into "aspects".
        (Running Protoize): Typo: Change "ther" into "other".

From-SVN: r21541
1998-08-02 10:00:15 -06:00
Dave Love
3e3f53fba8 New SEL-HPC URL.
From-SVN: r21540
1998-08-02 09:44:00 +00:00
Jeff Law
e44d06c3a9 Initial revision
From-SVN: r21537
1998-08-02 00:46:46 -06:00
Jeff Law
d70283ce50 Initial revision
From-SVN: r21536
1998-08-02 00:46:43 -06:00
Jeff Law
19b7a780f4 Initial revision
From-SVN: r21533
1998-08-02 00:20:56 -06:00
Jeff Law
a2c0accaef Initial revision
From-SVN: r21532
1998-08-02 00:20:53 -06:00
Jeff Law
d70c01b8e2 Initial revision
From-SVN: r21531
1998-08-02 00:20:50 -06:00
Jeff Law
48011dd440 Initial revision
From-SVN: r21528
1998-08-02 00:12:03 -06:00
Jeff Law
37bf11847e Daily bump.
From-SVN: r21526
1998-08-01 18:45:02 -06:00
Jeff Law
47a0e5a84f netbsd.h: Undo previous change to DWARF2_UNWIND_INFO.
h
        * i386/netbsd.h: Undo previous change to DWARF2_UNWIND_INFO.
        * m68k/netbsd.h: Likewise.
        * ns32k/netbsd.h: Likewise.
        * sparc/netbsd.h: Likewise.

From-SVN: r21523
1998-08-01 17:50:00 -06:00
Jeff Law
6414d0c1ed netbsd.h: Undo previous change to DWARF2_UNWIND_INFO.
* i386/netbsd.h: Undo previous change to DWARF2_UNWIND_INFO.
        * m68k/netbsd.h: Likewise.
        * ns32k/netbsd.h: Likewise.
        * sparc/netbsd.h: Likewise.

From-SVN: r21522
1998-08-01 17:49:55 -06:00
Richard Henderson
790d5d0252 va-alpha.h (va_list): Use a typedef, not a define.
* ginclude/va-alpha.h (va_list): Use a typedef, not a define.
        * ginclude/va-clipper.h (va_list): Likewise.

From-SVN: r21518
1998-08-01 11:00:15 -07:00
Dave Love
e45a12c6e7 980729-0.f: New test.
1998-08-01  Dave Love  <d.love@dl.ac.uk>
	* g77.f-torture/compile/980729-0.f: New test.

From-SVN: r21516
1998-08-01 09:41:39 +00:00
Dave Love
07b664cae4 New test.
From-SVN: r21515
1998-08-01 09:38:20 +00:00
Jason Merrill
c787dd82d5 init.c (init_init_processing): Remove BI* handling.
* init.c (init_init_processing): Remove BI* handling.
	(build_builtin_call): Remove.
	(build_builtin_delete_call): New fn.
	(build_delete): Use it.

From-SVN: r21514
1998-07-31 22:36:54 -04:00
Jeff Law
acb26b31f9 Daily bump.
From-SVN: r21512
1998-07-31 18:45:02 -06:00
Michael Meissner
ef79218343 If -Os use load/store multiple instructions
From-SVN: r21511
1998-07-31 17:30:57 +00:00
Jeff Law
02c452afe0 netbsd.h: Fix typo.
�
        * ns32k/netbsd.h: Fix typo.

From-SVN: r21507
1998-07-31 10:10:59 -06:00
Jeff Law
b2d3117c44 netbsd.h: Fix typo.
�
        * ns32k/netbsd.h: Fix typo.

From-SVN: r21506
1998-07-31 10:10:57 -06:00
Mark Mitchell
39c01e4c53 cp-tree.h (PROCESSING_REAL_TEMPLATE_DECL_P): New macro.
1998-07-31  Mark Mitchell  <mark@markmitchell.com>
	* cp-tree.h (PROCESSING_REAL_TEMPLATE_DECL_P): New macro.
	(maybe_check_template_type): New function.
	* decl.c (maybe_process_template_type_declaration): New function,
	split out from pushtag  Call maybe_check_template_type.
	(pushtag): Use it.  Use PROCESSING_REAL_TEMPLATE_DECL_P.
	(xref_tag): Use PROCESSING_REAL_TEMPLATE_DECL_P.
	* friend.c (do_friend): Use PROCESSING_REAL_TEMPLATE_DECL_P.
	* pt.c (template_class_depth_real): Generalization of ...
	(template_class_depth): Use it.
	(register_specialization): Use duplicate_decls for duplicate
	declarations of specializations.
	(maybe_check_template_type): New function.
	(push_template_decl_real): Fix comment.
	(convert_nontype_argument): Likewise.
	(lookup_template_class): Likewise.  Avoid an infinite loop on
	erroneous code.
	(tsubst_friend_function): Fix comment.
	(tsubst, case FUNCTION_DECL): Deal with a DECL_TI_TEMPLATE that is
	an IDENTIFIER_NODE.
	* semantics.c (begin_function_definition): Use
	reset_specialization to note that template headers don't apply
	directly to declarations after the opening curly for a function.

From-SVN: r21505
1998-07-31 15:01:21 +00:00
Doug Evans
5f97de0ac9 m32r.h (ASM_OUTPUT_SOURCE_LINE): Always output line number labels with .debugsym if no parallel insns.
* m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Always output line number
	labels with .debugsym if no parallel insns.

From-SVN: r21504
1998-07-31 12:29:10 +00:00
Jeff Law
0a5d08b853 Daily bump.
From-SVN: r21502
1998-07-30 18:45:02 -06:00
Richard Henderson
30e2dcbf78 alpha.md (fp cmp): Replicate patterns for ALPHA_TP_INSN.
* alpha.md (fp cmp): Replicate patterns for ALPHA_TP_INSN.
        (fcmov): Remove ALPHA_TP_INSN patterns -- fcmov doesn't trap.

From-SVN: r21501
1998-07-30 12:16:39 -07:00
David Edelsohn
624d5e13d4 x-aix43 (AR_FOR_TARGET_FLAGS): Delete.
* rs6000/x-aix43 (AR_FOR_TARGET_FLAGS): Delete.
        (AR_FOR_TARGET): Define.

From-SVN: r21499
1998-07-30 13:07:25 -04:00
Mark Mitchell
b170964afd dyn-string.h: New file.
* dyn-string.h: New file.
	* dyn-string.c: Likewise.
	* Makefile.in (OBJS): Add dyn-string.o.
	(dwarf2out.o): Add dyn-string.h dependency.
	(dyn-string.o): List dependencies.
	* dwarf2out.c: Include dyn-string.h.
	(ASM_NAME_TO_STRING): Use dyn_string_append, rather than strcpy.
	(addr_const_to_string): Take a dyn_string_t, not a char* as a
	prototype.  Use dyn_string_append rather than strcat, throughout.
	(addr_to_string): Use dyn_string_t.

From-SVN: r21496
1998-07-30 12:30:30 +00:00
Ken Raeburn
07417085a1 Function entry/exit profiling instrumentation:
* expr.h (profile_function_entry_libfunc, profile_function_exit_libfunc):
Declare new variables.
* optabs.c: Define them here.
(init_optabs): Initialize them.
* tree.h (struct tree_decl): New flag no_instrument_function_entry_exit.
(DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT): New accessor macro.
* c-decl.c (duplicate_decls): Merge it.
* c-common.c (enum attrs): New value A_NO_INSTRUMENT_FUNCTION.
(init_attributes): Use it for "no_instrument_function".
(decl_attributes): Handle it, for functions that have not yet been compiled.
Set decl flag.
* flags.h (flag_instrument_function_entry_exit): Declare new variable.
* toplev.c (flag_instrument_function_entry_exit): Define it here.
(f_options): New option "instrument-functions".
* function.h (struct function): New field instrument_entry_exit.
* function.c (current_function_instrument_entry_exit): New variable.
(push_function_context_to, pop_function_context_from): Save and restore.
(expand_function_start): Set current_ variable, maybe emit return label and
entry profile call.
(expand_function_end): Maybe emit exit profile call.
Testsuite:
* gcc.c-torture/special/eeprof-1.c: New test, for -finstrument-functions.
* gcc.c-torture/special/special.exp: Run it.

From-SVN: r21495
1998-07-30 10:38:22 +00:00
Jeff Law
6bcf8e5a04 Daily bump.
From-SVN: r21493
1998-07-29 18:45:02 -06:00
Jeff Law
fe9f823f20 i386.md (movqi): When optimizing a load of (const_int 1) into a NON_QI_REG_P...
p
        * i386.md (movqi): When optimizing a load of (const_int 1) into a
        NON_QI_REG_P, pretend the register is SImode.
Fixes minor egcs-1.1 regression.

From-SVN: r21490
1998-07-29 18:00:18 -06:00
Jeff Law
3192f02483 i386.md (movqi): When optimizing a load of (const_int 1) into a NON_QI_REG_P...
�
        * i386.md (movqi): When optimizing a load of (const_int 1) into a
        NON_QI_REG_P, pretend the register is SImode.
Fixes minor egcs-1.1 regression.

From-SVN: r21489
1998-07-29 18:00:16 -06:00
Manfred Hollstein
0ce065bdf6 configure: Fix --without/--disable cases for gxx-include-dir.
1998-07-29  Manfred Hollstein  <manfred@s-direktnet.de>
	* configure: Fix --without/--disable cases for gxx-include-dir.

From-SVN: r21486
1998-07-29 17:13:57 -06:00
Todd Vierling
58600d2429 configure.in: Use xm-netbsd.h as the NetBSD xm file (not xm-siglist).
* configure.in: Use xm-netbsd.h as the NetBSD xm file (not xm-siglist).
        Accept arm32 as arm, m68k4k as m68k, mipsle as mips-dec, and any
        manufacturer id for ns32k.
        * configure: Regenerated.
        * config/netbsd.h: When using ASM_WEAKEN_LABEL, make it global too.
        * config/t-netbsd: Don't compile libgcc1-test as the fns are in libc.
        * config/i386/netbsd.h: Undefine DWARF2_UNWIND_INFO, not define as 0.
        * config/m68k/netbsd.h: Same.
        * config/ns32k/netbsd.h: Same.
        * config/sparc/netbsd.h: Same.

From-SVN: r21480
1998-07-29 16:51:47 -06:00
Jeff Law
15fec413e7 unroll.c (unroll_loop): Do not abort for an UNROLL_MODULO or UNROLL_COMPLETELY loop that starts with a...
P
        * unroll.c (unroll_loop): Do not abort for an UNROLL_MODULO
        or UNROLL_COMPLETELY loop that starts with a jump to its
        exit code.

From-SVN: r21476
1998-07-29 15:41:04 -06:00
Jeff Law
47d41103c5 unroll.c (unroll_loop): Do not abort for an UNROLL_MODULO or UNROLL_COMPLETELY loop that starts with a...
�
        * unroll.c (unroll_loop): Do not abort for an UNROLL_MODULO
        or UNROLL_COMPLETELY loop that starts with a jump to its
        exit code.

From-SVN: r21475
1998-07-29 15:41:01 -06:00
David Edelsohn
a238cd8bd1 rs6000.md (absdi2 define_split): Swap operands of MINUS.
* rs6000/rs6000.md (absdi2 define_split): Swap operands of MINUS.
        * rs6000/rs6000.c (mask64_operand): Use HOST_BITS_PER_WIDE_INT.
        (print_operand, case 'B'): Don't fall through.
        (print_operand, case 'S'): Correct mask begin/end computation.
        Use HOST_BITS_PER_WIDE_INT.
        * rs6000/rs6000.h (CPP_PREDEFINES): Define _LONG_LONG.
        (CONDITIONAL_REGISTER_USAGE): GPR13 fixed if TARGET_64BIT.
        * rs6000/aix41.h (CPP_PREDEFINES): Same.
        * rs6000/aix43.h (CPP_PREDEFINES): Same.

From-SVN: r21474
1998-07-29 15:35:05 -04:00
Jason Merrill
19f1bd3476 decl.c (push_overloaded_decl): Use current_namespace instead of DECL_CONTEXT (decl) to determine where we go.
* decl.c (push_overloaded_decl): Use current_namespace instead of
	DECL_CONTEXT (decl) to determine where we go.

From-SVN: r21473
1998-07-29 10:56:33 -04:00