This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PR tree-optimization/59149] fail on invalid arguments to flags_from_decl_or_type


flags_from_decl_or_type() only handles a TYPE or DECL. Make this explicit instead.

I also added a check in the use in trans-mem.c, just in case. The subsequent conditionals should take care of the TM case.

It would be nice if Marc Glisse could provide the testcase he mentioned was failing. Either way, the attached patch doesn't hurt.

Tested on x86-64 Linux.

OK?

Attachment: curr
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]