[Bug middle-end/27445] create_tmp_var_raw (gimplify.c) inadventently asserts 'volatile' on temps
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri May 5 17:10:00 GMT 2006
------- Comment #8 from pinskia at gcc dot gnu dot org 2006-05-05 17:10 -------
(In reply to comment #7)
> Consider the following:
>
> volatile int j;
> void p()
> {
> ++j;
> }
>
> Gimplify in its present form might transform the statement above into
> something like the following:
It will never get the wrong type. because create_tmp_from_val uses
TYPE_MAIN_VARIANT.
Your issue with ++j not using incr is not related to the gimplifier at all as
it also happens in every compiler version since at least 2.95.3.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27445
More information about the Gcc-bugs
mailing list