This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug c/9601] -mrtd switch/stdcall attribute raises warnings for __buitltin functions



------- Comment #5 from fxcoudert at gcc dot gnu dot org  2006-09-20 08:12 -------
> double  __attribute__((cdecl))  sqrt (double);
> double  __attribute__((stdcall)) log (double);
> double  cos (double);

With this code, we still (gcc-4.2) get:

$ gcc -c -W -Wall -mrtd b.c
b.c:1: warning: conflicting types for built-in function ?sqrt?
$ gcc -c -W -Wall b.c
b.c:2: warning: conflicting types for built-in function ?log?

This is not related to mingw32, as the same warnings happen on i386-pc-mingw32
and i686-pc-linux-gnu.


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu dot
                   |                            |org
          Component|target                      |c
 GCC target triplet|i386-pc-mingw32             |
   Last reconfirmed|2003-07-11 15:03:36         |2006-09-20 08:12:19
               date|                            |
            Summary|[win32] -mrtd switch/stdcall|-mrtd switch/stdcall
                   |attribute raises warnings   |attribute raises warnings
                   |for __buitltin functions    |for __buitltin functions


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


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