Forum > iPhone/iPad
XCode 8.3 and "pointer not aligned at address" warning
mischi:
The warnings are caused by parts of the rtl with the runtime type information (RTTI) is handled. CODEALIGN will only affect the code of your program. My guess is that you would need to compile the rtl with CODEALIGN if you want to get rid of the warning.
That's why i switched of all warnings of the linker.
mayevski:
--- Quote from: mischi on May 24, 2017, 11:07:51 pm ---The warnings are caused by parts of the rtl with the runtime type information (RTTI) is handled. CODEALIGN will only affect the code of your program. My guess is that you would need to compile the rtl with CODEALIGN if you want to get rid of the warning.
That's why i switched of all warnings of the linker.
--- End quote ---
Thank you for the details. I recommended our customer to do the same (turn off warning), but for certain reasons, this is not an option for them. So we'll need to wait for FPC update.
molly:
pardon my intrusion and ignorance.
--- Quote ---"Error: Illegal alignment directive"
--- End quote ---
Strange, but perhaps recompiling rtl with -Oa (and specifying the PROC and JUMP parameters, and their preferred alignment size) might be able to help you out ?
mischi:
--- Quote from: mayevski on May 25, 2017, 07:54:36 am ---Thank you for the details. I recommended our customer to do the same (turn off warning), but for certain reasons, this is not an option for them. So we'll need to wait for FPC update.
--- End quote ---
As much as I know about the parties (apple & fpc) involved, there is a problem, that no party is willing to move from its point of view. Ignoring the warning (post process the output?) or recompiling the rtl with alignment are the only options at the moment and I do not see this to change.
Navigation
[0] Message Index
[*] Previous page