gcc warning:'translating to 'fmulp' etc.

Please support our Assembly advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Nov 2006
Posts: 16
Reputation: sbenware is an unknown quantity at this point 
Solved Threads: 0
sbenware's Avatar
sbenware sbenware is offline Offline
Newbie Poster

gcc warning:'translating to 'fmulp' etc.

 
0
  #1
Dec 11th, 2007
I'm getting the following errors at compile time in Cygwin using gcc, but I'm not sure what they mean. My program runs without problems. Do I need to change the names of these operations? I'm afraid to tweak anything since it's working.

42: Warning: translating to `fmulp'
53: Warning: translating to `faddp'
60: Warning: translating to `fmulp'


Here is a snippet that contains these lines:
  1. " fstpl %0 \n"
  2. " movl $1,%%eax \n"
  3. "positive: \n"
  4. "//compute lg(n) \n"
  5. " fldl %1 \n"
  6. " fld1 \n"
  7. " fldl %0 \n"
  8. " fyl2x \n"
  9. " fmul \n"
  10. "//2^x=2^int(x)*2^frac(x) \n"
  11. " fld %%st(0) \n"
  12. " fld %%st(0) \n"
  13. "//compute integer portion \n"
  14. " frndint \n"
  15. " fxch \n"
  16. "//compute fractional portion \n"
  17. " fsub %%st(1),%%st(0) \n"
  18. " f2xm1 \n"
  19. " fld1 \n"
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 16
Reputation: sbenware is an unknown quantity at this point 
Solved Threads: 0
sbenware's Avatar
sbenware sbenware is offline Offline
Newbie Poster

Re: gcc warning:'translating to 'fmulp' etc.

 
0
  #2
Dec 12th, 2007
Solution: I added p to the end of fmul and fadd in my code and the warnings went away. I guess the program wanted to pop the stack. I'm not sure of the details, but there you go.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the Assembly Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC