Skip to contentSkip to conversation

gplugd board / armada100_fec

U-Boot Ajay Bhargav 2 participants 3 messages Oct 31, 2011 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 25 lines · ----- "Marek Vasut

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

Quoted 1 line

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

#2 lore raw
Quoted 26 lines
Quoted 25 lines · ----- "Marek Vasut

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

Quoted 5 lines
Quoted 1 line

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

Quoted 5 lines

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

#3 lore raw
Quoted 36 lines · ----- "Marek Vasut
Quoted 4 lines
Quoted 3 lines · ----- "Marek Vasut

Dear Ajay Bhargav,

I compiled the "gplugd" board and I got the following warnings,

please

Quoted 5 lines
Quoted 5 lines

fix.

Configuring for gplugd board...
armada100_fec.c: In function 'armdfec_init':
armada100_fec.c:483:2: warning: dereferencing type-punned pointer

will

Quoted 3 lines
Quoted 3 lines

break
strict-aliasing rules
armada100_fec.c:484:2: warning: dereferencing type-punned pointer

will

Quoted 4 lines
Quoted 4 lines

break
strict-aliasing rules
armada100_fec.c: In function 'armdfec_recv':
armada100_fec.c:670:2: warning: dereferencing type-punned pointer

will

Quoted 4 lines
Quoted 4 lines

break
strict-aliasing rules
gplugd.c: In function 'board_init':
gplugd.c:95:27: error: 'MACH_TYPE_SHEEVAD' undeclared (first use

in

Quoted 3 lines
Quoted 3 lines

this
function)
gplugd.c:95:27: note: each undeclared identifier is reported only

once

Quoted 7 lines
Quoted 4 lines

for each
function it appears in

Cheers

Hi Marek,

Quoted 15 lines
Quoted 1 line

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

Quoted 5 lines

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