This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [Patch: mingw/cygwin] Don't strip '@' dangles from stdcall/fastcall dllimport references
- From: Danny Smith <dannysmith at clear dot net dot nz>
- To: 'Kai Tietz' <Kai dot Tietz at onevision dot com>
- Cc: 'Dave Korn' <dave dot korn at artimi dot com>, 'GCC-patches' <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 15 Jul 2007 21:48:48 +1200
- Subject: RE: [Patch: mingw/cygwin] Don't strip '@' dangles from stdcall/fastcall dllimport references
Kai Tietz
Sunday, 15 July 2007 8:31 p.m.
>
> Danny Smith <xxxxxxxxxxxxxx> wrote on 14.07.2007 08:24:23:
>
> >
> > Well after all the noise about needing to strip '@' if TARGET_64BIT,
> > it turns out that fastcall and stdcall are just ignored on
> > TARGET_64BIT (see ix86_handle_cconv_attribute in i386.c) so there is
> > no '@' to strip. Thanks to Ross Ridge for the reality check.
>
> Yes, that's right and sorry about the noise.
>
> > The original patch is all that's needed.
> Maybe it would at least clarify make this if checking,
> because this macro
> is defined in "target-def.h" in gcc. It seems to be used
> nowhere beside in
> the target specific parts, but maybe this 'if'-clause
> simplifies reading
> of this macro for i386 target ?
I'm sorry. I don't know what you mean. AFAICT default_strip_name_encoding should work on 64 bit as well as 32 bit Windows targets. Where would you simplify the reading with an 'if-clause'?
Danny