https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106720

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libgcc                      |bootstrap
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
While compiling which file?
Is SIZEOF_INT and SIZEOF_LONG correctly defined in libcpp/config.h ?
Perhaps CHAR_BIT isn't defined?
Usually libcpp/ sources include "system.h" before including "cpplib.h" and
system.h has:
#if HAVE_LIMITS_H
# include <limits.h>
#endif
and so CHAR_BIT should be defined unless limits.h isn't present.

The cpplib.h part is:
#if CHAR_BIT * SIZEOF_INT >= 32
# define CPPCHAR_SIGNED_T int
#elif CHAR_BIT * SIZEOF_LONG >= 32
# define CPPCHAR_SIGNED_T long
#else
# error "Cannot find a least-32-bit signed integer type"
#endif

Reply via email to