Skip to content

Adjust -finline-limit so it does not cause problems #322

Closed
@dhalbert

Description

@dhalbert

To make the image fit on non-Express boards, I set -finline-limit=19. This is too low. It apparently causes some routines to disappear completely with -flto.

One way to check is to see if deinit checking is working. Here is an example of it not working:

>>> import board,digitalio
>>> d = digitalio.Di
DigitalInOut    Direction
>>> d = digitalio.DigitalInOut(board.D2)
>>> d.value
False
>>> d.deinit()
>>> d.value
False

The second d.value should throw an exception saying the value can no longer be used.

If we push -finline-limit up, the non-express board images may no longer fit. We'll have to figure out a different way of saving space.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions