This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Really, really const


Andrew Haley <aph@redhat.com> writes:

[...]

|  > the assignment to t should happen before the call to f().  But GCC 3.2.2
|  > produces this:
| 
| Mainline doesn't; it reads a first.

Both behaviour are conformant.  However, the compiler can safely
assumme that a[0] will never change.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]