RE: segv at strcmp

From: Luck, Tony <tony.luck_at_intel.com>
Date: 2004-01-06 06:19:36
> Hi -
>   The gcc version is gcc-3.2-29 and the flags we pass
> to gcc are : -O -ansi -fwritable-strings -fsigned-char
> -D_GNU_SOURCE -D_REENTRANT

I have gcc 3.2.3 ... but it appears to not do anything
strange to my test program with those options.

main()
{
        char *x = "7chars!";

        strcmp(x, "This is 24 chars long!!!");
}

with those options.  Do you have any include files that
might be redefining strcmp as memcmp?

-Tony
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon Jan 5 14:20:40 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:21 EST