public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/40879]  New: stdarg.h does not define va_copy when building for C89+POSIX
@ 2009-07-27 19:46 bmerry at gmail dot com
  2009-07-27 19:48 ` [Bug c/40879] " pinskia at gcc dot gnu dot org
  2009-07-27 19:48 ` bmerry at gmail dot com
  0 siblings, 2 replies; 3+ messages in thread
From: bmerry at gmail dot com @ 2009-07-27 19:46 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2192 bytes --]

POSIX 2001 specifies that va_copy
(http://www.opengroup.org/onlinepubs/009695399/functions/va_copy.html) is
defined by stdarg.h. However, when compiling with -std=c89
-D_POSIX_C_SOURCE=200112L this does not happen. I've encountered this in 4.3.2,
but a quick peek in svn makes it look this this is current.

I'll attach the source and preprocessed output.

Command line:
gcc -std=c89 -D_POSIX_C_SOURCE=200112L -Wall -c no_va_copy.c -save-temps
no_va_copy.c: In function ‘copy_va_list’:
no_va_copy.c:8: warning: implicit declaration of function ‘va_copy’

gcc -v:
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/configure --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.2
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
--disable-fixed-point --enable-nls --without-included-gettext
--with-system-zlib --disable-checking --disable-werror --enable-secureplt
--enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp
--disable-libgcj --enable-languages=c,c++,treelang,fortran --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.2-r3 p1.6,
pie-10.1.5'
Thread model: posix
gcc version 4.3.2 (Gentoo 4.3.2-r3 p1.6, pie-10.1.5)


-- 
           Summary: stdarg.h does not define va_copy when building for
                    C89+POSIX
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bmerry at gmail dot com
 GCC build triplet: x86_64-pc-linux-gnu
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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


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

* [Bug c/40879] stdarg.h does not define va_copy when building for C89+POSIX
  2009-07-27 19:46 [Bug c/40879] New: stdarg.h does not define va_copy when building for C89+POSIX bmerry at gmail dot com
  2009-07-27 19:48 ` [Bug c/40879] " pinskia at gcc dot gnu dot org
@ 2009-07-27 19:48 ` bmerry at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: bmerry at gmail dot com @ 2009-07-27 19:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from bmerry at gmail dot com  2009-07-27 19:48 -------
System threw an HTTP error 500 but managed to create a bug, so now there are
two copies. Rejecting this one, bug 40880 is the real one.


-- 

bmerry at gmail dot com changed:

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


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


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

* [Bug c/40879] stdarg.h does not define va_copy when building for C89+POSIX
  2009-07-27 19:46 [Bug c/40879] New: stdarg.h does not define va_copy when building for C89+POSIX bmerry at gmail dot com
@ 2009-07-27 19:48 ` pinskia at gcc dot gnu dot org
  2009-07-27 19:48 ` bmerry at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-07-27 19:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2009-07-27 19:48 -------


*** This bug has been marked as a duplicate of 40880 ***

*** This bug has been marked as a duplicate of 40880 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |DUPLICATE


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


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

end of thread, other threads:[~2009-07-27 19:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-27 19:46 [Bug c/40879] New: stdarg.h does not define va_copy when building for C89+POSIX bmerry at gmail dot com
2009-07-27 19:48 ` [Bug c/40879] " pinskia at gcc dot gnu dot org
2009-07-27 19:48 ` bmerry at gmail dot com

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