This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/27308] Compiler generates incorrect code when calling a function with the result of an inline function as parameter
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Apr 2006 12:49:21 -0000
- Subject: [Bug c/27308] Compiler generates incorrect code when calling a function with the result of an inline function as parameter
- References: <bug-27308-12470@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from rguenth at gcc dot gnu dot org 2006-04-25 12:49 -------
This is probably a problem with the inline asm constraints. Try removing the
__asm__("r0") from the __res variable. Also try simplifying the testcase by
storing the result of BIOS_ContainerUsage(1) to memory rather than calling
printf.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27308