Ignore:
Timestamp:
10/16/15 06:13:15 (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
143696a
Parents:
7d59bb6
git-author:
Sebastian Huber <sebastian.huber@…> (10/16/15 06:13:15)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/26/15 08:13:19)
Message:

basedefs.h: Add compiler attributes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/basedefs.h

    r7d59bb6 r2423857  
    1111 *  On-Line Applications Research Corporation (OAR).
    1212 *
    13  *  Copyright (c) 2010 embedded brains GmbH.
     13 *  Copyright (c) 2010-2015 embedded brains GmbH.
    1414 *
    1515 *  The license and distribution terms for this file may be
     
    185185#else
    186186  #define RTEMS_COMPILER_DEPRECATED_ATTRIBUTE
     187#endif
     188
     189/**
     190 * @brief Instructs the compiler to place a specific variable or function in
     191 * the specified section.
     192 */
     193#if defined(__GNUC__)
     194  #define RTEMS_SECTION( _section ) __attribute__((__section__(_section)))
     195#else
     196  #define RTEMS_SECTION( _section )
     197#endif
     198
     199/**
     200 * @brief Instructs the compiler that a specific variable or function is used.
     201 */
     202#if defined(__GNUC__)
     203  #define RTEMS_USED __attribute__((__used__))
     204#else
     205  #define RTEMS_USED
    187206#endif
    188207
     
    317336#endif /*RTEMS_DEQUALIFY*/
    318337
     338/**
     339 * @brief Concatenates _x and _y without expanding.
     340 */
     341#define RTEMS_CONCAT( _x, _y ) _x##_y
     342
     343/**
     344 * @brief Concatenates expansion of _x and expansion of _y.
     345 */
     346#define RTEMS_XCONCAT( _x, _y ) RTEMS_CONCAT( _x, _y )
     347
     348/**
     349 * @brief Stringifies _x  without expanding.
     350 */
     351#define RTEMS_STRING( _x ) #_x
     352
     353/**
     354 * @brief Stringifies expansion of _x.
     355 */
     356#define RTEMS_XSTRING( _x ) RTEMS_STRING( _x )
     357
    319358#ifndef ASM
    320359  #ifdef RTEMS_DEPRECATED_TYPES
Note: See TracChangeset for help on using the changeset viewer.