1. 24 Apr, 2001 6 commits
    • Lazy __FUNCTION__ generation. · 0ba8a114
      gcc:
      	Lazy __FUNCTION__ generation.
      	* c-common.h (RID_FUNCTION_NAME, RID_PRETTY_FUNCTION_NAME,
      	RID_C99_FUNCTION_NAME): New _RIDs.
      	(CTI_FUNCTION_ID, CTI_PRETTY_FUNCTION_ID, CTI_FUNC_ID): Remove.
      	(CTI_FUNCTION_NAME_DECL, CTI_PRETTY_FUNCTION_NAME_DECL,
      	CTI_C99_FUNCTION_NAME_DECL, CTI_SAVED_FUNCTION_NAME_DECLS): New
      	global tree slots.
      	(function_id_node, pretty_function_id_node, func_id_node): Remove.
      	(c99_function_name_decl_node, function_name_decl_node,
      	pretty_function_name_decl_node, saved_function_name_decls):
      	Declare.
      	(struct language_function): Remove x_function_name_declared_p.
      	(make_fname_decl): Remove a parameter.
      	(declare_function_names): Remove prototype.
      	(start_fname_decls, finish_fname_decls): Prototype.
      	(fname_as_string): Likewise.
      	(fname_string, fname_decl): Likewise.
      	* c-common.c (make_fname_decl): Adjust.
      	(struct fname_var_t): New struct.
      	(fname_vars): New static array.
      	(declare_function_name): Remove.
      	(start_fname_decls, finish_fname_decls): New functions.
      	(fname_as_string): New function from remnants of
      	declare_function_name.
      	(fname_string, fname_decl): New functions.
      
      	* c-decl.c (c_function_name_declared_p): Remove.
      	(init_decl_processing): Don't generate __FUNCTION__ et al ids,
      	don't call declare_function_name. Call start_fname_decls.
      	(c_make_fname_decl): Adjust parameters. Generate the name. Don't
      	clobber the line number. Call finish_decl.
      	(start_function): Call start_fname_decls.
      	(finish_function): Call finish_fname_decls.
      	Remove c_function_name_declared_p.
      	(push_c_function_context): Don't push c_function_name_declared_p.
      	(pop_c_function_context): Don't pop c_function_name_declared_p.
      	(c_begin_compound_stmt): Don't check c_function_name_declared_p.
      	* c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): New tokens.
      	(program): Call finish_fname_decls for C.
      	(primary): Add VAR_FUNC_NAME.
      	(reswords): Add slots for __FUNCTION__ et al.
      	(rid_to_yy): Add mappings for __FUNCTION__ et al.
      	(yylexname): If it's a STRING_FUNC_NAME generate the function name
      	now. Don't look for VAR_DECLs containing __FUNCTION__ et al.
      	* c-semantics.c (prune_unused_decls): Remove.
      	(finish_stmt_tree): Don't call prune_unused_decls.
      	(genrtl_decl_stmt): Don't prune unused decls here.
      cp:
      	Lazy __FUNCTION__ generation.
      	* cp-tree.def (FUNCTION_NAME): Remove.
      	* cp-tree.h (function_name_declared_p): Remove.
      	(cp_fname_init): Prototype.
      	* decl.c (init_decl_processing): Don't generate __FUNCTION__ et al ids,
      	don't call declare_function_name. Call start_fname_decls.
      	(cp_make_fname_decl): Adjust parameters. Generate the name. Don't
      	clobber the line number.
      	(cp_fname_init): New function.
      	(start_function): Call start_fname_decls.
      	(finish_function): Call finish_fname_decls.
      	* lex.c (reswords): Add slots for __FUNCTION__ et al.
      	(rid_to_yy): Add mappings for __FUNCTION__ et al.
      	* optimize.c (maybe_clone_body): Remove function_name_declared_p.
      	* parse.y (VAR_FUNC_NAME): New token.
      	(primary): Add VAR_FUNC_NAME.
      	* pt.c (tsubst_decl): Adjust a DECL_PRETTY_FUNCTION_P's
      	generation.
      	(tsubst, FUNCTION_NAME case): Remove.
      	(tsubst_copy, FUNCTION_NAME case): Remove.
      	(tsubst_expr, DECL_STMT case): Be careful with a
      	DECL_PRETTY_FUNCTION_P.
      	(instantiate_decl): Remove function_name_declared_p.
      	* semantics.c (begin_compound_statement): Don't call
      	declare_function_name here.
      	(setup_vtbl_ptr). Don't save & restore function_name_declared_p.
      	(finish_translation_unit): Call finish_fname_decls.
      	(expand_body): Remove function_name_declared_p.
      	* typeck2.c (digest_init): Allow any ERROR_MARK.
      testsuite:
      	* gcc.dg/c99-func-2.c: Remove xfail.
      	* gcc.dg/c99-func-3.c: Remove xfail.
      	* gcc.dg/c99-func-4.c: Remove xfail.
      
      From-SVN: r41520
      Nathan Sidwell committed
    • pt.c (tsubst_decl): Use VOID_TYPE_P. · dfbb4f34
      cp:
      	* pt.c (tsubst_decl): Use VOID_TYPE_P.
      	* semantics.c: Fix some typos.
      
      From-SVN: r41519
      Nathan Sidwell committed
    • Always set STRICT_ALIGNMENT · b201442f
      From-SVN: r41517
      Nick Clifton committed
    • Daily bump. · 269ee3d1
      From-SVN: r41515
      GCC Administrator committed
  2. 23 Apr, 2001 11 commits
  3. 22 Apr, 2001 5 commits
    • except.c (build_throw): Wrap the initialization of the exception object in a MUST_NOT_THROW_EXPR. · 2ac8a0f9
              * except.c (build_throw): Wrap the initialization of the exception
              object in a MUST_NOT_THROW_EXPR.
              (do_free_exception): #if 0.
      
      From-SVN: r41494
      Jason Merrill committed
    • ABOUT-GCC-NLS: Now that gettext 0.10.37 is out, require it instead of the CVS version. · 146ef880
      	* ABOUT-GCC-NLS: Now that gettext 0.10.37 is out,
      	require it instead of the CVS version.
              * cpperror.c (v_message): Put a blank before the macro
              body to not confuse exgettext.
      
      From-SVN: r41493
      Philipp Thomas committed
    • Makefile.in: Rebuilt. · efc150d5
      	* Makefile.in: Rebuilt.
      	* Makefile.am (awt_java_source_files): Added Line2D.java.
      	* java/awt/geom/Line2D.java: Wrote.
      
      	* java/awt/Menu.java (addNotify): Wrote.
      
      	* java/awt/PopupMenu.java (addNotify): Implemented.
      	(show): Likewise.
      
      	* java/awt/Scrollbar.java (addNotify): Call super.addNotify.
      	* java/awt/List.java (addNotify): Call super.addNotify.
      	* java/awt/Label.java (addNotify): Call super.addNotify.
      	* java/awt/FileDialog.java (addNotify): Call super.addNotify.
      	* java/awt/Dialog.java (addNotify): Call super.addNotify.
      	* java/awt/Choice.java (addNotify): Call super.addNotify.
      	* java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
      	* java/awt/Checkbox.java (addNotify): Call super.addNotify.
      
      	* java/awt/List.java (replaceItem): Notify peer.
      
      	* java/awt/geom/Rectangle2D.java
      	(Float.setRect(float,float,float,float)): New method.
      
      	* java/awt/event/ContainerEvent.java (getContainer): Now returns
      	Container.
      
      	* java/awt/RenderingHints.java (Key): Class now public.
      
      	* java/awt/Rectangle.java (Rectangle): Now implements
      	Serializable.
      	(getPathIterator): Removed.
      
      	* java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
      	constructor.
      
      	* java/awt/FileDialog.java: Wrote.
      
      	* java/awt/EventQueue.java (isDispatchThread): Now public.
      	(invokeLater): Likewise.
      
      	* java/awt/Component.java (setCursor): Update peer.
      	(getFontMetrics): Use peer.
      
      	* java/awt/ComponentOrientation.java (ComponentOrientation): Class
      	now final.
      
      From-SVN: r41492
      Tom Tromey committed
    • Daily bump. · ecd85e80
      From-SVN: r41491
      GCC Administrator committed
    • Makefile.in: Rebuilt. · 760903c0
      	* Makefile.in: Rebuilt.
      	* Makefile.am (awt_java_source_files): Added Line2D.java.
      	* java/awt/geom/Line2D.java: Wrote.
      
      	* java/awt/Menu.java (addNotify): Wrote.
      
      	* java/awt/PopupMenu.java (addNotify): Implemented.
      	(show): Likewise.
      
      	* java/awt/Scrollbar.java (addNotify): Call super.addNotify.
      	* java/awt/List.java (addNotify): Call super.addNotify.
      	* java/awt/Label.java (addNotify): Call super.addNotify.
      	* java/awt/FileDialog.java (addNotify): Call super.addNotify.
      	* java/awt/Dialog.java (addNotify): Call super.addNotify.
      	* java/awt/Choice.java (addNotify): Call super.addNotify.
      	* java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
      	* java/awt/Checkbox.java (addNotify): Call super.addNotify.
      
      	* java/awt/List.java (replaceItem): Notify peer.
      
      	* java/awt/geom/Rectangle2D.java
      	(Float.setRect(float,float,float,float)): New method.
      
      	* java/awt/event/ContainerEvent.java (getContainer): Now returns
      	Container.
      
      	* java/awt/RenderingHints.java (Key): Class now public.
      
      	* java/awt/Rectangle.java (Rectangle): Now implements
      	Serializable.
      	(getPathIterator): Removed.
      
      	* java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
      	constructor.
      
      	* java/awt/FileDialog.java: Wrote.
      
      	* java/awt/EventQueue.java (isDispatchThread): Now public.
      	(invokeLater): Likewise.
      
      	* java/awt/Component.java (setCursor): Update peer.
      	(getFontMetrics): Use peer.
      
      	* java/awt/ComponentOrientation.java (ComponentOrientation): Class
      	now final.
      
      From-SVN: r41489
      Tom Tromey committed
  4. 21 Apr, 2001 10 commits
  5. 20 Apr, 2001 8 commits