This is the mail archive of the gcc-help@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] |
Put a label before the block of code, then take the address of the label and pass it to a function defined in another compilation unit? That should make the compiler think the code in question is reachable and thus prevent it from being deleted.Hello all, I was wondering if there is some means of directing gcc to generate unreachable code? Either a means to do so globally or a specific scope would be great. I wish to generate some code which employs inline assembly and/or libunwind to do a type of exception handling not possible in standard C.
Don't get me wrong - the compiler is correct. The generated code is
unreachable via any standard C control flow mechanism, but I'd really
like it to generate the code anyways. Is there any way to do this?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |