http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52941

             Bug #: 52941
           Summary: SH Target: Add support for movco.l / movli.l atomics
                    on SH4A
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: olege...@gcc.gnu.org
                CC: kkoj...@gcc.gnu.org
            Target: sh4a-*-*


I could do that, however I'm not sure when the movco/movli atomics should be
enabled.  We've got the '-msoft-atomic' option, which enables the GNU/Linux
gUSA atomics.  The movco/movli atomics would actually be compatible with a gUSA
enabled kernel (at least on a single-core system).  However, I'm not sure
whether -msoft-atomic should enable movco/movli atomics on SH4A or not.
Other than that, should we add another option '-mhard-atomic' (which would
enable the movco/movli atomics on SH4A and disable all atomic insns for
non-SH4A)?
Actually, I think the options should be '-msp-atomic' and '-mmp-atomic', where
'-msp-atomic' would be the current '-msoft-atomic'.

Kaz, what do you think?

Reply via email to