From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Wed, 16 Jun 2010 16:51:33 +0200 Subject: [U-Boot] [PATCH] examples/standalone: Remove relocation compile flags for PowerPC In-Reply-To: References: <1276572325-12642-1-git-send-email-ptyser@xes-inc.com> <4C17CE2F.9050208@freescale.com> <4C17CEEC.8000409@freescale.com> <1276630601.32134.1501.camel@petert> <4C17D851.4010307@freescale.com> <1276632905.32134.1535.camel@petert> <20100615202813.A1816153659@gemini.denx.de> <1276634341.32134.1541.camel@petert> <20100615205129.11EF7153659@gemini.denx.de> <1276659428.15340.7.camel@ptyser-laptop> Message-ID: <20100616145133.BBDE7D81C69@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 Timur Tabi, In message you wrote: > > > we add support to U-Boot to conditionally check for the gcc version like > > Linux to know when to use -fno-toplevel-reorder? =A0Or do we use a linker > > script that would support more versions of gcc at the cost of more > > complexity? > > What happens if you use the flag on earlier versions of gcc? If the > flag is just silently ignored, then maybe it's not such a big deal to > always include it, and just add a comment saying that it only works on > gcc 4.2 or higher? It raises an error. 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 If I can have honesty, it's easier to overlook mistakes. -- Kirk, "Space Seed", stardate 3141.9