This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix powerpc-netbsd target

"Where shall I begin?" :-)

As it exists before this patch, it gets quite a number of things wrong.
This is largely due to the spec mess caused by trying to cram all of the
SVR4 ABI configs into one (a failed experiment, IMO -- it's not like you
could actually produce correct Linux binaries with -mcall-linux from a
non-Linux-targeted compiler, for example).

My fix for the powerpc-netbsd target is to shed that mess of specs, and
use the nice generic NetBSD support that all the other NetBSD targets use.

There are also some other slight differences in multilib handling between
the "ppccom" and NetBSD configs.

Anyway, I'm sure someone will be upset that this change turns it back
on the "merged" SVR4 ABI PowerPC config, and for this reason I'll hold
off on checking it in for a couple of days.  But I'll go ahead and say
up-front that my position regarding losing -mcall-netbsd from the "merged"
config is:

	So?  I am really only concerned with a powerpc-netbsd targeted
	toolchain generating correct NetBSD binaries.


In any case, I *really* want the powerpc-netbsd config to work properly
in GCC 3.3, and this is the simplest and most maintainable way to achieve
that goal.

After 3.4-b-i-b is merged to the mainline, I'll submit a patch to get
rid of -mcall-netbsd from the "merged" config.

	* config.gcc (powerpc-*-netbsd*): Replace "svr4.h" with
	"netbsd.h netbsd-elf.h" in tm_file.  Set tmake_file to
	"${tmake_file} rs6000/t-netbsd".
	* config/rs6000/netbsd.h: Rewrite.
	* config/rs6000/t-netbsd: New file.

        -- Jason R. Thorpe <>

Attachment: powerpc-nbsd-patch
Description: Text document

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]