1. 14 Apr, 2007 19 commits
  2. 13 Apr, 2007 21 commits
    • re PR c++/31074 (Reference casting involving multiple inheritance produces bad pointer) · 44ba4c4e
              PR c++/31074
              * call.c (reference_binding): Add c_cast_p parm.  If true,
              add quals to TO as needed to make it reference-compatible.
      
      From-SVN: r123805
      Jason Merrill committed
    • Daily bump. · 9a7b07c6
      From-SVN: r123803
      GCC Administrator committed
    • re PR libstdc++/31556 (find_if uses operator! instead of conversion to bool) · dded9d2c
      2007-04-13  Paolo Carlini  <pcarlini@suse.de>
      
      	PR libstdc++/31556
      	* include/bits/stl_algobase.h (equal(_InputIterator1, _InputIterator1,
      	_InputIterator2, _BinaryPredicate), mismatch(_InputIterator1,
      	_InputIterator1, _InputIterator2, _BinaryPredicate)): Convert
      	predicate return to bool.
      	* include/bits/stl_algo.h (__find_if(_InputIterator, _InputIterator,
      	_Predicate, input_iterator_tag), search(_ForwardIterator1,
      	_ForwardIterator1, _ForwardIterator2, _ForwardIterator2,
      	_BinaryPredicate), __search_n(_ForwardIterator, _ForwardIterator,
      	_Integer, const _Tp&, _BinaryPredicate, std::forward_iterator_tag),
      	__search_n(_RandomAccessIter, _RandomAccessIter, _Integer, const _Tp&,
      	_BinaryPredicate, std::random_access_iterator_tag),
      	search_n(_ForwardIterator, _ForwardIterator, _Integer, const _Tp&,
      	_BinaryPredicate), remove_copy_if(_InputIterator, _InputIterator,
      	_OutputIterator, _Predicate), __unique_copy(_ForwardIterator,
      	_ForwardIterator, _OutputIterator, _BinaryPredicate,
      	forward_iterator_tag, output_iterator_tag),
      	__unique_copy(_InputIterator, _InputIterator, _OutputIterator,
      	_BinaryPredicate, input_iterator_tag, output_iterator_tag),
      	__unique_copy(_InputIterator, _InputIterator, _OutputIterator,
      	_BinaryPredicate, input_iterator_tag, output_iterator_tag),
      	__unique_copy(_InputIterator, _InputIterator, _ForwardIterator,
      	_BinaryPredicate, input_iterator_tag, forward_iterator_tag),
      	unique(_ForwardIterator, _ForwardIterator, _BinaryPredicate),
      	__partition(_BidirectionalIterator, _BidirectionalIterator, _Predicate,
      	bidirectional_iterator_tag), binary_search(_ForwardIterator,
      	_ForwardIterator, const _Tp&, _Compare),
      	next_permutation(_BidirectionalIterator, _BidirectionalIterator,
      	_Compare), prev_permutation(_BidirectionalIterator,
      	_BidirectionalIterator, _Compare)): Likewise.
      
      From-SVN: r123800
      Paolo Carlini committed
    • Fix whitespacing. · 601589db
      From-SVN: r123799
      Mike Stump committed
    • stubify-1.mm: Only run on powerpc. · a35fc190
      	* obj-c++.dg/stubify-1.mm: Only run on powerpc.
      	* obj-c++.dg/template-4.mm: Don't run when 64-bit.
      
      From-SVN: r123798
      Mike Stump committed
    • re PR tree-optimization/29598 (FAIL: gcc.dg/tree-ssa/loadpre1.c and… · 6253b760
      re PR tree-optimization/29598 (FAIL: gcc.dg/tree-ssa/loadpre1.c and loadpre1[45].c scan-tree-dump-times Eliminated: 1 1)
      
      	PR tree-optimization/29598
      	* gcc.dg/tree-ssa/loadpre1.c: XFAIL.
      
      From-SVN: r123794
      Joseph Myers committed
    • re PR fortran/31559 ([4.1 only] Assigning to an EXTERNAL leads to ICE) · 1f8e994c
      2007-04-13  Tobias Burnus  <burnus@net-b.de>
      
      	PR fortran/31559
      	* primary.c (match_variable): External functions
      	are no variables.
      
      2007-04-13  Tobias Burnus  <burnus@net-b.de>
      
      	PR fortran/31559
      	* gfortran.dg/func_assign.f90: New test.
      
      From-SVN: r123793
      Tobias Burnus committed
    • darwin-c.c (handle_c_option): Handle -fapple-kext here so we can... · c40ce8f3
      	* config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
      	we can...
      	* config/darwin.opt (fapple-kext): Make C++ only.
      	* config/darwin.c (darwin_override_options): Remove code to ensure
      	-fapple-kext is given for C++ only.
      
      From-SVN: r123792
      Mike Stump committed
    • re PR fortran/31550 (f951: segfault in fold-const.c:1963) · d6a7a3be
      2007-04-13  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/31550
      	* trans-types.c (copy_dt_decls_ifequal): Do not get pointer
      	derived type components.
      
      2007-04-13  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/31550
      	* gfortran.dg/used_types_16.f90: New test.
      
      From-SVN: r123791
      Paul Thomas committed
    • re PR fortran/18937 (quadratic behaviour with many label "spaghetti" code) · 0615f923
      PR fortran/18937
      fortran/
      * resolve.c: Include obstack.h and bitmap.h.  New variable
      labels_obstack.
      (code_stack): Add tail and reachable_labels fields.
      (reachable_labels): New function.
      (resolve_branch): Rework to use new fields in code_stack.
      (resolve_code): Call reachable_labels.
      (resolve_codes): Allocate and free labels_obstack.
      testsuite/
      * gfortran.dg/goto_2.f90: New.
      * gfortran.dg/goto_3.f90: New.
      * gfortran.dg/pr17708.f90: Rename to ...
      * gfortran.dg/goto_4.f90: ... this, add comment pointing to
      PR.
      
      From-SVN: r123789
      Tobias Schlüter committed
    • vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define. · d1138d8e
      gcc/
      	* config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
      	* config/mips/mips.c (override_options): Call
      	SUBTARGET_OVERRIDE_OPTIONS, if defined.
      
      From-SVN: r123788
      Richard Sandiford committed
    • i386.opt (msvr3-shlib): Removed. · c33104d6
      2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* config/i386/i386.opt (msvr3-shlib): Removed.
      
      	* doc/invoke.texi: Remove -msvr3-shlib.
      
      From-SVN: r123787
      H.J. Lu committed
    • i386.opt (mpopcnt): Replace "popcount" instruction with "popcnt" instruction. · b194a08c
      2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
      	with "popcnt" instruction.
      
      From-SVN: r123786
      H.J. Lu committed
    • re PR fortran/31562 (FAIL: gfortran.dg/value_4.f90 -O0 execution test) · da97e7ff
      2007-04-13  Tobias Burnus  <burnus@net-b.de>
      
             PR fortran/31562
             * gfortran.dg/f2c_4.c: Use GNU extensions for complex
             instead of a struct.
      
      From-SVN: r123784
      Tobias Burnus committed
    • re PR libstdc++/31554 (stable_partition assumes iterator difference type is always ptrdiff_t) · 4ecacafc
      2007-04-13  Paolo Carlini  <pcarlini@suse.de>
      
      	PR libstdc++/31554
      	* include/bits/stl_algo.h (stable_partition): Convert __buf.size()
      	to _DistanceType.
      
      From-SVN: r123783
      Paolo Carlini committed
    • Fix date in Tobias Burnus' ChangeLog entry · d2824043
      From-SVN: r123782
      Tobias Schlüter committed
    • Sigh. Add ChangeLog entry missing from previous commit. · ed4c2959
      From-SVN: r123781
      Tobias Schlüter committed
    • re PR fortran/31562 (FAIL: gfortran.dg/value_4.f90 -O0 execution test) · 4026df75
      2007-04-12  Tobias Burnus  <burnus@net-b.de>
      
             PR fortran/31562
             * gfortran.dg/value_4.c: Use GNU extensions for complex
             instead of a struct.
      
      From-SVN: r123780
      Tobias Burnus committed
    • numeric_traits.h: Do not include <limits>. · 6725add5
      2007-04-13  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/ext/numeric_traits.h: Do not include <limits>.
      	(__numeric_traits_integer::__is_signed, __digits): Add.
      	(__numeric_traits_floating::__digits10, __max_exponent10): Add.
      	* src/istream.cc (ignore<char>(streamsize, int_type), operator>>
      	(basic_istream<char>&, char*), ignore<wchar_t>(streamsize,
      	int_type)): Use the latter.
      	* src/compatibility.cc (ignore<char>(streamsize),
      	ignore<wchar_t>(streamsize)): Likewise.
      	* include/ext/vstring_util.h (__vstring_utility<>::_S_compare):
      	Likewise.
      	* include/bits/stl_memory.h (__get_temporary_buffer): Likewise.
      	* include/bits/stl_algobase.h (lexicographical_compare(const char*,
      	const char*, const char*, const char*)): Likewise.
      	* include/bits/locale_facets.tcc (num_get<>::_M_extract_int(_InIter,
      	_InIter, ios_base&, ios_base::iostate&, _ValueT&),
      	num_put<>::_M_insert_int(_OutIter, ios_base&, _CharT, _ValueT),
      	num_put<>::_M_insert_float(_OutIter, ios_base&, _CharT, char,
      	_ValueT), collate<>::do_hash(const _CharT*, const _CharT*)): Likewise.
      	* include/bits/basic_string.h (basic_string<>::_S_compare): Likewise.
      	* include/bits/istream.tcc (operator>>(short&), operator>>(int&),
      	ignore(streamsize), ignore(streamsize, int_type), operator>>
      	(basic_istream<>&, _CharT*)): Likewise.
      	* include/bits/stl_bvector.h (vector<bool>::max_size): Likewise.
      	* include/tr1/functional_hash.h (struct hash<long double>): Likewise.
      	* include/std/istream: Do not include <limits>.
      	* include/tr1/cmath: Include <limits>.
      	* testsuite/23_containers/vector/bool/capacity/29134.cc: Likewise.
      	* testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
      	Likewise.
      	* testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
      	Likewise.
      	* testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/12.cc:
      	Likewise.
      	* testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/13.cc:
      	Likewise.
      	* testsuite/27_io/ios_base/storage/2.cc: Likewise.
      
      	* include/tr1/hashtable: Do not include the whole <iterator>.
      
      From-SVN: r123779
      Paolo Carlini committed
    • re PR tree-optimization/21258 (Teach VRP to pick up a constant from case label.) · 9bb6aa43
      2007-04-13  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/21258
      	* tree-vrp.c (compare_case_labels): New helper.
      	(find_switch_asserts): New function.
      	(find_assert_locations): Call it for SWITCH_EXPRs.
      
      	* gcc.dg/tree-ssa/vrp34.c: New testcase.
      
      From-SVN: r123778
      Richard Guenther committed