* [U-Boot] [BREAKAGE] gplugd board / armada100_fec
@ 2011-10-28 23:44 Marek Vasut
0 siblings, 0 replies; 4+ messages in thread
From: Marek Vasut @ 2011-10-28 23:44 UTC (permalink / raw)
To: u-boot
Dear Ajay Bhargav,
I compiled the "gplugd" board and I got the following warnings, please fix.
Configuring for gplugd board...
armada100_fec.c: In function 'armdfec_init':
armada100_fec.c:483:2: warning: dereferencing type-punned pointer will break
strict-aliasing rules
armada100_fec.c:484:2: warning: dereferencing type-punned pointer will break
strict-aliasing rules
armada100_fec.c: In function 'armdfec_recv':
armada100_fec.c:670:2: warning: dereferencing type-punned pointer will break
strict-aliasing rules
gplugd.c: In function 'board_init':
gplugd.c:95:27: error: 'MACH_TYPE_SHEEVAD' undeclared (first use in this
function)
gplugd.c:95:27: note: each undeclared identifier is reported only once for each
function it appears in
Cheers
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <1666782535.280872.1320040324338.JavaMail.root@ahm.einfochips.com>]
* [U-Boot] [BREAKAGE] gplugd board / armada100_fec
[not found] <1666782535.280872.1320040324338.JavaMail.root@ahm.einfochips.com>
@ 2011-10-31 5:52 ` Ajay Bhargav
2011-10-31 11:33 ` Marek Vasut
0 siblings, 1 reply; 4+ messages in thread
From: Ajay Bhargav @ 2011-10-31 5:52 UTC (permalink / raw)
To: u-boot
----- "Marek Vasut" <marek.vasut@gmail.com> wrote:
> Dear Ajay Bhargav,
>
> I compiled the "gplugd" board and I got the following warnings, please
> fix.
>
> Configuring for gplugd board...
> armada100_fec.c: In function 'armdfec_init':
> armada100_fec.c:483:2: warning: dereferencing type-punned pointer will
> break
> strict-aliasing rules
> armada100_fec.c:484:2: warning: dereferencing type-punned pointer will
> break
> strict-aliasing rules
> armada100_fec.c: In function 'armdfec_recv':
> armada100_fec.c:670:2: warning: dereferencing type-punned pointer will
> break
> strict-aliasing rules
> gplugd.c: In function 'board_init':
> gplugd.c:95:27: error: 'MACH_TYPE_SHEEVAD' undeclared (first use in
> this
> function)
> gplugd.c:95:27: note: each undeclared identifier is reported only once
> for each
> function it appears in
>
> Cheers
Hi Marek,
May I know what version of gcc are you using?
I will fix the MACH_TYPE_SHEEVAD as suggested by Albert.
Regards,
Ajay Bhargav
^ permalink raw reply [flat|nested] 4+ messages in thread* [U-Boot] [BREAKAGE] gplugd board / armada100_fec
2011-10-31 5:52 ` Ajay Bhargav
@ 2011-10-31 11:33 ` Marek Vasut
2011-10-31 11:29 ` Ajay Bhargav
0 siblings, 1 reply; 4+ messages in thread
From: Marek Vasut @ 2011-10-31 11:33 UTC (permalink / raw)
To: u-boot
> ----- "Marek Vasut" <marek.vasut@gmail.com> wrote:
> > Dear Ajay Bhargav,
> >
> > I compiled the "gplugd" board and I got the following warnings, please
> > fix.
> >
> > Configuring for gplugd board...
> > armada100_fec.c: In function 'armdfec_init':
> > armada100_fec.c:483:2: warning: dereferencing type-punned pointer will
> > break
> > strict-aliasing rules
> > armada100_fec.c:484:2: warning: dereferencing type-punned pointer will
> > break
> > strict-aliasing rules
> > armada100_fec.c: In function 'armdfec_recv':
> > armada100_fec.c:670:2: warning: dereferencing type-punned pointer will
> > break
> > strict-aliasing rules
> > gplugd.c: In function 'board_init':
> > gplugd.c:95:27: error: 'MACH_TYPE_SHEEVAD' undeclared (first use in
> > this
> > function)
> > gplugd.c:95:27: note: each undeclared identifier is reported only once
> > for each
> > function it appears in
> >
> > Cheers
>
> Hi Marek,
>
> May I know what version of gcc are you using?
ELDK4.2 and ELDK5.0
so gcc4.2 and 4.6, but I include you a testcase (edit path to armada100_fec.h).
gcc -m32 -Wall -fstrict-aliasing -o test2 test2.c ; ./test2
>
> I will fix the MACH_TYPE_SHEEVAD as suggested by Albert.
>
> Regards,
> Ajay Bhargav
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test2.c
Type: text/x-csrc
Size: 504 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111031/76e373d7/attachment.c
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [BREAKAGE] gplugd board / armada100_fec
2011-10-31 11:33 ` Marek Vasut
@ 2011-10-31 11:29 ` Ajay Bhargav
0 siblings, 0 replies; 4+ messages in thread
From: Ajay Bhargav @ 2011-10-31 11:29 UTC (permalink / raw)
To: u-boot
----- "Marek Vasut" <marek.vasut@gmail.com> wrote:
> > ----- "Marek Vasut" <marek.vasut@gmail.com> wrote:
> > > Dear Ajay Bhargav,
> > >
> > > I compiled the "gplugd" board and I got the following warnings,
> please
> > > fix.
> > >
> > > Configuring for gplugd board...
> > > armada100_fec.c: In function 'armdfec_init':
> > > armada100_fec.c:483:2: warning: dereferencing type-punned pointer
> will
> > > break
> > > strict-aliasing rules
> > > armada100_fec.c:484:2: warning: dereferencing type-punned pointer
> will
> > > break
> > > strict-aliasing rules
> > > armada100_fec.c: In function 'armdfec_recv':
> > > armada100_fec.c:670:2: warning: dereferencing type-punned pointer
> will
> > > break
> > > strict-aliasing rules
> > > gplugd.c: In function 'board_init':
> > > gplugd.c:95:27: error: 'MACH_TYPE_SHEEVAD' undeclared (first use
> in
> > > this
> > > function)
> > > gplugd.c:95:27: note: each undeclared identifier is reported only
> once
> > > for each
> > > function it appears in
> > >
> > > Cheers
> >
> > Hi Marek,
> >
> > May I know what version of gcc are you using?
>
> ELDK4.2 and ELDK5.0
>
> so gcc4.2 and 4.6, but I include you a testcase (edit path to
> armada100_fec.h).
>
> gcc -m32 -Wall -fstrict-aliasing -o test2 test2.c ; ./test2
>
> >
> > I will fix the MACH_TYPE_SHEEVAD as suggested by Albert.
> >
> > Regards,
> > Ajay Bhargav
>
Can you please check the patch I have just sent? I have cc it to you too.
Regards,
Ajay Bhargav
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-10-31 11:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-28 23:44 [U-Boot] [BREAKAGE] gplugd board / armada100_fec Marek Vasut
[not found] <1666782535.280872.1320040324338.JavaMail.root@ahm.einfochips.com>
2011-10-31 5:52 ` Ajay Bhargav
2011-10-31 11:33 ` Marek Vasut
2011-10-31 11:29 ` Ajay Bhargav
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox