Thomas Schwinge
3328a3b779
re PR target/28102 (GNU Hurd bootstrap error: 'OPTION_GLIBC' undeclared)
...
2008-11-13 Thomas Schwinge <tschwinge@gnu.org>
PR target/28102
* config.gcc (*-*-gnu*): Move Alpha parts into the `alpha*-*-gnu*', x86
parts into the `i[34567]86-*-linux*' and parts that are independent of
the processor architecture into the `*-*-linux*' cases.
(*-*-linux*): Consider `linux.opt' only for Linux-based configurations.
* config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Redefine.
(TARGET_OS_CPP_BUILTINS, LINK_SPEC): Don't redefine.
[TARGET_LIBC_PROVIDES_SSP] (TARGET_THREAD_SSP_OFFSET): Undefine.
* config/gnu.h (NO_IMPLICIT_EXTERN_C): Don't redefine.
(HURD_TARGET_OS_CPP_BUILTINS): Don't define, but instead...
(LINUX_TARGET_OS_CPP_BUILTINS): Redefine.
From-SVN: r141838
2008-11-14 00:28:46 +01:00
Uros Bizjak
ab70111b71
* testsuite/ChangeLog: Add missing ChangeLog entry.
...
From-SVN: r141837
2008-11-13 23:54:23 +01:00
Richard Sandiford
ffe6ff66ca
loongson-muldiv-1.c: New test.
...
gcc/testsuite/
* gcc.target/mips/loongson-muldiv-1.c: New test.
* gcc.target/mips/loongson-muldiv-2.c: Likewise.
From-SVN: r141836
2008-11-13 22:49:37 +00:00
Ruan Beihong
1a0f175dd7
loongson.md (<u>div<mode>3, [...]): New patterns.
...
gcc/
2008-11-13 Ruan Beihong <ruanbeihong@gmail.com>
* config/mips/loongson.md (<u>div<mode>3, <u>mod<mode>3): New patterns.
* config/mips/loongson2ef.md (ls2_imult): Handle imul3nc.
(ls2_idiv): Likewise idiv3.
(ls2_prefetch): New reservation.
* config/mips/mips.h (ISA_HAS_PREFETCH): Add TARGET_LOONGSON_2EF.
* config/mips/mips.md (type): Add imul3nc and idiv3.
(length): Handle idiv3.
(any_mod): New code_iterator.
(u): Handle MOD and UMOD.
(mul<mode>3): Generate mul<mode>3_mul3_ls2ef on Loongson targets.
(prefetch): Handle TARGET_LOONGSON_2EF.
From-SVN: r141835
2008-11-13 22:48:39 +00:00
Joseph Myers
a0daa81106
* id.po: New.
...
From-SVN: r141831
2008-11-13 21:21:49 +00:00
Steve Ellcey
8b159eea9d
re PR libgomp/37938 (libgomp testsuite failures on ia64-linux)
...
PR libgomp/37938
* config/linux/ia64/mutex.h: New.
From-SVN: r141830
2008-11-13 21:06:38 +00:00
Jakub Jelinek
2db56bbc02
re PR debug/27017 (Debug information for static local class members are not emitted)
...
PR c++/27017
* dwarf2out.c (prune_unused_types_walk_local_classes): New function.
(prune_unused_types_walk): Call it for non-perennial local classes.
Set die_mark to 2 if recursing on children. If die_mark is 1 on
entry, just set it to 2 and recurse on children, don't walk attributes
again.
* g++.dg/debug/dwarf2/localclass1.C: New test.
* g++.dg/debug/dwarf2/localclass2.C: New test.
From-SVN: r141829
2008-11-13 22:04:32 +01:00
Martin Michlmayr
a231ffe57d
c-common.c (warn_about_parentheses): Add missing whitespace
...
in warning.
From-SVN: r141826
2008-11-13 18:47:18 +00:00
Uros Bizjak
b1f80fe197
struct-layout-1_generate.c (dg-options): Add -mno-mmx for i?86-*-* and x86_64-*-* targets
...
* gcc.dg/compat/struct-layout-1_generate.c (dg-options): Add -mno-mmx
for i?86-*-* and x86_64-*-* targets
* g++.dg/compat/struct-layout-1_generate.c (dg-options): Add
-fno-common for *-*-darwin* *-*-mingw32* *-*-cygwin* targets.
From-SVN: r141825
2008-11-13 19:34:05 +01:00
Paul Brook
5fd424238b
invoke.texi: Document --fix-cortex-m3.
...
2008-11-13 Paul Brook <paul@codesourcery.com>
gcc/
* doc/invoke.texi: Document --fix-cortex-m3.
* config/arm/arm.c (arm_override_options): Set fix_cm3_ldrd if
Cortex-M3 cpu is selected.
(output_move_double): Avoid overlapping base register and first
destination register when fix_cm3_ldrd.
* config/arm/arm.opt: Add mfix-cortex-m3-ldrd.
From-SVN: r141822
2008-11-13 15:19:02 +00:00
Olivier Hainque
255e5b0481
decl.c (gnat_to_gnu_entity): Turn Ada Pure on subprograms back into GCC CONST when...
...
ada/
* gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>:
Turn Ada Pure on subprograms back into GCC CONST when eh constructs
are explicit to the middle-end. Tidy.
testsuite/
* gnat.dg/test_raise_from_pure.adb: Adjust to match revised intent.
* gnat.dg/wrap_raise_from_pure.ad[bs]: Remove.
* gnat.dg/handle_raise_from_pure.adb: New test.
From-SVN: r141821
2008-11-13 14:43:23 +00:00
Jakub Jelinek
cea094edca
re PR bootstrap/38100 (gcc fails to compile with (undefined symbol) gimple_check_failed error)
...
PR bootstrap/38100
* gimple.h (gimple_range_check_failed): Remove prototype.
* gimple.c (gimple_check_failed): Don't check GCC_VERSION
in guarding #if.
(gimple_range_check_failed): Removed.
From-SVN: r141820
2008-11-13 15:42:39 +01:00
Dodji Seketeli
f42ab145aa
Fix ChangeLog entry:
...
PR debug/27574
* cgraph.h: New abstract_and_needed member to struct cgraph_node.
* cgraphunit.c (cgraph_analyze_functions): Flag abstract functions
- which clones are reachable - as "abstract and needed".
* cgraph.c (cgraph_release_function_body): If a node is
"abstract and needed", do not release its DECL_INITIAL() content
that will be needed to emit debug info.
From-SVN: r141819
2008-11-13 11:55:01 +01:00
Andrew Haley
3b5391959d
re PR bootstrap/38088 (gcc fails to compile with undefined symbol: __LONG_LONG_MAX__ error)
...
PR bootstrap/38088
* mcf.c (CAP_INFINITY): Use HOST_WIDEST_INT maximum, not GCC specific
__LONG_LONG_MAX__.
From-SVN: r141818
2008-11-13 11:26:51 +01:00
GCC Administrator
bf0e1bf525
Daily bump.
...
From-SVN: r141816
2008-11-13 00:17:00 +00:00
Paolo Carlini
ddbfe947b3
re PR libstdc++/38000 (System header files not found once -isystem /usr/include is used)
...
2008-11-13 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/38000
* include/c_global/csignal: Do not use include_next.
* include/c_global/cstdlib: Likewise.
* include/c_global/cstdio: Likewise.
* include/c_global/cstdarg: Likewise.
* include/c_global/cctype: Likewise.
* include/c_global/cerrno: Likewise.
* include/c_global/cmath: Likewise.
* include/c_global/clocale: Likewise.
* include/c_global/climits: Likewise.
* include/c_global/cassert: Likewise.
* include/c_global/csetjmp: Likewise.
* include/c_global/cwchar: Likewise.
* include/c_global/cfloat: Likewise.
* include/c_global/cstdbool: Likewise.
* include/c_global/cstring: Likewise.
* include/c_global/cstddef: Likewise.
* include/c_global/cwctype: Likewise.
* include/tr1/cstdbool: Likewise.
* include/tr1_impl/cinttypes: Do not include <inttypes.h>.
* include/c_global/cinttypes: Do it here.
* include/tr1/cinttypes: Likewise.
* include/tr1_impl/cfenv: Do not include <fenv.h>.
* include/c_global/cfenv: Do it here.
* include/tr1/cfenv: Likewise.
* include/tr1_impl/cstdint: Do not include <stdint.h>.
* include/c_global/cstdint: Do it here.
* include/tr1/cstdint: Likewise.
* include/c_compatibility/fenv.h: Include <tr1_impl/cfenv>.
* include/c_compatibility/stdint.h: Include <tr1_impl/cstdint>.
* include/c_compatibility/inttypes.h: Include <tr1_impl/cinttypes>.
* include/c_compatibility/math.h: Minor tweak, add comment.
From-SVN: r141812
2008-11-13 00:06:55 +00:00
Tobias Burnus
63b0fc00a4
re PR fortran/38094 (gfortran.dg/private_type_4.f90 -O doesn't work)
...
2008-11-12 Tobias Burnus <burnus@net-b.de>
PR fortran/38094
* gfortran.dg/private_type_4.f90: Fix dg-error pattern.
From-SVN: r141811
2008-11-12 23:27:10 +01:00
Jakub Jelinek
084eb83032
re PR c++/36478 (warning not emitted when code expanded from macro)
...
PR c++/36478
Revert:
2007-05-07 Mike Stump <mrs@apple.com>
* doc/invoke.texi (Warning Options): Document that -Wempty-body
also checks for and while statements in C++.
Revert:
2007-05-07 Mike Stump <mrs@apple.com>
* parser.c (check_empty_body): Add.
(cp_parser_iteration_statement): Add call to check_empty_body.
* g++.old-deja/g++.mike/empty.C: Remove.
From-SVN: r141810
2008-11-12 23:18:03 +01:00
Dodji Seketeli
6b20f353f6
re PR debug/27574 (MIssing debug info at -O0 for a local variable in a C++ constructor)
...
gcc/ChangeLog:
2008-11-12 Dodji Seketeli <dodji@redhat.com>
PR debug/27574
* cgraph.h: New abstract_and_needed member to struct cgraph_node.
* cgraphunit.c (cgraph_analyze_functions): Flag abstract functions
- which clones are reachable - as "abstract and needed".
* cgraph.c (cgraph_release_function_body): If a node is "abstract and needed",
do not release its DECL_INITIAL() content because that will be needed to emit
debug info.
gcc/testsuite/ChangeLog:
2008-11-12 Dodji Seketeli <dodji@redhat.com>
PR debug/27574
* g++.dg/debug/dwarf2/local-var-in-contructor.C: New test.
From-SVN: r141807
2008-11-12 22:57:44 +01:00
Eric Botcazou
ac12508218
20081112-1.c: New test.
...
* gcc.c-torture/execute/20081112-1.c: New test.
* gnat.dg/concat1.adb: Likewise.
* gnat.dg/concat1_pkg.ad[sb]: New helper.
From-SVN: r141806
2008-11-12 21:48:59 +00:00
Steve Ellcey
e61c76c969
re PR target/27880 (undefined reference to `_Unwind_GetIPInfo')
...
PR target/27880
* configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Use this macro
to set HAVE_GETIPINFO.
* aclocal.m4: Include ../config/unwind_ipinfo.m4.
* configure: Regenerate.
* config.in: Regenerate.
From-SVN: r141805
2008-11-12 21:37:34 +00:00
Steve Ellcey
bc3f0248dd
re PR target/27880 (undefined reference to `_Unwind_GetIPInfo')
...
PR target/27880
* config/unwind_ipinfo.m4 (GCC_CHECK_UNWIND_GETIPINFO): Change from
link test to target based test.
* libstdc++/v3/configure.ac: Move call to GCC_CHECK_UNWIND_GETIPINFO.
* libstdc++/v3/configure: Regenerate.
* libjava/configure: Regenerate.
From-SVN: r141804
2008-11-12 21:35:46 +00:00
Jack Howarth
a3422e3036
re PR bootstrap/38010 (gcc/config.gcc needs adjustment for darwin10)
...
2008-11-12 Jack Howarth <howarth@bromo.med.uc.edu>
PR bootstrap/38010
* gcc/config.gcc: Use darwin9.h on darwin10 as well.
From-SVN: r141803
2008-11-12 21:33:34 +00:00
Jakub Jelinek
cfcd6a9830
revert: gimplify.c (gimplify_expr): Drop TREE_OVERFLOW from INTEGER_CSTs.
...
Revert:
2008-10-21 Jakub Jelinek <jakub@redhat.com>
* gimplify.c (gimplify_expr): Drop TREE_OVERFLOW from
INTEGER_CSTs.
From-SVN: r141802
2008-11-12 21:56:41 +01:00
Jakub Jelinek
4bf95cef95
re PR libgcj/33764 (gij is built as 32-bit binary when building multilib gcc)
...
PR libgcj/33764
libjava/
* configure.ac (INSTALL_BINARIES): New AM_CONDITIONAL.
* Makefile.am: If not INSTALL_BINARIES, use noinst_PROGRAMS
instead of bin_PROGRAMS for binaries.
* configure: Regenerated.
* Makefile.in: Regenerated.
libjava/classpath/
* configure.ac (INSTALL_BINARIES): New AM_CONDITIONAL.
* tools/Makefile.am: If not INSTALL_BINARIES, use noinst_PROGRAMS
instead of bin_PROGRAMS for binaries.
* configure: Regenerated.
* tools/Makefile.in: Regenerated.
From-SVN: r141801
2008-11-12 21:55:13 +01:00
Jason Merrill
41b81065ae
re PR c++/38007 (g++ instantiate same operator twice due to bitfield in -O0 mode, causing symbol already defined assembler error)
...
PR c++/38007
gcc/cp/
* typeck.c (cp_build_modify_expr): Update bitfield handling.
gcc/
* c-common.c (c_common_signed_or_unsigned_type): Remove C++
special casing.
gcc/testsuite/
* g++.dg/conversion/bitfield10.C: New test.
* g++.dg/warn/pr35635.C (func1): Accept additional warning.
* g++.old-deja/g++.mike/enum1.C: Expect warn about assignment.
* g++.dg/expr/bitfield9.C: Pass -Wno-overflow.
From-SVN: r141800
2008-11-12 15:50:45 -05:00
Anatoly Sokolov
dea4e8d064
avr.c (avr_mcu_t): Add atmega16hvb...
...
* config/avr/avr.c (avr_mcu_t): Add atmega16hvb, atmega32hvb,
atmega4hvd, atmega8hvd, atmega64c1, atmega64m1, atmega16u4 and
atmega32u6 devices.
* config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
* config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
From-SVN: r141799
2008-11-12 23:29:54 +03:00
Tobias Burnus
6af97bf444
re PR fortran/38065 (private/public confusion with a contained function)
...
2008-11-12 Tobias Burnus <burnus@net-b.de>
PR fortran/38065
PR fortran/38094
* gfortran.dg/private_type_4.f90: Add -std=f95 option.
From-SVN: r141798
2008-11-12 19:38:08 +01:00
Andreas Krebbel
78791a80a8
[multiple changes]
...
2008-11-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* gcc/config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Remove
packed-stack special handling.
(FRAME_ADDR_RTX): Add definition.
2008-11-12 Andreas Krebbel <krebbel1@de.ibm.com>
* gcc.target/s390/frame-addr1.c: New testcase.
* gcc.target/s390/frame-addr2.c: New testcase.
* gcc.target/s390/return-addr1.c: New testcase.
* gcc.target/s390/return-addr2.c: New testcase.
From-SVN: r141796
2008-11-12 18:04:39 +00:00
Jack Howarth
2069a97a4a
re PR testsuite/38008 (gcc/testsuite/gcc.c-torture/execute/builtins/lib/sprintf.c unportable)
...
2008-11-12 Jack Howarth <howarth@bromo.med.uc.edu>
PR testsuite/38008
* gcc.c-torture/execute/builtins/lib/sprintf.c: Make
sprintf call more portable for darwin10.
From-SVN: r141795
2008-11-12 17:52:24 +00:00
Jack Howarth
83d8b61fc2
re PR testsuite/37202 (FAIL: gcc.dg/visibility-1[4-9].c)
...
2008-11-12 Jack Howarth <howarth@bromo.med.uc.edu>
PR testsuite/37202
* gcc.dg/visibility-14.c: Skip on *-*-darwin*.
* gcc.dg/visibility-15.c: Same.
* gcc.dg/visibility-16.c: Same.
* gcc.dg/visibility-17.c: Same.
* gcc.dg/visibility-18.c: Same.
* gcc.dg/visibility-19.c: Same.
From-SVN: r141794
2008-11-12 17:47:13 +00:00
Jakub Jelinek
192657ec62
re PR c++/34269 (Incomplete __decltype/__typeof expressions accepted)
...
PR c++/34269
* parser.c (cp_parser_simple_declaration): Don't commit
to tentative parse if parse errors were seen.
* g++.dg/cpp0x/decltype13.C: New test.
* g++.dg/cpp0x/decltype-33837.C: Adjust dg-error pattern.
* g++.dg/cpp0x/pr33839.C: Likewise.
From-SVN: r141793
2008-11-12 18:33:48 +01:00
Jakub Jelinek
27a4e07281
re PR target/35366 (gfortran.dg/equiv_7.f90 fails with -m64 -Os on powerpc-apple-darwin9)
...
PR target/35366
PR fortran/33759
* fold-const.c (native_encode_string): New function.
(native_encode_expr): Use it for STRING_CST.
* trans-const.c (gfc_conv_constant_to_tree): Warn when
converting an integer outside of LOGICAL's range to
LOGICAL.
* trans-intrinsic.c (gfc_conv_intrinsic_function,
gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer):
Use INTEGER_TYPE instead of BOOLEAN_TYPE for TRANSFER as
argument of another TRANSFER.
* gfortran.dg/hollerith.f90: Don't assume a 32-bit value
stored into logical variable will be preserved.
* gfortran.dg/transfer_simplify_4.f90: Remove undefined
cases. Run at all optimization levels. Add a couple of
new tests.
* gfortran.dg/hollerith5.f90: New test.
* gfortran.dg/hollerith_legacy.f90: Add dg-warning.
From-SVN: r141790
2008-11-12 18:01:51 +01:00
DJ Delorie
d2cf2f07a9
cond.md (cond_to_int peephole2): Don't eliminate the insns if the intermediate value will be used later.
...
* config/m32c/cond.md (cond_to_int peephole2): Don't eliminate the
insns if the intermediate value will be used later.
From-SVN: r141788
2008-11-12 11:35:03 -05:00
Andreas Schwab
429ce9927e
m68k.c (print_operand): Mask off extra extension bits when writing out the representation of real values.
...
* config/m68k/m68k.c (print_operand): Mask off extra extension
bits when writing out the representation of real values.
From-SVN: r141787
2008-11-12 16:34:14 +00:00
Ira Rosen
46b0b69d25
re PR tree-optimization/38079 (gcc segfaults when using -ftree-vectorizer-verbose=9)
...
PR tree-optimization/38079
* tree-vect-analyze.c (vect_analyze_data_refs): Replace dump_file
with vect_dump.
From-SVN: r141785
2008-11-12 10:36:03 +00:00
Paolo Carlini
085b55410d
PR libstdc++/37986 (cont)
...
2008-11-12 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/37986 (cont)
* include/tr1_impl/random (struct _Adaptor): Use only remove_reference
on _Engine.
(struct _Adaptor<_Engine*, _Distribution>): Add.
* testsuite/tr1/5_numerical_facilities/random/variate_generator/
37986.cc: Extend.
From-SVN: r141784
2008-11-12 09:59:27 +00:00
Jakub Jelinek
66e6819110
re PR c++/35334 (Broken diagnostic for complex cast)
...
PR c++/35334
* c-pretty-print.c (pp_c_complex_expr): New function.
(pp_c_postfix_expression) <case COMPLEX_EXPR>: Call it.
* error.c (dump_expr): Handle COMPLEX_EXPR.
* gcc.dg/pr35334.c: New test.
* g++.dg/other/error29.C: New test.
From-SVN: r141783
2008-11-12 09:18:45 +01:00
Jakub Jelinek
8ebec1a5dd
re PR target/35366 (gfortran.dg/equiv_7.f90 fails with -m64 -Os on powerpc-apple-darwin9)
...
PR target/35366
* expr.c (expand_expr_addr_expr_1): If EXP needs bigger alignment
than INNER and INNER is a constant, forcibly align INNER as much
as needed.
From-SVN: r141782
2008-11-12 09:16:12 +01:00
Tobias Burnus
0d6872cba7
re PR fortran/38065 (private/public confusion with a contained function)
...
2008-11-12 Tobias Burnus <burnus@net-b.de>
PR fortran/38065
* resolve.c (resolve_fntype): Fix private derived type checking.
2008-11-12 Tobias Burnus <burnus@net-b.de>
PR fortran/38065
* gfortran.dg/private_type_11.f90: New test.
* gfortran.dg/private_type_12.f90: New test.
From-SVN: r141780
2008-11-12 07:59:33 +01:00
GCC Administrator
8a4d68e36d
Daily bump.
...
From-SVN: r141778
2008-11-12 00:17:48 +00:00
Richard Sandiford
1300342b45
cse.c (fold_rtx): Remove redundant gen_rtx_CONST.
...
gcc/
* cse.c (fold_rtx): Remove redundant gen_rtx_CONST.
From-SVN: r141775
2008-11-11 23:24:05 +00:00
Richard Sandiford
2f1e2391d8
re PR rtl-optimization/37363 (Fix for PR 36090 causes libstdc++ regressions)
...
gcc/
PR rtl-optimization/37363
* simplify-rtx.c (simplify_plus_minus): Don't create (const (minus ...))
expresisons.
From-SVN: r141774
2008-11-11 23:23:23 +00:00
Eric Botcazou
5dbd125c5c
ira-lives.c (process_bb_node_lives): Restore EH_RETURN_DATA_REGNO handling.
...
* ira-lives.c (process_bb_node_lives): Restore EH_RETURN_DATA_REGNO
handling.
From-SVN: r141772
2008-11-11 18:07:39 +00:00
Paolo Carlini
285743c92b
re PR libstdc++/37986 (std::tr1::variate_generator does not conform to TR1.)
...
2008-11-11 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/37986
* include/tr1_impl/random (struct _Adaptor): Use remove_pointer
and remove_reference on _Engine.
* testsuite/tr1/5_numerical_facilities/random/variate_generator/
37986.cc: New.
From-SVN: r141769
2008-11-11 14:31:48 +00:00
Paolo Carlini
9b77c3a2ba
1_neg.cc: Adjust dg-error line numbers.
...
2008-11-11 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/ext/ext_pointer/1_neg.cc: Adjust dg-error line numbers.
From-SVN: r141768
2008-11-11 13:49:53 +00:00
Paolo Carlini
aa06026b2e
1_neg.cc: Adjust dg-error line numbers.
...
2008-11-11 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/ext/ext_pointer/1_neg.cc: Adjust dg-error line numbers.
From-SVN: r141767
2008-11-11 13:49:46 +00:00
Paolo Carlini
b5aaf3268c
erase.cc: Fix.
...
2008-11-11 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/23_containers/vector/ext_pointer/modifiers/erase.cc: Fix.
* testsuite/23_containers/vector/ext_pointer/modifiers/element.cc:
Likewise.
From-SVN: r141766
2008-11-11 13:18:39 +00:00
Bob Walters
1b32e4e506
forward_list.h: Support non-standard pointer types
...
2008-11-11 Bob Walters <bob.s.walters@gmail.com>
* include/bits/forward_list.h: Support non-standard pointer types
(_Fwd_list_node_base): Add _Alloc template parameter.
(_Fwd_list_node<>): Likewise.
(_Fwd_list_iterator<>): Likewise.
(_Fwd_list_const_iterator<>): Likewise.
(_Fwd_list_node_base::_M_next, _M_transfer_after, _M_reverse_after):
Use _Alloc<_Tp>::pointer.
(_Fwd_list_iterator<>::_M_node): Use _Node_base::_Pointer.
(_Fwd_list_base<>::_M_get_node, _M_create_node, _M_create_node,
_M_insert_after, _M_put_node, _M_erase_after): Likewise.
(_Fwd_list_const_iterator<>::_M_node): use _Node_base::_Const_pointer.
(forward_list<>): Use __static_pointer_cast in place of static_cast,
and __const_pointer_cast in place of const_cast.
* include/bits/forward_list.tcc
(_Fwd_list_node<>::_M_sort_after): Using _Pointer typedefs in place
of standard pointers, __static_pointer_cast in place of static_cast.
(_Fwd_list_base<>::_Fwd_list_base, _M_insert_after, _M_erase_after):
Likewise.
(forward_list<>::_M_initialize_dispatch, _M_fill_initialize,
splice_after, remove, remove_if, merge): Likewise.
* testsuite/23_containers/forward_list/ext_pointer/modifiers/1.cc: New.
* testsuite/23_containers/forward_list/ext_pointer/modifiers/2.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/modifiers/3.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/modifiers/4.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/modifiers/5.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/operations/1.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/operations/2.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/operations/3.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/operations/4.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/operations/5.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/operations/6.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/operations/7.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/requirements/1.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/requirements/
explicit_instantiation/1.cc: Likewise.
* testsuite/23_containers/forward_list/ext_pointer/requirements/
explicit_instantiation/3.cc: Likewise.
* testsuite/23_containers/forward_list/ext_pointer/1.cc: Likewise.
From-SVN: r141765
2008-11-11 12:16:57 +00:00
Paolo Carlini
8d8a4e9d3d
extptr_allocator.h: Minor tweaks.
...
2008-11-11 Paolo Carlini <paolo.carlini@oracle.com>
* include/ext/extptr_allocator.h: Minor tweaks.
* include/ext/pointer.h: Likewise.
* include/ext/cast.h: Likewise.
From-SVN: r141764
2008-11-11 12:15:59 +00:00