163d1a8abSmrg /* Definitions for the moxiebox.
2*ec02198aSmrg    Copyright (C) 2014-2020 Free Software Foundation, Inc.
363d1a8abSmrg    Contributed by Anthony Green (green@moxielogic.com)
463d1a8abSmrg 
563d1a8abSmrg This file is part of GCC.
663d1a8abSmrg 
763d1a8abSmrg GCC is free software; you can redistribute it and/or modify
863d1a8abSmrg it under the terms of the GNU General Public License as published by
963d1a8abSmrg the Free Software Foundation; either version 3, or (at your option)
1063d1a8abSmrg any later version.
1163d1a8abSmrg 
1263d1a8abSmrg GCC is distributed in the hope that it will be useful,
1363d1a8abSmrg but WITHOUT ANY WARRANTY; without even the implied warranty of
1463d1a8abSmrg MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1563d1a8abSmrg GNU General Public License for more details.
1663d1a8abSmrg 
1763d1a8abSmrg You should have received a copy of the GNU General Public License
1863d1a8abSmrg along with GCC; see the file COPYING3.  If not see
1963d1a8abSmrg <http://www.gnu.org/licenses/>.  */
2063d1a8abSmrg 
2163d1a8abSmrg /* Target OS preprocessor built-ins.  */
2263d1a8abSmrg #define TARGET_OS_CPP_BUILTINS()		\
2363d1a8abSmrg   do						\
2463d1a8abSmrg     {						\
2563d1a8abSmrg       builtin_define_std ("moxie");		\
2663d1a8abSmrg       builtin_define ("__moxiebox__");		\
2763d1a8abSmrg       builtin_assert ("system=moxiebox");	\
2863d1a8abSmrg     }						\
2963d1a8abSmrg   while (0)
3063d1a8abSmrg 
3163d1a8abSmrg #undef LIB_SPEC
3263d1a8abSmrg #define LIB_SPEC \
3363d1a8abSmrg "%{!T*:-Tmoxiebox.ld} \
3463d1a8abSmrg  %{!nostdlib: --start-group -lsandboxrt -lc -lgcc --end-group }"
3563d1a8abSmrg 
3663d1a8abSmrg #undef LINK_SPEC
3763d1a8abSmrg #define LINK_SPEC "%{h*} %{v:-V} -EL -Bstatic"
3863d1a8abSmrg 
3963d1a8abSmrg #undef  ASM_SPEC
4063d1a8abSmrg #define ASM_SPEC "-EL"
4163d1a8abSmrg 
4263d1a8abSmrg #undef CC1_SPEC
4363d1a8abSmrg #define CC1_SPEC "-mel %{meb:%ethis target is little-endian}"
4463d1a8abSmrg 
4563d1a8abSmrg #undef CC1PLUS_SPEC
4663d1a8abSmrg #define CC1PLUS_SPEC CC1_SPEC
4763d1a8abSmrg 
4863d1a8abSmrg #undef MULTILIB_DEFAULTS
4963d1a8abSmrg 
5063d1a8abSmrg #undef SIZE_TYPE
5163d1a8abSmrg #undef PTRDIFF_TYPE
5263d1a8abSmrg #undef WCHAR_TYPE
5363d1a8abSmrg #undef WCHAR_TYPE_SIZE
5463d1a8abSmrg 
5563d1a8abSmrg #define TARGET_MOXIEBOX
56