[RTEMS Project] #4181: Add CONFIGURE_INIT_TASK_STORAGE_SIZE

RTEMS trac trac at rtems.org
Sat Dec 12 12:53:44 UTC 2020


#4181: Add CONFIGURE_INIT_TASK_STORAGE_SIZE
-----------------------------+------------------------------
 Reporter:  Sebastian Huber  |       Owner:  Sebastian Huber
     Type:  enhancement      |      Status:  closed
 Priority:  normal           |   Milestone:  6.1
Component:  admin            |     Version:  6
 Severity:  normal           |  Resolution:  fixed
 Keywords:                   |  Blocked By:
 Blocking:                   |
-----------------------------+------------------------------

Comment (by Sebastian Huber <sebastian.huber@…>):

 In [changeset:"fcd9618ac84e04d363741419e67b5d618ebe6a81/rtems"
 fcd9618a/rtems]:
 {{{
 #!CommitTicketReference repository="rtems"
 revision="fcd9618ac84e04d363741419e67b5d618ebe6a81"
 config: Fix invalid static assertions in C

 Expressions in static assertions must be integral constant expressions.
 In
 integral constant expressions the use of address constant expressions is
 not
 allowed.

 In static initializers the address constant expressions are allowed.
 Introduce
 a new macro _CONFIGURE_ASSERT_NOT_NULL() which leads to a compile time
 error if
 the second parameter is NULL.  It generates error messages like this if
 for
 example

   #define CONFIGURE_INIT_TASK_ENTRY_POINT NULL

 is provided by the application:

 cpukit/include/rtems/confdefs/inittask.h:51:26: error: size of unnamed
 array is negative
    51 |     ( _type ) sizeof( int[ ( _value ) != NULL ? 1 : -1 ] ) )
       |                          ^
 cpukit/include/rtems/confdefs/inittask.h:170:3: note: in expansion of
 macro '_CONFIGURE_ASSERT_NOT_NULL'
   170 |   _CONFIGURE_ASSERT_NOT_NULL(
       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~

 This fix relates to CID 1470570 (PARSE_ERROR).

 Update #4181.
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4181#comment:6>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list