On Tuesday 21 June 2011 02:38 PM, Aneesh V wrote: > On Tuesday 21 June 2011 01:50 PM, Wolfgang Denk wrote: >> Dear Aneesh, >> >> In message<[email protected]> you wrote: >>> >>> $ gcc main.c >>> main.c:5: error: initializer element is not constant >>> main.c:5: error: (near initialization for ‘arr[0]’) >>> main.c:7: error: initializer element is not constant >>> main.c:7: error: (near initialization for ‘arr[1]’) >> >> I have to admit that I don't understand either why this error is >> raised here; after all, from our understanding of the code these _are_ >> constant addresses. >> >> You may want to ask this in a compiler group... > > Yes. I will.
I asked in the GCC mailing list and got this reply. That also seems to explain why the array as a local variable worked. http://gcc.gnu.org/ml/gcc/2011-06/msg00291.html best regards, Aneesh _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

