diff options
author | Martin Jambor <mjambor@suse.cz> | 2017-04-03 15:42:11 +0000 |
---|---|---|
committer | Martin Jambor <mjambor@suse.cz> | 2017-04-03 15:42:11 +0000 |
commit | 4b8ce323755bf923ab865643a9620f08d3fcc1c5 (patch) | |
tree | 0252f376beb3276ea0a19e4ddf02975cfbfc500b /gcc/c/c-decl.c | |
parent | ad2ce058ba710a9a53c6c435792bdef971278015 (diff) |
Merged trunk revision 246648 into the hsa branch
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/hsa@246650 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c/c-decl.c')
-rw-r--r-- | gcc/c/c-decl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c index a0dc5bc0bee..53c390c9e48 100644 --- a/gcc/c/c-decl.c +++ b/gcc/c/c-decl.c @@ -5066,7 +5066,7 @@ finish_decl (tree decl, location_t init_loc, tree init, when a tentative file-scope definition is seen. But at end of compilation, do output code for them. */ DECL_DEFER_OUTPUT (decl) = 1; - if (asmspec && C_DECL_REGISTER (decl)) + if (asmspec && VAR_P (decl) && C_DECL_REGISTER (decl)) DECL_HARD_REGISTER (decl) = 1; rest_of_decl_compilation (decl, true, 0); } |