Hello, Mspgcc-users.
What should I do with these errors? msp430-gdb is not usable with
system compiler (which is clang 3.3/3.4) on FreeBSD CURRENT anymore
:( Errors looks like easy to fix (as they are obvious
almost-syntax-level errors -- especially, errors with
get_stop_addr()), but I'm not sure what should I do with them/ Report
to upstream? Add local patch? Pull fix for them from upstream gdb 7.4,
if it has them fixed?
mv version.c-tmp version.c
cc -c -DHAVE_CONFIG_H -DPROFILE=1 -DWITH_PROFILE=-1
-DDEFAULT_INLINE=0 -I. -I. -I../common -I./../common
-I../../include -I./../../include -I../../bfd -I./../../bfd -I../../opcodes
-I./../../opcodes -O2 -pipe -fno-strict-aliasing version.c
cc -c -DHAVE_CONFIG_H -DPROFILE=1 -DWITH_PROFILE=-1
-DDEFAULT_INLINE=0 -I. -I. -I../common -I./../common
-I../../include -I./../../include -I../../bfd -I./../../bfd -I../../opcodes
-I./../../opcodes -O2 -pipe -fno-strict-aliasing interp.c
interp.c:1276:8: warning: format specifies type 'int' but the argument has type
'unsigned long' [-Wformat]
sizeof (unsigned long));
^~~~~~~~~~~~~~~~~~~~~~
interp.c:1686:27: warning: passing 'char *' to parameter of type 'const
unsigned char *' converts between pointers to integer types with different sign
[-Wpointer-sign]
sim_write (sd, lma, buffer, size);
^~~~~~
interp.c:1827:38: warning: format specifies type 'int' but the argument has
type 'unsigned long' [-Wformat]
fprintf (stderr, "Cycles: %d\n", alu.cycles);
~~ ^~~~~~~~~~
%lu
interp.c:1828:43: warning: format specifies type 'int' but the argument has
type 'unsigned long' [-Wformat]
fprintf (stderr, "Instructions: %d\n", alu.insns);
~~ ^~~~~~~~~
%lu
interp.c:1829:42: warning: format specifies type 'int' but the argument has
type 'unsigned long' [-Wformat]
fprintf (stderr, "Interrupts: %d\n", alu.interrupts);
~~ ^~~~~~~~~~~~~~
%lu
interp.c:1883:5: error: non-void function 'get_stop_addr' should return a value
[-Wreturn-type]
return;
^
interp.c:1887:7: error: non-void function 'get_stop_addr' should return a value
[-Wreturn-type]
return;
^
interp.c:1894:5: error: non-void function 'get_stop_addr' should return a value
[-Wreturn-type]
return;
^
5 warnings and 3 errors generated.
gmake[3]: *** [interp.o] Error 1
gmake[3]: Leaving directory
`/work/a/ports/devel/msp430-gdb/work/gdb-7.2/sim/msp430'
gmake[2]: *** [all] Error 1
--
// Black Lion AKA Lev Serebryakov <[email protected]>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users