Function Argument Evaluation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Good morning,

Historically it's always been that arguments passed into functions get
evaluated from left to right

Ie. 'int foo(int a, char *b, float c) { }

But I'm noticing that with gcc-4.1.1 (on Fedora Core 5), that does not
seem to be the case.  We have some code, granted it may be fragile or
broken code, that relies on the arguments being evaluated from left to
right and seems like that's not the case.  In my code the arguments seem
to be being evaluated right to left.  

Is this by design, a bug, something I'm missing or maybe the optimizer
trying to just be smart???

> :b!

--
Brian D. McGrew        { brian@xxxxxxxxxxxxx ||
brian@xxxxxxxxxxxxxxxxxxx }

> You might be a redneck if ...
> You've ever used jumper cables to start your washing machine!





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux