Steven Bosscher wrote:
Looks like all the arith->shift attribute changes from the patch you
posted are already in mainline, so all you really need to add r10000
support is a pipeline model. All the MIPSen were converted from the
old pipeline description (i.e. "define_function_unit") to the new one
(i.e. "define_insn_reservation" and friends) in a big patch posted
last year: http://gcc.gnu.org/ml/gcc-patches/2004-07/msg01065.html.
Maybe you can find in the trhead surrounding that message some ideas
on how to convert your r10000 pipeline model.
HTH,
Gr.
Steven
Yeah, I've poked around at how the new pipeline descriptions work, but my
relative lack of understanding in regards to compiler internals makes it
difficult to understand some terms and especially what the numbers in portions
of define_function_unit do, and as such, I have no idea where to place them in
the newer define_insn_reservation. Not really having the free time to
constantly rebuild gcc to test to see if numbers were placed appropriately, I've
looked for other means to get this patch converted.
I did find a script on the gcc-patches ML that was a very early auto-converter
for old gcc-3.4.x define_function_unit to gcc-4 define_insn_reservation, but it
was written in gawk, and for some reason, I couldn't coax my copy of gawk to
execute it correctly. If there's a straight-forward guide to converting, I'd be
interested in reading it (assuming it doesn't have a pre-requisite of deep gcc
internals knowledge).
--Kumba
--
Gentoo/MIPS Team Lead
Gentoo Foundation Board of Trustees
"Such is oft the course of deeds that move the wheels of the world: small hands
do them because they must, while the eyes of the great are elsewhere." --Elrond