Commit Graph

62478 Commits

Author SHA1 Message Date
Tom Tromey 1325e2b519 ChangeLog file for zlib
Changes in 1.2.1 (17 November 2003)

From-SVN: r88897
2004-10-11 18:45:11 +00:00
Andrew Pinski c94b5e7fb5 re PR middle-end/16266 (gcc.dg/c99-intconst-1.c compilation is very slow)
2004-10-11  Andrew Pinski  <pinskia@physics.uc.edu

        PR middle-end/16266
        * function.c (temp_slots_at_level): Fix typo which creates too
        many temp stack slots levels.

From-SVN: r88896
2004-10-11 11:32:40 -07:00
Ulrich Weigand cadc42dbdb s390.c (s390_trampoline_template): Generate shorter trampoline code.
* config/s390/s390.c (s390_trampoline_template): Generate shorter
	trampoline code.
	(s390_trampoline_instantiate): Adapt.
	* config/s390/s390.h (TRAMPOLINE_SIZE): Adapt to new code.

From-SVN: r88895
2004-10-11 18:28:25 +00:00
Richard Henderson 169bb110d3 posix-threads.h <__alpha__> (_Jv_ThreadId_t): Use void*.
* include/posix-threads.h <__alpha__> (_Jv_ThreadId_t): Use void*.
        (_Jv_ThreadSelf): Use __builtin_thread_pointer.

From-SVN: r88894
2004-10-11 10:49:39 -07:00
Tom Tromey 176ba83391 Initial revision
From-SVN: r88890
2004-10-11 17:44:11 +00:00
Andrew Pinski 73826a3915 cleanup5.C: Add dg-options "".
2004-10-11  Andrew Pinski  <pinskia@physics.uc.edu>

        * g++.dg/eh/cleanup5.C: Add dg-options "".

From-SVN: r88888
2004-10-11 10:20:16 -07:00
Mark Mitchell 06c00c701b re PR c++/17929 (ICE with qualified name in template specialization)
PR c++/17929
	* decl2.c (finish_anon_union): Robustify.

From-SVN: r88886
2004-10-11 16:59:23 +00:00
Nathan Sidwell 6936e493b5 cp-tree.h (get_dynamic_cast_base_type): Rename to ...
* cp-tree.h (get_dynamic_cast_base_type): Rename to ...
	(dcast_base_hint): ... here.
	* rtti.c (build_dynamic_cast_1): Use dcast_base_hint.
	* search.c (struct dcast_data_s): New.
	(dynamic_cast_base_recurse): Remove. Replace with ...
	(dfs_dcast_hint_pre, dfs_dcast_base_post): ... these. New.
	(get_dynamic_cast_base_type): Rename to ...
	(dcast_base_hint): ... here.  Use dfs_walk_once_accessible.
	(accessible_r): Remove.
	(dfs_accessible_post): New, broken out of accessible_r.
	(accessible_p): Use dfs_walk_once_accessible.
	(dfs_walk_once_accessible_r): New. From accessible_r.
	(dfs_walk_once_accessible): New. From acessible_p.

From-SVN: r88884
2004-10-11 16:36:03 +00:00
Roger Sayle eb172681f7 re PR middle-end/17657 (ICE in expand_case)
PR middle-end/17657
	* stmt.c (add_case_node): Add additional type argument.  Declare
	as static to match prototype.  Convert the upper and lower bounds
	to the specified index type.  Optimize away case ranges/values
	that are outside the index type's bounds.  Truncate case ranges
	that span the index type's bounds.
	(expand_case): Avoid unnessary computation and memory allocation
	when index type is error_mark_node.  Pass index_type as required
	by change to add_case_node API.  No need to convert case range
	bounds to index_type, this is now done by add_case_node.

	* gcc.dg/switch-4.c: New test case.

