https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67946
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-10-13
Component|target |middle-end
Ever confirmed|0 |1
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
I don't think compiling with -mavx is desired here. The "bug" is that
DECL_MODE doesn't have the same special-casing of vectors as TYPE_MODE has
and ...
/* Holds the machine mode corresponding to the declaration of a variable or
field. Always equal to TYPE_MODE (TREE_TYPE (decl)) except for a
FIELD_DECL. */
#define DECL_MODE(NODE) (DECL_COMMON_CHECK (NODE)->decl_common.mode)
... the comment also is wrong here.
Not sure if we really want to change the above to sth like
#define DECL_MODE(NODE) \
(VECTOR_TYPE_P (TREE_TYPE (NODE)) \
? vector_type_mode (TREE_TYPE (NODE)) \
: DECL_COMMON_CHECK (NODE)->decl_common.mode)
though. Maybe changing references to DECL_MODE to use TYPE_MODE in some
selected places would be enough ...