From: Sriraman Tallam Date: Thu, 3 Jan 2013 00:42:10 +0000 (+0000) Subject: Simple fix to code to remove unnecessary NULL checks. X-Git-Tag: releases/gcc-4.8.0~1170 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=778786217358981221cea14a4c543eaa5fba2221;p=thirdparty%2Fgcc.git Simple fix to code to remove unnecessary NULL checks. 2013-01-02 Sriraman Tallam * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for NULL. From-SVN: r194828 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2ab26d339c1a..244208da881c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-01-02 Sriraman Tallam + + * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for + NULL. + 2013-01-02 John David Anglin PR middle-end/55198 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index ee2b052bb9a5..60f68d45369a 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -29626,15 +29626,9 @@ fold_builtin_cpu (tree fndecl, tree *args) {"avx2", F_AVX2} }; - tree __processor_model_type = NULL_TREE; - tree __cpu_model_var = NULL_TREE; - - if (__processor_model_type == NULL_TREE) - __processor_model_type = build_processor_model_struct (); - - if (__cpu_model_var == NULL_TREE) - __cpu_model_var = make_var_decl (__processor_model_type, - "__cpu_model"); + tree __processor_model_type = build_processor_model_struct (); + tree __cpu_model_var = make_var_decl (__processor_model_type, + "__cpu_model"); gcc_assert ((args != NULL) && (*args != NULL));