------- Comment #3 from fxcoudert at gcc dot gnu dot org  2007-09-04 10:39 
-------
(In reply to comment #2)
> Confirmed on x86_64 (-O0), RECORD_TYPE is entering fold_convert()

I've also started seeing this while working on my "create only one decl per
procedure" patch. I wasn't aware that it can also be triggered on mainline. In
my case, we come there because two different decls are created for one given
type.

Uros, do you think we could, in the fold_convert() switch on TREE_CODE(type),
add a case for RECORD_TYPE similar to VECTOR_TYPE: assert that both
RECORD_TYPEs have the same size, and that their fields correspond one-to-one,
and then create a VIEW_CONVERT_EXPR? Do you think it would be worth having or
would that hurt the middle-end in any way?


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33295

Reply via email to