GCC version for the latest Beaglebone Black image

The latest BBB image has gcc 8.3.0 in the repos. Does it mean the libraries were compiled with this version of gcc?
Is it ok to use arm-linux-gnueabihf gcc 7.5.0 (available in Ubuntu 18.04 repos) for cross-compiling to BBB or strictly 8.3.0 is needed?

I’ve used the 7.5.0 toolchain with the 5.4 kernel and it seemed fine.

You can pull down the 7.5.0 toolchain from the following link:
https://releases.linaro.org/components/toolchain/binaries/latest-7/arm-linux-gnueabihf/

I use the following:
gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf

You could also pull down the 8.3 ARM GCC toolchain which should be fine:
https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads/8-3-2019-03

This one works for me even with the 4.19 kernel on a BB:
gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tar.xz

Cheers,

Jon