Skip to content
Snippets Groups Projects
  • Joerg Wunsch's avatar
    f7fd775f
    re PR preprocessor/23479 (Implement binary constants with a "0b" prefix) · f7fd775f
    Joerg Wunsch authored
    2007-06-05  Joerg Wunsch  <j.gnu@uriah.heep.sax.de>
    
    	PR preprocessor/23479
    gcc/
    	* doc/extend.texi: Document the 0b-prefixed binary integer
    	constant extension.
    
    libcpp/
    	* expr.c (cpp_classify_number): Implement 0b-prefixed binary
    	integer constants.
    	(append_digit): Likewise.
    	* include/cpplib.h: Add CPP_N_BINARY, to be used for 0b-prefixed
    	binary integer constants.
    
    testsuite/
    	* testsuite/gcc.dg/binary-constants-1.c: Add test suites for
    	the 0b-prefixed binary integer constants.
    	* testsuite/gcc.dg/binary-constants-2.c: Ditto.
    	* testsuite/gcc.dg/binary-constants-3.c: Ditto.
    	* testsuite/gcc.dg/binary-constants-4.c: Ditto.
    
    From-SVN: r125346
    f7fd775f
    History
    re PR preprocessor/23479 (Implement binary constants with a "0b" prefix)
    Joerg Wunsch authored
    2007-06-05  Joerg Wunsch  <j.gnu@uriah.heep.sax.de>
    
    	PR preprocessor/23479
    gcc/
    	* doc/extend.texi: Document the 0b-prefixed binary integer
    	constant extension.
    
    libcpp/
    	* expr.c (cpp_classify_number): Implement 0b-prefixed binary
    	integer constants.
    	(append_digit): Likewise.
    	* include/cpplib.h: Add CPP_N_BINARY, to be used for 0b-prefixed
    	binary integer constants.
    
    testsuite/
    	* testsuite/gcc.dg/binary-constants-1.c: Add test suites for
    	the 0b-prefixed binary integer constants.
    	* testsuite/gcc.dg/binary-constants-2.c: Ditto.
    	* testsuite/gcc.dg/binary-constants-3.c: Ditto.
    	* testsuite/gcc.dg/binary-constants-4.c: Ditto.
    
    From-SVN: r125346