diff options
| author | tmsriram <tmsriram@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-01-03 00:42:10 +0000 |
|---|---|---|
| committer | tmsriram <tmsriram@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-01-03 00:42:10 +0000 |
| commit | 13367f529bf33ff8939d3bd89e6a80d703bfed1d (patch) | |
| tree | 536e7aabdf6331042cee7e97399e3b9fbfd94dc8 | |
| parent | 742dc15d42c6a6c1cd9c00e95c1fb8627a734ce6 (diff) | |
| download | ppe42-gcc-13367f529bf33ff8939d3bd89e6a80d703bfed1d.tar.gz ppe42-gcc-13367f529bf33ff8939d3bd89e6a80d703bfed1d.zip | |
Simple fix to code to remove unnecessary NULL checks.
2013-01-02 Sriraman Tallam <tmsriram@google.com>
* config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
NULL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194828 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/config/i386/i386.c | 12 |
2 files changed, 8 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2ab26d339c1..244208da881 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-01-02 Sriraman Tallam <tmsriram@google.com> + + * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for + NULL. + 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> PR middle-end/55198 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index ee2b052bb9a..60f68d45369 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)); |

