[RTEMS Project] #2219: sha512 compile issue on m32c/m32csim
RTEMS trac
trac at rtems.org
Sat Dec 13 15:27:57 UTC 2014
#2219: sha512 compile issue on m32c/m32csim
---------------------------+-----------------------------
Reporter: joel.sherrill | Owner: sebastian.huber
Type: defect | Status: new
Priority: highest | Milestone: 4.11
Component: misc | Version: 4.11
Severity: blocker | Keywords:
---------------------------+-----------------------------
The m32c has a 24 bit address space but only a 16 bit size_t. This results
in it not being able to index large arrays. I suspect this is part of the
problem with the failure in sha512. But the warnings indicate a more
fundamental 16/32 bit coding issue.
I propose the issue for the warnings get fixed and then sha512 disabled
for m32c.
m32c-rtems4.11-gcc --pipe -DHAVE_CONFIG_H -I..
-I../../cpukit/../../../m32csim
/lib/include -mcpu=m32cm -O0 -g -Wall -Wmissing-prototypes -Wimplicit-
function
-declaration -Wstrict-prototypes -Wnested-externs -MT libmd_a-sha512c.o
-MD -MP
-MF .deps/libmd_a-sha512c.Tpo -c -o libmd_a-sha512c.o `test -f 'sha512c.c'
|| ec
ho '../../../../../../rtems/c/src/../../cpukit/libmd/'`sha512c.c
In file included from
../../../../../../rtems/c/src/../../cpukit/libmd/sha512c.c
:30:0:
../../cpukit/../../../m32csim/lib/include/sys/endian.h: In function
'be32dec':
../../cpukit/../../../m32csim/lib/include/sys/endian.h:102:2: warning:
left shif
t count >= width of type [enabled by default]
return (((unsigned)p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3]);
^
../../cpukit/../../../m32csim/lib/include/sys/endian.h:102:2: warning:
left shif
t count >= width of type [enabled by default]
../../cpukit/../../../m32csim/lib/include/sys/endian.h: In function
'le32dec':
../../cpukit/../../../m32csim/lib/include/sys/endian.h:126:2: warning:
left shif
t count >= width of type [enabled by default]
return (((unsigned)p[3] << 24) | (p[2] << 16) | (p[1] << 8) | p[0]);
^
../../cpukit/../../../m32csim/lib/include/sys/endian.h:126:2: warning:
left shift count >= width of type [enabled by default]
{standard input}: Assembler messages:
{standard input}:13: Error: dsp:16 immediate is out of range `add.l
#-44060,sp'
--
Ticket URL: <http://devel.rtems.org/ticket/2219>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list