This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Pb -fno-delayed-branch


  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]