u-boot-brain/post
Wolfgang Denk 139e1875d3 PPC: fix "Warning: FOO uses hard float, BAR uses soft float".
It appears that with recent versions of GCC the explicit
"-mhard-float" command line option takes precedence over the
``asm(".gnu_attribute 4, 2");'' in the source file, so this no longer
helps to avoid the warnings we get when linking code that uses FP
instructions with other code that was built using soft-float.

We can remove the ".gnu_attribute" (which appears to carry no other
information, at least so far) from the object files, but we also have
to make sure we don't pull in the __gcc_qsub() and __gcc_qmul()
functions from the standard libgcc, as these would again "infect" our
linking.  We copy this code from:
	gcc-4.2.2/gcc/config/rs6000/darwin-ldouble.c
This old version was chosen because it was still available under a
compatible license (GCC v2+).   The file was stripped down to the
needed parts, and reformatted so it passes checkpatch with only one
warning (do not add new typedefs).

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: Stefan Roese <sr@denx.de>
Cc: Andy Fleming <afleming@gmail.com>
Cc: Kim Phillips <kim.phillips@freescale.com>
Tested-by: Stefan Roese <sr@denx.de>
Tested-by: Anatolij Gustschin <agust@denx.de>
2011-12-23 20:03:55 +01:00
..
board post/board/lwmon5/gdc.c: Fix GCC 4.6 build warning 2011-12-02 00:14:40 +01:00
cpu post: use ARRAY_SIZE 2011-07-26 16:48:33 +02:00
drivers arm, post, memory: fix bug if sdram base != 0x00000000 2011-10-23 23:32:44 +02:00
lib_powerpc PPC: fix "Warning: FOO uses hard float, BAR uses soft float". 2011-12-23 20:03:55 +01:00
Makefile Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
post.c post: fix compile issue for post tests on kirkwood 2011-12-11 13:44:23 +01:00
rules.mk Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
tests.c POST: add new memory regions test 2011-10-05 22:03:11 +02:00