Don't cause ICEs when auto profile file is not found with checking
commit1bba63a77e3ed0a3420eaa905f753614d5ec99d5
authorAndi Kleen <ak@linux.intel.com>
Mon, 30 May 2016 18:13:12 +0000 (30 18:13 +0000)
committerAndi Kleen <ak@gcc.gnu.org>
Mon, 30 May 2016 18:13:12 +0000 (30 18:13 +0000)
tree1985bc8a06c27e925e000ac5e9c9b1bc6053499a
parent53803093d096611166267de1390d0318592944e2
Don't cause ICEs when auto profile file is not found with checking

Currently, on a checking enabled compiler when -fauto-profile does
not find the profile feedback file it errors out with assertation
failures. Add proper errors for this case.

gcc/:

2016-05-30  Andi Kleen  <ak@linux.intel.com>

* auto-profile.c (read_profile): Replace asserts with errors
when file does not exist.
* gcov-io.c (gcov_read_words): Dito.

From-SVN: r236894
gcc/ChangeLog
gcc/auto-profile.c
gcc/gcov-io.c