Skip to content
Snippets Groups Projects
  • Jakub Jelinek's avatar
    01187df0
    N3472 binary constants · 01187df0
    Jakub Jelinek authored
    	N3472 binary constants
    	* include/cpplib.h (struct cpp_options): Fix a typo in user_literals
    	field comment.  Add binary_constants field.
    	* init.c (struct lang_flags): Add binary_constants field.
    	(lang_defaults): Add bin_cst column to the table.
    	(cpp_set_lang): Initialize CPP_OPTION (pfile, binary_constants).
    	* expr.c (cpp_classify_number): Talk about C++11 instead of C++0x
    	in diagnostics.  Accept binary constants if
    	CPP_OPTION (pfile, binary_constants) even when pedantic.  Adjust
    	pedwarn message.
    
    	* g++.dg/cpp/limits.C: Adjust warning wording.
    	* g++.dg/system-binary-constants-1.C: Likewise.
    	* g++.dg/cpp1y/system-binary-constants-1.C: New test.
    
    From-SVN: r198380
    01187df0
    History
    N3472 binary constants
    Jakub Jelinek authored
    	N3472 binary constants
    	* include/cpplib.h (struct cpp_options): Fix a typo in user_literals
    	field comment.  Add binary_constants field.
    	* init.c (struct lang_flags): Add binary_constants field.
    	(lang_defaults): Add bin_cst column to the table.
    	(cpp_set_lang): Initialize CPP_OPTION (pfile, binary_constants).
    	* expr.c (cpp_classify_number): Talk about C++11 instead of C++0x
    	in diagnostics.  Accept binary constants if
    	CPP_OPTION (pfile, binary_constants) even when pedantic.  Adjust
    	pedwarn message.
    
    	* g++.dg/cpp/limits.C: Adjust warning wording.
    	* g++.dg/system-binary-constants-1.C: Likewise.
    	* g++.dg/cpp1y/system-binary-constants-1.C: New test.
    
    From-SVN: r198380
init.c 23.39 KiB