This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: atoi vs strtol in rtl.c:read_rtx()



> > Is there any reason not to use strtol() here?
> 
> Nope.

Would we have to create one that handled HOST_WIDE_INTS bigger than
long?  Say, a strtoll, or strtoull?

Something like:

	if (*tmp_char == '0'
	    && (tmp_char[1] == 'x' || tmp_char[1] == 'X'))
	{
	  tmp_wide = string_to_hex (tmp_char+2);
	  break;
	}
	... original code ...

Or perhaps we could expand the existing atoll function and just always
use it?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]