This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/51643] Incorrect code produced for tail-call of weak function with -O2/-O3 option
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 20 Dec 2011 21:26:44 +0000
- Subject: [Bug target/51643] Incorrect code produced for tail-call of weak function with -O2/-O3 option
- Auto-submitted: auto-generated
- References: <bug-51643-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51643
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target|arm-eabi |
Component|rtl-optimization |target
Known to fail|4.6.1, 4.6.2 |
Build|x86_64-redhat-linux |
Severity|major |normal
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-20 21:26:44 UTC ---
I think this code is undefined. You are calling a weak function without
checking if it is null.