diff options
author | Per Bothner <per@bothner.com> | 2005-04-05 10:45:32 -0700 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2005-04-05 10:45:32 -0700 |
commit | b747e45d26869e4319e236f03143feecbd89b09e (patch) | |
tree | ec7814b11b96af884ce7c0f68b751a451bb0fa0f /gcc/tree-cfg.c | |
parent | f4f18103eef5b8f43652efda3aefc7568773052d (diff) | |
download | gcc-b747e45d26869e4319e236f03143feecbd89b09e.zip gcc-b747e45d26869e4319e236f03143feecbd89b09e.tar.gz gcc-b747e45d26869e4319e236f03143feecbd89b09e.tar.bz2 |
c-decl.c (finish_function): If USE_MAPPED_LOCATION set the location of the artification 'return 0' in...
* c-decl.c (finish_function): If USE_MAPPED_LOCATION set the location
of the artification 'return 0' in main() to BUILTINS_LOCATION.
* tree-cfg.c (remove_bb): Check that location isn't BUILTINS_LOCATION
before warning.
From-SVN: r97641
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index d913759..00325fc 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -2129,7 +2129,7 @@ remove_bb (basic_block bb) loop above, so the last statement we process is the first statement in the block. */ #ifdef USE_MAPPED_LOCATION - if (warn_notreached && loc != UNKNOWN_LOCATION) + if (warn_notreached && loc > BUILTINS_LOCATION) warning ("%Hwill never be executed", &loc); #else if (warn_notreached && loc) |