This is the mail archive of the gcc-patches@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]

Re: Reorganize missing noreturn warning


On Wed, Jun 9, 2010 at 5:58 PM, Jan Hubicka <hubicka@ucw.cz> wrote:
>> Hi,
>> this patch moves noreturn warning code to same infrastructure as const/pure.
>> This change wording of the warning by "might be possible candidat" to "might be
>> candidate" and supress the warning when compiler can do full auto detection
>> (i.e. for static functions, have patch for that in equeue).
>>
>> I added Wsuggest-attribute=noreturn and kept existing -Wmissing-noreturn as alias.
>>
>> Bootstrapped/regtested x86_64-linux, OK?
>>
>> Honza
>>
>> ? ? ? * doc/invoke.texi (Wsuggest-attribute): Document.
>> ? ? ? (Wmissing-noreturn): Remove.
>> ? ? ? * ipa-pure-const.c (warn_function_noreturn): New function.
>> ? ? ? * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
>> ? ? ? warn_missing_noreturn.
>> ? ? ? * common.opt (Wsuggest-attribute=noreturn): New.
>> ? ? ? * tree-flow.h (warn_function_noreturn): Declare.
>> ? ? ? * tree-cfg.c (execute_warn_function_noreturn): Use
>> ? ? ? warn_function_noreturn.
>> ? ? ? (gate_warn_function_noreturn): New.
>> ? ? ? (pass_warn_function_noreturn): Update.
>>
>> ? ? ? * testsuite/gcc.dg/noreturn-7.c: Update.
>> ? ? ? * testsuite/gcc.dg/noreturn-4.c: Update.
> Ping...
>
>

OK.


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