Upgrading GCC in DAVE4

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

If you wish to use the latest GCC version in DAVE4, follow next steps:
1. Download and install the latest GCC from https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
2. In DAVE4, go to the Eclipse menu → (Windows →) Preferences → C/C++ → Build → Environment
3. Change the value of ARM_GCC_HOME to point to the installation path of the GCC (step 1).
4716.attach
4. Copy libiconv2.dll, libintl3.dll, make.exe and rm.exe from DAVE4 installation path eclipse/ARM-GCC-49/bin to the installation path of the GCC (step 1) bin folder.
2419.attach
Have fun.

Regards,
Jesus
0 Likes
8 Replies
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

ARM released 6-2017-q1-update, https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads

Regards,
Jesus
0 Likes
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

Since a few months a new version of GCC is available 6-2017-q2-update, https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads

Regards,
Jesus
0 Likes
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

A new version of ARM GCC has been relased, https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
Follow instructions above to give it a try in DAVE4.


Regards,
Jesus
0 Likes
User8720
Level 1
Level 1
First like given 5 replies posted Welcome!
Hi.

I think it should be mentioned that for a project specific toolchain the variable ARM_GCC_HOME has to be deleted in the global scope settings/properties. and adjusted in the project specific settings/properties.
Otherwise allways the global settings/properties will be used to choose the toolchain.
0 Likes
User15412
Level 1
Level 1
what variable ARM_GCC_HOME
0 Likes
User15044
Level 1
Level 1
WARNING FOR ALL DAVE USERS:
The GCC version 4.9.3 supplied with DAVE 4.4.2 suffers from optimizer bug that can drop null-pointer checks from your code. I just found in my own code that the bug activates on optimization levels O2, O3 and Os. Description of the bug can be found here:
https://stackoverflow.com/questions/36816363/gcc-4-9-3-more-aggressive-null-pointer-check-removal

The same issue is still present at least in GCC 5.3.0, but it is not clear for me when or if this has been fixed in any official release:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71867
0 Likes
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

A new version of ARM GCC has been released, 8-2018q4-major, https://launchpad.net/gcc-arm-embedded/+announcement/15181
Follow instructions above to give it a try in DAVE4.


Regards,
Jesus
0 Likes
User7372
Level 2
Level 2
jferreira wrote:
Hi,

A new version of ARM GCC has been released, 8-2018q4-major, https://launchpad.net/gcc-arm-embedded/+announcement/15181
Follow instructions above to give it a try in DAVE4.


Regards,
Jesus


a bit long ago ... but for those who would like to try, 8-2018q4-major has a bug and is not usable: https://bugs.launchpad.net/gcc-arm-embedded/+bug/1810274

9-2019-q4-major however seems to work fine.
0 Likes