public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/38008]  New: gcc/testsuite/gcc.c-torture/execute/builtins/lib/sprintf.c unportable
@ 2008-11-04  0:02 howarth at nitro dot med dot uc dot edu
  2008-11-09 17:30 ` [Bug testsuite/38008] " howarth at nitro dot med dot uc dot edu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2008-11-04  0:02 UTC (permalink / raw)
  To: gcc-bugs

The following test cases now fail on i686-apple-darwin10...

FAIL: gcc.c-torture/execute/builtins/sprintf.c compilation,  -O0                
FAIL: gcc.c-torture/execute/builtins/sprintf.c compilation,  -O1                
FAIL: gcc.c-torture/execute/builtins/sprintf.c compilation,  -O2               
                                                                   FAIL:
gcc.c-torture/execute/builtins/sprintf.c compilation,  -O3 -
fomit-frame-pointer                                                             
FAIL: gcc.c-torture/execute/builtins/sprintf.c compilation,  -O3 -g            
                                                                   FAIL:
gcc.c-torture/execute/builtins/sprintf.c compilation,  -Os    

Mike Stump says this is because the call to  sprintf is unportable code. The
library is free to define sprintf and when it does this can fail. He suggest we
use...

int
(sprintf) (char *buf, const char *fmt, ...)

instead of the current...

int
sprintf (char *buf, const char *fmt, ...)

I can confirm that this change to
gcc/testsuite/gcc.c-torture/execute/builtins/lib/sprintf.c eliminates the
compilation failure under i686-apple-darwin10.


-- 
           Summary: gcc/testsuite/gcc.c-
                    torture/execute/builtins/lib/sprintf.c unportable
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: howarth at nitro dot med dot uc dot edu
 GCC build triplet: i686-apple-darwin10
  GCC host triplet: i686-apple-darwin10
GCC target triplet: i686-apple-darwin10


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


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

end of thread, other threads:[~2008-11-17 20:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-04  0:02 [Bug testsuite/38008] New: gcc/testsuite/gcc.c-torture/execute/builtins/lib/sprintf.c unportable howarth at nitro dot med dot uc dot edu
2008-11-09 17:30 ` [Bug testsuite/38008] " howarth at nitro dot med dot uc dot edu
2008-11-12 17:55 ` janis at gcc dot gnu dot org
2008-11-17 20:21 ` janis at gcc dot gnu dot org

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).