Re: Unconditional trap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Sep 12, 2020 at 3:26 PM Marc Glisse <marc.glisse@xxxxxxxx> wrote:
>
> On Sat, 12 Sep 2020, William Tambe via Gcc-help wrote:
>
> > However it causes the compiler to generate a trap when address 0 is
> > used; in the example below, I have a function that prints characters
> > through the UART using address 0; but the resulting assembly generates
> > a function that traps instead.
>
> Are you using -fno-delete-null-pointer-checks?

Using -fno-delete-null-pointer-checks helps.

Is there a way to make it permanent in the GCC source such that
providing that option is not needed ?

>
> --
> Marc Glisse



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux