Re: r335084 - Append new attributes to the end of an AttributeList.

2018-06-27 Thread Michael Kruse via cfe-commits
Thanks for adding the regression test. I'll wait for @erichkeane's work AttibuteList's linked list fix before trying to re-commit. Michael 2018-06-27 7:12 GMT-05:00 Nico Weber : > Here's another regression that was introduced by the patch: > https://bugs.llvm.org/show_bug.cgi?id=37935 I landed

Re: r335084 - Append new attributes to the end of an AttributeList.

2018-06-27 Thread Nico Weber via cfe-commits
Here's another regression that was introduced by the patch: https://bugs.llvm.org/show_bug.cgi?id=37935 I landed a test for that in r335725 (in case you're wondering why there's a new test failure when you reland). Thanks for working on this! On Tue, Jun 26, 2018 at 9:03 AM Michael Kruse via cfe-

Re: r335084 - Append new attributes to the end of an AttributeList.

2018-06-26 Thread Michael Kruse via cfe-commits
Thank you for your reproducer. I debugged it and found the issue. ngettext is defined as follows. extern char *ngettext (const char *__msgid1, const char *__msgid2, unsigned long int __n) throw () __attribute__ ((__format_arg__ (1))) __attribute__ ((__format_arg__ (2))); Indeed, two

Re: r335084 - Append new attributes to the end of an AttributeList.

2018-06-25 Thread David Jones via cfe-commits
(Sorry for the late reply...) On Mon, Jun 25, 2018 at 2:45 PM Michael Kruse via cfe-commits < cfe-commits@lists.llvm.org> wrote: > I just revert if to have further discussions (r335516) > > Michael > > 2018-06-25 14:58 GMT-05:00 Eric Christopher : > > > > > > On Mon, Jun 25, 2018 at 12:21 PM Rich

Re: r335084 - Append new attributes to the end of an AttributeList.

2018-06-25 Thread Michael Kruse via cfe-commits
I just revert if to have further discussions (r335516) Michael 2018-06-25 14:58 GMT-05:00 Eric Christopher : > > > On Mon, Jun 25, 2018 at 12:21 PM Richard Smith via cfe-commits > wrote: >> >> On 23 June 2018 at 22:34, Michael Kruse via cfe-commits >> wrote: >>> >>> Hi, >>> >>> multiple comment

Re: r335084 - Append new attributes to the end of an AttributeList.

2018-06-25 Thread Michael Kruse via cfe-commits
2018-06-25 14:20 GMT-05:00 Richard Smith : > (I'm not sure what the problem is, but as a data point, Sema::checkCall > iterates over the FormatAttrs in order, so it's possible that changing the > order may have triggered a new warning. That may be due to a pre-existing > order-dependence bug, or it

Re: r335084 - Append new attributes to the end of an AttributeList.

2018-06-25 Thread Eric Christopher via cfe-commits
On Mon, Jun 25, 2018 at 12:21 PM Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On 23 June 2018 at 22:34, Michael Kruse via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Hi, >> >> multiple comments in the code indicate that the attribute order was >> surprising and

Re: r335084 - Append new attributes to the end of an AttributeList.

2018-06-25 Thread Richard Smith via cfe-commits
On 23 June 2018 at 22:34, Michael Kruse via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Hi, > > multiple comments in the code indicate that the attribute order was > surprising and probably has lead to bugs, and will lead to bugs in the > future. The order had to be explicitly reversed to a

Re: r335084 - Append new attributes to the end of an AttributeList.

2018-06-24 Thread Michael Kruse via cfe-commits
Hi, multiple comments in the code indicate that the attribute order was surprising and probably has lead to bugs, and will lead to bugs in the future. The order had to be explicitly reversed to avoid those. This alone for me this seems a good reason to have the attributes in the order in which the

r335084 - Append new attributes to the end of an AttributeList.

2018-06-20 Thread Michael Kruse via cfe-commits
Author: meinersbur Date: Tue Jun 19 16:46:52 2018 New Revision: 335084 URL: http://llvm.org/viewvc/llvm-project?rev=335084&view=rev Log: Append new attributes to the end of an AttributeList. ... instead of prepending it at the beginning (the original behavior since implemented in r122535 2010-12-