mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-31 23:41:01 +08:00
re PR c/30313 (sizeof of expression including bit-field)
2007-01-30 Richard Guenther <rguenther@suse.de> PR middle-end/30313 * passes.c (execute_one_pass): Reset in_gimple_form to not confuse non-unit-at-a-time mode. * gcc.dg/torture/pr30313.c: New testcase. From-SVN: r121334
This commit is contained in:
parent
bcf52d7b57
commit
91851351be
@ -1,3 +1,9 @@
|
||||
2007-01-30 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR middle-end/30313
|
||||
* passes.c (execute_one_pass): Reset in_gimple_form to not
|
||||
confuse non-unit-at-a-time mode.
|
||||
|
||||
2007-01-29 Roger Sayle <roger@eyesopen.com>
|
||||
Richard Guenther <rguenther@suse.de>
|
||||
|
||||
|
@ -1054,6 +1054,9 @@ execute_one_pass (struct tree_opt_pass *pass)
|
||||
dump_file = NULL;
|
||||
}
|
||||
|
||||
/* Reset in_gimple_form to not break non-unit-at-a-time mode. */
|
||||
in_gimple_form = false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
2007-01-30 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR middle-end/30313
|
||||
* gcc.dg/torture/pr30313.c: New testcase.
|
||||
|
||||
2007-01-29 Janis Johnson <janis187@us.ibm.com>
|
||||
|
||||
* gcc.dg/dfp/dfp-except.h: New file.
|
||||
|
15
gcc/testsuite/gcc.dg/torture/pr30313.c
Normal file
15
gcc/testsuite/gcc.dg/torture/pr30313.c
Normal file
@ -0,0 +1,15 @@
|
||||
/* { dg-do compile } */
|
||||
|
||||
static inline void bar(){}
|
||||
|
||||
struct S
|
||||
{
|
||||
signed int i: 32;
|
||||
};
|
||||
|
||||
int main()
|
||||
{
|
||||
struct S x = {32};
|
||||
sizeof(x.i+0);
|
||||
return 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user