# CodeSourcery Fails with FreeRTOS naked attr

**URL:** <https://forums.freertos.org/t/codesourcery-fails-with-freertos-naked-attr/20>\
**Category:** Kernel\
**Created:** [April 8, 2010, 8:29pm UTC](https://forums.freertos.org/t/codesourcery-fails-with-freertos-naked-attr/20 "2010-04-08T20:29:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [April 8, 2010, 8:29pm UTC](https://forums.freertos.org/t/codesourcery-fails-with-freertos-naked-attr/20/1 "2010-04-08T20:29:24Z")

</div>

**[preetpal](https://sourceforge.net/u/preetpal/)** wrote on [Thursday, April 08, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/00493bd4/#9434):

Richard,

I noticed you had some discussions over at CodeSourcery about compilation failure due to the naked attribute.&nbsp; Basically, the xQueueSendFromISR() fails and produces a compiler error as:  
uart/uart0ISR.cpp:66: internal compiler error: in expand\_expr\_addr\_expr\_1, at expr.c:6858

Your discussiosn:  
[http://www.codesourcery.com/archives/arm-gnu/msg02523.html](http://www.codesourcery.com/archives/arm-gnu/msg02523.html)

I’m having this problem and while I’m sure this is a CodeSourcery GCC issue (since GNUARM 4.3.2 works fine), I just wanted to find out if a resolution was reached.&nbsp; Apparently, the latest Lite version of CodeSourcery still has this problem.&nbsp; Is there something that can be done with FreeRTOS code to avoid this problem, or is this a bug that should be filed with CodeSourcery?

Thanks,  
Preet

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [April 9, 2010, 8:46am UTC](https://forums.freertos.org/t/codesourcery-fails-with-freertos-naked-attr/20/2 "2010-04-09T08:46:47Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Friday, April 09, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/00493bd4/#dc73):

It was a bug that had been introduced into that version of CodeSourcery’s GCC - I thought it had since been fixed.&nbsp; The code was indeed valid ARM code.

Regards.
