RE: Runtime SEGV from gcc -O3 -march=native

2010-07-26 Thread Joseph Quinsey
Again, just FYI, with a simpler example, and with -march=native replaced by k8 or athlon64. Source code: int main(void) { static int foo[4]; int i; for (i = 0; i < 4; i++) foo[i] = 0; return 0; } Compile and run, using Cygwin's current gcc version 4.3.4: gcc -O3 -ma

Runtime SEGV from gcc -O3 -march=native

2010-07-22 Thread Joseph Quinsey
FYI. Source code: int main(void) { static int foo[4]; int bar[4]; int i; for (i = 0; i < 4; i++) foo[i] = bar[i]; return 0; } Compile and run, using Cygwin's current gcc version 4.3.4: gcc -O3 -march=native foobar.c a.exe Segmentation fault (core dumped)

RE: Cygwin 1.7.1 sprintf() with format string having 8th bit set

2010-01-04 Thread Joseph Quinsey
Hello, Thank you Andy for your help. As per your suggestion, the problem was resolved by adding the line: setlocale (LC_CTYPE, "C.ASCII"); My actual code was something like: #define CSI_ "\233" ... sprintf (..., CSI_"%d;%dH", row, col); So my problem is fixed. But as a matter

Cygwin 1.7.1 sprintf() with format string having 8th bit set

2010-01-03 Thread Joseph Quinsey
Hello, In Cygwin 1,7.1, sprintf() with the format string having an 8th bit set appears to be broken. Sample code (where I've indicated the backslashes in the comments, in case they are stripped out by the mailer): #include int main (void) { unsigned char foo[30] = ""; unsigned char bar[