Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 233230 - Add R10K support to GCC
Summary: Add R10K support to GCC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: MIPS Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-29 06:43 UTC by Joshua Kinard
Modified: 2008-10-25 20:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Add R10K scheduler support to GCC (90_all_mips-add-march-r10k.patch,14.34 KB, patch)
2008-07-29 06:43 UTC, Joshua Kinard
Details | Diff
R10K GCC Scheduler Patch from gcc-4.4 (75_all_mips-r10k-scheduling-support.patch,12.38 KB, patch)
2008-10-23 06:27 UTC, Joshua Kinard
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Kinard gentoo-dev 2008-07-29 06:43:26 UTC
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).
Comment 1 Joshua Kinard gentoo-dev 2008-07-29 06:43:58 UTC
Created attachment 161602 [details, diff]
Add R10K scheduler support to GCC
Comment 2 Joshua Kinard gentoo-dev 2008-07-29 14:30:32 UTC
FYI, this is for gcc-4.3.1 ebuild.
Comment 3 Mark Loeser (RETIRED) gentoo-dev 2008-07-31 00:53:03 UTC
Has this been submitted upstream?
Comment 4 Joshua Kinard gentoo-dev 2008-07-31 01:08:14 UTC
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.
Comment 5 Mark Loeser (RETIRED) gentoo-dev 2008-07-31 14:49:48 UTC
When this has been accepted by upstream please let me know.  Thanks
Comment 6 Joshua Kinard gentoo-dev 2008-07-31 15:05:19 UTC
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.
Comment 7 Joshua Kinard gentoo-dev 2008-08-20 03:58:42 UTC
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.
Comment 8 SpanKY gentoo-dev 2008-08-20 13:54:36 UTC
sounds fine
Comment 9 Joshua Kinard gentoo-dev 2008-10-23 06:27:40 UTC
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!)
Comment 10 Joshua Kinard gentoo-dev 2008-10-23 06:28:59 UTC
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.
Comment 11 Mark Loeser (RETIRED) gentoo-dev 2008-10-25 20:50:31 UTC
In the newest patch tarball, thanks for getting these pushed upstream.