Building a Debuggable Cross Compiler

Martin Sebor msebor@gmail.com
Wed Dec 13 16:50:00 GMT 2017


On 12/13/2017 07:27 AM, Sebastian Huber wrote:
> Hello,
>
> in order to make some progress with the following PR
>
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83387
>
> I would like to build a debuggable cross compiler. How to do this for a
> native compiler is described here:
>
> https://gcc.gnu.org/wiki/DebuggingGCC#gccbuilddebug
>
> Unfortunately I get:
>
> make STAGE1_CXXFLAGS="-g -O0" all-stage1
> make: Nothing to be done for 'all-stage1'.
>
> Does anyone know the magic flags and targets for the cross compiler? I
> would like to debug the gnat1 program eventually.

Setting CFLAGS and CXXFLAGS and leaving out the all-stage1 target
works for me.  Setting STAGE1_CXXFLAGS isn't necessary.

Martin



More information about the Gcc-help mailing list