http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56148
Frank Mehnert changed:
What|Removed |Added
CC||fm3 at os dot
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55940
Bug #: 55940
Summary: Incorrect code for accessing parameters with 32-bit
Intel hosts
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCON
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55940
--- Comment #4 from Frank Mehnert 2013-01-15
13:53:04 UTC ---
The problem is that I cannot reproduce this problem either. Some versions of
gcc 4.7 might be affected (the affected user uses 'Exherbo gcc-4.7.2-r2'),
others not. As far as I c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55940
--- Comment #5 from Frank Mehnert 2013-01-15
15:03:14 UTC ---
Actually I was able to reproduce generating the buggy code. My gcc version:
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55940
--- Comment #7 from Frank Mehnert 2013-01-15
15:37:43 UTC ---
Actually this looks like some mixup in the generated machine code:
VBoxHost_RTR0MemObjGetPagePhysAddr():
c1b: 8b 0f mov(%edi),%ecx
c1d: 8b 47 04
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55940
--- Comment #8 from Frank Mehnert 2013-01-15
16:54:53 UTC ---
Created attachment 29172
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29172
Preprocessed source
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55940
--- Comment #9 from Frank Mehnert 2013-01-15
16:55:40 UTC ---
Just added the preprocessed source, sorry for the delay. It's the source code
from the VirtualBox ticket.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55940
--- Comment #10 from Frank Mehnert 2013-01-15
16:57:48 UTC ---
And regarding your comment, Jakub, in this case it's not a question of not
emitting the code of a function or not. The function code is emitted and the
code is definitely wrong
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55940
--- Comment #15 from Frank Mehnert 2013-01-16
09:01:02 UTC ---
Great, thank you Jakub!
As it will take some time until the Linux distributions will update their gcc
binaries to include this fix, do you have any suggestion how to work ar