This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Pb -fno-delayed-branch
- To: help-gcc at gnu dot org
- Subject: Pb -fno-delayed-branch
- From: Bertrand Croq <croq at irisa dot fr>
- Date: Tue, 24 Aug 1999 15:56:26 +0200
- Newsgroups: gnu.gcc.help
- Organization: IRISA, Campus de Beaulieu, 35042 Rennes Cedex, FRANCE
- Xref: wodc7nx0 gnu.gcc.help:678
Here is my problem: I wanted to compile a C file with the -O1 option
but without delay-slots (-fno-delayed-branch on Sparc architecture).
Everything seemed ok: each CALL have a NOP in its delay-slot... but one
CALL had a strange instruction in its delay-slot:
...
CALL @@@@
=> ADD %o7, 0x1a4, %o7
...
This instruction modifies the return address of the calling function
(not of the called one)... Can someone explain me this ?
PS: the called function is "printf"
Bertrand