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:
Richard Guenther 2007-01-30 10:17:09 +00:00 committed by Richard Biener
parent bcf52d7b57
commit 91851351be
4 changed files with 29 additions and 0 deletions

View File

@ -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>

View File

@ -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;
}

View File

@ -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.

View 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;
}