This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Register?
- To: gcc at gcc dot gnu dot org
- Subject: Register?
- From: Tod Thomas <tthomas at chubb dot com>
- Date: Fri, 22 Sep 2000 13:57:53 -0400
Using gcc 2.95.1 under Solaris 2.6 this code compiles fine:
int
main(int argc, char **argv, char *envp[])
{
register int sw;
}
But this doesn't:
register int sw;
int
main(int argc, char **argv, char *envp[])
{
}
producing this error:
register name not specified for `sw'
Is there something different about using a register as a global or am I
doing something stupid?
Thanks !