aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2007-05-08bfin-protos.h (enum bfin_cpu): Add BFIN_CPU_BF534, BFIN_CPU_BF536 and ↵Jie Zhang5-7/+54
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
2007-05-08type_traits (make_signed): Remove specializations for floating point types.Benjamin Kosnik8-61/+22
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
2007-05-08bfin-protos.h (bfin_expand_epilogue): Add a third argument of type bool.Jie Zhang4-18/+77
* 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
2007-05-08re PR fortran/29397 (Constant logical expression with parameter array)Paul Thomas7-2/+95
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
2007-05-08types_std_c++0x_neg.cc: New.Benjamin Kosnik2-0/+78
2007-05-08 Benjamin Kosnik <bkoz@redhat.com> * testsuite/26_numerics/headers/cmath/types_std_c++0x_neg.cc: New. From-SVN: r124540
2007-05-08cxxabi-internal.h: Remove, to be replaced by...Jason Merrill14-569/+570
* 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
2007-05-08re PR target/31854 (internal compiler error: in cgraph_local_info, at ↵Uros Bizjak4-3/+25
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
2007-05-08testsuite_abi.cc: Add CXXABI_1.3.2.Benjamin Kosnik3-1/+9
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
2007-05-08include cstring as wellJason Merrill1-0/+1
From-SVN: r124536
2007-05-08* gcc.dg/pch/pch.exp: XFAIL largefile on Solaris 10 x86.Janis Johnson2-0/+5
From-SVN: r124535
2007-05-08invoke.texi (Warning Options): Document that -Wempty-body also checks for ↵Mike Stump6-2/+95
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
2007-05-08invalid-call-1.c: Fix options for 32-bit x86.Eric Christopher2-7/+11
2007-05-07 Eric Christopher <echristo@apple.com> * gcc.dg/invalid-call-1.c: Fix options for 32-bit x86. From-SVN: r124533
2007-05-08libiberty.h (writeargv): Declare.Nathan Froyd10-7/+238
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
2007-05-08re PR java/31842 (r124338 causes java Divide_1 and pr6388 to fail)Ian Lance Taylor2-4/+10
PR java/31842 * java/lang/natString.cc (_Jv_FormatInt): Avoid undefined signed overflow. From-SVN: r124530
2007-05-08Daily bump.GCC Administrator1-1/+1
From-SVN: r124527
2007-05-07muldiv.md (mulhisi3_c): Limit the mode of the 2nd operand to HI mode.Naveen.H.S2-2/+37
* 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
2007-05-07m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.Jayant Sonar5-3/+193
* 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
2007-05-07* include/bits/ostream.tcc (operator<<(char*)): Add __s.Jason Merrill2-4/+6
From-SVN: r124522
2007-05-07re PR target/31794 (Problem while compiling gcc for m32c-elf)DJ Delorie2-5/+11
PR 31794 * config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3, ashrpsi3, lshrpsi3): Update shift count constraint. From-SVN: r124521
2007-05-07gnu.ver: Fix symbol versions.Jason Merrill3-4/+21
* config/abi/pre/gnu.ver: Fix symbol versions. * config/abi/pre/gnu-versioned-namespace.ver: Likewise. From-SVN: r124520
2007-05-07* config/os/mingw32/os_defines.h (NOMINMAX): Update comment.Danny Smith2-1/+5
From-SVN: r124519
2007-05-07re PR other/28145 (C++ (throw() and catch(...) {/* fall through */ } ) and ↵Jason Merrill25-547/+940
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
2007-05-07Jdwp.class: Regenerate.Keith Seitz8-2/+23
* 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
2007-05-07Jdwp.java (notify): Rewrite to call new array-based method.Keith Seitz4-22/+132
* 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
2007-05-072007-05-07 Paolo Carlini <pcarlini@suse.de>Paolo Carlini1-1/+1
* Remove spurious space in last ChangeLog entry. From-SVN: r124513
2007-05-07stl_algobase.h: Do not include <cstring>.Paolo Carlini1-6/+6
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
2007-05-07stl_algobase.h: Do not include <cstring>.Paolo Carlini5-14/+40
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
2007-05-07re PR libfortran/31607 (CALL SYSTEM produces garbled output when writing to ↵Francois-Xavier Coudert4-3/+15
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
2007-05-0714220.cc: XFAIL on Solaris 2.10.Mark Mitchell3-0/+16
* 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
2007-05-07convert-bfp-fold.c: Remove extra assignment to sf variable.Uros Bizjak2-16/+20
* gcc.dg/dfp/convert-bfp-fold.c: Remove extra assignment to sf variable. Rearrange conversions from binary float to decimal float. From-SVN: r124507
2007-05-07gcsec-1.c: Don't link statically on Solaris 10 x86.Mark Mitchell2-1/+7
* gcc.dg/special/gcsec-1.c: Don't link statically on Solaris 10 x86. From-SVN: r124506
2007-05-07libstdc++.exp (v3_target_compile_as_c): In installed-tree testing, use ↵Mark Mitchell2-3/+11
"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
2007-05-07re PR c/22133 (In MinGW trailing slash forward not allowed in include path)Danny Smith2-7/+18
PR 22133 * c-incpath.c (add_path): Strip trailing path separators. From-SVN: r124504
2007-05-07type_traits: (make_signed, make_unsigned): Adjust for enum sizes.Benjamin Kosnik7-16/+169
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
2007-05-07tree-ssa-dom.c (tree_ssa_dominator_optimize): Do not free dominance info ↵Eric Botcazou2-5/+3
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
2007-05-07tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.Eric Botcazou5-9/+68
* 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
2007-05-07gimplify.c (gimplify_expr): Do not crash when folding (void *)(int)&a + 4.Jan Hubicka2-0/+7
* gimplify.c (gimplify_expr): Do not crash when folding (void *)(int)&a + 4. From-SVN: r124497
2007-05-07re PR fortran/31399 (Wrong code for do loop with large interation count)Francois-Xavier Coudert4-34/+175
PR fortran/31399 * trans-stmt.c (gfc_trans_do): Handle large loop counts. * gfortran.dg/do_3.F90: New test. From-SVN: r124496
2007-05-07re PR driver/31694 (__GFORTRAN__ preprocessor macro)Francois-Xavier Coudert4-1/+14
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
2007-05-07Fix a typo in 2007-05-03 entry from Ian Lance Taylor.Ben Elliston1-1/+1
From-SVN: r124489
2007-05-06Daily bump.GCC Administrator1-1/+1
From-SVN: r124485
2007-05-06re PR fortran/31764 (NEW_LINE with array argument)Francois-Xavier Coudert4-7/+26
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
2007-05-06re PR fortran/31201 (Too large unit number generates wrong code)Jerry DeLisle5-1/+48
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
2007-05-06re PR fortran/31201 (Too large unit number generates wrong code)Jerry DeLisle6-81/+270
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
2007-05-06re PR fortran/31201 (Too large unit number generates wrong code)Jerry DeLisle6-10/+50
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
2007-05-06timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead of ↵Eric Botcazou2-5/+9
ASSERT_CHECKING. * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead of ASSERT_CHECKING. Tweak message. From-SVN: r124478
2007-05-06complex: Add missing extern template declarations.Paolo Carlini4-5/+170
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
2007-05-06re PR fortran/31540 ([Regression 4.2 only] character((constant expression)) ↵Paul Thomas1-0/+13
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
2007-05-06re PR fortran/31540 ([Regression 4.2 only] character((constant expression)) ↵Paul Thomas3-0/+16
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
2007-05-062007-05-06 Paolo Carlini <pcarlini@suse.de>Paolo Carlini1-1/+1
* Fix PR number in last ChangeLog entry. From-SVN: r124473