From: Wolfgang Denk Date: Mon, 22 Mar 2010 12:18:52 +0100 Subject: [U-Boot] uboot on microblaze, compilation error In-Reply-To: <201003220254.05158.vapier@gentoo.org> References: <001701cac601$5a380c50$c801a8c0@xeon> <201003211820.51966.vapier@gentoo.org> <20100321224551.DA3074C022@gemini.denx.de> <201003220254.05158.vapier@gentoo.org> Message-ID: <20100322111852.69C3E4C022@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Mike Frysinger, In message <201003220254.05158.vapier@gentoo.org> you wrote: > > > So if a C compiler auto-defines something as "arm", or "i386", or > > "microblaze", then it is NOT standard-conforming - bare with me if I > > simply call this broken. > > that may be, but if that is what the gcc maintainer has decided, then > complaining about it wont fix code like u-boot. after all, u-boot hasnt told Complaining about it might help to accelerate fixes which are already in the works. GCC documentation reads: We are slowly phasing out all predefined macros which are outside the reserved namespace. You should never use them in new programs, and we encourage you to correct older code to use the parallel macros whenever you find it. Complaining might make the "slowwly" a little faster. Not complaining certainly does not help at all. > gcc that it wants strict preprocessor behavior (i.e. using something like - > ansi). if it did, then gcc wouldnt have output any non-prefixed defines. Maybe we should do that? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de It is a good thing for an uneducated man to read books of quotations. - Sir Winston Churchill _My Early Life_ ch. 9