#pragma does only half the job (was Re: Pragma and noalias)
Barry Margolin
barmar at think.COM
Fri Jul 8 03:12:45 AEST 1988
In article <423 at proxftl.UUCP> bill at proxftl.UUCP (T. William Wells) writes:
>All the
>standard says is that adding one causes the implementation to
>behave in an implementation defined manner. AND THAT IS ALL.
>That does prohibit a #pragma from giving additional information
>about the program. Let me repeat that:
> A PRAGMA CAN NOT GIVE INFORMATION ABOUT THE PROGRAM THAT
> THE COMPILER CAN'T FIGURE OUT FOR ITSELF.
How does this restriction follow from what the standard says? As you
said, adding a pragma causes the implementation to behave in an
implementation-defined manner, i.e. it can do WHATEVER the compiler
designer wants it to do. For example, it can make assumptions about
the aliasing of variables that are mentioned in the pragma. How is
that different from "behaving in an implementation-defined manner"?
Barry Margolin
Thinking Machines Corp.
barmar at think.com
{uunet,harvard}!think!barmar
More information about the Comp.lang.c
mailing list