Thread (11 messages) flat view 11 messages, 4 authors, 2000-12-05

Re: lots of questions (va_list, embedded perl, cvsd, introduction - sort of)

From: Alex Avriette <hidden>
Date: 2000-12-05 17:36:43

And lo there was much discussion regarding:
quoted
void
log (const char *fmt, ...)
This code looks OK. What environment? (gcc/glibc)
from glibcbug:

Host type: powerpc-redhat-linux-gnu
System: Linux macachu 2.4.0-test11 #5 Sun Nov 26 13:51:22 EST 2000 ppc
unknown
Architecture: ppc

Addons: crypt linuxthreads
Build CFLAGS: -g -O2
Build CC: gcc
Compiler version: 2.95.2 19991024 (release/franzo)
Kernel headers: 2.4.0-test11
Symbol versioning: yes
Build static: yes
Build shared: yes
Build pic-default: no
Build profile: yes
Build omitfp: no
Build bounded: no
Build static-nss: no
Stdio: libio

quoted
void vs_test ( const char *fmt, ...)
This testcase is buggy (look at the printf!), if fixed it behaves as
expected. You would have seen that if you compiled with -W -Wall!
whoops! (blush!) gotcha.
quoted
void nested_test ( const char *fmt, ...)
This testcase is bogus since you miss the required va_start/va_end pairs. It
misbehaves as expected.
let me check with the bsd guy, but AIR, it runs without the two pairs. i
could be wrong.
I've tested this both with gcc-2.95.3 and a recent gcc-2.97 snapshot. This
looks a lot like your are still using egcs on PPC, don't do that, use
gcc-2.95.[23] as the current distributions do.
all my experience writing c was in dos on borland c++, years ago. im
actually not sure about egcs, except that i get the error in gdb. how can
i be sure, and if i am, how can i switch?

thanks, franz.

alex

--
alex avriette [alex@cosmo.allay.net]

"No man who uses EMACS is deserving of love."
	Tom Christiansen [off-list ref],
	_Perl Cookbook_, pp. 653


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help