Commit Graph

23177 Commits

Author SHA1 Message Date
Jason Merrill f0ce07b87a * linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
From-SVN: r28496
1999-08-04 07:27:20 -04:00
Nathan Sidwell fb2000b293 * g++.old-deja/g++.eh/spec6.C: Add more tests. Remove XFAILS.
From-SVN: r28495
1999-08-04 09:09:21 +00:00
Nathan Sidwell 4cc1d46201 cp-tree.h (empty_except_spec): New global var.
* cp-tree.h (empty_except_spec): New global var.
	(compexcepttypes): Remove prototype.
	(comp_except_specs): Prototype new global function.
	(add_exception_specifier): Prototype new global function.
	* decl.c (empty_except_spec): Define new global var.
	(duplicate_decls): Use comp_except_specs, reword error message.
	(init_decl_processing): Initialize empty_except_spec.
	Adjust build_exception_variant calls.
	* parse.y (exception_specification_opt): Use empty_except_spec.
	(ansi_raise_identifier): Call check_for_new_type.
	(ansi_raise_identifiers): Use add_exception_specifier.
	* pt.c (tsubst): Use add_exception_specifier to build exception
	specifier.
	* search.c (check_final_overrider): New static function, broken
	out of get_matching_virtual. Check throw specifiers, reword
	diagnostics.
	(get_matching_virtual): Use check_final_overrider.
	* tree.c (build_exception_variant): Use comp_except_specs.
	* typeck.c (compexcepttypes): Remove.
	(comp_except_types): New static function, helper for
	comp_except_specs. Compare two types as exception specifiers.
	(comp_except_specs): New global function, compare two exception
	specifiers.
	(comptypes): Adjust for comp_except_specs.
	* typeck2.c (add_exception_specifier): New global function.

	* class.c (check_for_override): Reword error message.

From-SVN: r28494
1999-08-04 09:07:51 +00:00
Mark Elbrecht bc3c01c507 * gcc/config/i386/djgpp.h (BSS_SECTION_ASM_OP): Define.
From-SVN: r28493
1999-08-04 02:58:39 -06:00
Richard Henderson 1fe659304f * jump.c (delete_insn): Delete the addr_vec when deleting a tablejump.
From-SVN: r28492
1999-08-04 02:19:36 -06:00
Jeffrey A Law dbd83e1178 * config.sub (vxworks case): Use os=-vxworks, not os=vxworks.
From-SVN: r28489
1999-08-04 02:07:57 -06:00
Jim Kingdon 318e4b5687 * global.c: Fix comment.
From-SVN: r28488
1999-08-04 01:50:08 -06:00
Jeff Law d2dace5771 Daily bump.
From-SVN: r28487
1999-08-04 01:46:10 -06:00
Ian Lance Taylor ca6062011d gcc.c (access_check): New static function.
* gcc.c (access_check): New static function.
        (find_a_file): Use it when searching a directory list.
        * collect2.c (find_a_file): Don't accept directories found when
        searching a directory list.

From-SVN: r28486
1999-08-04 01:45:10 -06:00
Philippe De Muyter 0c26b18a0d tlink.c (symbol_hash_lookup): Do not prefix functions used as function parameters with `&'.
* tlink.c (symbol_hash_lookup): Do not prefix functions used as
        function parameters with `&'.
        (file_hash_lookup, demangled_hash_lookup, tlink_init): Ditto.

From-SVN: r28485
1999-08-04 01:41:48 -06:00
Jeffrey A Law 6d368e86d0 * gcc.c-torture/execute/990804-1.c: New test.
From-SVN: r28484
1999-08-04 01:18:41 -06:00
Jeffrey A Law e8fe3cc34e flow.c (delete_unreachable_blocks): Do not call merge_blocks or tidy_fallthru_edge if...
* flow.c (delete_unreachable_blocks): Do not call merge_blocks
        or tidy_fallthru_edge if the last insn in the block is not
        an unconditional jump or a simple conditional jump.

From-SVN: r28483
1999-08-04 01:11:26 -06:00
Richard Henderson 31534a2cba Forgot to check this in yesterday.
From-SVN: r28481
1999-08-03 22:46:42 -07:00
Tom Tromey fa94e3a95d gc_priv.h (GC_test_and_set): Implementation for Linux PPC from Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
* gc_priv.h (GC_test_and_set): Implementation for Linux PPC from
	Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.

From-SVN: r28480
1999-08-04 03:26:15 +00:00
J"orn Rennecke 02edc62b77 Makefile.in (c-decl.o): Depends on defaults.h.
* Makefile.in (c-decl.o): Depends on defaults.h.
	* java/Makefile.in (decl.o): Depends on $(srcdir)/../defaults.h.

