This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/29242] system headers lack a distinct default calling convention
- From: "dannysmith at users dot sourceforge dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Sep 2006 03:23:29 -0000
- Subject: [Bug other/29242] system headers lack a distinct default calling convention
- References: <bug-29242-12219@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from dannysmith at users dot sourceforge dot net 2006-09-27 03:23 -------
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)
> Imagine building gcc itself with regparm 3. You probably don't want
> to mark up the gcc source to enable this, but marking up the system
> header files is definitely not an option.
Actually, om mingw32, the system headers are marked up (explicitly) with
calling convention (__cdecl, __stdcall, __fastcall), to avoid the -mrtd
problem. So it is an option. I think that MSVC headers also do this.
Danny
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29242