This is the mail archive of the gcc-patches@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]

Re: [patch c++]:PR/15774 - Conflicting function decls not diagnosed (this time really for 15774)


On 04/01/2011 03:46, Dave Korn wrote:
> On 25/12/2010 10:41, Kai Tietz wrote:
>> 2010/12/24 Kai Tietz <ktietz70@googlemail.com>:
>>> 2010/12/24 Jason Merrill <jason@redhat.com>:
>>>> OK.  Does the error message mention the attributes?
>>>>
>>>> Jason
>>>>
>>> Ok, I'll apply it tomorrow. No the error message doesn't display the
>>> attribute as it displays a decl.  This would be possibly another task
>>> to display attributes (at least a wished limited set) also for
>>> declarations.
>>>
>>> Regards,
>>> Kai
>>>
>>> PS: Merry Christmas
>>>
>> Applied at revision 168241.
> 
>   Unfortunately this broke the use of typedefs with dll attributes on them,

  Um, I'm not reading and thinking clearly.  This is actually PR17136(*) come
back to haunt us.  Nothing to do with the typedef in the formal parameters,
nor dll attributes; just the missing stdcall on the function prototype that is
causing the problem.  Reduced testcase:

-------------------------------------
#define JNICALL          __stdcall

int _Jv_JNI_ToReflectedField (void);

int JNICALL
_Jv_JNI_ToReflectedField (void)
{
  return 0;
}
-------------------------------------

  As the explanation in the PR makes clear, this is a real bug in libjava,
that we have not previously diagnosed.  Danny suggested a fix in that PR; I'll
take a look at updating it for current trunk.

    cheers,
      DaveK
-- 
(*) - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17136


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