From-SVN: r28479
1999-08-03 23:01:21 +01:00
Jeffrey A Law 156e68b756 pa.h (HARD_REGNO_NREGS): FP registers are always 4 bytes wide for PA1.1 and above.
* pa.h (HARD_REGNO_NREGS): FP registers are always 4 bytes wide for
        PA1.1 and above.
        (CLASS_MAX_NREGS): Likewise.

From-SVN: r28478
1999-08-03 14:17:38 -06:00
Nathan Sidwell 351b736c54 crash63.C: Expect a POD warning
* g++.old-deja/g++.brendan/crash63.C: Expect a POD warning
        * g++.old-deja/g++.brendan/crash64.C: Likewise
        * g++.old-deja/g++.brendan/overload8.C: Likewise

From-SVN: r28476
1999-08-03 15:05:25 +00:00
Nathan Sidwell 52fb276947 call.c (convert_arg_to_ellipsis): Use pod_type_p.
* call.c (convert_arg_to_ellipsis): Use pod_type_p.
        * cp-tree.h (struct lang_type): Added non_pod_class flag.
        (CLASSTYPE_NON_POD_P): New macro to access it.
        * class.c (finish_struct_1): Determine non-PODness.
        Check for arrays of pointers (-Weffc++).
        Remove array inspection duplicated code.
        * tree.c (pod_type_p): Detect non-pod non-aggregate types.
        Use CLASSTYPE_NON_POD_P.

From-SVN: r28475
1999-08-03 15:04:49 +00:00
Nathan Sidwell 4a30151d10 * g++.old-deja/g++.other/struct1.C: New test.
From-SVN: r28474
1999-08-03 14:46:14 +00:00
Nathan Sidwell 13bd123dfb * class.c (duplicate_tag_error): Preserve template information.
From-SVN: r28473
1999-08-03 14:45:20 +00:00
Nathan Sidwell 8e64077dd3 * g++.old-deja/g++.other/enum2.C: New test.
From-SVN: r28472
1999-08-03 14:25:10 +00:00
Nathan Sidwell 30ff82528b decl.c (start_enum): Show location of previous definition.
* decl.c (start_enum): Show location of previous definition.
        * parse.y (enumlist_opt): New reduction.
        (structsp): Simplify enum rules to use enumlist_opt.

From-SVN: r28471
1999-08-03 14:24:07 +00:00
Alexandre Oliva f124f84ab0 * ext1.C: New test.
From-SVN: r28470
1999-08-03 13:51:50 +00:00
Alexandre Oliva 5b8fa33160 * dwarf1.C, dwarf2.C, dwarf3.C: New tests.
From-SVN: r28469
1999-08-03 12:51:02 +00:00
Jason Merrill a22b75d3f2 new
From-SVN: r28468
1999-08-03 07:35:17 -04:00
Jason Merrill 074917ba5c lex.c (yyprint): Handle PFUNCNAME.
* lex.c (yyprint): Handle PFUNCNAME.

	* decl2.c (build_expr_from_tree, case METHOD_CALL_EXPR): Only
	build_expr_from_tree on the args of a TEMPLATE_ID_EXPR.

From-SVN: r28467
1999-08-03 06:18:13 -04:00
Jeffrey A Law 778e067718 * cse.c (cse_insn): Fix dumb thinko in last change.
From-SVN: r28466
1999-08-03 04:00:27 -06:00
Jeff Law cf836b0025 Delete questionable files
From-SVN: r28463
1999-08-03 03:40:46 -06:00
Bernd Schmidt 392dccb7d3 Warning fix
From-SVN: r28462
1999-08-03 09:38:51 +00:00
Jeff Law da630e1253 Delete questionable files
From-SVN: r28460
1999-08-03 03:34:18 -06:00
Jeff Law b7bc283c66 Delete questionable files
From-SVN: r28459
1999-08-03 03:26:29 -06:00
Jeff Law 1ffa46368b Delete questionable files
From-SVN: r28457
1999-08-03 03:13:02 -06:00
Jeff Law cb585cfa2e Remove questionable files
From-SVN: r28456
1999-08-03 03:12:27 -06:00
Jeff Law 6285c904f7 Delete questionable tests
From-SVN: r28453
1999-08-03 02:30:01 -06:00
Jeff Law 255433ed94 Delete questionable tests
From-SVN: r28451
1999-08-03 02:19:35 -06:00
Jeff Law d9a3175816 Delete questionable tests.
From-SVN: r28448
1999-08-03 02:04:46 -06:00
Jeff Law 61fb22b10a Remove copyrighted testcase
From-SVN: r28447
1999-08-03 01:55:12 -06:00
Jeff Law a740d5947e Daily bump.
From-SVN: r28445
1999-08-03 01:45:14 -06:00
Mumit Khan fa20888b17 * decl.c (start_decl): Set attributes before duplicate_decls call.
From-SVN: r28442
1999-08-03 03:03:03 -04:00
Hans-Peter Nilsson 555b644206 dwarf2out.c (add_location_or_const_value_attribute): Correct test for sizes of passed and declared parameter types.
* dwarf2out.c (add_location_or_const_value_attribute): Correct
	test for sizes of passed and declared parameter types.

