psim failures with -O1

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Jan 29 08:48:01 UTC 2019


On 29/01/2019 09:14, Chris Johns wrote:
> Hi,
>
> I thought it may be a good idea to set the optimization level for the psim BSP
> to `-O1`. The xilinx_zynq_a9_qemu has this and it is useful.
>
> The change causes the number of test failures to jump from around 20 to over 230.
>
> Is this expected?

Yes, this is a compiler bug/feature. GCC generates a floating point 
instruction in a function which is called in ISR context. This leads to 
an exception.

On SPARC using -O0 to run the tests is also problematic due to the much 
higher stack usage.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list