On Jun 9, 2011, at 7:07 AM, Mike Frysinger wrote:

> here's the fix for erc32.  ok to commit ?

Is it correct ?  IIRC sizeof ("xxx") == strlen ("xxx") + 1.

> (style is god awful, but seems the whole erc32 code base is buggered and i'm 
> not about to try and fix that)
> -mike
> 
> --- sim/erc32/interf.c        1 Jun 2011 17:35:02 -0000       1.10
> +++ sim/erc32/interf.c        9 Jun 2011 05:03:32 -0000
> @@ -234,6 +234,9 @@ sim_open (kind, callback, abfd, argv)
>               if ((stat + 1) < argc) {
>                   freq = strtol(argv[++stat], (char **)NULL, 0);
>               }
> +         } else
> +         if (strncmp(argv[stat], "--sysroot=", sizeof("--sysroot=")) == 0) {
> +             /* Ignore until we start to support this.  */
>           } else {
>               (*sim_callback->printf_filtered) (sim_callback,
>                                                 "unknown option %s\n",

_______________________________________________
Toolchain-devel mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/toolchain-devel

Reply via email to