Article View: gnu.gcc.help
Article #49442First class labels in C?
From: D.A.Turner
Date: Thu, 27 Jan 1994 20:43
Date: Thu, 27 Jan 1994 20:43
18 lines
1083 bytes
1083 bytes
I have been told that gcc now supports first class labels in C. I take this to mean that one can do a computed goto, something like label *x; L: ..... x = L; .... goto *x; I would be grateful if someone can advise me (assuming the rumour is correct): 1) What the syntax is for declaring and using label variables. 2) Which versions of gcc support this, and what machines they are available for. (I'm particularly interested in SUN-4 and PC). Thanks for any info. David Turner
Technical Details
Message-ID:
<399@beech.ukc.ac.uk>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!pipex!uknet!ukc!beech.ukc.ac.uk!datShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,b6c4fa8a7551f9aa,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1994-01-29 06:28:12 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!pipex!uknet!ukc!beech.ukc.ac.uk!dat From: dat@ukc.ac.uk (D.A.Turner) Newsgroups: gnu.gcc.help Subject: First class labels in C? Date: Thu, 27 Jan 94 20:43:35 GMT Organization: University of Kent at Canterbury, UK. Lines: 18 Sender: dat@ukc.ac.uk Distribution: gnu Message-ID: <399@beech.ukc.ac.uk> NNTP-Posting-Host: beech.ukc.ac.uk