[BUG] awk fails on function calls with commented out body

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Fri Aug 16 19:24:16 UTC 2013


Try master.


Sent with AquaMail for Android
http://www.aqua-mail.com


On 15 August 2013 17:25:31 John Spencer <maillist-busybox at barfooze.de> wrote:
> when building gcc-core-4.5.4 with busybox' awk:
>
> awk -f ../.././gcc/config/i386/i386-builtin-types.awk 
> ../.././gcc/config/i386/i386-builtin-types.def > tmp-bt.inc
> awk: ../.././gcc/config/i386/i386-builtin-types.awk:164: Call to undefined 
> function
>
>
> the awk file contains:
>
> function attribute_mode(count) {
>      # ??? Except that we get strange "comparison always false" warnings
>      # for comparisons between different elements of the enumeration.
>      #    print "#ifdef __GNUC__"
>      #    if (count < 256)
>      #   print "  __attribute__((__mode__(__QI__)))"
>      #    else
>      #   print "  __attribute__((__mode__(__HI__)))"
>      #    print "#endif"
> }
>
>
> and later at line 164:
>
>      attribute_mode(prim_defs + vect_defs + ptr_defs + cptr_defs)
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox




More information about the busybox mailing list