From-SVN: r88881
2004-10-11 16:11:35 +00:00
Nathan Sidwell 539ed333f6 cp-tree.h (SAME_BINFO_TYPE_P): New.
* cp-tree.h (SAME_BINFO_TYPE_P): New.
	* class.c (build_base_path): Use SAME_BINFO_TYPE_P to compare
	binfo types.
	(convert_to_base_statically, determine_primary_bases,
	update_vtable_entry_for_fn, dfs_modify_vtables, build_vtt_inits,
	dfs_build_secondary_vptr_vtt_inits, build_ctor_vtbl_group,
	accumulate_vtbl_inits, dfs_accumulate_vtbl_inits,
	build_vtbl_initializer, add_vcall_offset_vtbl_entries_1): Likewise.
	* init.c (expand_member_init): Likewise.
	* search.c (lookup_base_r, dynamic_cast_base_recurse,
	binfo_via_virtual, copied_binfo, binfo_for_vbase,
	original_binfo): Likewise.
	* tree.c (copy_binfo): Likewise.

From-SVN: r88880
2004-10-11 15:38:23 +00:00
Ulrich Weigand 19b63d8ecd s390-protos.h (s390_offset_p): Add prototype.
* config/s390/s390-protos.h (s390_offset_p): Add prototype.
	* config/s390/s390.c (s390_offset_p): New function.
	* config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccu",
	"*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use splitter to
	transform Q->Q alternatives to *clc pattern.
	("*clc"): Move.
	("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
	"*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf"): Use splitter
	to transform Q->Q alternatives to *mvc pattern.
	("*mvc"): Move.  Add peephole to merge adjacent MVCs.
	("*anddi3", "*andsi3_zarch", "*andsi3_esa", "*andhi3_zarch",
	"*andhi3_esa", "*andqi3_zarch", "*andqi3_esa"): Use splitter to
	transform Q->Q alternatives to *nc pattern.
	("*nc"): New insn.  New peephole to merge adjacent NCs.
	("*iordi3", "*iorsi3_zarch", "*iorsi3_esa", "*iorhi3_zarch",
	"*iorhi3_esa", "*iorqi3_zarch", "*iorqi3_esa"): Use splitter to
	transform Q->Q alternatives to *oc pattern.
	("*oc"): New insn.  New peephole to merge adjacent OCs.
	("*xordi3", "*xorsi3", "*xorhi3", "*xorqi3"): Use splitter to
	transform Q->Q alternatives to *xc pattern.
	("*xc"): New insn.  New peephole to merge adjacent XCs.
	("*xc_zero"): Move.  Add peephole to merge adjacent XCs.

From-SVN: r88878
2004-10-11 14:33:25 +00:00
Andrew Pinski d775bc45ed gimplify.c (gimple_push_condition): Make sure that we don't have any saved condition cleanup if...
2004-10-11  Andrew Pinski  <pinskia@physics.uc.edu>

        * gimplify.c (gimple_push_condition): Make sure that we don't
        have any saved condition cleanup if we were at the top level.

From-SVN: r88877
2004-10-11 05:57:09 -07:00
Richard Sandiford 6b34e55ebe frv.md (*adddi3_internal): Change name to...
* config/frv/frv.md (*adddi3_internal): Change name to...
	(adddi3): ...replacing the exisiting define_expand.  Combine
	alternatives.  Fix the range of the constant constraints ('J' instead
	of 'NOP').  Remove bogus operands[2] check.  Use simplify_gen_subreg
	to extract the lower and upper halves of the DImode operands.
	Always use addi3_lower and adddi3_upper, not the subdi3 forms.
	(adddi3_lower): Fix the range of the constant constraints and
	remove the bogus operands[2] check.
	(adddi3_upper): Use gpr_or_int10_operand as the predicate for
	operand 2.  Use addxi to handle constant operands.
	(subdi3_lower, subdi3_upper): Don't handle constant operands.

From-SVN: r88876
2004-10-11 12:13:43 +00:00
Kazu Hirata 22423a1f5b * semantics.c: Fix comment typos.
From-SVN: r88875
2004-10-11 11:47:11 +00:00
Nathan Sidwell 422d9921d8 gengtype-lex.l: Add commented } & ) characters to unconfuse editor's paren matching.
* gengtype-lex.l: Add commented } & ) characters to unconfuse
	editor's paren matching. Allow #define inside a struct.

