c/1045: asm label for C label misplaced

Ulrich Drepper drepper@redhat.com
Tue Dec 12 08:16:00 GMT 2000


The following reply was made to PR c/1045; it has been noted by GNATS.

From: Ulrich Drepper <drepper@redhat.com>
To: law@redhat.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c/1045: asm label for C label misplaced
Date: 12 Dec 2000 08:14:20 -0800

 Jeffrey A Law <law@redhat.com> writes:
 
 > An asm which changes flow control in the program is not allowed.  
 > 
 > There was talk once of trying to describe CFG changes by asms, but no 
 > agreement was reached on how to do that and no work has been done.
 
 The code currently generated is never correct.  The asm might not
 change the code flow but instead only computes address differences.
 And that is allowed, isn't it?  And note, the label is not recognized
 as not used at all.  It is present, just moved to a wrong location.
 Moving labels should not be possible beyond the epilogue.
 
 -- 
 ---------------.                          ,-.   1325 Chesapeake Terrace
 Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
 Red Hat          `--' drepper at redhat.com   `------------------------


More information about the Gcc-prs mailing list