This patch adds scheduler support to GCC for the MIPS R1x000 family of CPUs. It adds new operands to the -march and -mtune flags, 'r10000' (Also abbrev'ed as r10k).
Created attachment 161602 [details, diff] Add R10K scheduler support to GCC
FYI, this is for gcc-4.3.1 ebuild.
Has this been submitted upstream?
Not yet. I tried a few times back in late 3.4 and then again in 4.0 (I think), but the mips gcc maintainers were bogged down by other things and forgot. Need to shoot it upstream again soon.
When this has been accepted by upstream please let me know. Thanks
We actually had this in gcc before, currently in 4.1.2. This is just an update patch to put it into 4.3, since we skipped 4.2 entirely. Or are the rules different, and all patches now have to be in upstream? Waiting till 4.4, possibly even 4.5 will take far too long.
Okay, a version of the patch posted here is about to head upstream. Richard Sandiford's helped me get it into shape, and it'll probably go into gcc-4.4 during the stage 3 stuff, as it might take a week or two for my GNU copyright assignment to get processed. I'll backdiff the 4.4-trunk one to 4.3.1 and re-post later on after I rebuild one of my compilers with it.
sounds fine
Created attachment 169536 [details, diff] R10K GCC Scheduler Patch from gcc-4.4 The attached patch is a backport from GCC SVN, and adds in pipeline scheduling support for R10000 Family MIPS Porcessors. SVN Revision is here: http://gcc.gnu.org/viewcvs?view=rev&revision=140913 (Yes, my first submission to the GCC Project, w00t!)
FYI, tested against gcc-4.3.2, so I think it's best that this patch gets added to that version and that version only. I don't trust 4.3.1 right now until I pin down the cause of my glibc woes.
In the newest patch tarball, thanks for getting these pushed upstream.