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

r169941 - in /branches/gupc/gcc/upc: ChangeLog ...


Author: gfunck
Date: Tue Feb  8 20:19:06 2011
New Revision: 169941

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169941
Log:
2011-11-08  Gary Funck  <gary@intrepid.com>

	* gcc/upc/upc-pts-struct.c: Fix bug: (pts + int) fails when int is negative
	  for struct-pts representation

	  Analysis indicated that for something like (+ ptr -80) this was
	  being represented as (+ ptr (- 80)) and further, when the
	  calculations were propagated into the individual operations on the
	  components of the 'struct' pointer, it would end up with something
	  like (+ ptr.vaddr (- 80)), and the type of (- 80) would end up as
	  "long unsigned int" because of the addition to the pointer.  This
	  caused the calculations involving the signed 'int' operand to be
	  performed incorrectly.  This fix insures that the 'int' operand is
	  signed.


Modified:
    branches/gupc/gcc/upc/ChangeLog
    branches/gupc/gcc/upc/upc-pts-struct.c


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