- 24 Apr, 2001 6 commits
-
-
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 -
cp: * pt.c (tsubst_decl): Use VOID_TYPE_P. * semantics.c: Fix some typos. From-SVN: r41519
Nathan Sidwell committed -
From-SVN: r41518
Nick Clifton committed -
From-SVN: r41517
Nick Clifton committed -
From-SVN: r41515
GCC Administrator committed -
From-SVN: r41514
Zack Weinberg committed
-
- 23 Apr, 2001 11 commits
-
-
2001-04-24 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de> * include/ext/slist: Include required header files. From-SVN: r41512
Peter Schmid committed -
* c-convert.c (convert): When converting to a BOOLEAN_TYPE, avoid passing nested NOP_EXPRs to fold. testsuite: * gcc.c-torture/compile/20010423-1.c: New test. From-SVN: r41508
Joseph Myers committed -
* include/c_std/bits/std_cerrno.h (errno): Define macro from identifier declared with external linkage, if needed. * include/c_std/bits/std_csetjmp.h (setjmp): Likewise. * include/c_std/bits/std_cstdarg.h (va_end): Likewise. From-SVN: r41507
Loren J. Rittle committed -
2001-04-23 Benjamin Kosnik <bkoz@fillmore.constant.com> * acinclude.m4 (CXX): Set to CXX so that in-directory re-configures find the build compiler. (GLIBCPP_ENABLE_C99): Do all tests with 0.0, not 0. Fixes libstdc++/2609. * aclocal.m4: Regenerate. * configure: Regenerate. From-SVN: r41506
Benjamin Kosnik committed -
* configure.in: Move *-chorusos target case to the proper switch. Disable libgcj. From-SVN: r41505
Anthony Green committed -
From-SVN: r41502
Jan Hubicka committed -
From-SVN: r41500
GCC Administrator committed -
From-SVN: r41499
Mark Mitchell committed -
2001-04-23 Phil Edwards <pme@sources.redhat.com> * configure.in: Remove ENABLE_STD_NAMESPACE. * cp/decl2.c (flag_honor_std): Always initialize to 1. * config.in: Regenerated. * configure: Regenerated. From-SVN: r41497
Phil Edwards committed -
* config.gcc (powerpc-*-darwin*): Move the flag in xm-darwin.h into xm_defines. * config/rs6000/xm-darwin.h: Remove file. From-SVN: r41496
Stan Shebs committed -
* collect2.c (main): Use concat in lieu of xmalloc/sprintf. (write_c_file_stat): Likewise. * dbxout.c (dbxout_init): Likewise. * profile.c (output_func_start_profiler): Likewise. cp: * xref.c (GNU_xref_file): Use concat in lieu of xmalloc/sprintf. f: * com.c (ffecom_subscript_check_): Use concat in lieu of xmalloc/sprintf. java: * jvspec.c (lang_specific_driver): Fix memory allocation deficit, by using concat in lieu of xmalloc/sprintf. From-SVN: r41495
Kaveh R. Ghazi committed
-
- 22 Apr, 2001 5 commits
-
-
* 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. * cpperror.c (v_message): Put a blank before the macro body to not confuse exgettext. From-SVN: r41493
Philipp Thomas committed -
* 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 -
From-SVN: r41491
GCC Administrator committed -
* 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
-
- 21 Apr, 2001 10 commits
-
-
2001-04-21 Kazu Hirata <kazu@hxi.com> * calls.c (expand_call): Fix a comment typo. From-SVN: r41488
Kazu Hirata committed -
* flow.c (proagate_one_insn): Remove useless assignment. * jump.c (delete_insn): Tidy. * loop.c (try_copy_prop): When deleting an instruction with a REG_RETVAL note, delete the entire libcall sequence. (loop_delete_insns): New function. * unroll.c (initial_reg_note_copy): Copy INSN_LIST notes, even if we're not substituting into them yet. From-SVN: r41486
Mark Mitchell committed -
2001-04-21 Kazu Hirata <kazu@hxi.com> * config/sparc/sparc.c (sparc_flat_eligible_for_epilogue_delay): Fix a comment typo. * config/i960/i960.c (signed_arith_operand): Likewise. From-SVN: r41484
Kazu Hirata committed -
2001-04-21 Toon Moene <toon@moene.indiv.nluug.nl> * news.texi: Update release information for 0.5.27. From-SVN: r41483
Toon Moene committed -
2001-04-21 Kazu Hirata <kazu@hxi.com> * config/h8300/h8300.c (general_operand_src): Fix a comment typo. From-SVN: r41481
Kazu Hirata committed -
From-SVN: r41477
GCC Administrator committed -
* java/awt/List.java: Wrote. * java/awt/Dialog.java: Wrote. From-SVN: r41476
Tom Tromey committed -
* cp-tree.h (finish_enum): Change prototype. * decl.c (finish_enum): Reorganize. * parse.y (structsp): Adjust calls to finish_enum. From-SVN: r41474
Mark Mitchell committed -
* cp-tree.h (finish_enum): Change prototype. * decl.c (finish_enum): Reorganize. * parse.y (structsp): Adjust calls to finish_enum. [[Split portion of a mixed commit.]] From-SVN: r41473.2
Mark Mitchell committed -
From-SVN: r41472
Per Bothner committed
-
- 20 Apr, 2001 8 commits
-
-
* configure.in: Probe for times, clock, struct tms, and clock_t. * configure, config.in: Regenerate. * timevar.c: Replace ifdef forest in get_time with (relatively) straightforward series of checks based on autoconf's probes. From-SVN: r41471
Zack Weinberg committed -
acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Make sure required C99 support is enabled correctly before long long is activated. 2001-04-20 Benjamin Kosnik <bkoz@redhat.com> * acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Make sure required C99 support is enabled correctly before long long is activated. * aclocal.m4: Regenerate. * configure: Regenerate. * include/backward/backward_warning.h: Format correctly. * testsuite/26_numerics/c99_classification_macros_c.cc: Add. * testsuite/26_numerics/c99_classification_macros_c++.cc: Add. * testsuite/26_numerics/c99_macros.cc: Remove. From-SVN: r41470
Benjamin Kosnik committed -
acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Make sure required C99 support is enabled correctly before long long is activated. 2001-04-20 Benjamin Kosnik <bkoz@redhat.com> * acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Make sure required C99 support is enabled correctly before long long is activated. * aclocal.m4: Regenerate. * configure: Regenerate. * include/backward/backward_warning.h: Format correctly. * testsuite/26_numerics/c99_classification_macros_c.cc: Add. * testsuite/26_numerics/c99_classification_macros_c++.cc: Add. * testsuite/26_numerics/c99_macros.cc: Remove. From-SVN: r41469
Benjamin Kosnik committed -
2001-04-20 Phil Edwards <pme@sources.redhat.com> * include/bits/stl_bvector.h: Replace __ITERATOR_CATEGORY with __iterator_category. From-SVN: r41468
Phil Edwards committed -
From-SVN: r41467
Jeffrey A Law committed -
cp: * tree.c (cp_tree_equal): Adjust final switch formatting. Add 't' case. testsuite: * g++.old-deja/g++.pt/typename28.C: New test. From-SVN: r41462
Nathan Sidwell committed -
cp: * class.c (dfs_unshared_virtual_bases): Add ATTRIBUTE_UNUSED. (layout_empty_base): Return at end flag. (build_base_field): Likewise. (build_base_fields): Likewise. (layout_virtual_bases): Don't add 1 to eoc value. (end_of_class): Use full size for empty bases. (layout_class_type): Clear CLASSNEARLY_EMPTY_P if we appended empty bases. Don't add 1 to eoc value. Only add trailing padding if we're an empty class with no empty bases. (dump_class_hierarchy): Dump size and alignment. testsuite: * g++.old-deja/g++.abi/empty2.C: New test. * g++.old-deja/g++.abi/empty3.C: New test. From-SVN: r41460
Nathan Sidwell committed -
From-SVN: r41458
Bernd Schmidt committed
-