tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* new cxx problem
@ 1999-02-05 20:02 Xihong Yang
  0 siblings, 0 replies; only message in thread
From: Xihong Yang @ 1999-02-05 20:02 UTC (permalink / raw)
  To: tru64-unix-managers

Hi Manager,

We had used DU4.0B to process all of our experimental data. Big part of
our programs are written by C++. DU cxx V5.7 (old cxx compiler) works very
well. But recently we upgrade our cxx to V6.0-010 (new cxx compiler) and
it causes problem. After debugging the code, we found that the problem is
related to the following line:
	*d_buf += d_rowsize;
where d_buf is declared as char ** and d_rowsize is declared as int. After
this line is executed, *d_buf is not changed at all. (d_rowsize is
non-zero). We tried a lot of options to turn off any possible 
optimization, like "-volatile -O0 -noansi_alias" etc. But the problem
remains. We had tried to compile with -w0 option. But newcxx does not
complain the above line at all. If I rewrite the above statement as
	*d_buf = *d_buf+d_rowsize;
Then it works. Can you tell me what is wrong with *d_buf += d_rowsize and
how make the compiler do the proper thing?

-- Xihong
       +         Nevis Lab, Columbia University
    _  O  _      Tel:(914)591-2840 (office)               __o
   ( `-|-' )         (212)749-8849 (home)                  /\
    \_+|+_/      Email: yang@nevis1.columbia.edu          /) 
     -----       WWW: http://nevis1.columbia.edu/~yang

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-02-05 20:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-05 20:02 new cxx problem Xihong Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox