Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

Inlining with gcc 3.4.3

Posted by Jörg Krein on April 18, 2005
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



RE: Inlining with gcc 3.4.3

Posted by Richard on April 18, 2005
The inlining is a little optimistic. It only has an effect with one of the x86 ports (one of the original ports). 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. 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. 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. Improvements in the debug support within WinAVR means they are no longer required.

Regards.

RE: Inlining with gcc 3.4.3

Posted by Nobody/Anonymous on April 19, 2005
I use the -Winline option to see if my own inlines are working
I didn't use the batch files


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS