This is the mail archive of the gcc-regression@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]

Re: GCC build failed with your patch on 2001-01-09T11:35:00Z.


>>>>> Alexandre Oliva writes:

Alexandre> Besides, there's a number of tests that fail unless HOST_WIDE_INT is
Alexandre> at least as wide as size_t or ptrdiff_t (I don't recall for sure
Alexandre> which; maybe both).  This is what motivated me to write this patch,
Alexandre> and it's working fine on a number of other 32/64-bit targets.

	This patch isn't even an optimization, it is a trade-off.  The
trade-off is between the GCC backend treating CONST_INT as 64-bits for
various optimization and GCC using synthesized "long long" on 32-bit hosts
which is slower.  GCC should not be imposing this choise by fiat.  Some
people will want all of the optimizations while paying the performance
price and others don't want the speed hit.

	Your patch flips this cost-benefit analysis from its previous
default, as well as breaking the rs6000 port.  Allowing a choice is fine,
but not imposing synthesized "long long" for CONST_INT all 64-bit targets.
That is not a change to be made without greater consideration, and
especially not days before the gcc-3.0 branch.

David


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