This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/9601] -mrtd switch/stdcall attribute raises warnings for __buitltin functions
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Sep 2006 08:12:19 -0000
- Subject: [Bug c/9601] -mrtd switch/stdcall attribute raises warnings for __buitltin functions
- References: <bug-9601-1436@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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