This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Why so bad optimized code ?
- To: amylaar at cambridge dot redhat dot com, denisc at overta dot ru
- Subject: Re: Why so bad optimized code ?
- From: Mike Stump <mrs at windriver dot com>
- Date: Tue, 20 Mar 2001 18:03:35 -0800 (PST)
- Cc: gcc at gcc dot gnu dot org
> From: Joern Rennecke <amylaar@cambridge.redhat.com>
> To: denisc@overta.ru (Denis Chertykov)
> Date: Wed, 21 Mar 2001 00:30:35 +0000 (GMT)
> Cc: gcc@gcc.gnu.org
> > int main(void)
> > {
> > time->day = 5;
> > time->hour= 9;
> > time->min = 10;
> > time->sec =10;
> > }
> We have two mechanisms that could be used to do that:
> - (only if -fstrict-aliasing is enabled): Although the individual components
> are characters, the dereference is of a structure pointer, not of a
> character pointer, so I suppose the memory accesses should get non-null
> alias sets.
Nope, don't think so?! char can alias anything, including the
structure pointer.