Same compile issue with old Fedora 6, gcc version 4.1.1 20061011 (Red
Hat 4.1.1-30)

Dave,
could you please report gcc version in your cygwin?

Best Regards,
Antonio Borneo

On Mon, Mar 1, 2010 at 12:13 PM, David Brownell <davi...@pacbell.net> wrote:
> A test build (cygwin, as it happened) after your latest commits gives me:
>
>
> gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src -g -O2 
> -Wall -Wstrict-prototypes -Wformat-security -Wextra -Wno-unused-parameter 
> -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -MT 
> arm_semihosting.lo -MD -MP -MF .deps/arm_semihosting.Tpo -c arm_semihosting.c 
> -o arm_semihosting.o
> cc1: warnings being treated as errors
> arm_semihosting.c: In function ‘do_semihosting’:
> arm_semihosting.c:71: error: ‘spsr’ may be used uninitialized in this function
> arm_semihosting.c:71: error: ‘lr’ may be used uninitialized in this function
> make[5]: *** [arm_semihosting.lo] Error 1
>
> Didn't track it down.  CM3 has no SPSR of course.  And I'm not
> clear on why access to LR should care about specifying some mode
> explicitly ... instead of just using the currnt LR.
>
> - Dave
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to