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

[Bug middle-end/65330] restrict should be considered when folding through references from global vars


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
           Priority|P1                          |P3
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2015-03-06
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
I was thinking of sth else first - make sure that points-to analysis processes
initializers of readonly globals (when they bind to the current def).  In
your testcase the globals are not readonly - or did you mean to write

int * const varptr = &var;
int * const __restrict__ varptr2 = &var;

?  Your testcase also misses a declaration of 'var'.


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