https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
--- Comment #26 from rguenther at suse dot de ---
On Tue, 12 Jul 2016, npl at chello dot at wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
>
> --- Comment #25 from npl at chello dot at ---
> Yes, that works fine. I just meant to sa
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
--- Comment #25 from npl at chello dot at ---
Yes, that works fine. I just meant to say it needs more work than casting to a
type with less alignment, and unless explicitly marked with this pragma you can
expect a compiler to access like the (dedu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
--- Comment #24 from Oleg Endo ---
(In reply to npl from comment #22)
>
> Its also generally quite hard to force the compiler to do less-aligned
> accesses, and I haven`t seen this "solution" anywhere. (Probably because it
> doesn`t work on any
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
--- Comment #23 from rguenther at suse dot de ---
On Tue, 12 Jul 2016, npl at chello dot at wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
>
> --- Comment #22 from npl at chello dot at ---
> > > 0014 :
> > > 14: e3a03000
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
--- Comment #22 from npl at chello dot at ---
(In reply to Richard Biener from comment #21)
> (In reply to Georg-Johann Lay from comment #18)
> > (In reply to rguent...@suse.de from comment #12)
> > > On Fri, 8 Jul 2016, olegendo at gcc dot gnu.or
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
--- Comment #21 from Richard Biener ---
(In reply to Georg-Johann Lay from comment #18)
> (In reply to rguent...@suse.de from comment #12)
> > On Fri, 8 Jul 2016, olegendo at gcc dot gnu.org wrote:
> >
> > > void test (const int *a, int *b)
> >
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
--- Comment #20 from Richard Biener ---
Created attachment 38879
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38879&action=edit
patch to remove memcpy inline expansion misalign limit
This patch lifts the restrictions on memcpy to assignm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
--- Comment #19 from Richard Biener ---
(In reply to npl from comment #17)
> I got interrupted by a colleague at work, part 2 of the ramblings...
>
> Everything you could argue against memcpy beeing replaced by simpler
> instructions, doesnt cha
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
--- Comment #18 from Georg-Johann Lay ---
(In reply to rguent...@suse.de from comment #12)
> On Fri, 8 Jul 2016, olegendo at gcc dot gnu.org wrote:
>
> > void test (const int *a, int *b)
> > {
> > a[100] = 1;
> > b[200] = 2;
> >
> > std::
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
--- Comment #17 from npl at chello dot at ---
I got interrupted by a colleague at work, part 2 of the ramblings...
Everything you could argue against memcpy beeing replaced by simpler
instructions, doesnt change that the same issue persists with
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
--- Comment #16 from npl at chello dot at ---
rguenther: Funny enough, I am using memcpy because thats the only standard
conform way to move data around that might be aliased. And I use this often to
parse binary streams from a network.
I think y
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
--- Comment #15 from Richard Biener ---
Doesn't sanitize anything for
int main()
{
int i, j;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
--- Comment #14 from rguenther at suse dot de ---
On Fri, 8 Jul 2016, olegendo at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
>
> --- Comment #13 from Oleg Endo ---
> (In reply to rguent...@suse.de from comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
--- Comment #13 from Oleg Endo ---
(In reply to rguent...@suse.de from comment #12)
>
> No, because the access is performed as 'int'.
>
> > Why should memcpy be any different?
>
> Because the memcpy stmt doesn't constitute a memory access bu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
--- Comment #12 from rguenther at suse dot de ---
On Fri, 8 Jul 2016, olegendo at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
>
> --- Comment #11 from Oleg Endo ---
> (In reply to rguent...@suse.de from comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
--- Comment #11 from Oleg Endo ---
(In reply to rguent...@suse.de from comment #10)
>
> What makes the parameter type special? Would
>
> void test (const int *a, int *b)
> {
> std::memcpy ((char *)b, (char *)a, t);
> }
>
> be invalid to opt
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
--- Comment #10 from rguenther at suse dot de ---
On Fri, 8 Jul 2016, olegendo at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
>
> --- Comment #9 from Oleg Endo ---
> (In reply to rguent...@suse.de from comment #
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
--- Comment #9 from Oleg Endo ---
(In reply to rguent...@suse.de from comment #8)
>
> But there is no good reasoning that can be applied that it is a valid
> transform. What does clang do when s is void * and you cast that to
> uint32_t *? Not
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
--- Comment #8 from rguenther at suse dot de ---
On Fri, 8 Jul 2016, npl at chello dot at wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
>
> npl at chello dot at changed:
>
>What|Removed |Added
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
npl at chello dot at changed:
What|Removed |Added
CC||npl at chello dot at
--- Comment #
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
--- Comment #6 from Richard Biener ---
*** Bug 67676 has been marked as a duplicate of this bug. ***
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
Richard Biener changed:
What|Removed |Added
CC||anton at samba dot org
--- Comment #5 fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
Georg-Johann Lay changed:
What|Removed |Added
Keywords||missed-optimization
Target
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
Oleg Endo changed:
What|Removed |Added
Target||sh*-*-* arm*-*-* avr*-*-*
Status|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
Richard Guenther changed:
What|Removed |Added
CC||jay.foad at gmail dot com
--- Comment
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
Richard Guenther changed:
What|Removed |Added
CC||rguenth at gcc dot gnu.org
--- Comment
26 matches
Mail list logo