View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0031696||FPC||Compiler||public||2017-04-22 13:06||2018-10-21 22:52|
|Reporter||Karl-Michael Schindler||Assigned To||Jonas Maebe|
|Status||closed||Resolution||no change required|
|Platform||darwin||OS||Mac OS X|
|Summary||0031696: Many linker warnings after update to Xcode 8.3 about not aligned pointer address|
Assembling (pipe) test.s
ld: warning: pointer not aligned at address 0x1000218CF (_RTTI_$SYSTEM_$$_openchararray + 31 from /sw/lib/fpc/3.0.2/units/x86_64-darwin/rtl/system.o)
and many more.
The program works, but the warnings are a nuisance.
Rebuilding fpc from sources did not fix it, 3.0.2 or 3.1.1.
Also the same for i386-darwin.
I also tried to enforce alignment during rebuilding fpc with -Oa=16, but it did not fix it.
The compiler D seems to have the same issue: https://issues.dlang.org/show_bug.cgi?id=17289
|Tags||No tags attached.|
|Fixed in Revision|
||x86 perfectly supports unaligned pointers. I don't understand the point of the warning. We pack the RTTI data on purpose so it takes up less space.|
That means that passing -w (no warnings) to the linker is the only option?
Is there any chance to revert this through a bug report to Apple?
update to Xcode 8.3.2 (ld64-278.4) did not change this issue.
> That means that passing -w (no warnings) to the linker is the only option?
I don't know. Maybe there is a specific option to only switch off this warning.
> Is there any chance to revert this through a bug report to Apple?
You can always try. At the very least, they will probably explain why it was added.
||The warning seems to have gone with Xcode9 (ld64-302.3). However, I had switched off the warnings and how can i know that the switch on was successful. Can someone actually confirm that the warning goes away by updating to Xcode9?|
||These warnings indeed no longer seem to show up in current Xcode versions.|
||Thanks to everyone.|
|2017-04-22 13:06||Karl-Michael Schindler||New Issue|
|2017-04-22 13:13||Jonas Maebe||Note Added: 0099764|
|2017-04-22 13:28||Karl-Michael Schindler||Note Added: 0099766|
|2017-04-22 14:52||Karl-Michael Schindler||Note Edited: 0099766||View Revisions|
|2017-04-22 15:44||Jonas Maebe||Note Added: 0099778|
|2017-10-01 21:23||Karl-Michael Schindler||Note Added: 0103141|
|2018-10-21 22:08||Jonas Maebe||Note Added: 0111507|
|2018-10-21 22:08||Jonas Maebe||Status||new => resolved|
|2018-10-21 22:08||Jonas Maebe||Resolution||open => no change required|
|2018-10-21 22:08||Jonas Maebe||Assigned To||=> Jonas Maebe|
|2018-10-21 22:51||Karl-Michael Schindler||Note Added: 0111509|
|2018-10-21 22:51||Karl-Michael Schindler||Status||resolved => closed|