Kaveh R. Ghazi
789f983ab1
system.h: Include stdarg.h/varargs.h...
...
* system.h: Include stdarg.h/varargs.h, make sure they are ordered
correctly with regards to stdio.h.
* calls.c: Remove stdarg.h/varargs.h.
* cccp.c: Likewise.
* cexp.y: Likewise.
* combine.c: Likewise.
* cpperror.c: Likewise.
* cpplib.c: Likewise.
* cpplib.h: Likewise.
* doprint.c: Likewise.
* emit-rtl.c: Likewise.
* final.c: Likewise.
* fix-header.c: Likewise.
* gcc.c: Likewise.
* genattr.c: Likewise.
* genattrtab.c: Likewise.
* gencodes.c: Likewise.
* genconfig.c: Likewise.
* genemit.c: Likewise.
* genextract.c: Likewise.
* genflags.c: Likewise.
* genopinit.c: Likewise.
* genoutput.c: Likewise.
* genpeep.c: Likewise.
* genrecog.c: Likewise.
* mips-tfile.c: Likewise.
* prefix.c: Likewise.
* protoize.c: Likewise.
* regmove.c: Likewise.
* toplev.c: Likewise.
* tree.c: Likewise.
* cp/errfn.c: Remove stdarg.h/varargs.h.
* cp/tree.c: Likewise.
From-SVN: r21997
1998-08-26 08:11:47 +00:00
Mark Mitchell
a5b8127eb1
* errfn.c (cp_thing): Handle the `%%' formatting sequence.
...
From-SVN: r20537
1998-06-17 10:40:49 +00:00
Jason Merrill
62c154ed39
decl.c (lang_print_error_function): New fn.
...
* decl.c (lang_print_error_function): New fn.
(init_decl_processing): Set print_error_function to use it.
* errfn.c (cp_thing): Don't call maybe_print_template_context here.
* call.c (maybe_handle_ref_bind): Propagate ICS_USER_FLAG and
ICS_BAD_FLAG.
* cvt.c (ocp_convert): Don't set LOOKUP_NO_CONVERSION for
copy-initialization.
From-SVN: r19966
1998-05-22 19:13:28 -04:00
Jason Merrill
d7fe837368
comment
...
From-SVN: r19948
1998-05-21 23:49:13 -04:00
Jason Merrill
27fafc8de1
pt.c (determine_specialization): Just return an error_mark_node.
...
* pt.c (determine_specialization): Just return an error_mark_node.
Also print the decl we want in error messages. If we complain,
return error_mark_node.
(tsubst_friend_function): Set lineno and input_filename so
error messages will be useful.
(instantiate_template): Just return an error_mark_node.
* pt.c (print_template_context): Add new argument.
(maybe_print_template_context): New fn.
(push_tinst_level): Increment tinst_level_tick.
(pop_tinst_level): Likewise.
* errfn.c (cp_thing): Call maybe_print_template_context. Use
xrealloc instead of xmalloc.
* typeck.c (build_unary_op, CONVERT_EXPR): Propagate TREE_CONSTANT.
From-SVN: r19946
1998-05-21 23:32:43 -04:00
Kaveh R. Ghazi
77dc0938f7
Warning fixes:
...
* Makefile.in (parse.o): Depend on toplev.h.
* class.c (typecode_p): Remove prototype and definition.
* cp-tree.h (currently_open_class, is_empty_class, member_p):
Add prototype.
* decl.c (push_overloaded_decl_top_level): Remove prototype and
definition.
* errfn.c (cp_error): Cast function pointer `error' to (errorfn *)
in call to `cp_thing'.
(cp_warning): Likewise for function pointer `warning'.
* except.c (do_function_call): Remove prototype and definition.
(call_eh_info): Wrap variable `t1' in macro NEW_EH_MODEL.
* method.c (is_java_type): Add prototype and make it static.
* parse.y: Include toplev.h.
* pt.c (type_unification): Remove unused variable `arg'.
(instantiate_decl): likewise for `save_ti'.
* tree.c (propagate_binfo_offsets): Likewise for `base_binfos'.
From-SVN: r19866
1998-05-19 07:19:17 +00:00
Jeffrey A Law
2c261fc0a3
errfn.c (cp_error, cp_warning): Remove declarations for error and warning respectively.
...
* errfn.c (cp_error, cp_warning): Remove declarations for
error and warning respectively.
From-SVN: r19581
1998-05-06 09:46:18 -06:00
Robert Lipe
54f92bfbb1
call.c, [...]: Add include of toplev.h.
...
Wed May 6 06:36:41 1998 Robert Lipe <robertl@dgii.com>
* cp/call.c, cp/class.c, cp/decl.c, cp/decl2.c,
cp/errfn.c, cp/error.c, cp/except.c, cp/expr.c,
cp/friend.c, cp/init.c, cp/lex.c, cp/method.c,
cp/pt.c, cp/repo.c, cp/rtti.c, cp/search.c,
cp/semantics.c, cp/sig.c, cp/tree.c, cp/typeck.c,
cp/typeck2.c, cp/xref.c: Add include of toplev.h.
From-SVN: r19565
1998-05-06 05:01:35 +00:00
Mark Mitchell
fb1653e1f8
* errfn.c (cp_thing): Use xrealloc, not xmalloc, to copy memory.
...
From-SVN: r19367
1998-04-21 21:55:45 +00:00
John Carr
9932d281eb
errfn.c: Rework to avoid problems when HOST_WIDE_INT is longer than a pointer.
...
* errfn.c: Rework to avoid problems when HOST_WIDE_INT is longer
than a pointer.
Co-Authored-By: Jeffrey A Law <law@cygnus.com>
From-SVN: r19226
1998-04-15 06:22:03 -06:00
Jeffrey A Law
e7a587ef75
* class.c, Make sure system.h is included just after config.h.
...
Delete lingering stdio and errno references too.
* decl.c, errfn.c, parse.y, ptree.c search.c, xrefc.: Likewwise.
From-SVN: r18936
1998-04-01 10:25:12 -07:00
Jeffrey A Law
8d052bc70c
call.c: Include system.h.
...
* call.c: Include system.h. Remove includes, declarations and
defines provided by system.h.
* class.c, cvt.c, decl.c, decl2.c, errfn.c error.c: Likewise.
* except.c, expr.c friend.c, g++spec.c, init.c, input.c: Likewise.
* lex.c, parse.y, pt.c, ptree.c repo.c rtti.c, search.c: Likewise.
* semantics.c, sig.c, spew.c, tree.c, typeck.c: Likewise.
* typeck2.c, xref.c: Likewise.
* Makefile.in: Dependencies updated as appropriate.
* Make-lang.in: Likewise.
system.h cutover from the cp subdir
From-SVN: r18917
1998-03-31 06:25:46 -07:00
Jason Merrill
9664b89edd
errfn.c (cp_pedwarn, [...]): Replace extern decls with casts.
...
* errfn.c (cp_pedwarn, cp_pedwarn_at, cp_error_at, cp_warning_at):
Replace extern decls with casts.
* decl.c (expand_start_early_try_stmts): Don't mess with a sequence.
Update last_parm_cleanup_insn.
(store_after_parms): Remove.
* cp-tree.h: Adjust.
Fixes eh{39,40}.C
From-SVN: r17083
1997-12-12 19:28:00 -05:00
Jason Merrill
73aad9b9ff
87th Cygnus<->FSF quick merge
...
From-SVN: r12630
1996-08-13 15:39:22 +00:00
Mike Stump
72b7eeff72
76th Cygnus<->FSF merge
...
From-SVN: r10815
1995-12-19 06:51:14 +00:00
Mike Stump
f30432d726
75th Cygnus<->FSF merge
...
From-SVN: r10438
1995-10-12 02:33:51 +00:00
Richard Kenner
8ecb1d9245
Rename called function.
...
From-SVN: r10050
1995-06-22 22:51:13 -04:00
Richard Kenner
e9fa0c7c6f
Update FSF address.
...
From-SVN: r9966
1995-06-15 08:29:51 -04:00
Mike Stump
0059501924
46 Cygnus<->FSF merge
...
From-SVN: r7943
1994-08-18 20:50:43 +00:00
Mike Stump
2986ae008b
38th Cygnus<->FSF merge
...
From-SVN: r7337
1994-05-19 20:19:03 +00:00
Mike Stump
8926095fe7
31th Cygnus<->FSF merge.
...
From-SVN: r6996
1994-04-08 06:08:43 +00:00
Mike Stump
51c184be09
30th Cygnus<->FSF merge.
...
From-SVN: r6859
1994-03-23 23:33:53 +00:00
Mike Stump
8d08fdba59
Initial revision
...
From-SVN: r6613
1994-02-24 01:02:37 +00:00