[RTEMS Project] #2286: cpustdatomic.h on 16 and 64 bit architectures

RTEMS trac trac at rtems.org
Sun Mar 8 18:06:47 UTC 2015

#2286: cpustdatomic.h on 16 and 64 bit architectures
 Reporter:  joel.sherrill  |      Owner:  gedare
     Type:  defect         |     Status:  new
 Priority:  normal         |  Milestone:  4.11.1
Component:  General        |    Version:  4.10
 Severity:  normal         |   Keywords:
 Gedare.. sending this one to you since I think you will have a quick
 solution to this based on your sparc64 porting experience.

 This warning occurs 1908 times in the build of the two sparc64 BSPs:

 ../../cpukit/../../../usiii/lib/include/rtems/score/cpustdatomic.h: In
 function '_CPU_atomic_Fetch_sub_ptr':
 warning: cast to pointer from integer of different size [-Wint-to-pointer-
    return (void *) val;

 It also occurs on the m32c and h8300.

 It would clean up the build logs a lot to get rid of it.

Ticket URL: <http://devel.rtems.org/ticket/2286>
RTEMS Project <http://www.rtems.org/>
RTEMS Project

More information about the bugs mailing list