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]

Re: Adding constants to LO_SUM


  In message <10107091923.AA07025@vlsi1.ultra.nyu.edu>you write:
  >     This might fix the problem, but it isn't correct.  Just because it
  >     happens to work on rs6000 for 'long long', it doesn't follow it'll
  >     work everywhere.  It is an inherently target-dependent thing, because
  >     LO_SUM is a target-dependent thing.
  > 
  > I'm not certain what "correct" mean in this context, since there's no
  > sufficiently-detailed definition of LO_SUM around.  However, this
  > essentially restores the old behavior and so seems as "correct" as the
  > old code was.
  > 
  > Do you have any other suggestions?
In simplest terms, you can't assume you can add any constant to a LO_SUM
term.  It's simply not safe to do so in generic routines.

jeff



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