aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2000-06-25gengenrtl.c (special_rtx): Fix typo in comment.Theodore Papadopoulo4-3/+11
* gengenrtl.c (special_rtx): Fix typo in comment. * search.c (lookup_member): Fix typo in comment. From-SVN: r34700
2000-06-25* mklibgcc.in (LIB2FUNCS): Add missing space.Michael Hayes2-1/+5
From-SVN: r34699
2000-06-25expr.c (lookup_field): Print error and return error_mark_node if field ↵Tom Tromey2-2/+25
reference is ambiguous. * expr.c (lookup_field): Print error and return error_mark_node if field reference is ambiguous. From-SVN: r34698
2000-06-25parse.y (check_abstract_method_definitions): Also check if `other_method' is ↵Tom Tromey3-2/+11
abstract. * parse.y (check_abstract_method_definitions): Also check if `other_method' is abstract. From-SVN: r34697
2000-06-25Vector support: type node creation & debugging supportBernd Schmidt9-0/+129
From-SVN: r34696
2000-06-25re GNATS gcj/260 ("Klass.class" expression should cause Klass to be initialized)Tom Tromey3-4/+15
* parse.y (patch_incomplete_class_ref): Initialize the returned class. For PR gcj/260. From-SVN: r34695
2000-06-25Fix typos in comments.Kazu Hirata3-3/+8
From-SVN: r34694
2000-06-25Daily bump.Jeff Law5-5/+5
From-SVN: r34693
2000-06-25aclocal.m4 (AM_WITH_NLS): Set create_catalogs=no if no catalog compiler found.Philipp Thomas3-27/+62
* aclocal.m4 (AM_WITH_NLS): Set create_catalogs=no if no catalog compiler found. AM_GNU_GETTEXT: Don't set CATALOGS if create_catalogs=no. * configure: Rebuilt. From-SVN: r34692
2000-06-24vax.h (TARGET_SWITCHES): Provide descriptions.John David Anglin2-9/+13
2000-06-25 John David Anglin <dave.anglin@nrc.ca> * config/vax/vax.h (TARGET_SWITCHES): Provide descriptions. From-SVN: r34691
2000-06-24mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2FUNCS when generating libgcc.a.Herman A.J. ten Brugge2-0/+11
* mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2FUNCS when generating libgcc.a. From-SVN: r34690
2000-06-24add XFAILJason Merrill1-1/+1
From-SVN: r34689
2000-06-24fixedJason Merrill1-2/+2
From-SVN: r34688
2000-06-24collect2.c (resolve_lib_name): Move '/' check to more rational place.Jason Merrill3-7/+19
* collect2.c (resolve_lib_name): Move '/' check to more rational place. * ginclude/stddef.h (NULL): define for non-gnu C++ parsers as 0. From-SVN: r34687
2000-06-24decl.c (pushdecl): Don't set DECL_CONTEXT from current_namespace.Jason Merrill5-3284/+3326
* decl.c (pushdecl): Don't set DECL_CONTEXT from current_namespace. (push_namespace): Set DECL_CONTEXT for a new NAMESPACE_DECL. * parse.y (complex_direct_notype_declarator): Support global_scope. * Makefile.in: Adjust conflict count. From-SVN: r34686
2000-06-24newJason Merrill2-0/+40
From-SVN: r34685
2000-06-24update stuff ruleJason Merrill1-3/+3
From-SVN: r34684
2000-06-24remove XFAILJason Merrill1-1/+1
From-SVN: r34683
2000-06-24add missed CL entry:Jason Merrill1-0/+5
* toplev.c (compile_file): Always call timevar_print. * Makefile.in (calls.o): Depend on TIMEVAR_H. From-SVN: r34682
2000-06-24stmt.c (expand_decl_cleanup): Emit a dummy insn after ↵Jakub Jelinek2-0/+12
last_unconditional_cleanup. * stmt.c (expand_decl_cleanup): Emit a dummy insn after last_unconditional_cleanup. From-SVN: r34681
2000-06-24Vector conversions supportBernd Schmidt9-5/+93
From-SVN: r34680
2000-06-24natDouble.cc (parseDouble): Renamed from doubleValueOf.Tom Tromey3-4/+11
* java/lang/natDouble.cc (parseDouble): Renamed from doubleValueOf. * java/lang/Double.java (parseDouble): Renamed from doubleValueOf. Now public. From-SVN: r34679
2000-06-24avr-protos.h (avr_hard_regno_mode_ok): New prototype.Marek Michalkiewicz6-96/+201
* config/avr/avr-protos.h (avr_hard_regno_mode_ok): New prototype. * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr): New functions, common code moved from function_{prologue,epilogue} and extended to support the -mtiny-stack option. (function_prologue, function_epilogue): Use them. Use lo8/hi8 consistently for asm output readability. (avr_hard_regno_mode_ok): New function. * config/avr/avr.h (TARGET_SWITCHES): Fix typo. Add -mtiny-stack. (UNITS_PER_WORD): Define as 4 (not 1) when compiling libgcc2.c. (HARD_REGNO_MODE_OK): Call the avr_hard_regno_mode_ok function. * config/avr/avr.md (*mov_sp_r): Add support for -mtiny-stack. Write SPH before SPL. (*movqi): No need to disable interrupts for just one "out" in alternative 5. Change length attribute from 4 to 1. * config/avr/libgcc.S (__prologue_saves__, __epilogue_restores__): Write SPH before SPL. From-SVN: r34678
2000-06-24Vector support: rtx and mode definitionsBernd Schmidt5-3/+186
From-SVN: r34677
2000-06-24* cpp.texi: Clarify #pragma GCC namespace.Nathan Sidwell2-4/+13
From-SVN: r34676
2000-06-24Daily bump.Jeff Law5-5/+5
From-SVN: r34675
2000-06-24aclocal.m4 (AM_GNU_GETTEXT): If LINGUAS isn't set, build all catalogs ↵Philipp Thomas3-33/+47
specified in ALL_LINGUAS. 2000-06-24 Philipp Thomas <pthomas@suse.de> * aclocal.m4(AM_GNU_GETTEXT): If LINGUAS isn't set, build all catalogs specified in ALL_LINGUAS. * configure: Rebuilt. From-SVN: r34674
2000-06-24fstream.tcc (basic_filebuf::basic_filebuf(fd)): Use it.Benjamin Kosnik3-10/+26
2000-06-23 Benjamin Kosnik <bkoz@purist.soma.redhat.com> * bits/fstream.tcc (basic_filebuf::basic_filebuf(fd)): Use it. (basic_filebuf::close): Use it. * bits/std_fstream.h (basic_filebuf): Remove default arguments for filebuf ctor. (basic_filebuf): Add _M_fileno_based data member. As reported by brent verner <brent@rcfile.org> * testsuite/27_io/filebuf_members.cc: New file. * testsuite/27_io/filebuf_members-1.tst: New file. From-SVN: r34673
2000-06-24filebuf_members.cc: New file.Benjamin Kosnik2-0/+93
2000-06-23 Benjamin Kosnik <bkoz@purist.soma.redhat.com> * testsuite/27_io/filebuf_members.cc: New file. * testsuite/27_io/filebuf_members-1.tst: New file. * bits/fstream.tcc (basic_filebuf::basic_filebuf(fd)): Use it. (basic_filebuf::close): Use it. * bits/std_fstream.h (basic_filebuf): Remove default arguments for filebuf ctor. (basic_filebuf): Add _M_fileno_based data member. * bits/std_fstream.h: Formatting tweaks. * testsuite/27_io/ofstream_members.cc: New file. * testsuite/27_io/ofstream_members-1.tst: New file. * testsuite/27_io/ifstream_members.cc: New file. * testsuite/27_io/ifstream_members-1.tst: New file. From-SVN: r34672
2000-06-23std_fstream.h: Formatting tweaks.Benjamin Kosnik6-3/+131
2000-06-23 Benjamin Kosnik <bkoz@purist.soma.redhat.com> * bits/std_fstream.h: Formatting tweaks. * testsuite/27_io/ofstream_members.cc: New file. * testsuite/27_io/ofstream_members-1.tst: New file. * testsuite/27_io/ifstream_members.cc: New file. * testsuite/27_io/ifstream_members-1.tst: New file. From-SVN: r34671
2000-06-23For PR gcj/260:Tom Tromey3-0/+22
* libjava.lang/PR260.out: New file. * libjava.lang/PR260.java: New file. From-SVN: r34670
2000-06-23sparc.md (reload_outdi+1): Handle HOST_BITS_PER_WIDE_INT == 64 case correctly.Jakub Jelinek2-0/+28
* config/sparc/sparc.md (reload_outdi+1): Handle HOST_BITS_PER_WIDE_INT == 64 case correctly. (adddi3_insn_sp32+1, adddi3_insn_sp32+2, andsi3+2): Likewise. From-SVN: r34669
2000-06-23alias.c (fixed_scalar_and_varying_struct_p): Don't examine struct vs.Geoff Keating4-0/+29
* alias.c (fixed_scalar_and_varying_struct_p): Don't examine struct vs. scalar-ness when -fno-strict-aliasing. and a test case to test it, gcc.dg/20000623-1.c. From-SVN: r34668
2000-06-23ieeefp.h: Handle ia64, fr30, mcore.Andrew Haley3-2/+26
* java/lang/ieeefp.h: Handle ia64, fr30, mcore. * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace. From-SVN: r34667
2000-06-23acinclude.m4 (GLIBCPP_CHECK_MATH_SUPPORT): Add -D_GNU_SOURCE, so that all ↵Benjamin Kosnik4-3/+9
the freaky stuff like sincos will be around... 2000-06-23 Benjamin Kosnik <bkoz@purist.soma.redhat.com> Ulrich Drepper <drepper@cygnus.com> * acinclude.m4 (GLIBCPP_CHECK_MATH_SUPPORT): Add -D_GNU_SOURCE, so that all the freaky stuff like sincos will be around... Co-Authored-By: Ulrich Drepper <drepper@cygnus.com> From-SVN: r34666
2000-06-23natMethod.cc: Include <alloca.h>.Tom Tromey3-15/+10
* java/lang/reflect/natMethod.cc: Include <alloca.h>. * java/lang/natDouble.cc: Always include <alloca.h>. Fix for PR libgcj/267. From-SVN: r34665
2000-06-23Makefile.am (AM_MAKEFLAGS): Added WERROR to list of flags.Branko Cibej3-3/+8
2000-06-22 Branko Cibej <branko.cibej@hermes.si> * Makefile.am (AM_MAKEFLAGS): Added WERROR to list of flags. From-SVN: r34664
2000-06-23cpplib.c (struct pragma_entry): New structure.Nathan Sidwell3-22/+90
* cpplib.c (struct pragma_entry): New structure. (pragma_dispatch): Pragma dispatcher. (top_pragmas, gcc_pragmas): New static variables. (do_pragma): Use pragma_dispatch. (do_pragma_gcc): New pragma handler. * cpp.texi: Update. From-SVN: r34663
2000-06-23calls.c (compute_argument_addresses): Force stack slots into alias set 0.Jakub Jelinek3-14/+36
* calls.c (compute_argument_addresses): Force stack slots into alias set 0. * expr.c (emit_push_insn): Force pushes into alias set 0. From-SVN: r34662
2000-06-23ia64.md (pred_rel_mutex): Only take one register.Richard Henderson3-6/+9
* config/ia64/ia64.md (pred_rel_mutex): Only take one register. * config/ia64/ia64.c (emit_predicate_relation_info): Adjust to match. From-SVN: r34661
2000-06-23Daily bump.Jeff Law5-5/+5
From-SVN: r34660
2000-06-23parse.y (template_arg): Convert TEMPLATE_DECL that is a template template ↵Kriang Lerdsuwanakij11-683/+752
paramter to... * parse.y (template_arg): Convert TEMPLATE_DECL that is a template template paramter to TEMPLATE_TEMPLATE_PARM here. * cp-tree.def (TEMPLATE_TEMPLATE_PARM): Adjust comment. * cp-tree.h (TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL): New macro. (copy_template_template_parm): Adjust prototype. * decl.c (grokdeclarator): Remove dead code. * pt.c (process_template_parm): Tidy. (lookup_template_class): Construct nodes in copy_template_template_parm. (tsubst): Pass TEMPLATE_DECL rather than IDENTIFIER_NODE to lookup_template_class. Use TYPE_TI_TEMPLATE. * tree.c (copy_template_template_parm): Add NEWARGS parameter. (mapcar): Adjust call to copy_template_template_parm. * typeck.c (comptypes): Use TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL. * method.c (build_template_template_parm_names): Change error code to avoid compilation warning. * gxxint.texi: Document template template parameter name mangling. From-SVN: r34659
2000-06-23newJason Merrill3-4/+26
From-SVN: r34658
2000-06-23in include/ChangeLog:Alex Samuel8-322/+895
* dyn-string.h (dyn_string_init, dyn_string_new, dyn_string_delete, dyn_string_release, dyn_string_resize, dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr, dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert, dyn_string_insert_cstr, dyn_string_append, dyn_string_append_cstr, dyn_string_append_char, dyn_string_substring_dyn_string_eq): Define as same name with __cxa_ prepended, if IN_LIBGCC2. (dyn_string_init, dyn_string_copy, dyn_string_copy_cstr, dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert, dyn_string_insert_cstr, dyn_string_append, dyn_string_append_cstr, dyn_string_append_char, dyn_string_substring): Change return type to int. in libiberty/ChangeLog: * cp-demangle.c: Don't include ctype.h. (IS_DIGIT): New macro. (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout instead of isdigit and isalpanum. (demangling_def): Make name and next const pointers. (STATUS_ALLOCATION_FAILED): New status code. (dyn_string_append_space): Handle failure in dyn_string_append_char. (int_to_dyn_string): Likewise. Change return value to status_t. (string_list_new): Handle failure of dyn_string_init. (result_close_template_list): Change return type to status_t. Handle failure in dyn_string_append. (result_push): Change return value to status_t. Handle failure in string_list_new. Handle failure of result_push throughout. (substitution_add): Change return value to status_t. Handle dyn_string failures. Handle failure of substitution_add throughout. (template_arg_list_new): Return NULL on allocation failure. (result_append_string): Return STATUS_ALLOCATION_FAILED on error. Handle error result throughout. (result_append): Likewise. (result_append_char): Likewise. (result_append_space): Likewise. (demangling_new): Make argument a const pointer. Handle allocation failures. (demangle_template_args): Handle failure in template_arg_list_new and result_close_template_list. (demangle_discriminator): Return if int_to_dyn_string fails. (cp_demangle): Likewise. (cp_demangle_type): New function. (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on memory allocation failure. (main): Likewise. * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if IN_LIBGCC2. (dyn_string_init): Change return value to int. Handle RETURN_ON_ALLOCATION_FAILURE case. (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case. (dyn_string_release): Delete the dyn_string. (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case. (dyn_string_copy): Change return type to int. (dyn_string_copy_cstr): Likewise. (dyn_string_prepend): Likewise. (dyn_string_prepend_cstr): Likewise. (dyn_string_insert): Likewise. (dyn_string_insert_cstr): Likewise. (dyn_string_append): Likewise. (dyn_string_append_cstr): Likewise. (dyn_string_append_char): Likewise. (dyn_string_substring): Likewise. in gcc/cp/ChangeLog: * Make-lang.in (CXX_LIB2FUNCS): Add cp-demangle.o and dyn-string.o. (CXX_LIB2SRCS): Add cp-demangle.c and dyn-string.c. (cp-demangle.o): New rule. (dyn-string.o): Likewise. * inc/cxxabi.h (__cxa_demangle): New declaration. From-SVN: r34657
2000-06-23cp-tree.h (BV_USE_VCALL_INDEX_P): New macro.Mark Mitchell13-151/+356
* cp-tree.h (BV_USE_VCALL_INDEX_P): New macro. (BV_GENERATE_THUNK_WITH_VTABLE_P): Likewise. (lang_decl_flags): Add generate_with_vtable_p. Make vcall_offset a tree, not an int. (THUNK_GENERATE_WITH_VTABLE_P): New macro. (make_thunk): Change prototype. (emit_thunk): Rename to use_thunk. (mangle_thunk): Change prototype. * class.c (get_derived_offset): Simplify. (copy_virtuals): Clear BV_USE_VCALL_INDEX_P and BV_GENERATE_THUNK_WITH_VTABLE_P. (build_primary_vtable): Simplify. (add_virtual_function): Use BV_FN, rather than TREE_VALUE. (dfs_find_base): Remove. (update_vtable_entry_for_fn): Correct bug in finding the base where a virtual function was first declared. Figure out whether or not to emit a vcall-thunk with the vtables in which it appears. Correct logic for deciding whether to use an ordinary thunk, or a vcall thunk. (finish_struct_1): Remove unnecssary code. (build_vtbl_initializer): Use ssize_int for the running counter of negative indices. (build_vtbl_initializer): Only use vcall thunks where necessary. Mark thunks as needing to be emitted with their vtables, or not. (build_vbase_offset_vtbl_entries): Adjust for use of ssize_int in indices. Use size_binop. (dfs_build_vcall_offset_vtbl_entries): Don't rely on BINFO_PRIMARY_MARKED_P here. Use BV_FN consistently. Use size_binop. (build_rtti_vtbl_entries): Adjust call to build_vtable_entry. (build_vtable_entry): Mark thunks as needing to be emitted with their vtables, or not. * decl.c (lang_mark_tree): Mark the vcall_offset in a thunk. * decl2.c (mark_vtable_entries): Use use_thunk instead of emit_thunk. * dump.c (dequeue_and_dump): Remove dead code. Dump new thunk information. * error.c (dump_expr): Use BV_FN. * mangle.c (mangle_thunk): Adjust now that vcall_offset is a tree, not an int. * method.c (make_thunk): Likewise. (emit_thunk): Rename to use_thunk. Allow callers to decide whether or not to actually emit the thunk. Adjust for changes in representation of vcall offsets. * search.c (dfs_get_pure_virtuals): Use BV_FN. * semantics.c (emit_associated_thunks): New function. (expand_body): Use it. * ir.texi: Adjust decriptions of thunks. From-SVN: r34656
2000-06-22[multiple changes]Benjamin Kosnik11-4274/+1762
2000-06-22 Steven King <sxking@uswest.net> * acinclude.m4: Check for sinl, _sinl using 1 parameter. 2000-06-22 Benjamin Kosnik <bkoz@purist.soma.redhat.com> * acinclude.m4 (GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT): Redo. Use the same approach as GLIBCPP_CHECK_MATH_SUPPORT, only don't try to link against libm and don't use -fno-builtins... * math/mathconf.h: Change up builtin macros to new schema. * bits/std_cmath.h: And here. Wheee! * shadow/bits/std_cmath.h: And here. * acconfig.h: Change up builtin macros here. * math/cosf.c: Remove. * math/fabsf.c: Likewise. * math/sinf.c: Likewise. * math/sqrtf.c: Likewise. * math/Makefile.am (EXTRA_DIST): Remove those four files. * math/Makefile.in: Regenerate. From-SVN: r34655
2000-06-22acconfig.h: Change up builtin macros here.Benjamin Kosnik4-148/+0
2000-06-22 Benjamin Kosnik <bkoz@purist.soma.redhat.com> * acconfig.h: Change up builtin macros here. * acinclude.m4 (GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT): Redo. Use the same approach as GLIBCPP_CHECK_MATH_SUPPORT, only don't try to link against libm and don't use -fno-builtins... * math/cosf.c: Remove. * math/fabsf.c: Likewise. * math/sinf.c: Likewise. * math/sqrtf.c: Likewise. * math/Makefile.am (EXTRA_DIST): Remove those four files. * math/Makefile.in: Regenerate. From-SVN: r34654
2000-06-22toplev.c (compile_file): Always call timevar_print.Jason Merrill2-3/+2
* toplev.c (compile_file): Always call timevar_print. * Makefile.in (calls.o): Depend on TIMEVAR_H. From-SVN: r34653
2000-06-22pt.c (tsubst_decl, [...]): Clear DECL_SAVED_TREE.Jason Merrill4-14/+57
* pt.c (tsubst_decl, case FUNCTION_DECL): Clear DECL_SAVED_TREE. (tsubst_friend_function): Copy it here. * decl.c (grok_op_properties): Fix typo. * decl2.c (delete_sanity): Clarify warning, avoid failure on deleting void*. * pt.c (check_explicit_specialization): Clarify error. * decl.c (pushdecl): Also pull out one of the FUNCTION_DECLs from an old OVERLOAD when we're declaring a non-function. (pushdecl, destroy_local_var): Check for error_mark_node. (warn_extern_redeclared_static): Also bail early if we're a CONST_DECL. (push_overloaded_decl): Ignore an old error_mark_node. From-SVN: r34652
2000-06-22newJason Merrill1-0/+11
From-SVN: r34651