mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-11 03:44:38 +08:00
libgcc2.c (LIBGCC2_MAX_UNITS_PER_WORD): New macro.
* libgcc2.c (LIBGCC2_MAX_UNITS_PER_WORD): New macro. (LIBGCC2_UNITS_PER_WORD): Use LIBGCC2_MAX_UNITS_PER_WORD rather than MIN_UNITS_PER_WORD to set the default. Also use it in the guard. From-SVN: r114022
This commit is contained in:
parent
550ab0c644
commit
b2a203c8e0
@ -1,3 +1,9 @@
|
||||
2006-05-23 Richard Sandiford <richard@codesourcery.com>
|
||||
|
||||
* libgcc2.c (LIBGCC2_MAX_UNITS_PER_WORD): New macro.
|
||||
(LIBGCC2_UNITS_PER_WORD): Use LIBGCC2_MAX_UNITS_PER_WORD rather than
|
||||
MIN_UNITS_PER_WORD to set the default. Also use it in the guard.
|
||||
|
||||
2006-05-23 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* expr.c (undefined_operand_subword_p): New.
|
||||
|
@ -44,18 +44,23 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
#define MIN_UNITS_PER_WORD UNITS_PER_WORD
|
||||
#endif
|
||||
|
||||
#ifndef LIBGCC2_UNITS_PER_WORD
|
||||
# if MIN_UNITS_PER_WORD > 4
|
||||
# define LIBGCC2_UNITS_PER_WORD 8
|
||||
# elif (MIN_UNITS_PER_WORD > 2 \
|
||||
|| (MIN_UNITS_PER_WORD > 1 && LONG_LONG_TYPE_SIZE > 32))
|
||||
# define LIBGCC2_UNITS_PER_WORD 4
|
||||
# else
|
||||
# define LIBGCC2_UNITS_PER_WORD MIN_UNITS_PER_WORD
|
||||
# endif
|
||||
/* Work out the largest "word" size that we can deal with on this target. */
|
||||
#if MIN_UNITS_PER_WORD > 4
|
||||
# define LIBGCC2_MAX_UNITS_PER_WORD 8
|
||||
#elif (MIN_UNITS_PER_WORD > 2 \
|
||||
|| (MIN_UNITS_PER_WORD > 1 && LONG_LONG_TYPE_SIZE > 32))
|
||||
# define LIBGCC2_MAX_UNITS_PER_WORD 4
|
||||
#else
|
||||
# define LIBGCC2_MAX_UNITS_PER_WORD MIN_UNITS_PER_WORD
|
||||
#endif
|
||||
|
||||
#if LIBGCC2_UNITS_PER_WORD <= MIN_UNITS_PER_WORD
|
||||
/* Work out what word size we are using for this compilation.
|
||||
The value can be set on the command line. */
|
||||
#ifndef LIBGCC2_UNITS_PER_WORD
|
||||
#define LIBGCC2_UNITS_PER_WORD LIBGCC2_MAX_UNITS_PER_WORD
|
||||
#endif
|
||||
|
||||
#if LIBGCC2_UNITS_PER_WORD <= LIBGCC2_MAX_UNITS_PER_WORD
|
||||
|
||||
#include "libgcc2.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user