# Inlining with gcc 3.4.3

**URL:** <https://forums.freertos.org/t/inlining-with-gcc-3-4-3/542>\
**Category:** Kernel\
**Created:** [April 18, 2005, 3:02pm UTC](https://forums.freertos.org/t/inlining-with-gcc-3-4-3/542 "2005-04-18T15:02:58Z")\
**Posts on this page:** 3\
**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 18, 2005, 3:02pm UTC](https://forums.freertos.org/t/inlining-with-gcc-3-4-3/542/1 "2005-04-18T15:02:58Z")

</div>

**[kreinims](https://sourceforge.net/u/kreinims/)** wrote on [Monday, April 18, 2005](https://sourceforge.net/p/freertos/discussion/382005/thread/19e4e9f2/#77a2):

Hi,  
I don’t know if previous version of gcc behave different but  
with newest WinAVR i can see warnings like:  
task.h:922: warning: inlining failed in call to ‘vTaskSwitchContext’: function body not available

---

<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 18, 2005, 3:13pm UTC](https://forums.freertos.org/t/inlining-with-gcc-3-4-3/542/2 "2005-04-18T15:13:14Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Monday, April 18, 2005](https://sourceforge.net/p/freertos/discussion/382005/thread/19e4e9f2/#77a2/4b1f):

The inlining is a little optimistic.&nbsp; It only has an effect with one of the x86 ports (one of the original ports).&nbsp; Previously I doubt very much it actually got inlined anyway so it is probably only the generation of the warning that has changed.

However, I am using gcc V3.4.3 and do not see the warning.&nbsp; Are you using the files as downloaded?

To remove the warning you can add the line:

#define inline

at the bottom of the portmacro.h file you are using.&nbsp; This will #define away all the inlines without actually changing the compiler output.

Incidentally, V3.0.0 of FreeRTOS no longer uses the batch files to build the AVR demo.&nbsp; Improvements in the debug support within WinAVR means they are no longer required.

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [April 19, 2005, 8:19am UTC](https://forums.freertos.org/t/inlining-with-gcc-3-4-3/542/3 "2005-04-19T08:19:14Z")

</div>

**nobody** wrote on [Tuesday, April 19, 2005](https://sourceforge.net/p/freertos/discussion/382005/thread/19e4e9f2/#77a2/78f5):

I use the -Winline option to see if my own inlines are working  
I didn’t use the batch files
