On 05.01.2016 13:06, Jose E. Marchesi wrote:

     > The default cpu option for -m32 in sparc is very very conservative: a v7
     > cpu.  It may be worth it to consider bumping it to ultrasparc/v9a or, at
     > least v9, when GCC is built for sparcv9-* targets...

     right, but v9 seems to imply 64bit/sparc64. used this patch to work
     around it on sparc32:

     
http://anonscm.debian.org/viewvc/gcccvs/branches/sid/gcc-6/debian/patches/sparc-force-cpu.diff?revision=8487&view=markup

Seems to be a bit of confussion with the triplets:

sparc-*-* -> This is a 32-bit sparc.  Using -mcpu=v7/cypruss in a GCC
              targetting sparc-* is just fine.

sparcv9-*-* -> This is for 32-bit v8+ binaries running on a 64-bit sparc
                v9.  Using -mcpu=v9 in a GCC targetting sparcv9-* would
                be a reasonable default here.  It currently uses v7.

Your patch above uses -mcpu=ultrasparc, and that is not right for
sparc-* triplets targetting 32-bit processors.

ohh ... ok, but 32bit sparc is gone in Debian anyway. If somebody wants to revive this architecture, then we probably would have to change the triplet as well.

Reply via email to