This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR libstdc++/19510: Uninitialized variable in someiterators


Gabriel Dos Reis wrote:

In the typical case where a singular iterator is created, it is
inlined and if the compiler cannot figure out that those inlined
initialization can be efficiently turned into something else, then
it is a compiler bug.

I'm not confident that the compiler will always be able to figure this out.


In any case, why should we take that chance?

If someone runs a benchmark of G++ & V3 vis a vis some other system, and the benchmark shows that we're slower, we lose. It doesn't matter whether that's because of the compiler or the library. No, I'm not arguing that we should hand code the entire library in some special style that's particularly amenable to G++. I am arguing, however, that inserting code to do something that is on most systems at best pointless, and quite possibly harmful, is a mistake.

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]