[Bug fortran/87495] Warning: ‘fastcall’ attribute ignored [-Wattributes] for !GCC$ ATTRIBUTES

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 22 10:19:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87495

--- Comment #10 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to rguenther@suse.de from comment #8)
> On Mon, 22 Oct 2018, marxin at gcc dot gnu.org wrote:
> 
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87495
> > 
> > Martin Liška <marxin at gcc dot gnu.org> changed:
> > 
> >            What    |Removed                     |Added
> > ----------------------------------------------------------------------------
> >              Status|WAITING                     |REOPENED
> > 
> > --- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
> > OK, the fastcall is a special one, but I see it for all of:
> > 
> > const ext_attr_t ext_attr_list[] = {
> >   { "dllimport",    EXT_ATTR_DLLIMPORT,    "dllimport" },
> >   { "dllexport",    EXT_ATTR_DLLEXPORT,    "dllexport" },
> >   { "cdecl",        EXT_ATTR_CDECL,        "cdecl"     },
> >   { "stdcall",      EXT_ATTR_STDCALL,      "stdcall"   },
> >   { "fastcall",     EXT_ATTR_FASTCALL,     "fastcall"  },
> >   { "no_arg_check", EXT_ATTR_NO_ARG_CHECK, NULL        },
> >   { NULL,           EXT_ATTR_LAST,         NULL        }
> > };
> > 
> > gfortran f.f90
> > f.f90:1:0:
> > 
> >  elemental real function sin(arg)
> > 
> > Warning: ‘cdecl’ attribute ignored [-Wattributes]
> 
> But that's in the same ballpark.  All of them seem to be...
> (just check on a C testcase with -Wall).

Ah, sorry, now I see it!


More information about the Gcc-bugs mailing list