This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
How to teach gcc, that registers are clobbered by api calls?
- From: Kai Tietz <Kai dot Tietz at onevision dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 21 Apr 2008 09:48:42 +0200
- Subject: How to teach gcc, that registers are clobbered by api calls?
Hi,
I found, that the problem for an optimized build (by -O2) is broken for
the x86_64-pc-mingw32 target, because the runtime functions from msvcrt
are clobbering registers (%r10 upto %r15). I tried to get it solved by
call_used and fixed_regs, but it seems not to work. May somebody could
give me a hint how to solve this problem?
Thanks in advance,
Kai
| (\_/) This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.