public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/30449]  New: Missing overloads (specializations) in stl_algobase.h
@ 2007-01-12 17:20 pcarlini at suse dot de
  2007-01-21  9:58 ` [Bug libstdc++/30449] " paolo at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: pcarlini at suse dot de @ 2007-01-12 17:20 UTC (permalink / raw)
  To: gcc-bugs

Apparently, we are missing useful overloads (specializations, depending on the
implementation details): for example, for std::lexicographical_compare on
pointers to non-const char types; std::equal seems not optimized to exploit
memcmp when possible. Probably, normal_iterators to containers of chars and co,
could be also dealt with (similarly to std::copy).


-- 
           Summary: Missing overloads (specializations) in stl_algobase.h
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pcarlini at suse dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30449


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/30449] Missing overloads (specializations) in stl_algobase.h
  2007-01-12 17:20 [Bug libstdc++/30449] New: Missing overloads (specializations) in stl_algobase.h pcarlini at suse dot de
@ 2007-01-21  9:58 ` paolo at gcc dot gnu dot org
  2007-02-15 18:44 ` pcarlini at suse dot de
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: paolo at gcc dot gnu dot org @ 2007-01-21  9:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from paolo at gcc dot gnu dot org  2007-01-21 09:57 -------
Subject: Bug 30449

Author: paolo
Date: Sun Jan 21 09:57:42 2007
New Revision: 121027

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121027
Log:
2007-01-21  Paolo Carlini  <pcarlini@suse.de>

        PR libstdc++/30449 (fill, fill_n)
        * include/bits/stl_algobase.h (__fill_aux(wchar_t*, wchar_t*,
        const wchar_t&), __fill_n_aux(wchar_t*, _Size, const wchar_t&)): New.
        (fill(signed char*, signed char*, const signed char&),
        fill(unsigned char*, unsigned char*, const unsigned char&),
        fill(char*, char*, char&), fill_n(signed char*, _Size,
        const signed char&), fill_n(unsigned char*, _Size,
        const unsigned char&), fill_n(char*, _Size, char&)): Rename to
        __*_aux.
        (__fill_normal, __fill_n_normal): New, call the latter.
        (fill, fill_n): Adjust, call the latter.        
        * testsuite/25_algorithms/fill/4.cc: New.
        * testsuite/25_algorithms/fill/5.cc: New.

Added:
    trunk/libstdc++-v3/testsuite/25_algorithms/fill/4.cc
    trunk/libstdc++-v3/testsuite/25_algorithms/fill/5.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/stl_algobase.h


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30449


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/30449] Missing overloads (specializations) in stl_algobase.h
  2007-01-12 17:20 [Bug libstdc++/30449] New: Missing overloads (specializations) in stl_algobase.h pcarlini at suse dot de
  2007-01-21  9:58 ` [Bug libstdc++/30449] " paolo at gcc dot gnu dot org
@ 2007-02-15 18:44 ` pcarlini at suse dot de
  2007-04-30 13:11 ` paolo at gcc dot gnu dot org
  2007-04-30 13:12 ` pcarlini at suse dot de
  3 siblings, 0 replies; 5+ messages in thread
From: pcarlini at suse dot de @ 2007-02-15 18:44 UTC (permalink / raw)
  To: gcc-bugs



-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-02-15 18:43:47
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30449


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/30449] Missing overloads (specializations) in stl_algobase.h
  2007-01-12 17:20 [Bug libstdc++/30449] New: Missing overloads (specializations) in stl_algobase.h pcarlini at suse dot de
  2007-01-21  9:58 ` [Bug libstdc++/30449] " paolo at gcc dot gnu dot org
  2007-02-15 18:44 ` pcarlini at suse dot de
@ 2007-04-30 13:11 ` paolo at gcc dot gnu dot org
  2007-04-30 13:12 ` pcarlini at suse dot de
  3 siblings, 0 replies; 5+ messages in thread
From: paolo at gcc dot gnu dot org @ 2007-04-30 13:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from paolo at gcc dot gnu dot org  2007-04-30 14:11 -------
Subject: Bug 30449

Author: paolo
Date: Mon Apr 30 14:10:54 2007
New Revision: 124295

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124295
Log:
2007-04-30  Paolo Carlini  <pcarlini@suse.de>

        PR libstdc++/30449 (equal)
        * include/bits/stl_algobase.h (struct __niter_base): Add.
        (copy(_II, _II, _OI), copy_backward(_BI1, _BI1, _BI2),
        fill(_ForwardIterator, _ForwardIterator, const _Tp&),
        fill_n(_OI, _Size, const _Tp&), equal(_II1, _II1, _II2)):
        Use it.
        (struct __copy_normal, __copy_backward_normal,
        struct __fill_normal, struct __fill_n_normal): Remove.
        (struct __equal, struct __equal_aux): Add.
        * include/bits/stl_iterator.h: Add _Iterator_type typedef.

        * include/bits/stl_algobase.h (__fill_aux(wchar_t*,
        wchar_t*, wchar_t), __fill_n_aux(wchar_t*, _Size, wchar_t)):
        Remove.

        * testsuite/23_containers/requirements/sequences/dr438/vector/
        constructor_1_neg.cc: Adjust dg-error line number.
        * testsuite/23_containers/requirements/sequences/dr438/vector/
        constructor_2_neg.cc: Likewise.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/stl_algobase.h
    trunk/libstdc++-v3/include/bits/stl_iterator.h
   
trunk/libstdc++-v3/testsuite/23_containers/requirements/sequences/dr438/vector/constructor_1_neg.cc
   
trunk/libstdc++-v3/testsuite/23_containers/requirements/sequences/dr438/vector/constructor_2_neg.cc


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30449


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/30449] Missing overloads (specializations) in stl_algobase.h
  2007-01-12 17:20 [Bug libstdc++/30449] New: Missing overloads (specializations) in stl_algobase.h pcarlini at suse dot de
                   ` (2 preceding siblings ...)
  2007-04-30 13:11 ` paolo at gcc dot gnu dot org
@ 2007-04-30 13:12 ` pcarlini at suse dot de
  3 siblings, 0 replies; 5+ messages in thread
From: pcarlini at suse dot de @ 2007-04-30 13:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pcarlini at suse dot de  2007-04-30 14:12 -------
Fixed.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30449


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-04-30 13:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-12 17:20 [Bug libstdc++/30449] New: Missing overloads (specializations) in stl_algobase.h pcarlini at suse dot de
2007-01-21  9:58 ` [Bug libstdc++/30449] " paolo at gcc dot gnu dot org
2007-02-15 18:44 ` pcarlini at suse dot de
2007-04-30 13:11 ` paolo at gcc dot gnu dot org
2007-04-30 13:12 ` pcarlini at suse dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).