[RTEMS Project] #3799: confdefs.h declares an array with zero elements, that's invalid C

RTEMS trac trac at rtems.org
Wed Apr 8 17:23:06 UTC 2020


#3799: confdefs.h declares an array with zero elements, that's invalid C
-------------------------+-------------------------------------------------
 Reporter:  Jens         |       Owner:  Sebastian Huber
  Schweikhardt           |  <sebastian.huber@…>
     Type:  defect       |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  rtems        |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:  confdefs.h   |  Blocked By:
  array                  |
 Blocking:               |
-------------------------+-------------------------------------------------

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

 In [changeset:"099ab00d160be82952d59de6ad7ef18896adb420/rtems"
 099ab00/rtems]:
 {{{
 #!CommitTicketReference repository="rtems"
 revision="099ab00d160be82952d59de6ad7ef18896adb420"
 config: Fix _ISR_Stack_area_end

 In the previous implementation, the _ISR_Stack_area_begin and
 _ISR_Stack_area_end symbols were in different sections. If they do not
 have the same alignment, then the following linker directive could
 separate them:

   *(SORT_BY_ALIGNMENT (SORT_BY_NAME (.rtemsstack*)))

 Do not use different sections and instead define _ISR_Stack_area_end
 directly.

 Update #3799.
 }}}

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


More information about the bugs mailing list