This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: patch to fix constant math - 4th patch - wide-int.[ch] refresh


This patch refreshes wide-int.[ch]. Most of the changes are bug fixes that were fixed for tree-vrp.c in patch 8.

There are two significant differences:

1) There are now constructors to override the precision and bitsize that are normally taken from the type. These are used to perform the finite "infinite precision" that is required by the tree-vrp.c pass. The bitsize and precision passed in are the ones necessary to compile the current function.

2) The signed and unsigned extension functions have changed a lot. The ones with the name ext do an extension but the result always has the bitsize and precision of this. the functions that are named force_to_size, now return results based on the precision and bitsize passed in after doing the proper extension.

The second change is in line with comments made by richi and others.

kenny



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]