: target
Assignee: unassigned at gcc dot gnu.org
Reporter: d.salikhov at samsung dot com
Target Milestone: ---
Compiled with -Os and with -O2 (result is the same):
#include
void *my_func(void *s, size_t n)
{
memset(s, 0, n);
return s;
}
The generated code is following
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60606
--- Comment #6 from D.Salikhov ---
Created attachment 32817
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32817&action=edit
Yet another code sample
Add less factitious code sample reproducing the issue.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60606
D.Salikhov changed:
What|Removed |Added
Status|RESOLVED|UNCONFIRMED
Resolution|WONTFIX
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60606
--- Comment #2 from D.Salikhov ---
I suppose it is a bug as according to ARM Architecture Reference Manual,
A8.8.13 AND (immediate), pc is valid register for using in 'AND' instruction as
an input.
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: d.salikhov at samsung dot com
Created attachment 32414
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32414&action=edit
Code sample reproducing the bug
Reproduced on 4.8.0+ and on trunk.
*How to re