1. 14 Jul, 2003 32 commits
    • c_locale.h (__convert_from_v): One more qualification. · f45e487d
      2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
      
      	* config/locale/gnu/c_locale.h (__convert_from_v): One more
      	qualification.
      
      From-SVN: r69353
      Paolo Carlini committed
    • elf.h (ASM_DECLARE_OBJECT_NAME): Use mips_declare_object_name. · c1115ccd
      	* config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
      	mips_declare_object_name.
      	(ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
      	* config/mips/elf64.h: As for elf.h.
      	* config/mips/iris6.h: Likewise.
      	* config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
      	* config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
      	do...while (0) block.
      	* config/mips/mips-protos.h (mips_declare_object_name): Declare.
      	(mips_finish_declare_object): Declare.
      	* config/mips/mips.c (mips_declare_object_name): New function.
      	(mips_finish_declare_object): New function.
      
      From-SVN: r69352
      Richard Sandiford committed
    • re PR c++/7053 (ICE when declaring a function already defined as a friend method… · 748d4c7e
      re PR c++/7053 (ICE when declaring a function already defined as a friend method of a template class)
      
      	PR c++/7053
      	* g++.dg/template/friend20.C: New test.
      
      From-SVN: r69351
      Mark Mitchell committed
    • elf.h (SBSS_SECTION_ASM_OP): Delete. · 060ff934
      	* config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
      	* config/mips/linux.h: Likewise.
      
      From-SVN: r69350
      Richard Sandiford committed
    • mips.c (inside_function): Delete. · d82783b6
      	* config/mips/mips.c (inside_function): Delete.
      	(file_in_function_warning, ignore_line_number): Delete.
      	(mips_output_filename): Don't warn about changing filenames within
      	a function.
      	(mips_output_lineno): Update accordingly.
      	(mips_output_function_prologue): Don't reset the deleted variables.
      	* config/mips/mips.h (inside_function): Delete.
      	(file_in_function_warning, ignore_line_number): Delete.
      
      From-SVN: r69348
      Richard Sandiford committed
    • stl_tempbuf.h: Qualify free with std::. · f088510d
      2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
      
      	* include/bits/stl_tempbuf.h: Qualify free with std::.
      	* src/locale.cc: Include <cstdlib>, qualify getenv.
      
      From-SVN: r69347
      Paolo Carlini committed
    • elf.h (OBJECT_FORMAT_COFF, [...]): Remove undefs. · 373f8df7
      	* config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
      	* config/mips/elf64.h: Likewise.
      	* config/mips/openbsd.h: Likewise.
      	* config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
      	* config/mips/linux.h: Likewise.
      	* config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
      	(CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
      
      From-SVN: r69346
      Richard Sandiford committed
    • config.gcc (mips-sgi-irix6*o32, [...]): Add mips/sdb.h to the list of include files when using gas. · 6627b7f9
      	* config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
      	to the list of include files when using gas.
      	(mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
      	* config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
      	* config/mips/elf64.h: Likewise.
      	* config/mips/iris5.h: Likewise.
      	* config/mips/linux.h: Likewise.
      	* config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
      	* config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
      	(SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
      	* config/mips/sdb.h: ...this new file.
      
      From-SVN: r69345
      Richard Sandiford committed
    • c_locale.h (__convert_from_v): Include <cstdio>. · 2def5b76
      2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
      
      	* config/locale/gnu/c_locale.h (__convert_from_v): Include
      	<cstdio>. Qualify names.
      	* config/locale/generic/c_locale.h (__convert_from_v): Ditto.
      
      From-SVN: r69343
      Paolo Carlini committed
    • re PR c++/7019 ([3.3 only] SFINAE does not work with explicitally specified template arguments) · 5e08432e
      	PR c++/7019
      	* cp-tree.h (lookup_qualified_name): Adjust prototype.
      	* decl.c (lookup_qualified_name): Add complain parameter.  Adjust
      	call to is_aggr_type.
      	* parser.c (cp_parser_lookup_name): Adjust call to
      	lookup_qualified_name.
      	* pt.c (tsubst_qualified_id): Likewise.
      	(tsubst_copy_and_build): Likewise.
      	* semantics.c (finish_qualified_id_expr): Deal with erroneous
      	expressions.
      
      	PR c++/7019
      	* g++.dg/template/overload2.C: New test.
      
      From-SVN: r69342
      Mark Mitchell committed
    • Nathan C. · bda243ec
      2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
      	    Nathan C. Myers  <ncm-nospam@cantrip.org>
      
      	PR libstdc++/11378
      	* include/std/std_fstream.h (xsputn): Declare only.
      	* include/bits/fstream.tcc (xsputn): Define, optimize for the
      	always_noconv() case: when __n is sufficiently large flush
      	the buffer and issue a direct write, if possible combining the
      	two with writev in __basic_file<>::xsputn_2.
      	* config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
      	New, declare.
      	* config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
      	Define.
      	* acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
      	the availability of writev in <sys/uio.h>.
      	* configure.in: Call here.
      	* acconfig.h: Add undef for the corresponding symbol.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      	* config.h.in: Regenerate.
      	* testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
      
      	* include/std/std_fstream.h (sync): Constify a variable.
      
      Co-Authored-By: Nathan C. Myers <ncm-nospam@cantrip.org>
      
      From-SVN: r69341
      Paolo Carlini committed
    • re PR c++/11510 (Error message with operator __imag__ is missing spaces) · 19948e32
      PR c++/11510
      * call.c (op_error): Properly handle REALPART_EXPR
        and IMAGPART_EXPR.
      * error.c (dump_expr): Likewise.
      
      From-SVN: r69340
      Gabriel Dos Reis committed
    • [multiple changes] · c18b00c0
      2003-07-14  Douglas Rupp  <rupp@gnat.com>
      
      	* fixinc/server.c (server_setup): Don't use non-POSIX NULL first
      	argument to getcwd; use fixed buffer instead.
      
      2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
      
      	* fixinc/mkfixinc.sh: Treat OpenBSD normally.
      	* fixinc/fixinc.wrap: Delete.
      
      From-SVN: r69339
      Nathanael Nerode committed
    • * error.c (dump_expr): Handle EMPTY_CLASS_EXPR. · 98ed3906
      From-SVN: r69338
      Gabriel Dos Reis committed
    • re PR rtl-optimization/11440 (gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it) · 1b78cca9
      2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
      
      	PR optimization/11440
      	* gcc.c-torture/execute/20030714-1.c: New test.
      
      From-SVN: r69334
      Franz Sirl committed
    • MAINTAINERS: Move self from write-after-approval to build machinery (*.in). · c7864714
      	* MAINTAINERS: Move self from write-after-approval to
      	build machinery (*.in).
      
      From-SVN: r69333
      Nathanael Nerode committed
    • re PR c++/5293 (confusing message when binding a temporary to a reference) · f19319db
      PR c++/5293
      * call.c (initialize_reference): Improve diagnostic.
      
      From-SVN: r69332
      Gabriel Dos Reis committed
    • assign_neg.cc: Fix line numbers. · c573d965
      
      2003-07-14  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
      	* testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
      
      From-SVN: r69331
      Benjamin Kosnik committed
    • ggc-page.c (extra_order_size_table): Insns have 9 slots. · adc4adcd
      	* ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
      	don't have 2.
      
      	* ggc-page.c (struct globals): Add new fields to keep track of the
      	total allocated memory and overhead.
      	(ggc_print_statistics): Print them.
      	(ggc_alloc): Keep track of the total allocated memory and the
      	overhead.
      
      	* tree.c (dump_tree_statistics): Increase spacing.
      	(enum tree_node_kind): Move to ...
      	* tree.h (enum tree_node_kind): ... here.
      	(tree_node_counts, tree_node_sizes): Declare.
      
      	* doc/include/texinfo.tex: Upgrade to texinfo 4.6.
      
      From-SVN: r69330
      Gerald Pfeifer committed
    • Include <cstring> and <cstdlib>. · 3ad249b9
      From-SVN: r69329
      Gabriel Dos Reis committed
    • re PR c++/11154 (spurious ambiguity report for template class specialization) · 55ece1b3
      	PR c++/11154
      	* pt.c (more_specialized_class): Add full_args parameter.
      	(most_specialized_class): Adjust calls to more_specialized_class.
      	* cp-tree.h (more_specialized_class): Adjust declaration.
      
      	* g++.dg/template/partial2.C: New test.
      
      From-SVN: r69328
      Kriang Lerdsuwanakij committed
    • * lex.c (enum tree_node_kind): Delete. · 9a8c9b44
      From-SVN: r69327
      Dan Nicolaescu committed
    • re PR rtl-optimization/11440 (gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it) · bbd288a4
      2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
      
      	PR optimization/11440
      	* gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
      	SIGN_EXTRACT SETs.
      
      From-SVN: r69325
      Franz Sirl committed
    • UnicastServerRef.java: New version from classpath. · 3a009999
      2003-07-14  Michael Koch  <konqueror@gmx.de>
      
      	* gnu/java/rmi/server/UnicastServerRef.java:
      	New version from classpath.
      
      From-SVN: r69322
      Michael Koch committed
    • MemoryImageSource.java, [...]: New versions from classpath. · 6a716777
      2003-07-14  Michael Koch  <konqueror@gmx.de>
      
      	* java/awt/image/MemoryImageSource.java,
      	java/beans/PropertyEditorManager.java,
      	javax/naming/CompoundName.java,
      	javax/naming/spi/NamingManager.java,
      	javax/swing/AbstractButton.java,
      	javax/swing/ButtonModel.java,
      	javax/swing/SwingUtilities.java,
      	javax/swing/UIManager.java,
      	javax/swing/colorchooser/DefaultColorSelectionModel.java,
      	javax/swing/event/AncestorEvent.java,
      	javax/swing/event/InternalFrameEvent.java,
      	java/util/zip/ZipFile.java:
      	New versions from classpath.
      
      From-SVN: r69321
      Michael Koch committed
    • tm.texi (BLOCK_REG_PADDING): Describe. · 6e985040
      	* doc/tm.texi (BLOCK_REG_PADDING): Describe.
      	* expr.h (struct locate_and_pad_arg_data): Add where_pad.
      	(emit_group_load, emit_group_store): Adjust declarations.
      	Remove most occurrences of #ifdef TREE_CODE.
      	* expr.c (emit_group_load): Add "type" param, and use
      	BLOCK_REG_PADDING to determine need for a shift.  Optimize non-
      	aligned accesses if !SLOW_UNALIGNED_ACCESS.
      	(emit_group_store): Likewise.
      	(emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
      	emit_group_load and emit_group_store calls.
      	* calls.c (store_unaligned_arguments_into_pseudos): Tidy.  Use
      	BLOCK_REG_PADDING to determine whether we need endian_correction.
      	(load_register_parameters): Localize vars.  Handle shifting of
      	small values to the correct end of regs.  Adjust emit_group_load
      	call.
      	(expand_call, emit_library_call_value_1): Adjust emit_group_load
      	and emit_group_store calls.
      	* function.c (assign_parms): Set mem alignment for stack slots.
      	Adjust emit_group_store call.  Store values at the "wrong" end
      	of regs to the stack.  Use BLOCK_REG_PADDING.
      	(locate_and_pad_parm): Save where_pad.
      	(expand_function_end): Adjust emit_group_load call.
      	* stmt.c (expand_value_return): Adjust emit_group_load call.
      	* Makefile.in (calls.o): Depend on $(OPTABS_H).
      	* config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
      	(AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
      	(MUST_PASS_IN_STACK): Define.
      	(BLOCK_REG_PADDING): Define.
      	* config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
      	(PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
      	* config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
      	(function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
      	Act on AGGREGATES_PAD_UPWARD_ALWAYS.
      
      From-SVN: r69318
      Alan Modra committed
    • re PR c++/11503 (segfault when instantiating template with ADDR_EXPR) · a3d87771
      	PR c++/11503
      	* g++.dg/template/anon1.C: New test.
      
      	PR c++/11503
      	* cp-tree.h (DECL_SELF_REFERENCE_P): New macro.
      	(SET_DECL_SELF_REFERENCE_P): Likewise.
      	* class.c (build_self_reference): Use SET_DECL_SELF_REFERENCE_P.
      	* pt.c (tsubst_decl): Copy it.
      	* search.c (lookup_base): Use DECL_SELF_REFERENCE_P.
      
      From-SVN: r69317
      Mark Mitchell committed
    • re PR c++/11493 (tree check ICE in error.c) · b3445994
      	* cp-tree.h (cp_id_kind): New type.
      	(unqualified_name_lookup_error): Change prototype.
      	(unqualified_fn_lookup_error): New function.
      	(do_identifier): Remove.
      	(do_scoped_id): Likewise.
      	(tsubst_copy_and_build): Change prototype.
      	(reregister_specialization): New function.
      	(perform_koenig_lookup): Likewise.
      	(finish_id_expression): Likewise.
      	* call.c (build_method_call): Adjust call to
      	unqualified_name_lookup_error.
      	* decl.c (duplicate_decls): Use reregister_specialization.
      	* lex.c (is_global): Remove.
      	(unqualified_name_lookup_error): Return a value.
      	(do_identifier): Remove.
      	(do_scoped_id): Likewise.
      	(identifier_typedecl_value): Remove.
      	(unqualified_fn_lookup_error): New function.
      	* parser.c (cp_parser_id_kind): Remove.
      	(cp_parser_non_constant_id_expression): Remove.
      	(cp_parser_primary_expression): Use finish_id_expression.
      	(cp_parser_class_or_namespace_name): Use cp_id_kind, not
      	cp_parser_id_kind.
      	(cp_parser_postfix_expression): Use perform_koenig_lookup.
      	(cp_parser_template_argument): Use cp_id_kind.
      	(cp_parser_fold_non_dependent_expr): Adjust call to
      	tsubst_copy_and_build.
      	* pt.c (unregister_specialization): Rename to ...
      	(reregister_specialization): This.
      	(tsubst_friend_function): Use it.
      	(maybe_fold_nontype_arg): Adjust call to tsubst_copy_and_build.
      	(tsubst_qualified_id): Likewise.
      	(tsubst_expr): Likewise.
      	(tsubst_copy_and_build): Add function_p parameter.  Use
      	finish_id_expression.  Introduce RECUR macro.
      	(tsubst_non_call_postfix_expression): New function.
      	(regenerate_decl_from_template): Use reregister_specialization.
      	* semantics.c (perform_koenig_lookup): New function.
      	(finish_id_expression): Likewise.
      
      	PR c++/11493
      	PR c++/11495
      	* g++.dg/parse/template9.C: Likewise.
      	* g++.dg/template/crash4.C: New test.
      	* g++.dg/template/koenig1.C: Likewise.
      	* g++.old-deja/g++.benjamin/tem03.C: Adjust error markers.
      	* g++.old-deja/g++.benjamin/tem06.C: Declare "x".
      	* g++.old-deja/g++.jason/overload33.C: Use this-> when calling
      	functions.
      	* g++.old-deja/g++.jason/template36.C: Likewise.
      	* g++.old-deja/g++.mike/p1989.C: Likewise.
      	* g++.old-deja/g++.pt/lookup2.C: Use -fpermissive when compiling.
      	* g++.old-deja/g++.pt/ttp20.C: Use this->.
      	* g++.old-deja/g++.pt/ttp21.C: Use this->.
      	* g++.old-deja/g++.pt/typename13.C: Use -fpermissive when
      	compiling.
      	* g++.old-deja/g++.pt/union2.C: Use this->.
      
      From-SVN: r69316
      Mark Mitchell committed
    • c_locale.h: Include <cstdlib> and <cstring>. · f2ffecb1
      	* config/locale/generic/c_locale.h: Include <cstdlib> and
      	<cstring>.
      	* include/bits/boost_concept_check.h: Add this-> to unqualified
      	method calls.
      	* include/bits/deque.tcc: Likewise.
      	* include/bits/locale_facets.h : Likewise.
      	* include/bits/ostream.tcc: Likewise.
      	* include/bits/stl_algo.h: Likewise.
      	* include/bits/stl_bvector.h: Likewise.
      	* include/bits/stl_deque.h: Likewise.
      	* include/bits/stl_list.h: Likewise.
      	* include/bits/stl_tree.h: Likewise.
      	* include/bits/stl_vector.h: Likewise.
      	* include/bits/vector.tcc: Likewise.
      	* include/ext/rope: Likewise.
      	* include/ext/ropeimpl.h: Likewise.
      	* include/ext/stdio_filebuf.h: Likewise.
      
      From-SVN: r69315
      Mark Mitchell committed
    • gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1. · 4fab535e
      2003-07-13  Aaron W. LaFramboise  <awlaframboise@aol.com>
      * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
      (This was previously, erroneously listed as checked in on 2003-06-29)
      
      From-SVN: r69313
      Aaron W. LaFramboise committed
    • Daily bump. · dcad9c85
      From-SVN: r69311
      GCC Administrator committed
  2. 13 Jul, 2003 8 commits