* Martin Michlmayr <[EMAIL PROTECTED]> [2007-04-23 13:21]: > I've finally reduced this and reported it upstream a few days ago. > The S/390 GCC people from IBM are usually pretty quick with bug > fixes.
In fact, they just sent the following response: "In your example the memset function is called with -1 as length argument. When GCC tries to expand this as a builtin function an assertion in the s390 back end function s390_expand_setmem is triggered. Although an ICE is the wrong thing to respond I would consider it a code bug as well. I've proposed a patch to issue a proper error message and call the library function in that situation. The library function probably would write one byte below the target address causing a segfault for a -1 length which is most likely not what the programmer intended but thats what would happen in the -O0 as well." This is response to a reduced example based on the preprocessed source from stlport5.1's string_test.cpp which you can find at http://gcc.gnu.org/bugzilla/attachment.cgi?id=13392&action=view -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]