On Sun, 14 Jul 2013, Chung-Lin Tang wrote: > Original patch posted as part of Nios II patches: > http://gcc.gnu.org/ml/gcc-patches/2013-04/msg01087.html > > This patch is to allow hexadecimal numbers to be used in option > arguments, e.g. -falign-loops=0x10 can now be used as equivalent to > -falign-loops=16. > > Joseph, the patch has been modified to use IXDIGIT to check the argument > string first, as you suggested in the last submission. Is this okay for > trunk?
This version looks like it will allow plain "0x" or "0X" as an argument, treating it as 0, rather than treating it as an error (i.e., you need to check there is at least one hex digit after the "0x" or "0X" before passing the string to strtol). -- Joseph S. Myers jos...@codesourcery.com