Instead of introducing a new option which may conflict with an existing one, is it not possible to simply use -mno-user-mode?

On 23/06/15 14:22, Daniel Cederman wrote:
The muser-mode flag causes the CASA instruction for LEON3 to use the
user mode ASI. This is the correct behavior for almost all LEON3 targets.
For this reason it makes sense to make user mode the default. This patch
adds a flag for supervisor mode that can be used on the very few LEON3 targets
that requires CASA to use the supervisor ASI.

gcc/ChangeLog:

2015-06-22  Daniel Cederman  <ceder...@gaisler.com>

        * config/sparc/sparc.opt: Add supervisor mode flag (-msv-mode) and
          make user mode the default
        * config/sparc/sync.md: Only use supervisor ASI for CASA when in
          supervisor mode
        * doc/invoke.texi: Document msv-mode flag

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

Reply via email to