https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96318
Iain Sandoe <iains at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |ASSIGNED Assignee|unassigned at gcc dot gnu.org |iains at gcc dot gnu.org Target Milestone|--- |9.4 --- Comment #3 from Iain Sandoe <iains at gcc dot gnu.org> --- I fixed this for master, but failed to mention the PR number. r11-7704-gc86c5195c8c02f58 Part of the problem is that Darwin defaults to _FORTIFY_SOURCE if that is not explicitly given, and this results in the substitution of _chk builtins. This means that the disabling of the regular builtins fails (and we never have the call expected). That's fixable by adding -D _FORTIFY_SOURCE=0 to the command line. The other part of the issue is that the system address symboliser (atos) is not consuming the debug / frame information we are producing. At present, it's not clear if that's a GCC debug bug or an atos bug. Adding "-gdwarf-3" is sufficient to fix things in this case and is functional for the test-case. Investigation of the debug etc. will need to be deferred to the next stage1 and I am leaving this PR open, since the problem also exists on 10.x and 9.x (I will back port to at least 10.x).