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

* [Bug testsuite/38008] gcc/testsuite/gcc.c-torture/execute/builtins/lib/sprintf.c unportable
  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 ` 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
  2 siblings, 0 replies; 4+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2008-11-09 17:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from howarth at nitro dot med dot uc dot edu  2008-11-09 17:28 -------
Patch posted to gcc-patches...

http://gcc.gnu.org/ml/gcc-patches/2008-11/msg00328.html


-- 


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


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

* [Bug testsuite/38008] gcc/testsuite/gcc.c-torture/execute/builtins/lib/sprintf.c unportable
  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
  2 siblings, 0 replies; 4+ messages in thread
From: janis at gcc dot gnu dot org @ 2008-11-12 17:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from janis at gcc dot gnu dot org  2008-11-12 17:53 -------
Subject: Bug 38008

Author: janis
Date: Wed Nov 12 17:52:24 2008
New Revision: 141795

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141795
Log:
2008-11-12  Jack Howarth  <howarth@bromo.med.uc.edu>

        PR testsuite/38008
        * gcc.c-torture/execute/builtins/lib/sprintf.c: Make
        sprintf call more portable for darwin10.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.c-torture/execute/builtins/lib/sprintf.c


-- 


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


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

* [Bug testsuite/38008] gcc/testsuite/gcc.c-torture/execute/builtins/lib/sprintf.c unportable
  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
  2 siblings, 0 replies; 4+ messages in thread
From: janis at gcc dot gnu dot org @ 2008-11-17 20:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from janis at gcc dot gnu dot org  2008-11-17 20:20 -------
Fixed by Jack's patch.


-- 

janis at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


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