This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug preprocessor/23479] Implement binary constants with a "0b" prefix



------- Comment #28 from manu at gcc dot gnu dot org  2007-06-05 22:25 -------
Subject: Bug 23479

Author: manu
Date: Tue Jun  5 22:25:27 2007
New Revision: 125346

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125346
Log:
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.

Added:
    trunk/gcc/testsuite/gcc.dg/binary-constants-1.c
    trunk/gcc/testsuite/gcc.dg/binary-constants-2.c
    trunk/gcc/testsuite/gcc.dg/binary-constants-3.c
    trunk/gcc/testsuite/gcc.dg/binary-constants-4.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/doc/extend.texi
    trunk/gcc/testsuite/ChangeLog
    trunk/libcpp/ChangeLog
    trunk/libcpp/expr.c
    trunk/libcpp/include/cpplib.h


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23479


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