Skip to content

Updated to GCC 4.9.3

Alex requested to merge branch/gcc-49 into branch/unified

With the latest GCC, some cameras could not boot:

Turns out, the latest GCC does not allow null pointers, and we were checking if anyone was writing to address 0.

Maybe we can remove the null pointer check now, since gcc already implements it? (edit: after a few tests, -fdelete-null-pointer-checks does not appear to have much effect - it inserts an undefined instruction only if we try to dereference a pointer hardcoded to 0, but not a pointer passed as parameter, that might be 0, so I would leave these checks)

Any other obvious issues introduced with the new gcc?

Merge request reports