diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2014-06-06 07:39:53 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2014-06-06 07:39:53 +0000 |
commit | 9b7a11e15385db8fe350c7b3f90f8530c18f2a11 (patch) | |
tree | d69165b2068ecc2135bc6ce8fff838dfeac24b1a /gcc | |
parent | 726338f44ec906a894236b5cee6dcc7ab32fc30c (diff) | |
download | gcc-9b7a11e15385db8fe350c7b3f90f8530c18f2a11.zip gcc-9b7a11e15385db8fe350c7b3f90f8530c18f2a11.tar.gz gcc-9b7a11e15385db8fe350c7b3f90f8530c18f2a11.tar.bz2 |
* tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
From-SVN: r211307
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/tree-cfg.c | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 71179f5..7cb049c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2014-06-06 Eric Botcazou <ebotcazou@adacore.com> + + * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge. + 2014-06-06 Richard Biener <rguenther@suse.de> * cfgexpand.c (expand_gimple_cond): Remove check for current_loops. diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index acf08fc..e824619 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -763,8 +763,11 @@ make_edges (void) fallthru = false; break; case GIMPLE_RETURN: - make_edge (bb, EXIT_BLOCK_PTR_FOR_FN (cfun), 0); - fallthru = false; + { + edge e = make_edge (bb, EXIT_BLOCK_PTR_FOR_FN (cfun), 0); + e->goto_locus = gimple_location (last); + fallthru = false; + } break; case GIMPLE_COND: make_cond_expr_edges (bb); |