diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-25 17:33:41 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-25 17:33:41 +0000 |
commit | 27c3eb5b66089e278ebace37fe2392a190f8edde (patch) | |
tree | 0b7f8e8de7f36736f82b89b3b40f92bdaa7ed547 /nuttx/include/nuttx/compiler.h | |
parent | 0f0ce3d8b2dfd3d7a8642c203f249dcd38738592 (diff) | |
download | nuttx-27c3eb5b66089e278ebace37fe2392a190f8edde.tar.gz nuttx-27c3eb5b66089e278ebace37fe2392a190f8edde.tar.bz2 nuttx-27c3eb5b66089e278ebace37fe2392a190f8edde.zip |
convert Kwikstik K40 configurations to use kconfig-frontends tools
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5784 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/nuttx/compiler.h')
-rw-r--r-- | nuttx/include/nuttx/compiler.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/nuttx/include/nuttx/compiler.h b/nuttx/include/nuttx/compiler.h index 091e66765..1e6acd6ff 100644 --- a/nuttx/include/nuttx/compiler.h +++ b/nuttx/include/nuttx/compiler.h @@ -1,7 +1,7 @@ /**************************************************************************** * include/nuttx/compiler.h * - * Copyright (C) 2007-2009, 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009, 2012-2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -81,6 +81,12 @@ # define noreturn_function __attribute__ ((noreturn)) +/* The farcall_function attribute informs GCC that is should use long calls + * (even though -mlong-calls does not appear in the compilation options) + */ + +# define farcall_function __attribute__ ((long_call)) + /* The packed attribute informs GCC that the stucture elements are packed, * ignoring other alignment rules. */ @@ -239,6 +245,10 @@ # define noreturn_function # define packed_struct +/* REVISIT: */ + +# define farcall_function + /* SDCC does support "naked" functions */ # define naked_function __naked @@ -350,6 +360,10 @@ # define inline_function # define noinline_function +/* REVISIT: */ + +# define farcall_function + /* The Zilog compiler does not support the reentrant attribute */ # define reentrant_function @@ -429,6 +443,7 @@ # define weak_function # define weak_const_function # define noreturn_function +# define farcall_function # define packed_struct # define reentrant_function # define naked_function |