This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Keeping unreachable code
- From: Casper Hornstrup <chorns at users dot sourceforge dot net>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 3 Feb 2002 18:18:09 +0100
- Subject: Keeping unreachable code
I cannot get GCC to stop removing a block of code that is not reached when
control flows normally through the function.
The code is only jumped to from a runtime library so GCC thinks it is
unreachable and therefore removes it.
I have tried using LABEL_PRESERVE_P (label) = 1; on the label for the block,
but this only preserves the label and not the following code. How do I
preserve both the label and the following code?
Casper Hornstrup