From-SVN: r28441
1999-08-03 02:46:05 -04:00
Kaveh R. Ghazi c354f40df2 fixincludes: Fix the return type of bsearch, char* -> void*.
* fixincludes: Fix the return type of bsearch, char* -> void*.

        * fixinc/inclhack.def: Likewise.

From-SVN: r28440
1999-08-03 04:06:31 +00:00
Jason Merrill ce12589b90 regen
From-SVN: r28439
1999-08-02 23:56:11 -04:00
Tom Tromey e656c72f3c * aclocal.m4, configure: Rebuilt for new libtool.
From-SVN: r28438
1999-08-03 03:19:52 +00:00
Tom Tromey 6cf31ce442 * aclocal.m4, configure: Rebuilt for new libtool.
From-SVN: r28436
1999-08-03 03:09:12 +00:00
Tom Tromey 5b9bbb3917 aclocal.m4, configure: Rebuilt for new libtool.
* aclocal.m4, configure: Rebuilt for new libtool.

[[Split portion of a mixed commit.]]

From-SVN: r28435.2
1999-08-03 03:07:04 +00:00
Mark Mitchell f71f87f9eb invoke.texi (-fdump-translation-unit): New option.
* invoke.texi (-fdump-translation-unit): New option.
	* Make-lang.in (CXX_SRCS): Add dump.c.
	* Makefile.in (CXX_OBJS): Add dump.o.
	(dump.o): New target.
	* cp-tree.h (DECL_CONV_FN_P): Document.
	(DECL_OVERLOADED_OPERATOR_P): New function.
	(TYPE_PTRMEM_CLASS_TYPE): New macro.
	(TYPE_PTRMEM_POINTED_TO_TYPE): Likewise.
	(PTRMEM_CST_CLASS): Use TYPE_PTRMEM_CLASS_TYPE.
	(ASM_VOLATILE_P): New macro.
	(STMT_LINENO): Likewise.
	(cp_namespace_decls): New function.
	(dump_node_to_file): New function.
	* decl.c (cp_namespace_decls): New function.
	(walk_namespaces_r): Use it.
	(wrapup_globals_for_namespace): Likewise.
	* decl2.c (flag_dump_translation_unit): New variable.
	(lang_decode_option): Handle -fdump-translation-unit.
	(finish_file): If flag_dump_translation_unit is set, dump the
	translation unit.
	* dump.c: New file.
	* lang-options.h: Add -fdump-translation-unit.
	* pt.c (tsubst_template_parms): Robustify.
	(tsubst_decl): Use DECL_OVERLOADED_OPERATOR_P.
	(tsubst_expr): Use STMT_LINENO.
	* semantics.c (finish_asm_stmt): Eliminate duplicate code.  Check
	for invalid cv-qualifiers even while building templates.

From-SVN: r28434
1999-08-03 01:37:47 +00:00
Richard Henderson 246833ac17 expr.h (PROMOTE_PROTOTYPES): Move ...
* expr.h (PROMOTE_PROTOTYPES): Move ...
        * defaults.h: ... to here.
        * c-decl.c: Include defaults.h instead of expr.h.
        * c-typeck.c: Include defaults.h.

From-SVN: r28433
1999-08-02 17:58:44 -07:00
Richard Henderson 091f9839f2 call.c: Include defaults.h instead of expr.h.
* call.c: Include defaults.h instead of expr.h.
        * decl.c: Likewise.
        * pt.c: Likewise.
        * typeck.c: Include defaults.h.

From-SVN: r28432
1999-08-02 17:58:19 -07:00
Richard Henderson 0ae70c6a94 decl.c: Include defaults.h instead of expr.h.
* decl.c: Include defaults.h instead of expr.h.
        * parse.y: Likewise.

From-SVN: r28431
1999-08-02 17:57:50 -07:00
Bryce McKinlay 120abe3202 natFile.cc (performMkdir): Remove FIXME.
* java/io/natFile.cc (performMkdir): Remove FIXME.
        * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.

From-SVN: r28430
1999-08-03 01:32:14 +01:00