| 1 | /* Configure decNumber for either host or target. |
| 2 | Copyright (C) 2008 Free Software Foundation, Inc. |
| 3 | |
| 4 | This file is part of GCC. |
| 5 | |
| 6 | GCC is free software; you can redistribute it and/or modify it under |
| 7 | the terms of the GNU General Public License as published by the Free |
| 8 | Software Foundation; either version 2, or (at your option) any later |
| 9 | version. |
| 10 | |
| 11 | In addition to the permissions in the GNU General Public License, |
| 12 | the Free Software Foundation gives you unlimited permission to link |
| 13 | the compiled version of this file into combinations with other |
| 14 | programs, and to distribute those combinations without any |
| 15 | restriction coming from the use of this file. (The General Public |
| 16 | License restrictions do apply in other respects; for example, they |
| 17 | cover modification of the file, and distribution when not linked |
| 18 | into a combine executable.) |
| 19 | |
| 20 | GCC is distributed in the hope that it will be useful, but WITHOUT ANY |
| 21 | WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 22 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 23 | for more details. |
| 24 | |
| 25 | You should have received a copy of the GNU General Public License |
| 26 | along with GCC; see the file COPYING. If not, write to the Free |
| 27 | Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA |
| 28 | 02110-1301, USA. */ |
| 29 | |
| 30 | #ifdef IN_LIBGCC2 |
| 31 | |
| 32 | #include "tconfig.h" |
| 33 | #include "coretypes.h" |
| 34 | #include "tm.h" |
| 35 | |
| 36 | #ifndef LIBGCC2_WORDS_BIG_ENDIAN |
| 37 | #define LIBGCC2_WORDS_BIG_ENDIAN WORDS_BIG_ENDIAN |
| 38 | #endif |
| 39 | |
| 40 | #ifndef LIBGCC2_FLOAT_WORDS_BIG_ENDIAN |
| 41 | #define LIBGCC2_FLOAT_WORDS_BIG_ENDIAN LIBGCC2_WORDS_BIG_ENDIAN |
| 42 | #endif |
| 43 | |
| 44 | #if LIBGCC2_FLOAT_WORDS_BIG_ENDIAN |
| 45 | #define WORDS_BIGENDIAN 1 |
| 46 | #endif |
| 47 | |
| 48 | #else |
| 49 | |
| 50 | #include "config.h" |
| 51 | |
| 52 | #endif |