This is the mail archive of the gcc-bugs@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]

[Bug middle-end/52141] [trans-mem] ICE due to asm statement in trans-mem.c:expand_block_tm


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

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-02-07 09:30:45 UTC ---
Might I suggest to instead of

        case GIMPLE_ASM:
          gcc_unreachable ();

use

        case GIMPLE_ASM:
          sorry ("asm statements not allowed in transactions");

?  It's not a compiler but a user error (well, usually).

Btw, what you really want is some simple IPA propagation of the various
transaction attributes similar to how we handle pure/const.


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