[RTEMS Project] #4847: Goto statements

RTEMS trac trac at rtems.org
Thu Feb 9 15:05:11 UTC 2023


#4847: Goto statements
---------------------------+---------------------
 Reporter:  Daniel Páscoa  |       Owner:  (none)
     Type:  defect         |      Status:  new
 Priority:  normal         |   Milestone:
Component:  admin          |     Version:  6
 Severity:  normal         |  Resolution:
 Keywords:  qualification  |  Blocked By:
 Blocking:                 |
---------------------------+---------------------

Comment (by Joel Sherrill):

 Although cpukit/score/src/threaddispatch.c (line 290) is not right per the
 current source, on first examination, I think this goto can be a break.
 Leaving the label post_switch is probably good for understanding purposes.
 And adding a comment at that point would probably be a good idea also.

 FWIW this goto was not present in versions <= 4.10 but shows up in 4.11
 and I think that it could have been a break back then also. The code looks
 similar.

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


More information about the bugs mailing list