[Bug c/71255] Implement #pragma may_alias

2024-05-07 Thread fw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #31 from Florian Weimer --- Fixed via r7-1272. Thanks!

[Bug c/71255] Implement #pragma may_alias

2024-05-07 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|SUSPENDED

[Bug c/71255] Implement #pragma may_alias

2016-11-19 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 Andrew Pinski changed: What|Removed |Added Target Milestone|7.0 |---

[Bug c/71255] Implement #pragma may_alias

2016-06-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|SUSPENDED --- Comment #29 from Marek

[Bug c/71255] Implement #pragma may_alias

2016-06-08 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #28 from Florian Weimer --- We can put such a version check into the glibc headers and see how it works out in practice. As long as there is consensus to fix any related breakage (related to the attribute and forward declarations)

[Bug c/71255] Implement #pragma may_alias

2016-06-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #27 from Marek Polacek --- Typo: I meant __GNUC__ >= 7 as this is fixed for GCC 7 and onwards.

[Bug c/71255] Implement #pragma may_alias

2016-06-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #26 from Marek Polacek --- (In reply to Florian Weimer from comment #22) > (In reply to Marek Polacek from comment #21) > > The testcase in Comment 14 should now compile fine. > > What's the best way to detect that a compiler has

[Bug c/71255] Implement #pragma may_alias

2016-06-07 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #25 from Florian Weimer --- (In reply to Manuel López-Ibáñez from comment #23) > (In reply to Florian Weimer from comment #22) > > (In reply to Marek Polacek from comment #21) > > > The testcase in Comment 14 should now compile fine.

[Bug c/71255] Implement #pragma may_alias

2016-06-07 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #24 from Manuel López-Ibáñez --- (In reply to Manuel López-Ibáñez from comment #23) > (In reply to Florian Weimer from comment #22) > > (In reply to Marek Polacek from comment #21) > > > The testcase in Comment 14 should now compile

[Bug c/71255] Implement #pragma may_alias

2016-06-07 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 Manuel López-Ibáñez changed: What|Removed |Added CC||manu at gcc dot gnu.org ---

[Bug c/71255] Implement #pragma may_alias

2016-06-07 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #22 from Florian Weimer --- (In reply to Marek Polacek from comment #21) > The testcase in Comment 14 should now compile fine. What's the best way to detect that a compiler has this fix? We cannot use a configure check. Is there

[Bug c/71255] Implement #pragma may_alias

2016-06-07 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #21 from Marek Polacek --- The testcase in Comment 14 should now compile fine.

[Bug c/71255] Implement #pragma may_alias

2016-05-30 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #20 from Florian Weimer --- (In reply to rguent...@suse.de from comment #19) > On Fri, 27 May 2016, fw at gcc dot gnu.org wrote: > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 > > > > --- Comment #18 from Florian Weimer

[Bug c/71255] Implement #pragma may_alias

2016-05-27 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #19 from rguenther at suse dot de --- On Fri, 27 May 2016, fw at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 > > --- Comment #18 from Florian Weimer --- > (In reply to rguent...@suse.de from comment

[Bug c/71255] Implement #pragma may_alias

2016-05-27 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #18 from Florian Weimer --- (In reply to rguent...@suse.de from comment #17) > On Fri, 27 May 2016, fw at gcc dot gnu.org wrote: > > I think the real question is whether it matters anywhere if a pointer to an > > incomplete struct

[Bug c/71255] Implement #pragma may_alias

2016-05-27 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #17 from rguenther at suse dot de --- On Fri, 27 May 2016, fw at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 > > --- Comment #16 from Florian Weimer --- > (In reply to Marek Polacek from comment

[Bug c/71255] Implement #pragma may_alias

2016-05-27 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #16 from Florian Weimer --- (In reply to Marek Polacek from comment #15) > Yeah, only the C++ side was changed. I think it's wrong that we reject the > testcase in Comment 14 in C (I have a fix for that). Good. > But even with

[Bug c/71255] Implement #pragma may_alias

2016-05-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #15 from Marek Polacek --- Yeah, only the C++ side was changed. I think it's wrong that we reject the testcase in Comment 14 in C (I have a fix for that). But even with that fixed we still need the new #pragma because of the second

[Bug c/71255] Implement #pragma may_alias

2016-05-26 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #14 from Florian Weimer --- I believe the equivalent C test case: #include struct sockaddr; struct sockaddr *f(); struct __attribute__((may_alias)) sockaddr {}; struct sockaddr *f() { return NULL; } still does not work:

[Bug c/71255] Implement #pragma may_alias

2016-05-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #13 from Marek Polacek --- I'd like to point out that the test case struct sockaddr; struct sockaddr *f(); struct __attribute__((may_alias)) sockaddr {}; struct sockaddr *f() { return nullptr; } (from

[Bug c/71255] Implement #pragma may_alias

2016-05-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 Marek Polacek changed: What|Removed |Added CC||jason at gcc dot gnu.org,

[Bug c/71255] Implement #pragma may_alias

2016-05-24 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #11 from rguenther at suse dot de --- On Tue, 24 May 2016, mpolacek at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 > > --- Comment #10 from Marek Polacek --- > Well, so far my plan is to gather

[Bug c/71255] Implement #pragma may_alias

2016-05-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #10 from Marek Polacek --- Well, so far my plan is to gather symbols in #pragma GCC may_alias SYMBOL to some vector of symbols and then when declaring a SYMBOL check if it's in the vector and if so, apply the may_alias attribute.

[Bug c/71255] Implement #pragma may_alias

2016-05-24 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #9 from Florian Weimer --- (In reply to rguent...@suse.de from comment #8) > While a pragma might work I'd say for the case in question we'd like to > have a "tentative" forward declaration that can be merged with subsequent >

[Bug c/71255] Implement #pragma may_alias

2016-05-24 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #8 from rguenther at suse dot de --- On Tue, 24 May 2016, mpolacek at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 > > --- Comment #7 from Marek Polacek --- > But before I start, do y'all feel like

[Bug c/71255] Implement #pragma may_alias

2016-05-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #7 from Marek Polacek --- But before I start, do y'all feel like this attribute should be applicable too all symbols the may_alias attribute is applicable to? I.e. not just structs, but other decls, too.

[Bug c/71255] Implement #pragma may_alias

2016-05-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|