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
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)
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
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[
4 matches
Mail list logo