From-SVN: r88873
2004-10-11 08:55:23 +00:00
Joachim Kuebart e55096f0ce pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk): Deal properly with exceptions thrown by ::operator new(size_t).
2004-10-11  Joachim Kuebart  <kuebart@mathematik.uni-ulm.de>
	    Paolo Carlini  <pcarlini@suse.de>

	* src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
	Deal properly with exceptions thrown by ::operator new(size_t).
	* testsuite/ext/pool_allocator/allocate_chunk.cc: New.

	* include/ext/pool_allocator.h: Include <cstdlib>.

Co-Authored-By: Paolo Carlini <pcarlini@suse.de>

From-SVN: r88872
2004-10-11 08:19:35 +00:00
Andreas Jaeger d90aed0dc6 Remove extra whitespace.
From-SVN: r88871
2004-10-11 07:29:17 +02:00
Andreas Jaeger 7731405b8d makedepend.c: Include mkdeps.h for prototype of deps_add_vpath.
* makedepend.c: Include mkdeps.h for prototype of deps_add_vpath.
	* Makefile.in (makedepend.o): Add dependency on mkdeps.h.

From-SVN: r88870
2004-10-11 07:19:48 +02:00
Andrew Pinski 0ad28ddea6 re PR c++/17554 (crashes in on kopete build (KDE's kdenetwork))
2004-10-10  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/17554
        part of c++/17657
        middle-end/17703
        * semantics.c (maybe_cleanup_point_expr): Call
        fold_build_cleanup_point_expr.
        (maybe_cleanup_point_expr_void): New function.
        (add_decl_expr): Call maybe_cleanup_point_expr_void.
        (finish_expr_stmt): Likewise.
        (finish_return_stmt): Likewise.
        (finish_for_expr): Likewise.
        (finish_asm_stmt): Likewise.
        * typeck.c (condition_conversion): Call
        fold_build_cleanup_point_expr.

2004-10-10  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/17703
        part of PR c++/17657
        * fold-const.c (fold_build_cleanup_point_expr): New function.
        * tree.h (fold_build_cleanup_point_expr): Prototype.

2004-10-10  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/17554
        * g++.dg/init/for3.C: New test.

        PR c++/17657
        * g++.dg/opt/switch2.C: New test.

        PR middle-end/17703
        * g++.dg/warn/Wreturn-2.C: New test.

From-SVN: r88869
2004-10-10 20:42:09 -07:00
Eric Christopher 5c70192c1d dwarf2out.c: Move attribute to subprogram declaration instead of subroutine type.
2004-10-10  Eric Christopher  <echristo@redhat.com>

	* dwarf2out.c: Move attribute to subprogram declaration
	instead of subroutine type.

From-SVN: r88868
2004-10-11 03:22:28 +00:00
Andrew Pinski b187901efa re PR c++/17907 (ice in optimize_inline_calls, at tree-inline.c)
2004-10-10  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/17907
        * semantics.c (add_decl_expr): If the decl has a size which
        has side effects then the decl expression needs a cleanup point.
2004-10-10  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/17907
        * g++.dg/eh/cleanup5.C: New test.

From-SVN: r88867
2004-10-10 20:16:47 -07:00
GCC Administrator 90d82a979d Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r88865.2
2004-10-11 00:16:17 +00:00
GCC Administrator b7ab710963 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r88864.2
2004-10-11 00:16:13 +00:00
Kazu Hirata 9b1f72c413 basic-block.h: Remove the prototypes for can_hoist_insn_p...
* basic-block.h: Remove the prototypes for can_hoist_insn_p,
	hoist_insn_after, and hoist_insn_to_edge.
	* rtl.h: Remove the prototypes for reg_referenced_between_p,
	no_jumps_between_p, and insn_dependent_p.
	* rtlanal.c (no_jumps_between_p, reg_referenced_between_p,
	insn_dependent_p, insn_dependent_p_1, hoist_test_store,
	can_hoist_insn_p, hoist_update_store, hoist_insn_after,
	hoist_insn_to_edge): Remove.

From-SVN: r88860
2004-10-10 22:06:04 +00:00
Benjamin Kosnik 382c6e2df8 functexcept.h: Add guards.
2004-10-10  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/functexcept.h: Add guards.

	* acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
	* configure: Regenerate.

From-SVN: r88857
2004-10-10 21:54:41 +00:00
Mark Mitchell 22ab714dcc re PR c++/17393 ("unused variable '._0'" warning with -Wall)
PR c++/17393
	* decl.c (grokdeclarator): Robustify error-recovery on invalid
	declarations.

	PR c++/17393
	* g++.dg/parse/error21.C: New test.

From-SVN: r88855
2004-10-10 21:49:27 +00:00
Gabriel Dos Reis a82e1a7d18 Convert diagnostics to use quoting flag q 7/n
cp/
        Convert diagnostics to use quoting flag q 7/n
        * typeck.c (composite_pointer_type_r, composite_pointer_type,
        cxx_sizeof_or_alignof_type, cxx_sizeof_or_alignof_expr,
        string_conv_p, build_class_member_access_expr,
        build_class_member_access_expr, lookup_destructor,
        finish_class_member_access_expr, build_indirect_ref,
        get_member_function_from_ptrfunc, build_function_call,
        convert_arguments, build_binary_op, pointer_diff,
        build_unary_op,
        check_for_casting_away_constness, build_static_cast,
        build_reinterpret_cast, build_const_cast, build_c_cast,
        build_modify_expr, get_delta_difference, build_ptrmemfunc,
        dubious_conversion_warnings, convert_for_assignment,
        convert_for_initialization,
        maybe_warn_about_returning_address_of_local,
        check_return_expr):
        Use quoting marks.

        * typeck2.c (error_not_base_type, readonly_error,
        abstract_virtuals_error, cxx_incomplete_type_diagnostic,
        store_init_value, digest_init, build_x_arrow,
        build_m_component_ref, require_complete_eh_spec_types):
        Likewise.

        * tree.c (cp_build_qualified_type_real,
        handle_java_interface_attribute,
        handle_init_priority_attribute):
        Likewise.

        * semantics.c (finish_asm_stmt, finish_non_static_data_member,
        finish_pseudo_destructor_expr,
        check_template_template_default_arg, begin_class_definition,
        finish_base_specifier, qualified_name_lookup_error,
        finish_id_expression, finish_typeof): Likewise.

        * search.c (lookup_base, check_final_overrider,
        look_for_overrides_r): Likewise.

        * rtti.c (get_tinfo_decl, build_dynamic_cast_1): Likewise.
testsuite/
        * g++.dg/overload/pmf1.C: Adjust quoting marks.
        * g++.dg/warn/incomplete1.C: Likewise.
        * g++.dg/template/qualttp20.C: Likewise.

From-SVN: r88854
2004-10-10 21:36:42 +00:00
Joseph Myers bba5733fee re PR c/17881 (Incomplete type warning is issued even for prototypes)
PR c/17881
	* c-decl.c (grokparms): Don't warn for parameters of incomplete
	type in declarations that are not definitions except for the case
	of parameters of void type.

testsuite:
	* parm-incomplete-1.c: New test.

From-SVN: r88850
2004-10-10 20:20:35 +01:00
Paolo Carlini a780ad2f43 monetary_members.cc (_S_construct_pattern): Give __ret a default value, thus avoiding spurious warnings.
2004-10-10  Paolo Carlini  <pcarlini@suse.de>

	* config/locale/gnu/monetary_members.cc (_S_construct_pattern):
	Give __ret a default value, thus avoiding spurious warnings.

	* testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
	words or linux.words, otherwise exit.
	* testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.

From-SVN: r88848
2004-10-10 17:55:23 +00:00
Bryce McKinlay 0ba09d8fc6 Calendar.java (set): Invalidate DST_OFFSET field as a DST boundary may have been crossed.
2004-10-08  Bryce McKinlay  <mckinlay@redhat.com>

	* java/util/Calendar.java (set): Invalidate DST_OFFSET
	field as a DST boundary may have been crossed.
	* java/util/GregorianCalendar.java (add): Throw
	IllegalArgumentException on attempt to add to DST_OFFSET or
	ZONE_OFFSET fields. Update javadoc.

From-SVN: r88847
2004-10-10 17:19:37 +01:00
Tobias Schlüter 711f836923 * module.c: Fix formatting issues.
From-SVN: r88846
2004-10-10 16:35:39 +02:00
Kazu Hirata f0b698c1cf * tree-cfg.c: Fix comment typos.
From-SVN: r88845
2004-10-10 13:16:35 +00:00
Mark Mitchell 36700ac888 Fix typo
From-SVN: r88839
2004-10-10 05:36:35 +00:00
Mark Mitchell 17a27b4f0c re PR c++/17867 ("void" instead of class name in error message)
PR c++/17867
	* error.c (dump_expr): Correct handling of AGGR_INIT_EXPRs using a
	constructor.

	PR c++/17670
	* init.c (build_new): Correct comments.
	* parser.c (cp_parser_new_expression): Use NULL_TREE for nelts in
	the non-array case.

	PR c++/17821
	* parser.c (cp_parser_postfix_dot_deref_expression): If the
	pseduo-destructor-name production does not work, fall back to the
	ordinary production.

	PR c++/17826
	* tree.c (cp_tree_equal): Handle a BASELINK.

	PR c++/17687
	* g++.dg/parse/error19.C: New test.

	PR c++/17670
	* g++.dg/init/new11.C: New test.

	PR c++/17821
	* g++.dg/parse/error20.C: New test.

	PR c++/17826
	* g++.dg/template/crash24.C: New test.

From-SVN: r88836
2004-10-10 05:02:54 +00:00
Joseph Myers c69c9b36a9 re PR c/17301 (ICE on wrong usage of __builtin_stdarg_start)
PR c/17301
	* builtins.c (expand_builtin_va_start): Check for too few
	arguments to va_start.

testsuite:
	* gcc.dg/pr17301-1.c: New test.

From-SVN: r88835
2004-10-10 02:10:53 +01:00
Joseph Myers 216a5f1b3f re PR c/17189 (bogus warning for struct Foo { int; };)
PR c/17189
	* c-decl.c (grokfield): Make diagnostic for bad cases of unnamed
	fields a pedwarn.  Pedwarn here for unnamed structs/unions if
	pedantic.
	* c-parse.in (component_decl): Don't pedwarn here for unnamed
	fields.

testsuite:
	* gcc.dg/anon-struct-5.c: New test.

From-SVN: r88834
2004-10-10 01:47:20 +01:00
GCC Administrator fb643d23f7 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r88832.2
2004-10-10 00:16:14 +00:00
GCC Administrator 5c24f1f570 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r88831.2
2004-10-10 00:16:10 +00:00
Joseph Myers fbc0150dbc re PR c/17844 (-fshort-enums: ISO/IEC 9899:1999 : wrong size of identifier in enumerator list)
PR c/17844
	* gcc.dg/pr17844-1.c: New test.

From-SVN: r88829
2004-10-10 00:28:38 +01:00
Zdenek Dvorak 3d5c655fab re PR middle-end/17906 (ICE in verify_ssa: PHI argument is not SSA_NAME, or invariant)
PR tree-optimization/17906
	* tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
	copy non-gimple reg arguments.

From-SVN: r88828
2004-10-09 20:19:37 +00:00
Roger Sayle fc7ca5fd39 [multiple changes]
2004-10-09  Roger Sayle  <roger@eyesopen.com>

	PR rtl-optimization/17853
	* simplify-rtx.c (simplify_relational_operation): Correct comment.
	Reorganize handling of comparison operations with floating point
	results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
	Likewise, introduce support for comparison operations with vector
	result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.

	* doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
	* doc/tm.texi: Likewise.

2004-10-09  Stuart Hastings  <stuart@apple.com>
	    Roger Sayle  <roger@eyesopen.com>

	PR rtl-optimization/17853
	* gcc.dg/i386-mmx-5.c: New testcase.

From-SVN: r88826
2004-10-09 19:27:55 +00:00
Steven Bosscher 35ed0a936a regs.h (struct reg_info_def): Remove the last_node_uid and changes_mode fields.
* regs.h (struct reg_info_def): Remove the last_node_uid and
	changes_mode fields.
	(REGNO_LAST_NOTE_UID): Don't define.
	* regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
	* regmove.c (copy_src_to_dest): Likewise.

From-SVN: r88825
2004-10-09 19:19:24 +00:00
Andrew Pinski 673dacbe7f pr17902.C: Fix typo in dg-do.
2004-10-09  Andrew Pinski  <pinskia@physics.uc.edu>

        * g++.dg/opt/pr17902.C: Fix typo in dg-do.

From-SVN: r88823
2004-10-09 11:00:53 -07:00
Mark Mitchell 62e19030ce re PR c++/17524 (ICE with initializing a variable of type void)
PR c++/17524
	* cp-tree.h (check_var_type): New function.
	* decl.c (check_var_type): New function, split out from ...
	(grokdeclarator): ... here.
	* pt.c (tsubst_decl): Use check_var_type.

	PR c++/17685
	* decl.c (grokdeclarator): Disallow declarations of operators as

	PR c++/17524
	* g++.dg/template/static9.C: New test.

	PR c++/17685
	* g++.dg/parse/operator5.C: New test.

From-SVN: r88820
2004-10-09 17:33:02 +00:00
Tobias Schlüter 5c76089acf module.c (mio_interface_rest): Set where member of interface while loading.
* module.c (mio_interface_rest): Set where member of interface
while loading.

From-SVN: r88819
2004-10-09 18:17:45 +02:00
Roger Sayle d2e74f6fd5 re PR middle-end/17894 (div/compare folding incorrect)
PR middle-end/17894
	* fold-const.c (fold_div_compare): When optimizing X/C1 op C2, the
	relational comparison operator op needs to be swapped/reversed when
	C1 is negative.  i.e. X/-10 < 1 becomes X >= -9, not X < -9.

	* gcc.c-torture/execute/divcmp-4.c: New test case.

From-SVN: r88818
2004-10-09 15:48:24 +00:00
Michael Koch 0d2e6ffef6 2004-10-09 Michael Koch <konqueror@gmx.de>
* java/io/CharArrayWriter.java
	(resize): Removed redundant 'final' modifier.
	* java/io/DataInputStream.java
	(readFully): Throw IndexOutOfBoundsException of len < 0.
	* java/io/FileDescriptor.java,
	java/io/FileInputStream.java,
	java/io/FileOutputStream.java,
	java/io/ObjectOutputStream.java,
	java/io/ObjectStreamClass.java,
	java/io/PipedInputStream.java,
	java/io/RandomAccessFile.java:
	Reorganized import statements.

From-SVN: r88817
2004-10-09 10:22:25 +00:00
Michael Koch f507003ab2 RMIC.java, [...]: Reworked import statements and fixed file headers.
2004-10-09  Michael Koch  <konqueror@gmx.de>

	* gnu/java/rmi/rmic/RMIC.java,
	gnu/java/rmi/server/RMIHashes.java,
	gnu/java/rmi/server/RMIObjectInputStream.java,
	gnu/java/rmi/server/UnicastConnection.java,
	gnu/java/rmi/server/UnicastConnectionManager.java,
	gnu/java/rmi/server/UnicastRemoteCall.java,
	gnu/java/rmi/server/UnicastServerRef.java:
	Reworked import statements and fixed file headers.

From-SVN: r88816
2004-10-09 09:57:02 +00:00
Paolo Carlini dafa8871d1 std_memory.h (__get_temporary_buffer): Don't use INT_MAX...
2004-10-09  Paolo Carlini  <pcarlini@suse.de>

	* include/std/std_memory.h (__get_temporary_buffer): Don't use
	INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
	platforms too.
	* testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
	line numbers.

From-SVN: r88814
2004-10-09 08:23:02 +00:00
Benjamin Kosnik c3e7f18406 acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
2004-10-08  Benjamin Kosnik  <bkoz@redhat.com>

	* acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
	* acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
	* configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
	* configure: Regenerate.
	* src/mt_allocator.cc (__pool::~__pool): Make conditional on
	_GLIBCXX_USE___CXA_ATEXIT macro.
	* docs/html/ext/mt_allocator.html: Add note about deallocation.
	* testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
	with _GLIBCXX_USE___CXA_ATEXIT.
	* testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
	* testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
	* testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
	* testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
	* testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
	* testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
	* testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.

From-SVN: r88809
2004-10-09 02:30:10 +00:00