platform/upstream/gcc.git
17 years ago20070507-1.c: Disable for non-pic targets.
Andreas Krebbel [Thu, 10 May 2007 07:53:37 +0000 (07:53 +0000)]
20070507-1.c: Disable for non-pic targets.

2007-05-10  Andreas Krebbel  <krebbel1@de.ibm.com>

* gcc.dg/20070507-1.c: Disable for non-pic targets.

From-SVN: r124593

17 years agore PR libfortran/31880 ([4.2 only] silent data corruption in gfortran read statement)
Jerry DeLisle [Thu, 10 May 2007 03:22:40 +0000 (03:22 +0000)]
re PR libfortran/31880 ([4.2 only] silent data corruption in gfortran read statement)

2007-05-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/31880
* gfortran.dg/unf_read_corrupted_2.f90: Fix test.

From-SVN: r124591

17 years agore PR libfortran/31880 ([4.2 only] silent data corruption in gfortran read statement)
Jerry DeLisle [Thu, 10 May 2007 01:09:57 +0000 (01:09 +0000)]
re PR libfortran/31880 ([4.2 only] silent data corruption in gfortran read statement)

2007-05-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/31880
* gfortran.dg/unf_read_corrupted_2.f90: New test.

From-SVN: r124590

17 years ago* g++.dg/parse/attr-externally-visible-1.C: Likewise.
Mike Stump [Thu, 10 May 2007 01:02:55 +0000 (01:02 +0000)]
* g++.dg/parse/attr-externally-visible-1.C: Likewise.

From-SVN: r124589

17 years agore PR libfortran/31880 ([4.2 only] silent data corruption in gfortran read statement)
Jerry DeLisle [Thu, 10 May 2007 01:01:27 +0000 (01:01 +0000)]
re PR libfortran/31880 ([4.2 only] silent data corruption in gfortran read statement)

2007-05-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/31880
* io/unix.c (fd_alloc_r_at): Fix calculation of physical offset.

From-SVN: r124588

