aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2007-04-04libgomp.h (gomp_cpu_affinity, [...]): New extern decls.Jakub Jelinek11-8/+382
* libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern decls. (gomp_init_affinity, gomp_init_thread_affinity): New prototypes. * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables. (parse_affinity): New function. (initialize_env): Call it and gomp_init_affinity. * team.c (gomp_team_start): If gomp_cpu_affinity != NULL, create new pthread_attr_t and call gomp_init_thread_affinity on it for each thread before passing the attribute to pthread_create. * config/linux/affinity.c: New file. * config/posix/affinity.c: New file. * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test. * configure: Rebuilt. * config.h.in: Rebuilt. * Makefile.am (libgomp_la_SOURCES): Add affinity.c. * Makefile.in: Rebuilt. From-SVN: r123494
2007-04-04winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore dllimport attribute of ↵Danny Smith6-72/+56
virtual methods. gcc * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore dllimport attribute of virtual methods. gcc/cp * class.c (check_for_override): Don't remove dllmport attribute of virtual methods. gcc/testsuite * g++.dg/ext/dllimport12.C: Update comments From-SVN: r123492
2007-04-04(Write After Approval): Add myself.Christian Bruel2-0/+5
From-SVN: r123491
2007-04-04crti.asm: Change _bss_start to __bss_start.Chen Liqin9-66/+112
2007-04-04 Chen Liqin <liqin@sunnorth.com.cn> * config/score/crti.asm: Change _bss_start to __bss_start. * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added. (OUTGOING_REG_PARM_STACK_SPACE) update. * config/score/score.opt: add options to make backend support score5, score5u, score7 and score7d. * config/score/score.md: Likewise. * config/score/misc.md: Likewise. * config/score/mac.md: Likewise. * doc/invoke.texi: Likewise. * doc/md.texi: update constraints define. From-SVN: r123490
2007-04-03Daily bump.GCC Administrator1-1/+1
From-SVN: r123487
2007-04-03pr29902.C: Require ilp32.Eric Christopher2-3/+7
2007-04-03 Eric Christopher <echristo@apple.com> * g++.dg/tree-ssa/pr29902.C: Require ilp32. From-SVN: r123482
2007-04-03re PR fortran/31304 (REPEAT argument NCOPIES is not converted as it should)Francois-Xavier Coudert13-61/+345
PR fortran/31304 * fortran/gfortran.h (gfc_charlen_int_kind): New prototype. * fortran/trans-types.c (gfc_charlen_int_kind): New variable. (gfc_init_types): Define gfc_charlen_int_kind. * fortran/trans.h (gfor_fndecl_string_repeat): Remove prototype. * fortran/trans-decl.c (gfor_fndecl_string_repeat): Delete. (gfc_build_intrinsic_function_decls): Don't set gfor_fndecl_string_repeat. * fortran/trans-intrinsic.c (gfc_conv_intrinsic_repeat): Rewrite so that we don't have to call a library function. * fortran/simplify.c (gfc_simplify_repeat): Perform the necessary checks on the NCOPIES argument, and work with arbitrary size arguments. * intrinsics/string_intrinsics.c (string_repeat): Remove. * gfortran.dg/repeat_2.f90: New test. * gfortran.dg/repeat_3.f90: New test. * gfortran.dg/repeat_4.f90: New test. From-SVN: r123481
2007-04-03stl_algobase.h (__copy_aux(_II, _II, _OI), [...]): Use __is_pod.Paolo Carlini6-101/+56
2007-04-03 Paolo Carlini <pcarlini@suse.de> * include/bits/stl_algobase.h (__copy_aux(_II, _II, _OI), __copy_backward_aux(_BI1, _BI1, _BI2)): Use __is_pod. * include/bits/stl_deque.h (deque<>::_M_destroy_data(iterator, iterator, const std::allocator<>&)): Use __has_trivial_constructor. (deque<>::_M_destroy_data_dispatch): Remove. * include/bits/stl_uninitialized.h (uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator), uninitialized_fill(_ForwardIterator, _ForwardIterator, const _Tp&), uninitialized_fill_n(_ForwardIterator, _Size, const _Tp&)): Use __is_pod. * include/bits/stl_tempbuf.h (_Temporary_buffer:: _Temporary_buffer(_ForwardIterator, _ForwardIterator)): Use __is_pod. (_Temporary_buffer::_M_initialize_buffer): Remove. * include/bits/stl_construct.h (_Destroy(_ForwardIterator, _ForwardIterator)): Use __has_trivial_destructor. (__destroy_aux): Remove. From-SVN: r123480
2007-04-03opt-3.c: Use -mregparm=3 only for ilp32 on x86_64 targets.Uros Bizjak2-1/+5
* gcc.dg/tls/opt-3.c: Use -mregparm=3 only for ilp32 on x86_64 targets. From-SVN: r123479
2007-04-03expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield an ↵Richard Henderson2-3/+18
appropriate type... * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield an appropriate type, use the mode instead. From-SVN: r123477
2007-04-03jvgenmain.c (main): Change main to use class$, not class$$.Andrew Haley6-9/+74
2007-04-03 Andrew Haley <aph@redhat.com> * jvgenmain.c (main): Change main to use class$, not class$$. (do_mangle_classname): Likewise. * class.c (hide): New function. (add_field): Hide everything that shouldn't be visible outside a DSO. (build_static_class_ref): Likewise. (build_classdollar_field): Likewise. (make_class_data): Likewise. (layout_class_method): Likewise. * expr.c (special_method_p): New function. * class.c (push_class): Don't bogusly guess the source filename. * jcf-parse.c (give_name_to_class): Don't set input_location from DECL_ARTIFICIAL decls. From-SVN: r123476
2007-04-03ProxyTest.java: New test.Andrew Haley4-0/+45
2007-04-03 Andrew Haley <aph@redhat.com> * testsuite/libjava.lang/ProxyTest.java: New test. From-SVN: r123466
2007-04-03re PR target/31175 (isinf incorrectly expanded)Uros Bizjak2-2/+9
PR target/31175 * config/i386/i386.md (isinf<mode>2): Expand only when TARGET_C99_FUNCTIONS is set. From-SVN: r123465
2007-04-03config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.Richard Sandiford4-23/+64
gcc/ * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file. Set the default --with-arch setting to mips2. * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES) (MULTILIB_EXCEPTIONS): Redefine with new multilibs. (MULTILIB_OSDIRNAMES): Delete. (MULTILIB_DIRNAMES): Define. * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC. (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define. (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC definitions, except for _WRS_R3K_EXC_SUPPORT. Call VXWORKS_OS_CPP_BUILTINS. (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC. (MIPS_DEBUGGING_INFO): Undefine. (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER. From-SVN: r123459
2007-04-03closures.c: Include sys/statfs.h.Jakub Jelinek5-15/+88
* src/closures.c: Include sys/statfs.h. (_GNU_SOURCE): Define on Linux. (FFI_MMAP_EXEC_SELINUX): Define. (selinux_enabled): New variable. (selinux_enabled_check): New function. (is_selinux_enabled): Define. (dlmmap): Use it. * configure.ac (NO_EXECUTE_PERMISSION): Set by default. * configure: Rebuilt. From-SVN: r123457
2007-04-03re PR c++/30847 (ICE with invalid statement expression)Jakub Jelinek4-0/+30
PR c++/30847 * typeck.c (build_modify_expr): For COND_EXPR on LHS, if RHS has void type issue error and return early. * g++.dg/parse/cond3.C: New test. From-SVN: r123456
2007-04-03re PR middle-end/30704 (Incorrect constant generation for long long)Jakub Jelinek4-16/+88
PR middle-end/30704 * fold-const.c (native_encode_real): Encode real.c provided longs as a series of 32-bit native integers. (native_interpret_real): Interpret buffer as a series of 32-bit native integers. * gcc.c-torture/execute/ieee/pr30704.c: New test. From-SVN: r123455
2007-04-03stl_map.h (map<>::insert(iterator, const value_type&): Uglify parameter.Paolo Carlini2-4/+10
2007-04-03 Paolo Carlini <pcarlini@suse.de> * include/bits/stl_map.h (map<>::insert(iterator, const value_type&): Uglify parameter. From-SVN: r123453
2007-04-03re PR libstdc++/31440 (libstdc++-g++-v3 discarded qualifiers)Paolo Carlini3-26/+172
2007-04-03 Paolo Carlini <pcarlini@suse.de> PR libstdc++/31440 * include/bits/stl_tree.h (_M_lower_bound(_Link_type, _Link_type, const _Key&), _M_upper_bound(_Link_type, _Link_type, const _Key&)): Add. (_M_equal_range(const _Key&) const): Remove. (lower_bound(const key_type&), lower_bound(const key_type&) const, upper_bound(const key_type&), upper_bound(const key_type&) const, equal_range(const key_type&), equal_range(const key_type&) const): Adjust. (find(const _Key&), find(const _Key&) const): Tweak. * testsuite/23_containers/map/operations/31440.cc: New. From-SVN: r123452
2007-04-03genpreds.c (write_insn_constraint_len): Write function optimized for ↵Richard Guenther3-20/+50
CONSTRAINT_LEN implementation. 2007-04-03 Richard Guenther <rguenther@suse.de> * genpreds.c (write_insn_constraint_len): Write function optimized for CONSTRAINT_LEN implementation. (write_tm_preds_h): Output insn_constraint_len inline and use it for CONSTRAINT_LEN. (write_insn_preds_c): Don't output insn_constraint_len. * doc/md.texi (define_register_constraint): Document multi-letter constraints shall have the same length if they start with the same letter. From-SVN: r123451
2007-04-03config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.Uros Bizjak13-9/+148
* config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file. (x86_64-*-linux*): Ditto. * config/i386/i386.opt (mpc): New option. * config/i386/i386.c (overrride_options): Handle ix87_precision_string. * config/i386/crtprec.c: New file. * config/i386/t-crtpc: Ditto. * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64 and -mpc80 options. * config/i386/linux64.h (ENDFILE_SPEC): Ditto. * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtprec32.o, crtprec64.o and crtprec80.o. * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64 and -mpc80 options. (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options. libgcc/ChangeLog: * config/i386/t-crtpc: New file. * config.host (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file. (x86_64-*-linux*): Ditto. From-SVN: r123450
2007-04-03natFileChannelPosix.cc (mapImpl): Extend file, when writing, if it is too short.Tom Tromey2-1/+19
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=205157 * gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Extend file, when writing, if it is too short. From-SVN: r123447
2007-04-03invoke.texi (i386 and x86-64 Options): Document -m64 limitations on darwin.Eric Christopher2-44/+51
2007-04-02 Eric Christopher <echristo@apple.com> * doc/invoke.texi (i386 and x86-64 Options): Document -m64 limitations on darwin. From-SVN: r123446
2007-04-02Daily bump.GCC Administrator1-1/+1
From-SVN: r123444
2007-04-02natPlainSocketImplPosix.cc (create): Return if already created.Tom Tromey10-3/+21
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=233406 * gnu/java/net/natPlainSocketImplPosix.cc (create): Return if already created. * gnu/java/net/PlainSocketImpl.java (getLocalAddress): Handle case where localport is -1. (create): Now public. * gnu/java/nio/SocketChannelImpl.java (SocketChannelImpl): Call 'create' on the socket. From-SVN: r123440
2007-04-03re PR target/31137 (missing "break" in switch for MULT in avr_rtx_costs)Anatoly Sokolov2-0/+7
PR target/31137 * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements. From-SVN: r123437
2007-04-02ThreadStartEvent.java (Event): Event type is "THREAD_START" not "THREAD_END".Keith Seitz3-16/+33
* gnu/classpath/jdwp/event/ThreadStartEvent.java (Event): Event type is "THREAD_START" not "THREAD_END". * gnu/classpath/jdwp/transport/SocketTransport.java (ITransport): Handle configure strings ":port" and "port". From-SVN: r123436
2007-04-02re PR c++/31187 (extern declaration of variable in anonymous namespace ↵Jason Merrill6-8/+54
prevents use of its address as template argument) PR c++/31187 * typeck.c (cp_type_readonly): New fn. * cp-tree.h: Declare it. * decl.c (start_decl): Set implicit DECL_THIS_STATIC here. (cp_finish_decl): Not here. * g++.dg/ext/visibility/anon3.C: New test. From-SVN: r123432
2007-04-02natVMProxy.cc (run_proxy): Use _Jv_LookupProxyMethod to find the Method.Andrew Haley7-7/+67
2007-04-02 Andrew Haley <aph@redhat.com> * java/lang/reflect/natVMProxy.cc (run_proxy): Use _Jv_LookupProxyMethod to find the Method. If parameter_types->length == 0, pass a null paramameter list, not a zero-length parameter list. * java/lang/natClass.cc (_Jv_LookupProxyMethod): New function. * java/lang/Class.h (_Jv_LookupProxyMethod): Declare. From-SVN: r123431
2007-04-02[multiple changes]Andrew Haley5-1/+13
2007-03-30 Andrew Haley <aph@redhat.com> * javax/management/ObjectName.java: Handle 0-length names. 2007-03-27 Andrew Haley <aph@redhat.com> * javax/management/MBeanServerFactory.java: Use the domain that we've been passed, not the fixed string "DefaultDomain". From-SVN: r123430
2007-04-02interpret-run.cc: Add code to properly set up variable slots when debugging.Kyle Galloway3-19/+401
2007-04-02 Kyle Galloway <kgallowa@redhat.com> * interpret-run.cc: Add code to properly set up variable slots when debugging. * gnu/classpath/jdwp/natVMFrame.cc (checkJVMTIError): New function. (getObjectJVMTI): New function. (setObjectJVMTI): New function. (getIntJVMTI): New function. (setIntJVMTI): New function. (getLongJVMTI): New function. (setLongJVMTI): New function. (getFloatJVMTI): New function. (setFloatJVMTI): New function. (getDoubleJVMTI): New function. (setDoubleJVMTI): New function. (getFrameDepth): New function. (getValue): Implement. (setValue): Implement. From-SVN: r123427
2007-04-022007-04-02 Kyle Galloway <kgallowa@redhat.com>Kyle Galloway3-1/+6
* classpath/gnu/classpath/jdwp/processor/ThreadReferenceCommandSet.java (executeResume): Call VMVirtualMachine.resumeThread. From-SVN: r123426
2007-04-02* filename_cmp.c: Include "config.h".Andreas Schwab2-0/+8
From-SVN: r123425
2007-04-02re PR libstdc++/31370 (resizing bugs in std::vector<bool>)Matthew Levine6-37/+253
2007-04-02 Matthew Levine <gcc@severeweblint.org> Paolo Carlini <pcarlini@suse.de> PR libstdc++/31370 * include/bits/stl_bvector.h (vector<bool>::max_size): Fix. (vector<bool>::_M_check_len): Add. * include/bits/vector.tcc (_M_fill_insert(iterator, size_type, bool), _M_insert_range(iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag), _M_insert_aux(iterator, bool)): Use it. * testsuite/23_containers/vector/bool/modifiers/insert/31370.cc: New. * testsuite/23_containers/vector/bool/capacity/29134.cc: Adjust. * include/bits/stl_vector.h (vector<>::_M_check_len): Add. * include/bits/vector.tcc (_M_insert_aux(iterator, const _Tp&), _M_fill_insert(iterator, size_type, const value_type&), _M_range_insert(iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag)): Use it. Co-Authored-By: Paolo Carlini <pcarlini@suse.de> From-SVN: r123424
2007-04-02PR libstdc++/31401 (vstring bits)Paolo Carlini2-1/+7
2007-04-02 Paolo Carlini <pcarlini@suse.de> PR libstdc++/31401 (vstring bits) * include/ext/vstring.tcc (find(const _CharT*, size_type, size_type)): Avoid unsigned overflow. From-SVN: r123422
2007-04-02locale_facets.tcc (num_put<>::do_put(iter_type, ios_base&, char_type, const ↵Paolo Carlini2-1/+11
void*)): Fix for sizeof(const void*) > sizeof(unsigned long). 2007-04-02 Paolo Carlini <pcarlini@suse.de> * include/bits/locale_facets.tcc (num_put<>::do_put(iter_type, ios_base&, char_type, const void*)): Fix for sizeof(const void*) > sizeof(unsigned long). From-SVN: r123421
2007-04-02ChangeLog: Fixed trivial whitespace formatting error.Dave Korn1-3/+3
* ChangeLog: Fixed trivial whitespace formatting error. From-SVN: r123420
2007-04-02tm.texi (FUNCTION_MODE): Update and extend documentation.Dave Korn2-2/+9
2007-04-02 Dave Korn <dave.korn@artimi.com> * doc/tm.texi (FUNCTION_MODE): Update and extend documentation. From-SVN: r123419
2007-04-02libgcc2.h (exception_descriptor): Don't forward-declare.Dave Korn2-4/+6
2007-04-02 Dave Korn <dave.korn@artimi.com> * libgcc2.h (exception_descriptor): Don't forward-declare. (__get_eh_table_language, __get_eh_table_version): Delete prototypes of long-dead functions. From-SVN: r123418
2007-04-02MAINTAINERS (Write After Approval): Add myself.Dave Korn2-0/+5
2007-04-02 Dave Korn <dave.korn@artimi.com> * MAINTAINERS (Write After Approval): Add myself. From-SVN: r123417
2007-04-02ebitmap.h: New fileDaniel Berlin4-0/+1194
2007-04-01 Daniel Berlin <dberlin@dberlin.org> * ebitmap.h: New file * ebitmap.c: New file * Makefile.in (ebitmap.o): New target. From-SVN: r123415
2007-04-01Daily bump.GCC Administrator1-1/+1
From-SVN: r123413
2007-04-01poly_laguerre.tcc: Missing s/__alpha/__alpha1, line 278.Andreas Tobler2-1/+5
2007-04-01 Andreas Tobler <a.tobler@schweiz.org> * include/tr1/poly_laguerre.tcc: Missing s/__alpha/__alpha1, line 278. From-SVN: r123410
2007-04-01emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit before ↵Jan Hubicka4-4/+18
very first instruction. * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit before very first instruction. * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid waring on 64bit hosts. * bitmap.h: Fix typo in bitmap_head_def. From-SVN: r123408
2007-04-01poly_laguerre.tcc: s/__alpha/__alpha1/g.Richard Henderson3-20/+26
* include/tr1/poly_laguerre.tcc: s/__alpha/__alpha1/g. * include/tr1/ell_integral.tcc: Likewise. From-SVN: r123407
2007-04-01re PR rtl-optimization/31391 (undefined label with -O -g due to cfglayout)Steven Bosscher2-0/+9
PR rtl-optimization/31391 * cfgcleanup.c (try_optimize_cfg): If a removed label is turned into a DELETED_LABEL note, and the label is in an empty basic block, update BB_END as well as BB_HEAD. From-SVN: r123406
2007-04-01re PR tree-optimization/31169 (Bootstrap comparison error at revision 122821)Richard Henderson2-11/+24
PR tree-optimization/31169 * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop to varying if the range is outside [0, prec-1]. From-SVN: r123405
2007-04-01re PR libfortran/31052 ([4.2 only] Bad IOSTAT values when readings NAMELISTs ↵Jerry DeLisle2-0/+95
past EOF) 2007-04-01 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/31052 * gfortran.dg/namelist_28.f90: New test. From-SVN: r123404
2007-04-01re PR libfortran/31052 ([4.2 only] Bad IOSTAT values when readings NAMELISTs ↵Jerry DeLisle4-29/+13
past EOF) 2007-04-01 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/31052 * io/open.c (test_endfile): Delete this function. (edit_modes): Delete call to test_endfile. (new_unit): Likewise. * io/io.h: Delete prototype for test_endfile. * io/transfer.c (next_record_r): Remove use of test_endfile. (st_read): Add test for end file condition and adjust status. From-SVN: r123403
2007-04-01re PR fortran/31366 ([4.2 only] Last record truncated for read after short ↵Jerry DeLisle4-0/+54
write, direct access file) 2007-04-01 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/31366 * gfortran.dg/direct_io_6.f90: New test. 2007-04-01 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/31207 * gfortran.dg/advance_5.f90: New test. * gfortran.dg/advance_6.f90: New test. From-SVN: r123402