Single Warning Analysis Request
Joel Sherrill
joel.sherrill at oarcorp.com
Wed Sep 17 19:02:26 UTC 2014
On 9/17/2014 1:38 PM, Marcos Díaz wrote:
> Where can we see in which BSP's and with which tools this warning was
> generated? Thanks
OK. It is with the tools generated by the current RSB and
the RTEMS head.
I have attached a cut down and script that I used to test it
on all RTEMS gcc's I have installed. It gives a summary and
is easy to hack on. Plus this doesn't need RTEMS at all to
investigate the warning. :)
=== arm-rtems4.11-gcc - no warning
=== avr-rtems4.11 - warning
=== bfin-rtems4.11-gcc - no warning
=== h8300-rtems4.11 - warning
=== i386-rtems4.11-gcc - no warning
=== lm32-rtems4.11-gcc - no warning
=== m68k-rtems4.11-gcc - warning
=== m32c-rtems4.11-gcc - warning
=== m32r-rtems4.11-gcc - no warning
=== mips-rtems4.11-gcc - no warning
=== moxie-rtems4.11-gcc - no warning
=== nios2-rtems4.11-gcc - no warning
=== or1k-rtems4.11-gcc - no warning
=== powerpc-rtems4.11-gcc - warning
=== sh-rtems4.11-gcc - warning
=== sparc64-rtems4.11-gcc - no warning
=== sparc-rtems4.11-gcc - warning
=== v850-rtems4.11-gcc - warning
This is the list of BSPs that have this warning. Interesting that at least
arm, mips, m32r, moxie, nios2, and sparc64 don't generate this.
m32c-m32csim m68k-av5282 m68k-COBRA5475 m68k-csb360 m68k-gen68302
m68k-gen68340 m68k-gen68360_040 m68k-gen68360 m68k-idp
m68k-m5484FireEngine m68k-mcf52235 m68k-mcf5225x m68k-mcf5235
m68k-mcf5329 m68k-mrm332 m68k-mvme136 m68k-mvme147 m68k-mvme147s
m68k-mvme167 m68k-ods68302 m68k-pgh360 m68k-sim68000 m68k-simcpu32
m68k-uC5282 powerpc-ep1a powerpc-haleakala powerpc-mbx821_001
powerpc-mbx821_002b powerpc-mbx821_002 powerpc-mbx860_001b
powerpc-mbx860_002 powerpc-mbx860_005b powerpc-mbx860_1b
powerpc-mpc8260ads powerpc-pghplus powerpc-psim powerpc-qemuppc
powerpc-ss555 powerpc-tqm8xx_stk8xx powerpc-virtex4 powerpc-virtex5
powerpc-virtex sh-gensh1 sh-gensh2 sh-gensh4 sh-simsh1 sh-simsh2e
sh-simsh2 sh-simsh4 sparc-erc32 sparc-leon2 sparc-leon3 sparc-ngmp
sparc-sis v850-v850e1sim v850-v850e2sim v850-v850e2v3sim
v850-v850esim v850-v850essim v850-v850sim
> On Wed, Sep 17, 2014 at 12:40 PM, Joel Sherrill
> <joel.sherrill at oarcorp.com> wrote:
>> On 9/17/2014 10:23 AM, Daniel Gutson wrote:
>>> Marcos and I will take a look.
>> Thanks.
>>> On Wed, Sep 17, 2014 at 12:19 PM, Joel Sherrill
>>> <joel.sherrill at oarcorp.com> wrote:
>>>> Hi
>>>>
>>>> I would really appreciate it if someone could look into this
>>>> warning and see if we can get an explanation. It could be
>>>> a source code issue or something higher in the tools.
>>>> It is reported on 120 BSP build configurations:
>>>>
>>>> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/hexdump-conv.c:145:4:
>>>> warning: format '%lc' expects argument of type 'wint_t', but argument 4
>>>> has type 'wchar_t' [-Wformat=]
>>>> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/hexdump-conv.c:145:4:
>>>> warning: format '%lc' expects argument of type 'wint_t', but argument 4
>>>> has type 'wchar_t' [-Wformat=]
>>>>
>>>> Thanks.
>>>>
>>>> --
>>>> Joel Sherrill, Ph.D. Director of Research & Development
>>>> joel.sherrill at OARcorp.com On-Line Applications Research
>>>> Ask me about RTEMS: a free RTOS Huntsville AL 35805
>>>> Support Available (256) 722-9985
>>>>
>>>> _______________________________________________
>>>> devel mailing list
>>>> devel at rtems.org
>>>> http://lists.rtems.org/mailman/listinfo/devel
>>>
>> --
>> Joel Sherrill, Ph.D. Director of Research & Development
>> joel.sherrill at OARcorp.com On-Line Applications Research
>> Ask me about RTEMS: a free RTOS Huntsville AL 35805
>> Support Available (256) 722-9985
>>
>>
>
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
-------------- next part --------------
#include <stdio.h>
size_t f(
int pad,
wchar_t wc
)
{
return printf("%*s%lc", pad, "", wc);
}
-------------- next part --------------
for GCC in \
arm-rtems4.11-gcc avr-rtems4.11 bfin-rtems4.11-gcc \
h8300-rtems4.11 i386-rtems4.11-gcc lm32-rtems4.11-gcc \
m68k-rtems4.11-gcc m32c-rtems4.11-gcc m32r-rtems4.11-gcc \
mips-rtems4.11-gcc moxie-rtems4.11-gcc nios2-rtems4.11-gcc \
or1k-rtems4.11-gcc powerpc-rtems4.11-gcc \
sh-rtems4.11-gcc sparc64-rtems4.11-gcc sparc-rtems4.11-gcc \
v850-rtems4.11-gcc
do
${GCC} -c -Wall -Werror warn.c >/dev/null 2>&1
if [ $? -eq 0 ] ; then
echo "=== ${GCC} - no warning"
else
echo "=== ${GCC} - warning"
# ${GCC} -c -Wall -Werror warn.c
# ${GCC} -E warn.c >warn.i
# echo "===> Some helpful information "
# grep "typedef.*uintptr_t" warn.i
# grep "Value = " warn.i
# # rm warn.i
fi
done
More information about the devel
mailing list