[Bug target/83768] New: ARM: wrong optimization

2018-01-10 Thread sorganov at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: sorganov at gmail dot com Target Milestone: --- GCC 5.4.0 optimizes the following code to empty function, when in fact the code does clear 'count' bytes starting from 'buf' (it looks strange as it's a simplified version

[Bug target/83768] ARM: wrong optimization

2018-01-10 Thread sorganov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83768 --- Comment #2 from Sergey Organov --- 4.8.3 doesn't have the issue, and I don't have fast access to any 4.9. So presumably it has been fixed between 5.4.0 and 5.4.1... It'd still be nice to know if there is some optimization switch in 5.4.0 to

[Bug target/83768] ARM: wrong optimization

2018-01-11 Thread sorganov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83768 --- Comment #4 from Sergey Organov --- Well, except how one can be sure the cause is actually fixed and not just [temporary?] hidden, if we only have the fact that it works fine in GCC 6+? No objection to closing this though, provided no one is

[Bug middle-end/57845] ICE with -freg-struct-return on Sparc target

2015-11-05 Thread sorganov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57845 Sergey Organov changed: What|Removed |Added CC||sorganov at gmail dot com --- Comment

[Bug middle-end/57845] ICE with -freg-struct-return on SPARC

2015-11-05 Thread sorganov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57845 --- Comment #4 from Sergey Organov --- "WONTFIX: The problem described is a bug which will never be fixed." sounds very different from "nobody is interested in fixing it but but patches are welcome". No? Anyway, setting RESOLVED WONTFIX on an I

[Bug target/57845] ICE with -freg-struct-return on SPARC

2015-11-05 Thread sorganov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57845 --- Comment #6 from Sergey Organov --- Contrary to the rationale for closing this bug, the option -freg-struct-return seems to be supported and does work fine in some cases, see below. What do I miss? $ cat struct.c typedef struct { int i; } T;

[Bug target/57845] ICE with -freg-struct-return on SPARC

2015-11-06 Thread sorganov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57845 --- Comment #8 from Sergey Organov --- I'm trying to upgrade from 3.4.4 to 5.2.0, and I used -freg-struct-return for years with 3.4.4 with no issues. Not that there is huge amount of code that actually uses functions returning structures, but the

[Bug target/57845] ICE with -freg-struct-return on SPARC

2015-11-10 Thread sorganov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57845 --- Comment #15 from Sergey Organov --- Eric, thanks a lot for taking care of the issue!

[Bug c/68272] New: Unwanted out-of-line instances for C inline functions that are also GCC builtins.

2015-11-10 Thread sorganov at gmail dot com
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: sorganov at gmail dot com Target Milestone: --- When compiling C code, GCC generates out-of-line copy of any inline function that also happens to be a GCC builtin, in

[Bug c/68272] Unwanted out-of-line instances for C inline functions that are also GCC builtins.

2015-11-11 Thread sorganov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68272 Sergey Organov changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/68272] Unwanted out-of-line instances for C inline functions that are also GCC builtins.

2015-11-11 Thread sorganov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68272 Sergey Organov changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|FIXED

[Bug c/68272] Unwanted out-of-line instances for C inline functions that are also GCC builtins.

2015-11-11 Thread sorganov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68272 --- Comment #5 from Sergey Organov --- Thanks, but my particular problem is that I do want nice GCC builtin when it is available, and I want generic inline implementation, rather than function call, when GCC builtin is not available.

[Bug target/68408] New: sparc-elf, c++: broken support for attribute init_priority.

2015-11-18 Thread sorganov at gmail dot com
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: sorganov at gmail dot com Target Milestone: --- g++ at version 5.2.1 for sparc-elf misses proper support for attribute init_priority: resulting ".ctors" section does not hav

[Bug target/68408] broken support for attribute init_priority

2015-11-19 Thread sorganov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68408 --- Comment #7 from Sergey Organov --- Eric, thank you very much for the quick fix! I confirm it is fixed on sparc-elf-g++ (GCC) 5.2.1 20151119.

[Bug target/57845] ICE with -freg-struct-return on SPARC

2015-11-19 Thread sorganov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57845 --- Comment #16 from Sergey Organov --- I confirm it is fixed on sparc-elf-gcc (GCC) 5.2.1 20151119. Thanks one more time!

[Bug c++/68678] New: Initialization of pointer by constant expression using static ctor.

2015-12-03 Thread sorganov at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sorganov at gmail dot com Target Milestone: --- g++ 5 produces initialization for the following case using static constructor, while earlier versions of g++ as well as gcc 5 in C

[Bug c/68272] Unwanted out-of-line instances for C inline functions that are also GCC builtins.

2015-12-03 Thread sorganov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68272 --- Comment #6 from Sergey Organov --- For reference, the work-around for the problem is __attribute__((gnu_inline)), i.e., effectively turning inlining mode back to pre-c99.

[Bug c/68272] Unwanted out-of-line instances for C inline functions that are also GCC builtins.

2016-01-25 Thread sorganov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68272 --- Comment #8 from Sergey Organov --- That's exactly the problem: why builtins are (implicitly) declared "extern inline" in C99 compilation mode? It seems logical to rather declare them "inline" in this mode. Overall, even though my own issue