From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aneesh V Date: Tue, 21 Jun 2011 16:52:19 +0530 Subject: [U-Boot] [PATCH v2 13/22] omap4: add clock support In-Reply-To: <4E005F9E.8050003@ti.com> References: <1298893591-17636-1-git-send-email-aneesh@ti.com> <1305472900-4004-14-git-send-email-aneesh@ti.com> <4E0030F8.6030104@ti.com> <4E003952.30901@ti.com> <4E00447B.9070804@ti.com> <20110621082048.2311611EEDB1@gemini.denx.de> <4E005F9E.8050003@ti.com> Message-ID: <4E007EEB.4070202@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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<4E00447B.9070804@ti.com> 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