This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients Arfrever, Mark.Shannon, larry, mark.dickinson, pitrou, rhettinger, serhiy.storchaka, skrah
Date 2013-05-30.18:03:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1369937014.05.0.46520102477.issue18090@psf.upfronthosting.co.za>
In-reply-to
Content
+1 for removing all occurrences of "register".


Regarding the grammar, we have:

function-definition:
    declaration-specifiers-opt declarator declaration-list-opt compound-statement


So I think that "part of an external declaration" refers to the outermost
declaration-specifiers, not to some inner declaration-specifiers that are
part of the parameter-type-list. Otherwise it would also be forbidden to
use "register" in the compound-statement. ;)

Thus, IMO this is legal:

   a) int f (register int x) {return x;}


But this is not allowed:

   b) register int f (int x) {return x;}


As Mark said, a) does not alter the calling convention. It's just a request
to keep x in a register in the function body once the parameter passing is
done.
History
Date User Action Args
2013-05-30 18:03:34skrahsetrecipients: + skrah, rhettinger, mark.dickinson, pitrou, larry, Arfrever, Mark.Shannon, serhiy.storchaka
2013-05-30 18:03:34skrahsetmessageid: <1369937014.05.0.46520102477.issue18090@psf.upfronthosting.co.za>
2013-05-30 18:03:34skrahlinkissue18090 messages
2013-05-30 18:03:33skrahcreate