aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2001-04-24Lazy __FUNCTION__ generation.Nathan Sidwell20-272/+431
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
2001-04-24pt.c (tsubst_decl): Use VOID_TYPE_P.Nathan Sidwell3-6/+11
cp: * pt.c (tsubst_decl): Use VOID_TYPE_P. * semantics.c: Fix some typos. From-SVN: r41519
2001-04-24If a SYMBOL_REF is in the constant pool, use the pool's SYMBOL_REF.Nick Clifton2-0/+9
From-SVN: r41518
2001-04-24Always set STRICT_ALIGNMENTNick Clifton2-3/+6
From-SVN: r41517
2001-04-24Daily bump.GCC Administrator5-5/+5
From-SVN: r41515
2001-04-24* gcc.c-torture/execute/20010124-1.c: No longer expected to fail.Zack Weinberg2-2/+4
From-SVN: r41514
2001-04-23slist: Include required header files.Peter Schmid2-2/+10
2001-04-24 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de> * include/ext/slist: Include required header files. From-SVN: r41512
2001-04-23c-convert.c (convert): When converting to a BOOLEAN_TYPE, avoid passing ↵Joseph Myers4-1/+34
nested NOP_EXPRs to fold. * 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
2001-04-23std_cerrno.h (errno): Define macro from identifier declared with external ↵Loren J. Rittle4-0/+22
linkage, if needed. * 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
2001-04-23acinclude.m4 (CXX): Set to CXX so that in-directory re-configures find the ↵Benjamin Kosnik4-843/+861
build compiler. 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
2001-04-23configure.in: Move *-chorusos target case to the proper switch.Anthony Green2-3/+8
* configure.in: Move *-chorusos target case to the proper switch. Disable libgcj. From-SVN: r41505
2001-04-23* reg-stack.c (emit_swap_insn): Do not get pass CALL_INSNs.Jan Hubicka2-0/+5
From-SVN: r41502
2001-04-23Daily bump.GCC Administrator5-5/+5
From-SVN: r41500
2001-04-23* loop.c (loop_delete_insns): Add prototype.Mark Mitchell2-0/+5
From-SVN: r41499
2001-04-23configure.in: Remove ENABLE_STD_NAMESPACE.Phil Edwards6-285/+295
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
2001-04-23config.gcc (powerpc-*-darwin*): Move the flag in xm-darwin.h into xm_defines.Stan Shebs3-6/+10
* config.gcc (powerpc-*-darwin*): Move the flag in xm-darwin.h into xm_defines. * config/rs6000/xm-darwin.h: Remove file. From-SVN: r41496
2001-04-23collect2.c (main): Use concat in lieu of xmalloc/sprintf.Kaveh R. Ghazi10-57/+40
* 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
2001-04-22except.c (build_throw): Wrap the initialization of the exception object in a ↵Jason Merrill3-8/+38
MUST_NOT_THROW_EXPR. * 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
2001-04-22ABOUT-GCC-NLS: Now that gettext 0.10.37 is out, require it instead of the ↵Philipp Thomas3-7/+12
CVS version. * 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
2001-04-22Makefile.in: Rebuilt.Tom Tromey1-0/+537
* 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
2001-04-22Daily bump.GCC Administrator5-5/+5
From-SVN: r41491
2001-04-22Makefile.in: Rebuilt.Tom Tromey24-72/+304
* 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
2001-04-21calls.c (expand_call): Fix a comment typo.Kazu Hirata2-2/+4
2001-04-21 Kazu Hirata <kazu@hxi.com> * calls.c (expand_call): Fix a comment typo. From-SVN: r41488
2001-04-21flow.c (proagate_one_insn): Remove useless assignment.Mark Mitchell6-14/+63
* 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
2001-04-21sparc.c (sparc_flat_eligible_for_epilogue_delay): Fix a comment typo.Kazu Hirata3-2/+6
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
2001-04-21news.texi: Update release information for 0.5.27.Toon Moene2-7/+50
2001-04-21 Toon Moene <toon@moene.indiv.nluug.nl> * news.texi: Update release information for 0.5.27. From-SVN: r41483
2001-04-21h8300.c (general_operand_src): Fix a comment typo.Kazu Hirata2-1/+5
2001-04-21 Kazu Hirata <kazu@hxi.com> * config/h8300/h8300.c (general_operand_src): Fix a comment typo. From-SVN: r41481
2001-04-21Daily bump.GCC Administrator5-5/+5
From-SVN: r41477
2001-04-21List.java: Wrote.Tom Tromey3-7/+576
* java/awt/List.java: Wrote. * java/awt/Dialog.java: Wrote. From-SVN: r41476
2001-04-21cp-tree.h (finish_enum): Change prototype.Mark Mitchell4-115/+111
* cp-tree.h (finish_enum): Change prototype. * decl.c (finish_enum): Reorganize. * parse.y (structsp): Adjust calls to finish_enum. From-SVN: r41474
2001-04-21cp-tree.h (finish_enum): Change prototype.Mark Mitchell1-0/+13
* 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
2001-04-20Fixes to compile multiple .class files at once.Per Bothner5-78/+85
From-SVN: r41472
2001-04-20configure.in: Probe for times, clock, struct tms, and clock_t.Zack Weinberg5-162/+377
* 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
2001-04-20acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Make sure required C99 support is ↵Benjamin Kosnik5-786/+829
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
2001-04-20acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Make sure required C99 support is ↵Benjamin Kosnik2-0/+58
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
2001-04-20stl_bvector.h: Replace __ITERATOR_CATEGORY with __iterator_category.Phil Edwards2-3/+8
2001-04-20 Phil Edwards <pme@sources.redhat.com> * include/bits/stl_bvector.h: Replace __ITERATOR_CATEGORY with __iterator_category. From-SVN: r41468
2001-04-20* config/pa/som.h (NM_FLAGS): Define.Jeffrey A Law2-0/+9
From-SVN: r41467
2001-04-20tree.c (cp_tree_equal): Adjust final switch formatting.Nathan Sidwell4-9/+51
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
2001-04-20class.c (dfs_unshared_virtual_bases): Add ATTRIBUTE_UNUSED.Nathan Sidwell5-21/+222
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
2001-04-20Better scheduling of shiftsBernd Schmidt4-7/+165
From-SVN: r41458
2001-04-20natSystem.cc (getSystemTimeZone): Adjust for DST.Warren Levy4-658/+265
* java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST. * java/text/SimpleDateFormat.java (indexInArray): Removed private method. (processYear): Removed private method. (parseLenient): Removed private method. (parseLeadingZeros): Removed private method. (parseStrict): Removed private method. (expect): Added new private method. (parse): Reverted to pre-Classpath merge version with minor fixes. * java/util/natGregorianCalendar.cc (computeTime): Handle strict calendars. From-SVN: r41456
2001-04-20i386.c (ix86_expand_int_movcc, [...]): Sign-extend CONST_INTs.Alexandre Oliva2-3/+12
* config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_strlensi_unroll_1): Sign-extend CONST_INTs. From-SVN: r41454
2001-04-20ltconfig, [...]: Upgraded to libtool 1.4a 1.641.2.228.Alexandre Oliva4-9/+18
* ltconfig, ltmain.sh, ltcf-cxx.sh: Upgraded to libtool 1.4a 1.641.2.228. From-SVN: r41452
2001-04-20acconfig.h (_GLIBCPP_USE_C99): Add.Benjamin Kosnik16-1080/+1911
2001-04-19 Benjamin Kosnik <bkoz@redhat.com> * acconfig.h (_GLIBCPP_USE_C99): Add. * config.h.in: Regenerate. * acinclude.m4 (GLIBCPP_ENABLE_C99): New macro. Test for ISO/IEC 9899: 1999 support. * aclocal.m4: Regenerate. * configure.in (GLIBCPP_ENABLE_C99): Use it, on by default. * configure: Regenerate. * configure.in (GLIBCPP_ENABLE_LONG_LONG): Set default to yes. * configure: Regenerate. * include/c_std/bits/std_cwchar.h: Put wcstold, wcstoll, wcstoull into c99. * include/c_std/bits/std_cmath.h: Bring C99 functions into c99 namespace. * include/c_std/bits/std_cstdlib.h: Same. * docs/html/configopts.html: Update. * testsuite/26_numerics/c99_macros.cc: Edit, use cmath instead of math.h (test_c99_classify): Add. * config/os/gnu-linux/bits/os_defines.h (_GNU_SOURCE): Remove. (_ISOC99_SOURCE): Remove. * include/bits/stl_algo.h: Use _GLIBCPP_HAVE_DRAND48. * include/bits/c++config (__STL_ASSERTIONS): Simplify. * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Add check for drand48. * aclocal.m4: Regenerate. * configure: Regenerate. From-SVN: r41451
2001-04-20rs6000.md (ctrsi_internal1, [...]): In the short-branch case, this insn is ↵Geoffrey Keating2-12/+21
only 4 instructions long. * config/rs6000/rs6000.md (ctrsi_internal1, ctrsi_internal2, ctrsi_internal3, ctrsi_internal4, ctrsi_internal5, ctrsi_internal6, ctrdi_internal1, ctrdi_internal2, ctrdi_internal3, ctrdi_internal4, ctrdi_internal5, ctrdi_internal6): In the short-branch case, this insn is only 4 instructions long. Reported by Reza Yazdani <reza@apple.com>. From-SVN: r41450
2001-04-20comdat2.C: New test.Jakub Jelinek3-0/+53
* g++.old-deja/g++.other/comdat2.C: New test. * g++.old-deja/g++.other/comdat2-aux.cc: Auxiliary source for it. From-SVN: r41449
2001-04-20call.c (maybe_handle_ref_bind): Copy ICS_USER_FLAG and ICS_BAD_FLAG.Jakub Jelinek4-1/+44
* call.c (maybe_handle_ref_bind): Copy ICS_USER_FLAG and ICS_BAD_FLAG. * g++.old-deja/g++.other/overload14.C: New test. From-SVN: r41448
2001-04-20search.c (lookup_field_r): If looking for type and non-TYPE_DECL is found...Jakub Jelinek4-5/+43
* search.c (lookup_field_r): If looking for type and non-TYPE_DECL is found, look first if name does not match the structure name. * g++.old-deja/g++.other/lookup23.C: New test. From-SVN: r41447
2001-04-20reg-stack.c (check_asm_stack_operands): Issue error if "=t" resp.Jakub Jelinek2-1/+19
* reg-stack.c (check_asm_stack_operands): Issue error if "=t" resp. "=u" is used together with "st" resp. "st(1)" clobber. From-SVN: r41446
2001-04-20Duh, broken perms.Jakub Jelinek1-0/+36
From-SVN: r41445