http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58256
Jeffrey A. Law <law at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2013-09-13 CC| |ccoutant at google dot com, | |jason at redhat dot com, | |law at redhat dot com Ever confirmed|0 |1 --- Comment #6 from Jeffrey A. Law <law at redhat dot com> --- Reduced testcase. Appears to be blowing up in the dwarf2 bits. Compile with -Os -mint32 -mh -fomit-frame-pointer -g typedef _Bool bool; typedef unsigned short umode_t; enum { false = 0, true = 1 }; struct dentry { struct inode *d_inode; }; struct path { struct dentry *dentry; }; extern int vfs_create(struct inode *, struct dentry *, umode_t, bool); long SYSC_mknodat(int dfd, const char * filename, umode_t mode, unsigned dev) { struct dentry *dentry; struct path path; int error; unsigned int lookup_flags = 0; switch (mode & 00170000) { case 0: case 0100000: error = vfs_create(path.dentry->d_inode,dentry,mode,true); break; case 0020000: case 0060000: error = vfs_mknod(path.dentry->d_inode,dentry,mode, new_decode_dev(dev)); break; } }