]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/ChangeLog
re PR preprocessor/23479 (Implement binary constants with a "0b" prefix)
authorJoerg Wunsch <j.gnu@uriah.heep.sax.de>
Tue, 5 Jun 2007 22:25:27 +0000 (22:25 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Tue, 5 Jun 2007 22:25:27 +0000 (22:25 +0000)
commitf7fd775f0203c580b35b179976c665db3e4d9e46
treef7bdd99b29a4dc2624af52e3f3a9d6c816e0b468
parent1a5f8b894c144cc15f6a63b3b52ba28b5bd4e94f
re PR preprocessor/23479 (Implement binary constants with a "0b" prefix)

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
gcc/ChangeLog
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/binary-constants-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/binary-constants-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/binary-constants-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/binary-constants-4.c [new file with mode: 0644]
libcpp/ChangeLog
libcpp/expr.c
libcpp/include/cpplib.h