[Bug target/51643] Incorrect code produced for tail-call of weak function with -O2/-O3 option

2011-12-22 Thread sipych at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51643 --- Comment #15 from Alexander Osipenko 2011-12-23 00:40:13 UTC --- Oh, I see, thanks!

[Bug target/51643] Incorrect code produced for tail-call of weak function with -O2/-O3 option

2011-12-22 Thread sipych at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51643 --- Comment #13 from Alexander Osipenko 2011-12-22 21:31:56 UTC --- Thanks, Richard! It now works fine with -mabi=aapcs Perhaps I don't understand some details, could you tell me why the -mabi=aapcs-linux is not included in this fix?

[Bug lto/51642] Weak variable reference triggers ICE with -flto option

2011-12-21 Thread sipych at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51642 Alexander Osipenko changed: What|Removed |Added Known to work||4.7.0 --- Comment #2 from Alexander

[Bug target/51643] Incorrect code produced for tail-call of weak function with -O2/-O3 option

2011-12-20 Thread sipych at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51643 --- Comment #6 from Alexander Osipenko 2011-12-20 23:33:06 UTC --- It seems reasonable to expect minimal consistency, either generating invalid (zero for example) reference for any direct weak function call, better marking it with "warning" or ev

[Bug target/51643] Incorrect code produced for tail-call of weak function with -O2/-O3 option

2011-12-20 Thread sipych at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51643 --- Comment #4 from Alexander Osipenko 2011-12-20 21:58:39 UTC --- >From ARM EABI specification (doc: ARM IHI 0044A) "On platforms that do not support dynamic pre-emption of symbols an unresolved weak reference to a symbol relocated by R_ARM_CAL

[Bug target/51643] Incorrect code produced for tail-call of weak function with -O2/-O3 option

2011-12-20 Thread sipych at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51643 --- Comment #3 from Alexander Osipenko 2011-12-20 21:39:11 UTC --- This behavior is explicitly defined in ARM RealView compiler, and GCC seems try to follow this convention.

[Bug rtl-optimization/51643] New: Incorrect code produced for tail-call of weak function with -O2/-O3 option

2011-12-20 Thread sipych at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51643 Bug #: 51643 Summary: Incorrect code produced for tail-call of weak function with -O2/-O3 option Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCO

[Bug lto/51642] New: Weak variable reference triggers ICE with -flto option

2011-12-20 Thread sipych at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51642 Bug #: 51642 Summary: Weak variable reference triggers ICE with -flto option Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCONFIRMED Severity: normal

[Bug c++/40843] access violation not detected for non dependent qualified enum value

2009-07-23 Thread sipych at gmail dot com
--- Comment #4 from sipych at gmail dot com 2009-07-24 00:00 --- // More similar cases. Static members also may be accessed #include class A { enum { value=1 }; // private static const int ci=2; static int fi() { return 3; } }; template // bug appears only if B is a

[Bug c++/40843] access violation not detected for non dependent qualified enum value

2009-07-23 Thread sipych at gmail dot com
--- Comment #3 from sipych at gmail dot com 2009-07-23 22:46 --- Also present in gcc 4.4.0 -- sipych at gmail dot com changed: What|Removed |Added Known to fail

[Bug c++/40843] access violation not detected for non dependent qualified enum value

2009-07-23 Thread sipych at gmail dot com
--- Comment #2 from sipych at gmail dot com 2009-07-23 22:08 --- (In reply to comment #1) > I think this is a duplicate of bug 21008. > Not shure, A::value may not be accessible neither at the template definition, nor at the instantiation time. -- http://gcc.gnu.org/bu

[Bug c++/40843] New: private access violation: compile bad code

2009-07-23 Thread sipych at gmail dot com
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sipych at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40843