17 years agoDaily bump.
GCC Administrator [Thu, 10 May 2007 00:18:09 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r124586

17 years agoFix whitespacing
Mike Stump [Wed, 9 May 2007 21:57:09 +0000 (21:57 +0000)]
Fix whitespacing

From-SVN: r124583

17 years ago* g++.dg/other/first-global.C: Add -fpie for darwin.
Mike Stump [Wed, 9 May 2007 19:37:38 +0000 (19:37 +0000)]
* g++.dg/other/first-global.C: Add -fpie for darwin.

From-SVN: r124580

17 years ago* config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.
Bob Wilson [Wed, 9 May 2007 19:13:59 +0000 (19:13 +0000)]
* config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.

From-SVN: r124579

17 years agoxtensa.c (xtensa_output_literal): Mask out high bits for floating-point values if...
Bob Wilson [Wed, 9 May 2007 17:05:14 +0000 (17:05 +0000)]
xtensa.c (xtensa_output_literal): Mask out high bits for floating-point values if HOST_BITS_PER_LONG > 32.

* config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits
for floating-point values if HOST_BITS_PER_LONG > 32.  Use split_double
instead of operand_subword.

From-SVN: r124578

17 years agobfin.h (LOCAL_ALIGNMENT): Define.
Bernd Schmidt [Wed, 9 May 2007 11:57:49 +0000 (11:57 +0000)]
bfin.h (LOCAL_ALIGNMENT): Define.

* config/bfin/bfin.h (LOCAL_ALIGNMENT): Define.
* config/bfin/bfin.c (bfin_local_alignment): New function.
* config/bfin/bfin-protos.h (bfin_local_alignment): Declare it.

From-SVN: r124570

17 years ago20070507-1.c: New testcase.
Andreas Krebbel [Wed, 9 May 2007 07:40:52 +0000 (07:40 +0000)]
20070507-1.c: New testcase.

2007-05-09  Andreas Krebbel  <krebbel1@de.ibm.com>

* gcc.dg/20070507-1.c: New testcase.

From-SVN: r124567

17 years agoRemove conflict marker
Mark Mitchell [Wed, 9 May 2007 05:31:15 +0000 (05:31 +0000)]
Remove conflict marker

From-SVN: r124566

17 years agocxxabi.h (_GLIBCXX_NOTHROW): New macro.
Mark Mitchell [Wed, 9 May 2007 05:21:36 +0000 (05:21 +0000)]
cxxabi.h (_GLIBCXX_NOTHROW): New macro.

* libstdc++-v3/libsupc++/cxxabi.h (_GLIBCXX_NOTHROW): New macro.
(__cxa_atexit): Use it.

* testsuite/lib/libstdc++.exp (v3_target_compile_as_c): For
installed-tree testing, search more include directories.

From-SVN: r124565

17 years agotypeck.c (build_unary_op): Remove code that used to handle non lvalue increments...
Andrew Pinski [Wed, 9 May 2007 00:46:11 +0000 (00:46 +0000)]
typeck.c (build_unary_op): Remove code that used to handle non lvalue increments/decrements.

2007-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        * typeck.c (build_unary_op): Remove code that used to
        handle non lvalue increments/decrements.

From-SVN: r124564

17 years agoDaily bump.
GCC Administrator [Wed, 9 May 2007 00:17:15 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r124562

17 years ago* gcc.target/mips/msub-1.c, gcc.target/mips/msub-2.c,
Chao-ying Fu [Tue, 8 May 2007 22:53:25 +0000 (22:53 +0000)]
* gcc.target/mips/msub-1.c, gcc.target/mips/msub-2.c,

* gcc.target/mips/msub-3.c, gcc.target/mips/msub-4.c,
* gcc.target/mips/msubu-1.c, gcc.target/mips/msubu-2.c,
* gcc.target/mips/msubu-3.c, gcc.target/mips/msubu-4.c: New tests.

From-SVN: r124559

17 years agomd.texi (msub@var{m}@var{n}4, [...]): Document.
Chao-ying Fu [Tue, 8 May 2007 22:51:14 +0000 (22:51 +0000)]
md.texi (msub@var{m}@var{n}4, [...]): Document.

* doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
* optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes.
(smsub_widen_optab, umsub_widen_optab): Define.
* optabs.c (init_optabs): Initialize smsub_widen_optab and
umsub_widen_optab.
* genopinit.c (optabs): Fill in smsub_widen_optab and
umsub_widen_optab.
* expr.c (expand_expr_real_1): Try to use smsub_widen_optab
and umsub_widen_optab to implement multiply-subtract sequences.
* config/mips/mips.md (*msac<u>_di): Rename to...
(<u>msubsidi4): ...this.  Extend condition to include
GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
of operand 0 to "ka" and use the three-operand form of msub<u>
for TARGET_DSPR2.
* config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert
to define_expands.

From-SVN: r124558

17 years agore PR rtl-optimization/28011 ([SH] g++ generates wrong code, if '-fno-exceptions...
Kaz Kojima [Tue, 8 May 2007 22:22:49 +0000 (22:22 +0000)]
re PR rtl-optimization/28011 ([SH] g++ generates wrong code, if '-fno-exceptions' and '-O' options are specified)

PR rtl-optimization/28011
* reload.c (push_reload): Set dont_share if IN appears in OUT
also when IN is a PLUS rtx.
(reg_overlap_mentioned_for_reload_p): Return true if X and IN
are same PLUS rtx.

From-SVN: r124557

17 years agoemit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL.
Kazu Hirata [Tue, 8 May 2007 21:26:29 +0000 (21:26 +0000)]
emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL.

* emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL.  Don't
call unshare_all_decls.
(unshare_all_rtl): Adjust the call to unshare_all_rtl_1.
(unshare_all_decls): Remove.

From-SVN: r124556

17 years agore PR tree-optimization/31847 (Printing to dump file broken)
Simon Martin [Tue, 8 May 2007 15:33:56 +0000 (15:33 +0000)]
re PR tree-optimization/31847 (Printing to dump file broken)

2007-05-08  Simon Martin  <simartin@users.sourceforge.net>

PR 31847
* tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
dumps.

From-SVN: r124551

17 years agore PR fortran/31630 (ICE on nasty derived types code)
Paul Thomas [Tue, 8 May 2007 14:40:58 +0000 (14:40 +0000)]
re PR fortran/31630 (ICE on nasty derived types code)

2007-05-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31630
* resolve.c (resolve_symbol): Remove the flagging mechanism from the
formal namespace resolution and instead check that the formal
namespace is not the current namespace.

From-SVN: r124550

17 years agore PR fortran/31692 (Wrong code when passing function name as result to procedures)
Paul Thomas [Tue, 8 May 2007 12:45:31 +0000 (12:45 +0000)]
re PR fortran/31692 (Wrong code when passing function name as result to procedures)

2007-05-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31692
* trans-array.c (gfc_conv_array_parameter): Convert full array
references to the result of the procedure enclusing the call.

2007-05-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31692
* gfortran.dg/actual_array_result_1.f90: New test.

From-SVN: r124546

17 years agomips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
Sandra Loosemore [Tue, 8 May 2007 12:44:21 +0000 (08:44 -0400)]
mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.

2007-05-08  Sandra Loosemore  <sandra@codesourcery.com>
            Nigel Stephens  <nigel@mips.com>

gcc/
* config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
Update comments and all uses.
(MIN_FPRS_PER_FMT): Define.
* config/mips/mips.c (function_arg): Fix to correctly handle
the -mips32r2 -mfp64 -mabi=32 case.
(override_options): Enable use of odd-numbered registers for
SFmode values on MIPS32.
(mips_save_reg_p): Save whole floating-point register pair if
either half is used.
(compute_frame_size): Fix comment.

Co-Authored-By: Nigel Stephens <nigel@mips.com>
From-SVN: r124545

17 years agobfin-protos.h (enum bfin_cpu): Add BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
Jie Zhang [Tue, 8 May 2007 12:33:23 +0000 (12:33 +0000)]
bfin-protos.h (enum bfin_cpu): Add BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.

* config/bfin/bfin-protos.h (enum bfin_cpu): Add
BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
* config/bfin/bfin.c (bfin_handle_option): Handle
-mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
* config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
Support bf534, bf536 and bf561.
* doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.

From-SVN: r124544

17 years agotype_traits (make_signed): Remove specializations for floating point types.
Benjamin Kosnik [Tue, 8 May 2007 12:10:48 +0000 (12:10 +0000)]
type_traits (make_signed): Remove specializations for floating point types.

2007-05-08  Benjamin Kosnik  <bkoz@redhat.com>

* include/std/type_traits (make_signed): Remove specializations
for floating point types.
(make_unsigned): Same.
* testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Fix.
* testsuite/20_util/make_signed/requirements/typedefs-1.cc: Same.
* testsuite/20_util/make_signed/requirements/typedefs-2.cc: Same.
* testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Same.
* testsuite/20_util/make_unsigned/requirements/typedefs-1.cc: Same.
* testsuite/20_util/make_unsigned/requirements/typedefs-2.cc: Same.

From-SVN: r124543

17 years agobfin-protos.h (bfin_expand_epilogue): Add a third argument of type bool.
Jie Zhang [Tue, 8 May 2007 11:59:08 +0000 (11:59 +0000)]
bfin-protos.h (bfin_expand_epilogue): Add a third argument of type bool.

* config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
argument of type bool.
* config/bfin/bfin.c (add_to_reg): Add epilogue_p as a fourth
argument. Safely select temporary P register according to it.
(do_link): Change call site of add_to_reg accordingly.
(do_unlink): Add epilogue_p as a fourth argument and pass it
to add_to_reg.
(expand_interrupt_handler_epilogue): Change call of do_unlink
accordingly.
(bfin_expand_prologue): Add a third argument sibcall_p.
* config/bfin/bfin.md (epilogue): Change call of
bfin_expand_epilogue accordingly.
(sibcall_epilogue): Likewise.
(eh_return_internal): Likewise.

From-SVN: r124542

17 years agore PR fortran/29397 (Constant logical expression with parameter array)
Paul Thomas [Tue, 8 May 2007 11:58:25 +0000 (11:58 +0000)]
re PR fortran/29397 (Constant logical expression with parameter array)

2007-05-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/29397
PR fortran/29400
* decl.c (add_init_expr_to_sym): Expand a scalar initializer
for a parameter array into an array expression with the right
shape.
* array.c (spec_dimen_size): Remove static attribute.
* gfortran.h : Prototype for spec_dimen_size.

2007-05-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/29397
* gfortran.dg/parameter_array_init_1.f90: New test.

PR fortran/29400
* gfortran.dg/parameter_array_init_2.f90: New test.

From-SVN: r124541

17 years agotypes_std_c++0x_neg.cc: New.
Benjamin Kosnik [Tue, 8 May 2007 10:44:37 +0000 (10:44 +0000)]
types_std_c++0x_neg.cc: New.

2007-05-08  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/26_numerics/headers/cmath/types_std_c++0x_neg.cc: New.

From-SVN: r124540

17 years agocxxabi-internal.h: Remove, to be replaced by...
Jason Merrill [Tue, 8 May 2007 06:50:32 +0000 (02:50 -0400)]
cxxabi-internal.h: Remove, to be replaced by...

        * libsupc++/cxxabi-internal.h: Remove, to be replaced by...
        * libsupc++/cxxabi-forced.h: ...this new file.
        * include/ext/vstring.tcc: Include cxxabi-forced.h instead.
        * include/bits/istream.tcc: Likewise.
        * include/bits/ostream.tcc: Likewise.
        * include/bits/basic_string.tcc: Likewise.
        * include/bits/ostream_insert.h: Likewise.
        * include/bits/fstream.tcc: Likewise.
        * include/std/bitset: Likewise.
        * libsupc++/cxxabi.h: Restore previous contents.
        * Makefile.am (headers): Add cxxabi-forced.h.
        * Makefile.in: Regenerate.

From-SVN: r124539

17 years agore PR target/31854 (internal compiler error: in cgraph_local_info, at cgraph.c:618)
Uros Bizjak [Tue, 8 May 2007 06:48:15 +0000 (08:48 +0200)]
re PR target/31854 (internal compiler error: in cgraph_local_info, at cgraph.c:618)

PR target/31854
* config/i386/i386.c (ix86_function_regparm): Process local
functions only when TREE_CODE (decl) equals FUNCTION_DECL.

From-SVN: r124538

17 years agotestsuite_abi.cc: Add CXXABI_1.3.2.
Benjamin Kosnik [Tue, 8 May 2007 06:04:52 +0000 (06:04 +0000)]
testsuite_abi.cc: Add CXXABI_1.3.2.

2007-05-08  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/util/testsuite_abi.cc: Add CXXABI_1.3.2.

* libsupc++/cxxabi-internal.h (__foreign_exception::__pure): To
__pure_virtual.

From-SVN: r124537

17 years agoinclude cstring as well
Jason Merrill [Tue, 8 May 2007 05:09:44 +0000 (01:09 -0400)]
include cstring as well

From-SVN: r124536

17 years ago* gcc.dg/pch/pch.exp: XFAIL largefile on Solaris 10 x86.
Janis Johnson [Tue, 8 May 2007 03:16:25 +0000 (03:16 +0000)]
* gcc.dg/pch/pch.exp: XFAIL largefile on Solaris 10 x86.

From-SVN: r124535

17 years agoinvoke.texi (Warning Options): Document that -Wempty-body also checks for and while...
Mike Stump [Tue, 8 May 2007 01:31:24 +0000 (01:31 +0000)]
invoke.texi (Warning Options): Document that -Wempty-body also checks for and while statements in C++.

* doc/invoke.texi (Warning Options): Document that -Wempty-body
also checks for and while statements in C++.

cp:
* parser.c (check_empty_body): Add.
(cp_parser_iteration_statement): Add call to check_empty_body.

testsuite:
* g++.old-deja/g++.mike/empty.C: Add.

From-SVN: r124534

17 years agoinvalid-call-1.c: Fix options for 32-bit x86.
Eric Christopher [Tue, 8 May 2007 01:21:48 +0000 (01:21 +0000)]
invalid-call-1.c: Fix options for 32-bit x86.

2007-05-07  Eric Christopher  <echristo@apple.com>

        * gcc.dg/invalid-call-1.c: Fix options for 32-bit x86.

From-SVN: r124533

17 years agolibiberty.h (writeargv): Declare.
Nathan Froyd [Tue, 8 May 2007 00:37:39 +0000 (00:37 +0000)]
libiberty.h (writeargv): Declare.

include/
2007-05-07  Nathan Froyd  <froydnj@codesourcery.com>

* libiberty.h (writeargv): Declare.

libiberty/
2007-05-07  Nathan Froyd  <froydnj@codesourcery.com>

* argv.c (writeargv): New function.

gcc/
2007-05-07  Nathan Froyd  <froydnj@codesourcery.com>

* gcc.c (at_file_supplied): New variable.
(main): Set it if we expanded argv.
(do_spec_1): Pass an @-file to the linker if we were called with
an @-file argument and HAVE_GNU_LD.
* collect2.c (at_file_supplied): New variable.
(response_file): New variable.
(collect_exit): Unlink response_file if necessary.
(handler): Likewise.
(do_wait): Likewise.
(main): Set at_file_supplied if we expanded argv.
(collect_execute): Pass an @-file to subprocesses if we were called
with an @-file argument.
* configure.ac: Add define for HAVE_GNU_LD.
* configure: Regenerate.
* config.in: Regenerate.

From-SVN: r124532

17 years agore PR java/31842 (r124338 causes java Divide_1 and pr6388 to fail)
Ian Lance Taylor [Tue, 8 May 2007 00:29:43 +0000 (00:29 +0000)]
re PR java/31842 (r124338 causes java Divide_1 and pr6388 to fail)

PR java/31842
* java/lang/natString.cc (_Jv_FormatInt): Avoid undefined signed
overflow.

From-SVN: r124530

17 years agoDaily bump.
GCC Administrator [Tue, 8 May 2007 00:17:39 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r124527

17 years agomuldiv.md (mulhisi3_c): Limit the mode of the 2nd operand to HI mode.
Naveen.H.S [Mon, 7 May 2007 23:46:02 +0000 (23:46 +0000)]
muldiv.md (mulhisi3_c): Limit the mode of the 2nd operand to HI mode.

* config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
operand to HI mode.
(mulsi3): New.
(divsi3): New.
(udivsi3): New.

From-SVN: r124524

17 years agom32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
Jayant Sonar [Mon, 7 May 2007 23:13:15 +0000 (23:13 +0000)]
m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.

* config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
(TARGET_ENCODE_SECTION_INFO): Re-define.
(m32c_encode_section_info): New
(function_vector_handler): New
(current_function_special_page_vector): New
(m32c_special_page_vector_p): New.
* config/m32c/m32c-protos.h (m32c_special_page_vector_p):
Prototype.
* config/m32c/jump.md: Added instruction JSRS for functions
with attribute "function_vector".
* doc/extend.texi (function_vector): Added description
for M16C, M32C targets.

From-SVN: r124523

17 years ago* include/bits/ostream.tcc (operator<<(char*)): Add __s.
Jason Merrill [Mon, 7 May 2007 22:44:54 +0000 (18:44 -0400)]
* include/bits/ostream.tcc (operator<<(char*)): Add __s.

From-SVN: r124522

17 years agore PR target/31794 (Problem while compiling gcc for m32c-elf)
DJ Delorie [Mon, 7 May 2007 22:14:05 +0000 (18:14 -0400)]
re PR target/31794 (Problem while compiling gcc for m32c-elf)

PR 31794
* config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
ashrpsi3, lshrpsi3): Update shift count constraint.

From-SVN: r124521

17 years agognu.ver: Fix symbol versions.
Jason Merrill [Mon, 7 May 2007 21:49:50 +0000 (17:49 -0400)]
gnu.ver: Fix symbol versions.

        * config/abi/pre/gnu.ver: Fix symbol versions.
        * config/abi/pre/gnu-versioned-namespace.ver: Likewise.

From-SVN: r124520

17 years ago* config/os/mingw32/os_defines.h (NOMINMAX): Update comment.
Danny Smith [Mon, 7 May 2007 21:38:16 +0000 (21:38 +0000)]
* config/os/mingw32/os_defines.h (NOMINMAX): Update comment.

From-SVN: r124519

17 years agore PR other/28145 (C++ (throw() and catch(...) {/* fall through */ } ) and pthread...
Jason Merrill [Mon, 7 May 2007 21:27:54 +0000 (17:27 -0400)]
re PR other/28145 (C++ (throw() and catch(...) {/*  fall through */ } ) and pthread cancellation are incompatible (at least with NPTL))

        PR c++/28145
        * libsupc++/cxxabi.h (__forced_unwind, __foreign_exception):
        New classes.
        * libsupc++/eh_exception.cc: Define their destructors.
        * config/abi/pre/gnu.ver: Export their type_infos.
        * config/abi/pre/gnu-versioned-namespace.ver: Likewise.
        * libsupc++/eh_personality.cc: A handler for abi::__forced_unwind
        matches a forced unwind, and a handler for abi::__foreign_exception
        matches a foreign exception.

        * include/bits/istream.tcc: Rethrow forced unwind.
        * include/bits/ostream.tcc: Likewise.
        * include/bits/ostream_insert.h: Likewise.
        * include/bits/basic_string.tcc (operator>>, getline): Likewise.
        * include/bits/fstream.tcc (basic_filebuf::close): Likewise.
        * include/ext/vstring.cc (operator>>, getline): Likewise.
        * src/istream.cc: Likewise.
        * src/compatibility.cc (basic_istream::ignore): Likewise.
        * include/std/bitset (operator>>): Likewise.
        * include/std/fstream (basic_filebuf::close): Remove throw() spec.
        * libsupc++/cxxabi-internal.h: Split out from...
        * libsupc++/cxxabi.h: ...here.

From-SVN: r124517

17 years agoJdwp.class: Regenerate.
Keith Seitz [Mon, 7 May 2007 20:48:01 +0000 (20:48 +0000)]
Jdwp.class: Regenerate.

        * classpath/lib/gnu/classpath/jdwp/Jdwp.class: Regenerate.
        * classpath/lib/gnu/classpath/jdwp/Jdwp$1.class: Regenerate.
        * classpath/lib/gnu/classpath/jdwp/event/Event.class:
        Regenerate.
        * classpath/lib/gnu/classpath/jdwp/transport/JdwpConnection.class:
        Regenerate.
        * gnu/classpath/jdwp/Jdwp.h: Regenerate.
        * gnu/classpath/jdwp/event/Event.h: Regenerate.
        * gnu/classpath/jdwp/transport/JdwpConnection.h: Regenerate.

From-SVN: r124515

17 years agoJdwp.java (notify): Rewrite to call new array-based method.
Keith Seitz [Mon, 7 May 2007 20:45:21 +0000 (20:45 +0000)]
Jdwp.java (notify): Rewrite to call new array-based method.

        * gnu/classpath/jdwp/Jdwp.java (notify): Rewrite to call
        new array-based method.
        (notify): New function.
        (sendEvent): Rewrite to use sendEvents.
        (sendEvents): New method.
        * gnu/classpath/jdwp/event/Event.java (toPacket): Make static.
        Change parameters to use arrays for events and requests.
        Add suspendPolicy parameter.
        Move per-event data transformation to...
        (_toData): ... here.
        * gnu/classpath/jdwp/transport/JdwpConnection.java
        (sendEvent): Renamed to ...
        (sendEvents): ... this.
        Change parameters to use arrays for events and requests.
        Add suspendPolicy parameter.

From-SVN: r124514

17 years ago2007-05-07 Paolo Carlini <pcarlini@suse.de>
Paolo Carlini [Mon, 7 May 2007 20:38:14 +0000 (20:38 +0000)]
2007-05-07  Paolo Carlini  <pcarlini@suse.de>

* Remove spurious space in last ChangeLog entry.

From-SVN: r124513

17 years agostl_algobase.h: Do not include <cstring>.
Paolo Carlini [Mon, 7 May 2007 20:37:15 +0000 (20:37 +0000)]
stl_algobase.h: Do not include <cstring>.

2007-05-07  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_algobase.h: Do not include <cstring>.
(copy(const _Tp*, const _Tp*, _Tp*), __copy_b(const _Tp*, const _Tp*,
_Tp*)): Use __builtin_memmove.
(__fill_aux): Use __builtin_memset.
(equal(const _Tp*, const _Tp*, const _Tp*),
lexicographical_compare(const unsigned char*, const unsigned char*,
const unsigned char*, const unsigned char*)): Use __builtin_memcmp.
*  include/bits/valarray_array.h: Do not include <cstring>.
(_Array_default_ctor<, true>::_S_do_it): Use __builtin_memset.
(_Array_copy_ctor<, true>::_S_do_it, _Array_copier<, true>::_S_do_it):
Use __builtin_memcpy.
* include/ext/algorithm
(__lexicographical_compare_3way(const unsigned char*,
const unsigned char*, const unsigned char*, const unsigned char*)):
Use __builtin_memcmp.
* testsuite/23_containers/vector/requirements/dr438/
constructor_1_neg.cc: Adjust dg-error line number.
* testsuite/23_containers/vector/requirements/dr438/
constructor_2_neg.cc: Likewise.

From-SVN: r124512

17 years agostl_algobase.h: Do not include <cstring>.
Paolo Carlini [Mon, 7 May 2007 20:36:40 +0000 (20:36 +0000)]
stl_algobase.h: Do not include <cstring>.

2007-05-07  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_algobase.h: Do not include <cstring>.
(copy(const _Tp*, const _Tp*, _Tp*), __copy_b(const _Tp*, const _Tp*,
_Tp*)): Use __builtin_memmove.
(__fill_aux): Use __builtin_memset.
(equal(const _Tp*, const _Tp*, const _Tp*),
lexicographical_compare(const unsigned char*, const unsigned char*,
const unsigned char*, const unsigned char*)): Use __builtin_memcmp.
*  include/bits/valarray_array.h: Do not include <cstring>.
(_Array_default_ctor<, true>::_S_do_it): Use __builtin_memset.
(_Array_copy_ctor<, true>::_S_do_it, _Array_copier<, true>::_S_do_it):
Use __builtin_memcpy.
* include/ext/algorithm
(__lexicographical_compare_3way(const unsigned char*,
const unsigned char*, const unsigned char*, const unsigned char*)):
Use __builtin_memcmp.
* testsuite/23_containers/vector/requirements/dr438/
constructor_1_neg.cc: Adjust dg-error line number.
* testsuite/23_containers/vector/requirements/dr438/
constructor_2_neg.cc: Likewise.

From-SVN: r124511

17 years agore PR libfortran/31607 (CALL SYSTEM produces garbled output when writing to a buffere...
Francois-Xavier Coudert [Mon, 7 May 2007 19:48:40 +0000 (19:48 +0000)]
re PR libfortran/31607 (CALL SYSTEM produces garbled output when writing to a buffered file)

PR libfortran/31607
* intrinsics/system.c (system_sub): Call flush_all_units.
* io/io.h (flush_all_units): Move prototype to libgfortran.h.
* libgfortran.h (flush_all_units): Add prototype.

From-SVN: r124510

17 years ago14220.cc: XFAIL on Solaris 2.10.
Mark Mitchell [Mon, 7 May 2007 18:39:18 +0000 (18:39 +0000)]
14220.cc: XFAIL on Solaris 2.10.

* testsuite/22_locale/num_put/put/char/14220.cc: XFAIL on Solaris
2.10.
* testsuite/22_locale/num_put/put/wchar_t/14220.cc: Likewise.

From-SVN: r124508

17 years agoconvert-bfp-fold.c: Remove extra assignment to sf variable.
Uros Bizjak [Mon, 7 May 2007 18:32:35 +0000 (20:32 +0200)]
convert-bfp-fold.c: Remove extra assignment to sf variable.

        * gcc.dg/dfp/convert-bfp-fold.c: Remove extra assignment to
        sf variable.  Rearrange conversions from binary float to decimal float.

From-SVN: r124507

17 years agogcsec-1.c: Don't link statically on Solaris 10 x86.
Mark Mitchell [Mon, 7 May 2007 18:28:41 +0000 (18:28 +0000)]
gcsec-1.c: Don't link statically on Solaris 10 x86.

* gcc.dg/special/gcsec-1.c: Don't link statically on Solaris 10
x86.

From-SVN: r124506

17 years agolibstdc++.exp (v3_target_compile_as_c): In installed-tree testing, use "remote_exec...
Mark Mitchell [Mon, 7 May 2007 18:03:47 +0000 (18:03 +0000)]
libstdc++.exp (v3_target_compile_as_c): In installed-tree testing, use "remote_exec host", not "remote_exec exec".

* testsuite/lib/libstdc++.exp (v3_target_compile_as_c): In
installed-tree testing, use "remote_exec host", not "remote_exec
exec".  Trip trailing newlines from output of -dumpversion and
-dumpmachine.

From-SVN: r124505

17 years agore PR c/22133 (In MinGW trailing slash forward not allowed in include path)
Danny Smith [Mon, 7 May 2007 17:41:35 +0000 (17:41 +0000)]
re PR c/22133 (In MinGW trailing slash forward not allowed in include path)

PR 22133
* c-incpath.c (add_path): Strip trailing path separators.

From-SVN: r124504

17 years agotype_traits: (make_signed, make_unsigned): Adjust for enum sizes.
Benjamin Kosnik [Mon, 7 May 2007 15:29:57 +0000 (15:29 +0000)]
type_traits: (make_signed, make_unsigned): Adjust for enum sizes.

2007-05-07  Benjamin Kosnik  <bkoz@redhat.com>
            Howard Hinnant  <hhinnant@apple.com>

* include/std/type_traits: (make_signed, make_unsigned): Adjust
for enum sizes.
* testsuite/20_util/make_unsigned/requirements/typedefs.cc: Move to...
* testsuite/20_util/make_unsigned/requirements/typedefs-1.cc: ...here.
* testsuite/20_util/make_unsigned/requirements/typedefs-2.cc: Add,
compile with -funsigned-char -fshort-enums.
* testsuite/20_util/make_signed/requirements/typedefs.cc: Move to...
* testsuite/20_util/make_signed/requirements/typedefs-1.cc: ...here.
* testsuite/20_util/make_signed/requirements/typedefs-2.cc: Add,
compile with -funsigned-char -fshort-enums.

* testsuite/20_util/headers/type_traits/types_std_c++0x_neg.cc:
Add a temporary xfail to this test for all platforms.

Co-Authored-By: Howard Hinnant <hhinnant@apple.com>
From-SVN: r124500

17 years agotree-ssa-dom.c (tree_ssa_dominator_optimize): Do not free dominance info after purgin...
Eric Botcazou [Mon, 7 May 2007 12:48:46 +0000 (12:48 +0000)]
tree-ssa-dom.c (tree_ssa_dominator_optimize): Do not free dominance info after purging EH edges.

* tree-ssa-dom.c (tree_ssa_dominator_optimize): Do not free dominance
info after purging EH edges.
(eliminate_degenerate_phis): Likewise.

From-SVN: r124499

17 years agotree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
Eric Botcazou [Mon, 7 May 2007 11:42:21 +0000 (11:42 +0000)]
tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.

* tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
Free dominance info before purging EH edges as well as after.
(eliminate_degenerate_phis): Likewise.
(propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.

From-SVN: r124498

17 years agogimplify.c (gimplify_expr): Do not crash when folding (void *)(int)&a + 4.
Jan Hubicka [Mon, 7 May 2007 10:36:09 +0000 (12:36 +0200)]
gimplify.c (gimplify_expr): Do not crash when folding (void *)(int)&a + 4.

* gimplify.c (gimplify_expr): Do not crash when folding
(void *)(int)&a + 4.

From-SVN: r124497

17 years agore PR fortran/31399 (Wrong code for do loop with large interation count)
Francois-Xavier Coudert [Mon, 7 May 2007 05:53:07 +0000 (05:53 +0000)]
re PR fortran/31399 (Wrong code for do loop with large interation count)

PR fortran/31399

* trans-stmt.c (gfc_trans_do): Handle large loop counts.

* gfortran.dg/do_3.F90: New test.

From-SVN: r124496

17 years agore PR driver/31694 (__GFORTRAN__ preprocessor macro)
Francois-Xavier Coudert [Mon, 7 May 2007 05:48:24 +0000 (05:48 +0000)]
re PR driver/31694 (__GFORTRAN__ preprocessor macro)

PR driver/31694
* c-opts.c (lang_fortran): Make it non static.
* c-common.h (lang_fortran): New prototype.
* c-cppbuiltin.c (c_cpp_builtins): Create a __GFORTRAN__ if the
-lang-fortran option was passed by the driver.

From-SVN: r124495

17 years agoFix a typo in 2007-05-03 entry from Ian Lance Taylor.
Ben Elliston [Mon, 7 May 2007 01:14:15 +0000 (11:14 +1000)]
Fix a typo in 2007-05-03 entry from Ian Lance Taylor.

From-SVN: r124489

17 years agoDaily bump.
GCC Administrator [Sun, 6 May 2007 23:17:39 +0000 (23:17 +0000)]
Daily bump.

From-SVN: r124485

17 years agore PR fortran/31764 (NEW_LINE with array argument)
Francois-Xavier Coudert [Sun, 6 May 2007 22:56:52 +0000 (22:56 +0000)]
re PR fortran/31764 (NEW_LINE with array argument)

PR fortran/31764

* simplify.c (gfc_simplify_new_line): NEW_LINE can be simplified
even for non constant arguments.

* gfortran.dg/new_line.f90: Add new checks.

From-SVN: r124482

17 years agore PR fortran/31201 (Too large unit number generates wrong code)
Jerry DeLisle [Sun, 6 May 2007 22:37:27 +0000 (22:37 +0000)]
re PR fortran/31201 (Too large unit number generates wrong code)

2007-05-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/31201
* gfortran.dg/large_unit_1.f90: New.
* gfortran.dg/large_unit_2.f90: New.
* gfortran.dg/iostat_4.f90: New
* gfortran.dg/bounds_check_fail_1.f90: Updated.

From-SVN: r124481

17 years agore PR fortran/31201 (Too large unit number generates wrong code)
Jerry DeLisle [Sun, 6 May 2007 22:32:33 +0000 (22:32 +0000)]
re PR fortran/31201 (Too large unit number generates wrong code)

2007-05-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
    Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

PR fortran/31201
* gfortran.h: Add runtime error codes from libgfortran.h. Define
MAX_UNIT_NUMBER.
* trans.c (gfc_trans_runtime_check): Update the format of runtime error
messages to match library runtime errors.  Use call to new library
function runtime_error_at().
* trans.h: Add prototype for new function gfc_trans_io_runtime_check.
Add declaration for library functions runtime_error_at and
generate_error.
* trans_io.c (gfc_trans_io_runtime_check): New function.
(set_parameter_value): Add error checking for UNIT numbers.
(set_parameter_ref): Initialize the users variable to zero.
(gfc_trans_open): Move setting of unit number to after setting of common
flags so that runtime error trapping can be detected.
(gfc_trans_close): Likewise. (build_filepos): Likewise.
(gfc_trans_inquire): Likewise. (build_dt): Likewise.
* trans-decl.c: Add declarations for runtime_error_at and
generate_error. (gfc_build_builtin_function_decls): Build function
declarations for runtime_error_at and generate_error.

Co-Authored-By: Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
From-SVN: r124480

17 years agore PR fortran/31201 (Too large unit number generates wrong code)
Jerry DeLisle [Sun, 6 May 2007 22:28:31 +0000 (22:28 +0000)]
re PR fortran/31201 (Too large unit number generates wrong code)

2007-05-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/31201
* runtime/error.c (runtime_error_at): New function.
(generate_error): Export this function.
* gfortran.map: Add _gfortran_generate_error and
_gfortran_runtime_error_at.
* libgfortran.h: Add comment to reference error codes in front end.
(library_start): Locate prototype with library_end macro and add
a new comment.  Add prototype for runtime_error_at. Export prototype for
generate_error.
* io/lock.c (library_start): Fix check for error condition.
* io/transfer.c (data_transfer_init): Add library check.

From-SVN: r124479

17 years agotimevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead of ASSERT_CHECKING.
Eric Botcazou [Sun, 6 May 2007 21:21:17 +0000 (21:21 +0000)]
timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead of ASSERT_CHECKING.

* timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
of ASSERT_CHECKING.  Tweak message.

From-SVN: r124478

17 years agocomplex: Add missing extern template declarations.
Paolo Carlini [Sun, 6 May 2007 18:51:10 +0000 (18:51 +0000)]
complex: Add missing extern template declarations.

2007-05-06  Paolo Carlini  <pcarlini@suse.de>

* include/std/complex: Add missing extern template declarations.
* testsuite/26_numerics/complex/complex_inserters_extractors.cc:
Move...
* testsuite/26_numerics/complex/inserters_extractors/char/1.cc:
... here.
* testsuite/26_numerics/complex/inserters_extractors/wchar_t/1.cc:
New.

From-SVN: r124477

17 years agore PR fortran/31540 ([Regression 4.2 only] character((constant expression)) for exter...
Paul Thomas [Sun, 6 May 2007 15:13:11 +0000 (15:13 +0000)]
re PR fortran/31540 ([Regression 4.2 only] character((constant expression)) for external function)

2007-05-06  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31540
* resolve.c (resolve_fl_procedure): Resolve constant character
lengths.

2007-05-06  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31540
* gfortran.dg/char_result_4.f90: New test.

From-SVN: r124476

17 years agore PR fortran/31540 ([Regression 4.2 only] character((constant expression)) for exter...
Paul Thomas [Sun, 6 May 2007 15:12:01 +0000 (15:12 +0000)]
re PR fortran/31540 ([Regression 4.2 only] character((constant expression)) for external function)

2007-05-06  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31540
* resolve.c (resolve_fl_procedure): Resolve constant character
lengths.

2007-05-06  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31540
* gfortran.dg/char_result_4.f90: New test.

From-SVN: r124475

17 years ago2007-05-06 Paolo Carlini <pcarlini@suse.de>
Paolo Carlini [Sun, 6 May 2007 11:54:39 +0000 (11:54 +0000)]
2007-05-06  Paolo Carlini  <pcarlini@suse.de>

* Fix PR number in last ChangeLog entry.

From-SVN: r124473

17 years agore PR libstdc++/31836 (FAIL: 27_io/basic_istream/extractors_arithmetic/char/12.cc...
Paolo Carlini [Sun, 6 May 2007 11:51:23 +0000 (11:51 +0000)]
re PR libstdc++/31836 (FAIL: 27_io/basic_istream/extractors_arithmetic/char/12.cc execution test)

2007-05-06  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/31836
* testsuite/17_intro/headers/c++200x/all.cc: Protect inclusion
of C99 headers.
* testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc:
Likewise.

From-SVN: r124472

17 years agoFix PR30957
Revital Eres [Sun, 6 May 2007 10:35:42 +0000 (10:35 +0000)]
Fix PR30957

From-SVN: r124471

17 years agoc_locale.cc: Don't use __builtin_huge_val* when __*_HAS_INFINITY__ is false.
Paolo Carlini [Sun, 6 May 2007 09:51:26 +0000 (09:51 +0000)]
c_locale.cc: Don't use __builtin_huge_val* when __*_HAS_INFINITY__ is false.

2007-05-06  Paolo Carlini  <pcarlini@suse.de>

* config/locale/generic/c_locale.cc: Don't use __builtin_huge_val*
when __*_HAS_INFINITY__ is false.

From-SVN: r124470

17 years agore PR fortran/31251 (Non-integer character length leads to segfault)
Jerry DeLisle [Sun, 6 May 2007 04:10:53 +0000 (04:10 +0000)]
re PR fortran/31251 (Non-integer character length leads to segfault)

2007-05-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/31251
* decl.c (match_char_spec): Add check for invalid character lengths.

2007-05-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/31251
* gfortran.dg/char_type_len_2.f90: New test.

From-SVN: r124469

17 years agopa.md: Split tgd_load, tld_load and tie_load into pic and non-pic versions.
Aurelien Jarno [Sun, 6 May 2007 02:42:36 +0000 (02:42 +0000)]
pa.md: Split tgd_load, tld_load and tie_load into pic and non-pic versions.

* config/pa/pa.md: Split tgd_load, tld_load and tie_load
into pic and non-pic versions. Mark r19 as used for
tgd_load_pic, tld_load_pic and tie_load_pic. Mark r27 as used
for tgd_load, tld_load and tie_load .
* config/pa/pa.c (legitimize_tls_address): Emit pic or non-pic
version of tgd_load, tld_load and tie_load depending on the
value of flag_pic.

From-SVN: r124468

17 years agoIndex: libiberty/ChangeLog
Geoffrey Keating [Sun, 6 May 2007 00:01:36 +0000 (00:01 +0000)]
Index: libiberty/ChangeLog
2007-05-04  Geoffrey Keating  <geoffk@apple.com>

* cp-demangle.c (d_name): Detect local-source-name.
(d_prefix): Likewise.
(d_unqualified_name): Implement local-source-name.

Index: gcc/cp/ChangeLog
2007-05-04  Geoffrey Keating  <geoffk@apple.com>

PR 31775
* mangle.c (write_mangled_name): Mangle static variable names.
(write_unqualified_name): Use local-source-name for
namespace-scope static variables.

Index: gcc/testsuite/ChangeLog
2007-05-04  Geoffrey Keating  <geoffk@apple.com>

PR 31775
* g++.dg/other/nested-extern.cc: New.
* g++.dg/other/nested-extern-1.C: New.
* g++.dg/other/nested-extern-2.C: New.

From-SVN: r124467

17 years agoDaily bump.
GCC Administrator [Sat, 5 May 2007 23:17:10 +0000 (23:17 +0000)]
Daily bump.

From-SVN: r124465

17 years agostl_raw_storage_iter.h (class raw_storage_iterator): Adjust template parameter name.
Paolo Carlini [Sat, 5 May 2007 01:15:46 +0000 (01:15 +0000)]
stl_raw_storage_iter.h (class raw_storage_iterator): Adjust template parameter name.

2007-05-04  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_raw_storage_iter.h (class raw_storage_iterator):
Adjust template parameter name.

From-SVN: r124459

17 years agocxxabi.h (__cxa_atexit): Conditionalize exception specification on #ifdef __cplusplus.
Mark Mitchell [Sat, 5 May 2007 00:39:45 +0000 (00:39 +0000)]
cxxabi.h (__cxa_atexit): Conditionalize exception specification on #ifdef __cplusplus.

* libsupc++/cxxabi.h (__cxa_atexit): Conditionalize exception
specification on #ifdef __cplusplus.

From-SVN: r124456

17 years agoDaily bump.
GCC Administrator [Fri, 4 May 2007 23:17:15 +0000 (23:17 +0000)]
Daily bump.

From-SVN: r124454

17 years agointrinsic.texi (CMPLX): Document result kind.
Brooks Moses [Fri, 4 May 2007 21:07:22 +0000 (21:07 +0000)]
intrinsic.texi (CMPLX): Document result kind.

* intrinsic.texi (CMPLX): Document result kind.
(COMPLEX): Add documentation.

From-SVN: r124448

17 years agonatVMVirtualMachine.cc (getClassMethod): Change to use JVMTI.
Kyle Galloway [Fri, 4 May 2007 19:48:33 +0000 (19:48 +0000)]
natVMVirtualMachine.cc (getClassMethod): Change to use JVMTI.

2007-05-04  Kyle Galloway  <kgallowa@redhat.com>

* gnu/classpath/jdwp/natVMVirtualMachine.cc (getClassMethod): Change
to use JVMTI.

From-SVN: r124447

17 years agore PR libfortran/31760 (missing elemental applicability)
Daniel Franke [Fri, 4 May 2007 19:24:43 +0000 (15:24 -0400)]
re PR libfortran/31760 (missing elemental applicability)

gcc/fortran:
2007-05-04  Daniel Franke  <franke.daniel@gmail.com>

        PR fortran/31760
        * intrinsic.c (add_functions): Replaced calls to gfc_check_g77_math1
        by gfc_check_fn_r to avoid checks for scalarity.
        * check.c (gfc_check_besn): Removed check for scalarity.
        (gfc_check_g77_math1): Removed.
        * intrinsic.h (gfc_check_g77_math1): Removed.

gcc/testsuite:
2007-05-04  Daniel Franke  <franke.daniel@gmail.com>

        PR fortran/31760
        * gfortran.dg/erf.f90: New test.
        * gfortran.dg/besxy.f90: New test.

[gcc/fortran/ChangeLog was already committed in r124441 by accident]

From-SVN: r124446

17 years agore PR libgomp/28482 (Cannot use libgomp in shared library)
Jakub Jelinek [Fri, 4 May 2007 19:21:18 +0000 (21:21 +0200)]
re PR libgomp/28482 (Cannot use libgomp in shared library)

PR libgomp/28482
* configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.

From-SVN: r124445

17 years agocrtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
Ulrich Drepper [Fri, 4 May 2007 19:20:28 +0000 (19:20 +0000)]
crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.

* crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
(__do_global_dtors_aux): Use more paranoid loop to run
destructors if HIDDEN_DTOR_LIST_END.
(__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r124444

17 years ago* config/linux/proc.c: New file.
Jakub Jelinek [Fri, 4 May 2007 19:19:10 +0000 (21:19 +0200)]
* config/linux/proc.c: New file.

From-SVN: r124443

17 years agovarasm.c (align_variable): Don't increase alignment for DECL_THREAD_LOCAL_P variables...
Jakub Jelinek [Fri, 4 May 2007 19:17:57 +0000 (21:17 +0200)]
varasm.c (align_variable): Don't increase alignment for DECL_THREAD_LOCAL_P variables above BITS_PER_WORD...

* varasm.c (align_variable): Don't increase alignment for
DECL_THREAD_LOCAL_P variables above BITS_PER_WORD through
DATA_ALIGNMENT or CONSTANT_ALIGNMENT.

From-SVN: r124442

17 years agoFix typo in PR numbers 22539 <> 22359.
Daniel Franke [Fri, 4 May 2007 18:21:48 +0000 (14:21 -0400)]
Fix typo in PR numbers 22539 <> 22359.

From-SVN: r124441

17 years agocheck.c (gfc_check_fseek_sub): Fixed typo.
Daniel Franke [Fri, 4 May 2007 18:08:42 +0000 (14:08 -0400)]
check.c (gfc_check_fseek_sub): Fixed typo.

2007-05-04  Daniel Franke  <franke.daniel@gmail.com>

* check.c (gfc_check_fseek_sub): Fixed typo.

From-SVN: r124440

17 years agobasic-block.h (cdi_direction): Assign values to all enumeration constants.
Josh Conner [Fri, 4 May 2007 18:08:06 +0000 (18:08 +0000)]
basic-block.h (cdi_direction): Assign values to all enumeration constants.

2007-05-04  Josh Conner  <jconner@apple.com>

* basic-block.h (cdi_direction): Assign values to all enumeration
constants.
(dom_computed): Remove.
(dom_info_state): New.
(set_dom_info_availability): New.
* tree-ssa-loop-im.c (determine_invariantness): Initialize
walk_data.dom_direction.
* cfghooks.c (delete_basic_block): Use dom_info_available_p()
instead of dom_computed[].
(split_edge): Likewise.
(create_basic_block): Likewise.
(merge_blocks): Likewise.
* ifcvt.c (find_if_header): Likewise.
* tree-cfgcleanup.c (cleanup_tree_cfg): Likewise.
* tree-ssa-dce.c (remove_dead_stmt): Likewise.
* tree-ssa.c (verify_ssa): Likewise.
* tree-cfg.c (tree_verify_flow_info): Likewise.
(remove_edge_and_dominated_blocks): Likewise.
* dominance.c (dom_computed): Make static.
(calc_dfs_tree_nonrec): Change third param to a bool.
(calc_dfs_tree): Change second param to a bool.
(calc_idioms): Change second param to a bool.  Use
dom_convert_dir_to_idx.
(init_dom_info): Validate dir before using.
(dom_convert_dir_to_idx): New.
(calculate_dominance_info): Use dom_convert_dir_to_idx.  New
variable 'reverse' used for calling calc_dfs_tree and calc_idoms.
(free_dominance_info): Use dom_convert_dir_to_idx.
(get_immediate_dominator): Likewise.
(set_immediate_dominator): Likewise.
(get_dominated_by): Likewise.
(redirect_immediate_dominators): Likewise.
(nearest_common_denominator): Likewise.
(dominated_by_p): Likewise.
(bb_dom_dfs_in): Likewise.
(bb_dom_dfs_out): Likewise.
(recount_dominator): Likewise.
(iterate_fix_dominators): Likewise.
(add_to_dominance_info): Likewise.
(delete_from_dominance_info): Likewise.
(first_dom_son): Likewise.
(next_dom_son): Likewise.
(dom_info_available_p): Likewise.
(dom_info_state): New.
(set_dom_info_availability): New.

From-SVN: r124439

17 years agostl_memory.h: Rename to stl_auto_ptr.h.
Paolo Carlini [Fri, 4 May 2007 18:07:10 +0000 (18:07 +0000)]
stl_memory.h: Rename to stl_auto_ptr.h.

2007-05-04  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_memory.h: Rename to stl_auto_ptr.h.
(__get_temporary_buffer, get_temporary_buffer,
return_temporary_buffer): Move...
* include/bits/stl_tempbuf.h: ... here.
* include/std/memory: Adjust includes.
* testsuite/20_util/auto_ptr/assign_neg.cc: Adjust dg-error line
numbers.
* include/Makefile.am: Adjust.
* include/Makefile.in: Regenerate.

* testsuite/util/testsuite_iterators.h: Do not include the entire
<iterator>.
* include/bits/stl_iterator_base_types.h: Adjust includes.
* testsuite/25_algorithms/unique_copy/2.cc: Include <functional>.

From-SVN: r124438

17 years agore PR target/22539 (Internal compiler error with maximum sized array)
Daniel Franke [Fri, 4 May 2007 18:02:18 +0000 (14:02 -0400)]
re PR target/22539 (Internal compiler error with maximum sized array)

gcc/fortran:
2007-05-04  Daniel Franke  <franke.daniel@gmail.com>

PR fortran/22539
* intrinsic.c (add_subroutines): Added FSEEK.
* intrinsic.h (gfc_resolve_fseek_sub, gfc_check_fseek_sub): New.
* iresolve.c (gfc_resolve_fseek_sub): New.
* check.c (gfc_check_fseek_sub): New.
* intrinsic.texi (FSEEK): Updated.

gcc/testsuite:
2007-05-01  Daniel Franke  <franke.daniel@gmail.com>

PR fortran/22539
* gfortran.dg/fseek.f90: New test.

libgfortran:
2007-05-04  Daniel Franke  <franke.daniel@gmail.com>

PR fortran/22539
* io/intrinsics.c (fseek_sub): New.
* io/unix.c (fd_fseek): Change logical and physical offsets only
if seek succeeds.
* gfortran.map (fseek_sub): New.

From-SVN: r124437

17 years agoatexit_arm.cc: New file.
Mark Mitchell [Fri, 4 May 2007 17:42:49 +0000 (17:42 +0000)]
atexit_arm.cc: New file.

* libsupc++/atexit_arm.cc: New file.
* libsupc++/vec.cc (__aeabi_atexit): Remove.
* libsupc++/cxxabi.h (__cxa_atexit): Add exception specification.
* libsupc++/Makefile.am: Add atexit_arm.cc.
* libsupc++/Makefile.in: Regenerated.

From-SVN: r124436

17 years ago* g++.old-deja/g++.pt/static11.C: Remove xtensa-*-elf* xfail.
Bob Wilson [Fri, 4 May 2007 16:26:28 +0000 (16:26 +0000)]
* g++.old-deja/g++.pt/static11.C: Remove xtensa-*-elf* xfail.

From-SVN: r124434

17 years agos390.md ("fix_trunc<mode>di2", [...]): Expander removed.
Andreas Krebbel [Fri, 4 May 2007 16:23:08 +0000 (16:23 +0000)]
s390.md ("fix_trunc<mode>di2", [...]): Expander removed.

2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>

* config/s390/s390.md ("fix_trunc<mode>di2", "fix_trunc<mode>si2"):
Expander removed.
("fix_trunc<DSF:mode><GPR:mode>2"): Expander added.

From-SVN: r124433

17 years agoxtensa.md (adddi3, [...]): Delete.
Bob Wilson [Fri, 4 May 2007 16:18:19 +0000 (16:18 +0000)]
xtensa.md (adddi3, [...]): Delete.

* config/xtensa/xtensa.md (adddi3, adddi_carry): Delete.
(subdi3, subdi_carry): Delete.

From-SVN: r124432