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

Re: Help wanted testing gcc-3.3 / gcc-snapshot



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 01 March 2003 20:03, Matthias Klose wrote:

> If you want to help, please email me (and debian-gcc@lists.debian.org)
> the package name and version you want to check, and the architectures
> you want to check. When sending test results, please include the
> compiler version used, for the code quality checks the compiler
> version you compare with, as well.

It's not in the list, but I've just found that my i386 kernel 2.5.63bk4
works when compiled with gcc-3.2 but not with gcc-snapshot. It crashes
early during bootup while unpacking the initramfs.

When I apply the patch below on the kernel tree or compile 
fs/dcache.c with -O1 instead of -O2, the problem goes away
as well. Without the patch, d_alloc is passed &{ 0, 1, 0 }
instead of &{ "/", 1, 0 }. I was not able to reproduce the
erratic behaviour on s390.

	Arnd <><

- --- ./fs/dcache.c	2003-03-02 01:08:32.000000000 +0100
+++ ./fs/dcache.c.works	2003-03-02 01:08:19.000000000 +0100
@@ -785,9 +786,10 @@
 struct dentry * d_alloc_root(struct inode * root_inode)
 {
 	struct dentry *res = NULL;
+	static const struct qstr str = { "/", 1, 0 }; 
 
 	if (root_inode) {
- -		res = d_alloc(NULL, &(const struct qstr) { "/", 1, 0 });
+		res = d_alloc(NULL, &str);
 		if (res) {
 			res->d_sb = root_inode->i_sb;
 			res->d_parent = res;
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE+YU4T5t5GS2LDRf4RAvFdAJ9mbWMOgK6shwAAxx+NlAcIywn+PACeNDRR
8PfipEdwSRwiOri1VV/xFqo=
=Pe41
-----END PGP SIGNATURE-----



Reply to: