On Sunday 25 October 2009 15:19:49 Rob Landley wrote:
> -     int readlinks = 0;
> +     int readlinks = 0, allocated = 0;
> ...
> +     if (!got_path) {
> +             got_path = alloca(PATH_MAX);
> +             allocated++;
> +     }
> ...
> +     if (allocated) got_path = strdup(got_path);

it doesnt make any sense to treat "allocated" as an integer that gets 
incremented.  you're pointlessly forcing gcc to generate load/update/store 
instructions when it only needs a store instruction.  i.e. use stdbool like 
evolution intended.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to