public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Question for ISO C standards gurus
@ 2004-03-25 18:47 law
  2004-03-25 18:58 ` Dave Korn
  2004-03-25 18:59 ` Paul Jarc
  0 siblings, 2 replies; 9+ messages in thread
From: law @ 2004-03-25 18:47 UTC (permalink / raw)
  To: gcc


Given something like this:


execfuncdef(Estate state, int do_exec)
{
    Shfunc shf;
    char *s;
    int signum, nprg, sbeg, nstrs, npats, len, plen, i, htok = 0;
    Wordcode beg = state->pc, end;
    Eprog prog;
    Patprog *pp;
    LinkList names;
    end = beg + ((state->pc[-1]) >> 5);
    if (!(names = ecgetlist(state, *state->pc++, 2, &htok))) {
      state->pc = end;
      return 0;
    }
}


Does the ISO standard say anything about when the side effect of incrementing
state->pc takes effect?  Or is it implementation dependent?  Of particular
interest is whether or not the increment occurs before the call or after
the call.

jeff


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-03-29 10:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-25 18:47 Question for ISO C standards gurus law
2004-03-25 18:58 ` Dave Korn
2004-03-27  1:35   ` Diego Novillo
2004-03-27 11:25     ` Ian Lance Taylor
2004-03-27 14:25       ` Diego Novillo
2004-03-29 17:18       ` Dave Korn
2004-03-27 21:56     ` law
2004-03-25 18:59 ` Paul Jarc
2004-03-25 19:14   ` Dale Johannesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).