• jsm28's avatar
    * c-tree.h (flag_hosted): Move declaration from here... · 9bee1c90
    jsm28 authored
    	* c-common.h (flag_hosted): ... to here.
    	(flag_noniso_default_format_attributes): New declaration.
    	* c-decl.c (flag_noniso_default_format_attributes): New variable.
    	(c_decode_option): Set it appropriately for options choosing
    	language standard variant.
    	* c-common.c (init_function_format_info): Only provide default
    	format attributes if flag_hosted.  Only provide the gettext
    	formats if flag_noniso_default_format_attributes.  Update
    	comments.
    	(check_format_info): Disable treatment of %a as a scanf flag in
    	C99 mode.
    
    cp:
    	* decl.c (flag_hosted, flag_noniso_default_format_attributes): New
    	variables.
    	* decl2.c (lang_decode_option): Disable gettext attributes for
    	-ansi.
    
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35843 138bc75d-0d04-0410-961f-82ee72b054a4
    9bee1c90
c-common.c 131 KB