]> git.ipfire.org Git - thirdparty/gcc.git/commit
opt-functions.awk: fix comparison of limit, begin and end
authorJose E. Marchesi <jose.marchesi@oracle.com>
Mon, 9 Sep 2019 09:44:23 +0000 (11:44 +0200)
committerJose E. Marchesi <jemarch@gcc.gnu.org>
Mon, 9 Sep 2019 09:44:23 +0000 (11:44 +0200)
commit4bc8aadf033c7dbbbb16ba99e3260da0c0fd39bf
treea72d02aba934c07b325235d29ee1fa348b77e9e3
parentb7b1f65711bdea483481c475fa31634ee091068f
opt-functions.awk: fix comparison of limit, begin and end

The function integer_range_info makes sure that, if provided, the
initial value fills in the especified range.  However, it is necessary
to convert the values to a numerical context before comparing, to make
sure awk is using arithmetical order and not lexicographical order.

gcc/ChangeLog:

      * opt-functions.awk (integer_range_info): Make sure values are in
      numeric context before operating with them.

From-SVN: r275503
gcc/ChangeLog
gcc/opt-functions.awk