AnsweredAssumed Answered

Cannot Debug with Link Time Optimisations On

Question asked by Peter Barbara on Dec 11, 2017
Latest reply on Feb 14, 2018 by Martin Kovar

When turning on the link time optimisations (the -flto compile option), the debug info in the elf file is being removed for all but the .S files.  If you look at the .map file you can also see that it is not listed.  Is this a consequence of having this level of optimisations on or is it a bug?


Target Info

* MPC5777C

* Using S32DS V1.2 for Power PC

* Also compiling with max optimizations on, the -O3 switch

* debug compile options are -g3 -gdwarf-4


If you have any questions please let me know.