profing code destroys register parameters
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
If you compile your code with -pg, parameters don't have the correct values in procedures. This is caused by the fact, that the profiling helper functions mcount is called, before parameters are moved to the stack inside the procedure. Therefore parameters passed in registers used by mcount are destroyed.
Additional information:
Reporter: Vincent Snijders
EMail: vslist at zonnet dot nl
Mantis conversion info:
- Mantis ID: 5134
- OS: WIN32
- Version: 1.9.3
- Fixed in version: 1.9.3