Ignore:
Timestamp:
01/10/15 19:04:06 (7 years ago)
Author:
Anthony Green <green@…>
Branches:
4.11, 5, master
Children:
99a1f122
Parents:
5759510
git-author:
Anthony Green <green@…> (01/10/15 19:04:06)
git-committer:
Joel Sherrill <joel.sherrill@…> (01/10/15 19:04:06)
Message:

moxiesim: Add conditional logic to handle old and new gas syntax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/moxie/moxiesim/configure.ac

    r5759510 r5139d21  
    1818RTEMS_BSP_CLEANUP_OPTIONS(0, 0)
    1919
     20AC_MSG_CHECKING([for old moxie assembly syntax])
     21AC_COMPILE_IFELSE(
     22  [AC_LANG_PROGRAM(
     23    [],
     24    [asm("sub.l $r0, $r0");])],
     25  [HAVE_OLD_MOXIE_ASM=yes],
     26  [HAVE_OLD_MOXIE_ASM=no])
     27AC_MSG_RESULT([$HAVE_OLD_MOXIE_ASM])
     28if test "x$HAVE_OLD_MOXIE_ASM" = xyes; then
     29  AC_DEFINE(HAVE_OLD_MOXIE_ASM,
     30            1, [Define if you are using old moxie asm syntax (sub.l)])
     31fi
     32
    2033# Explicitly list all Makefiles here
    2134AC_CONFIG_FILES([Makefile])
Note: See TracChangeset for help on using the changeset viewer.