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: [C PATCH] Warn if inline attributes conflict (PR c/18079)


On Thu, 20 Mar 2014, Marek Polacek wrote:

> On Thu, Mar 20, 2014 at 11:57:57AM +0000, Joseph S. Myers wrote:
> > This version is OK (for after 4.9 branches).
> 
> Thanks.
>  
> > What happens if there are two declarations of the function, one with each 
> > attribute?  The testcase doesn't cover that.
> 
> Nothing :(.  I had to add some code into diagnose_mismatched_decls to
> detect such conflicting decls (plus for cold/hot; there may be others).
> 
> Tested x86_64-linux.  Is this version ok?

Yes.

-- 
Joseph S. Myers
joseph@codesourcery.com


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