Search found 8 matches

by mtrescott
Wed Dec 16, 2020 4:55 am
Forum: Bug Reports
Topic: GCC 10 Inlining behavior breaks RT test 12-7 Topic is solved
Replies: 17
Views: 1246

Re: GCC 10 Inlining behavior breaks RT test 12-7 Topic is solved

Hi Giovanni, thanks for finding the bug, wish I could have been of more help but I didn't have time to learn what I'd need to know to investigate it myself.
by mtrescott
Mon Dec 14, 2020 3:55 pm
Forum: Bug Reports
Topic: GCC 10 Inlining behavior breaks RT test 12-7 Topic is solved
Replies: 17
Views: 1246

Re: GCC 10 Inlining behavior breaks RT test 12-7 Topic is solved

Never had a chance to really dive into it, all I can tell you is that it's not GCC 10 specific, it's just that inlining is enabled by default at the O2 optimization level and inlining causes this bug.
by mtrescott
Tue Oct 27, 2020 1:37 pm
Forum: Bug Reports
Topic: GCC 10 Inlining behavior breaks RT test 12-7 Topic is solved
Replies: 17
Views: 1246

Re: GCC 10 Inlining behavior breaks RT test 12-7 Topic is solved

Hi, The demo that triggers the problem is the RT-TM4C123G-LAUNCHPAD from contrib. The problem shows up whether I build against ChibiOS 20.03 or trunk (although in 20.03 the benchmarks were test suite #11 of course). I added -v to my compiler options to verify that it's using the ARM Embedded toolcha...
by mtrescott
Tue Oct 27, 2020 5:52 am
Forum: Bug Reports
Topic: GCC 10 Inlining behavior breaks RT test 12-7 Topic is solved
Replies: 17
Views: 1246

Re: GCC 10 Inlining behavior breaks RT test 12-7 Topic is solved

I tried ChibiStudio (with the ARM toolchain) on Linux and you are right, the problem does not appear! However, if I use ChibiStudio on Windows (also with the ARM toolchain) and compile with -finline-functions , then this bug appears. I tried both GCC 9 and GCC 7; both of them trigger the problem whe...
by mtrescott
Sat Oct 24, 2020 9:58 pm
Forum: Bug Reports
Topic: GCC 10 Inlining behavior breaks RT test 12-7 Topic is solved
Replies: 17
Views: 1246

Re: GCC 10 Inlining behavior breaks RT test 12-7 Topic is solved

Hi Giovanni,

Wow, that was a fast response! Not sure if you saw my edit; enabling inlining on GCC 9 also triggers this problem.

Matthew
by mtrescott
Sat Oct 24, 2020 9:50 pm
Forum: Bug Reports
Topic: GCC 10 Inlining behavior breaks RT test 12-7 Topic is solved
Replies: 17
Views: 1246

GCC 10 Inlining behavior breaks RT test 12-7 Topic is solved

GCC 10 enables inlining by default at the -O2 optimization level. For some reason, this causes RT test sequence 12-7 to go into an infinite loop when attempting to reset the semaphore. I'm not able to fully make sense of the disassembly, but poking around the variables in GDB, it looks like the prio...
by mtrescott
Tue Oct 13, 2020 7:50 am
Forum: Tiva Support
Topic: Using latest ChibiOS and ChibiStudio with Tiva requires a few small changes
Replies: 1
Views: 2089

Re: Using latest ChibiOS and ChibiStudio with Tiva requires a few small changes

Oops, here are a couple other things I forgot: 5. Set path correctly for LDSCRIPT variable You need to change the LDSCRIPT variable in the Makefile to match the following: LDSCRIPT= $(CHIBIOS_CONTRIB)/os/common/startup/ARMCMx/compilers/GCC/ld/TM4C123xH6.ld 6. Enable PAL_USE_CALLBACKS This is a tempo...
by mtrescott
Tue Oct 13, 2020 2:17 am
Forum: Tiva Support
Topic: Using latest ChibiOS and ChibiStudio with Tiva requires a few small changes
Replies: 1
Views: 2089

Using latest ChibiOS and ChibiStudio with Tiva requires a few small changes

Just getting started with ChibiOS using the TM4C123GXL port! Looks like it's gotten a little dusty unfortunately, but the changes I needed to make were pretty minor: 1. Get a copy of OpenOCD with the TI-ICDI driver enabled On openSUSE Linux the OpenOCD package already has this driver enabled. Howeve...

Go to advanced search