mailing list of musl libc
 help / color / mirror / code / Atom feed
* Musl git 0d......455eee8 and recent compilers
@ 2011-06-06  8:48 Igmar Palsenberg
  2011-06-06 10:27 ` Szabolcs Nagy
  2011-06-06 16:47 ` Rich Felker
  0 siblings, 2 replies; 4+ messages in thread
From: Igmar Palsenberg @ 2011-06-06  8:48 UTC (permalink / raw)
  To: musl

Hi,

I was using Musle as a test for investigating a (completely unrelated) clang-analyser problem, and I've stumbled upon a couple of issues

1) The struct dirent in include/dirent.h uses a 1 byte array for d_name. In reality, it's larger : We allocate more space than the struct. Since muscle requires a C99 compiler anyway, what's keeping use from using d_name[0] or d_name[] ? If a C89 compiler includes dirent.h, we're screwed anyway :). That will probably silence GCC 4.5 and clang, and severely reduce the warnings it gives in similar cases.

2) The NULL pointer dereference in src/time/__asctime.c won't work with clang : It removes it. I suggest using either __builtin_trap() or an abort(). If you get to that point, you're in trouble anyway.

3) Clang does't seem to grasp the weak_alias thingy. It need to check if those parts actually are correct

4) Is there a muscl testsuite somewhere ?


regards,



	Igmar





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

end of thread, other threads:[~2011-06-06 16:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-06  8:48 Musl git 0d......455eee8 and recent compilers Igmar Palsenberg
2011-06-06 10:27 ` Szabolcs Nagy
2011-06-06 10:47   ` Igmar Palsenberg
2011-06-06 16:47 ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).