[U-Boot] [PATCH] lib_arm: fix build error with gcc 4.4 and above
Alexander Stein
alexander.stein at systec-electronic.com
Fri Sep 17 08:43:35 CEST 2010
Hello,
On Thursday 16 September 2010, 19:44:20 you wrote:
> This patch fixes lib_arm/board.c build errors.
> The combination of "weak" alias and "inline" attributes
> lead to a compile time error when using gcc version 4.4 and above.
>
> Signed-off-by: Stanislav O. Bezzubtsev <stanislav.bezzubtcev at auriga.com>
> ---
> lib_arm/board.c | 18 +++++++++---------
> 1 files changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/lib_arm/board.c b/lib_arm/board.c
> index d6864bc..2f027a9 100644
> --- a/lib_arm/board.c
> +++ b/lib_arm/board.c
> @@ -124,23 +124,23 @@ void *sbrk (ptrdiff_t increment)
> * May be supplied by boards if desired
> */
> void inline __coloured_LED_init (void) {}
> -void inline coloured_LED_init (void) __attribute__((weak,
> alias("__coloured_LED_init"))); +void coloured_LED_init (void)
> __attribute__((weak, alias("__coloured_LED_init"))); void inline
> __red_LED_on (void) {}
> -void inline red_LED_on (void) __attribute__((weak,
> alias("__red_LED_on"))); +void red_LED_on (void) __attribute__((weak,
> alias("__red_LED_on"))); void inline __red_LED_off(void) {}
> -void inline red_LED_off(void) __attribute__((weak,
> alias("__red_LED_off"))); +void red_LED_off(void)
> __attribute__((weak, alias("__red_LED_off"))); void inline
> __green_LED_on(void) {}
> -void inline green_LED_on(void) __attribute__((weak,
> alias("__green_LED_on"))); +void green_LED_on(void) __attribute__((weak,
> alias("__green_LED_on"))); void inline __green_LED_off(void) {}
> -void inline green_LED_off(void)__attribute__((weak,
> alias("__green_LED_off"))); +void green_LED_off(void)__attribute__((weak,
> alias("__green_LED_off"))); void inline __yellow_LED_on(void) {}
> -void inline yellow_LED_on(void)__attribute__((weak,
> alias("__yellow_LED_on"))); +void yellow_LED_on(void)__attribute__((weak,
> alias("__yellow_LED_on"))); void inline __yellow_LED_off(void) {}
> -void inline yellow_LED_off(void)__attribute__((weak,
> alias("__yellow_LED_off"))); +void
> yellow_LED_off(void)__attribute__((weak, alias("__yellow_LED_off"))); void
> inline __blue_LED_on(void) {}
> -void inline blue_LED_on(void)__attribute__((weak,
> alias("__blue_LED_on"))); +void blue_LED_on(void)__attribute__((weak,
> alias("__blue_LED_on"))); void inline __blue_LED_off(void) {}
> -void inline blue_LED_off(void)__attribute__((weak,
> alias("__blue_LED_off"))); +void blue_LED_off(void)__attribute__((weak,
> alias("__blue_LED_off")));
>
> /************************************************************************
> * Init Utilities *
This has already been fixed in f865fcbbb35851e75fee9c3a3fa8e0f71d9e6463
(include since tag v2009.11-rc2)
Regards,
Alexander
More information about the U-Boot
mailing list