From e91bc8b5058f55174ea1d7e967e4e9d38fd29cae Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Sun, 6 Mar 2016 13:30:23 -0800 Subject: get rid of HOST_BITS_PER_LONG --- gcc/rtl.c | 56 -------------------------------------------------------- 1 file changed, 56 deletions(-) (limited to 'gcc/rtl.c') diff --git a/gcc/rtl.c b/gcc/rtl.c index e23e6ae..f172a2b 100755 --- a/gcc/rtl.c +++ b/gcc/rtl.c @@ -577,43 +577,6 @@ read_name (str, infile) *p = 0; } - -/* Provide a version of a function to read a long long if the system does - not provide one. */ -#if HOST_BITS_PER_WIDE_INT > HOST_BITS_PER_LONG && !defined(HAVE_ATOLL) && !defined(HAVE_ATOQ) -HOST_WIDE_INT -atoll(p) - const char *p; -{ - int neg = 0; - HOST_WIDE_INT tmp_wide; - - while (ISSPACE(*p)) - p++; - if (*p == '-') - neg = 1, p++; - else if (*p == '+') - p++; - - tmp_wide = 0; - while (ISDIGIT(*p)) - { - HOST_WIDE_INT new_wide = tmp_wide*10 + (*p - '0'); - if (new_wide < tmp_wide) - { - /* Return INT_MAX equiv on overflow. */ - tmp_wide = (~(HOST_WIDE_UINT)0) >> 1; - break; - } - tmp_wide = new_wide; - p++; - } - - if (neg) - tmp_wide = -tmp_wide; - return tmp_wide; -} -#endif /* Read an rtx in printed representation from INFILE and return an actual rtx in core constructed accordingly. @@ -818,25 +781,6 @@ read_rtx (infile) break; case 'w': - read_name (tmp_char, infile); -#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT - tmp_wide = atoi (tmp_char); -#else -#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_LONG - tmp_wide = atol (tmp_char); -#else - /* Prefer atoll over atoq, since the former is in the ISO C9X draft. - But prefer not to use our hand-rolled function above either. */ -#if defined(HAVE_ATOLL) || !defined(HAVE_ATOQ) - tmp_wide = atoll (tmp_char); -#else - tmp_wide = atoq (tmp_char); -#endif -#endif -#endif - XWINT (return_rtx, i) = tmp_wide; - break; - case 'i': case 'n': read_name (tmp_char, infile); -- cgit v1.2.3