diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-22 15:22:04 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-22 15:22:04 +0000 |
commit | 79e0cff74052972ae3794cdb4791864d406d16ec (patch) | |
tree | 21b476dfc623e3356f62e5f133c7927ccbfccdc1 /gcc/gimple.h | |
parent | 84972db5b3f112ca1c838dc3bd7b2f333b99adea (diff) | |
download | gcc-79e0cff74052972ae3794cdb4791864d406d16ec.tar.gz |
2012-09-22 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 191642 using svnmerge.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@191643 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple.h')
-rw-r--r-- | gcc/gimple.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/gimple.h b/gcc/gimple.h index 58696896050..27887e8211f 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -210,10 +210,6 @@ struct GTY((chain_next ("%h.next"))) gimple_statement_base { and the prev pointer being the last. */ gimple next; gimple GTY((skip)) prev; - - /* [ WORD 6 ] - Lexical block holding this statement. */ - tree block; }; @@ -1196,7 +1192,7 @@ gimple_bb (const_gimple g) static inline tree gimple_block (const_gimple g) { - return g->gsbase.block; + return LOCATION_BLOCK (g->gsbase.location); } @@ -1205,7 +1201,11 @@ gimple_block (const_gimple g) static inline void gimple_set_block (gimple g, tree block) { - g->gsbase.block = block; + if (block) + g->gsbase.location = + COMBINE_LOCATION_DATA (line_table, g->gsbase.location, block); + else + g->gsbase.location = LOCATION_LOCUS (g->gsbase.location); } @@ -1240,7 +1240,7 @@ gimple_set_location (gimple g, location_t location) static inline bool gimple_has_location (const_gimple g) { - return gimple_location (g) != UNKNOWN_LOCATION; + return !IS_UNKNOWN_LOCATION (gimple_location (g)); } |