Bugzilla – Bug 461
[llvmgcc] Crash compiling unnamed bitfield which does not increase struct size
Last modified: 2004-11-25 03:46:35
You need to log in before you can comment on or make changes to this bug.
Here are the steps to reproduce ./cc1 --version GNU C version 3.4-llvm 20030924 (experimental) (i686-pc-linux-gnu) Extract the .i from the reload llvm/llvm-gcc/gcc$ make reload.o -W reload.c CFLAGS=-save-temps ./cc1 reload.i gen_sse_prologue_save Segmentation fault
Created an attachment (id=184) [details] reload from the gcc This causes the crash
I'll take a look. Thanks! -Chris
here's a reduced testcase: typedef struct { unsigned min_align: 8; unsigned base_after_vec: 1; unsigned min_after_vec: 1; unsigned max_after_vec: 1; unsigned min_after_base: 1; unsigned max_after_base: 1; unsigned offset_unsigned: 1; unsigned : 2; unsigned scale : 8; } addr_diff_vec_flags; addr_diff_vec_flags X;
here's a more reduced testcase: typedef struct { unsigned min_align: 1; unsigned : 1; } addr_diff_vec_flags; addr_diff_vec_flags X;
Fixed. Patch here: http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20041122/021264.html Testcase here: http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20041122/021263.html Thanks! -Chris
Wow, that was fast! I will update and check now.