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]

Re: Dead code elimination problem?


On Wed, May 10, 2000 at 08:46:22AM +0200, Peter Nenzén wrote:
> We have some problems with the code below. During compilation, gcc seams to
> eliminate the rows after the return statement in each function.

Yes.  The code is dead.  Your code is illegal.

Quoting from the manual:

]   You may not use this mechanism to jump to code in a different
] function.  If you do that, totally unpredictable things will happen.
] The best way to avoid this is to store the label address only in
] automatic variables and never pass it as an argument.



r~

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