#1186 closed defect

aliasing probs: if_ethersubr.c

Reported by: Ralf Corsepius Owned by: Eric Norum
Priority: normal Milestone: 4.8
Component: network/legacy Version: 4.8
Severity: normal Keywords:
Cc: joel.sherrill@…, chrisj@… Blocked By:
Blocking:

Description

# <path>/configure --target=i386-rtems4.8
...
# make RTEMS_BSP=pc686 preinstall
...
# cd i386-rtems4.8/c/pc686/cpukit/libnetworking
...
# make CFLAGS="-mtune=pentiumpro -O2 -Werror -Wstrict-aliasing=2" \

net/libnetworking_a-if_ethersubr.o

i386-rtems4.8-gcc --pipe -DHAVE_CONFIG_H -I.. -I../../cpukit/../../../pc686/lib/include -I../../../../../../../../rtems.orig/c/src/../../cpukit/libnetworking -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS -DDIAGNOSTIC -DBOOTP_COMPAT -D_KERNEL -DBSD_VISIBLE -Wall -fasm -mtune=pentiumpro -O2 -Werror -Wstrict-aliasing=2 -MT net/libnetworking_a-if_ethersubr.o -MD -MP -MF net/.deps/libnetworking_a-if_ethersubr.Tpo -c -o net/libnetworking_a-if_ethersubr.o test -f 'net/if_ethersubr.c' || echo '../../../../../../../../rtems.orig/c/src/../../cpukit/libnetworking/'net/if_ethersubr.c
cc1: warnings being treated as errors
In file included from ../../../../../../../../rtems.orig/c/src/../../cpukit/libnetworking/net/if_ethersubr.c:61:
../../cpukit/../../../pc686/lib/include/net/if_llc.h:65: warning: 'packed' attribute ignored for field of type 'struct <anonymous>'
../../cpukit/../../../pc686/lib/include/net/if_llc.h:69: warning: 'packed' attribute ignored for field of type 'struct <anonymous>'
../../cpukit/../../../pc686/lib/include/net/if_llc.h:73: warning: 'packed' attribute ignored for field of type 'struct <anonymous>'
../../cpukit/../../../pc686/lib/include/net/if_llc.h:85: warning: 'packed' attribute ignored for field of type 'struct <anonymous>'
../../cpukit/../../../pc686/lib/include/net/if_llc.h:94: warning: 'packed' attribute ignored for field of type 'struct <anonymous>'
../../../../../../../../rtems.orig/c/src/../../cpukit/libnetworking/net/if_ethersubr.c: In function 'ether_addmulti':
../../../../../../../../rtems.orig/c/src/../../cpukit/libnetworking/net/if_ethersubr.c:598: warning: dereferencing type-punned pointer might break strict-aliasing rules
../../../../../../../../rtems.orig/c/src/../../cpukit/libnetworking/net/if_ethersubr.c: In function 'ether_delmulti':
../../../../../../../../rtems.orig/c/src/../../cpukit/libnetworking/net/if_ethersubr.c:692: warning: dereferencing type-punned pointer might break strict-aliasing rules
../../../../../../../../rtems.orig/c/src/../../cpukit/libnetworking/net/if_ethersubr.c: In function 'ether_ioctl':
../../../../../../../../rtems.orig/c/src/../../cpukit/libnetworking/net/if_ethersubr.c:881: warning: dereferencing type-punned pointer might break strict-aliasing rules
make: * [net/libnetworking_a-if_ethersubr.o] Error 1

Change History (2)

comment:1 Changed on 12/08/06 at 16:37:45 by Ralf Corsepius

# <path>/configure --target=i386-rtems4.8
...
# make RTEMS_BSP=pc686 preinstall
...
# cd i386-rtems4.8/c/pc686/cpukit/libnetworking
...
# make CFLAGS="-mtune=pentiumpro -O2 -Werror -Wstrict-aliasing=2" \

net/libnetworking_a-if_ethersubr.o

i386-rtems4.8-gcc --pipe -DHAVE_CONFIG_H -I.. -I../../cpukit/../../../pc686/lib/include -I../../../../../../../../rtems.orig/c/src/../../cpukit/libnetworking -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS -DDIAGNOSTIC -DBOOTP_COMPAT -D_KERNEL -DBSD_VISIBLE -Wall -fasm -mtune=pentiumpro -O2 -Werror -Wstrict-aliasing=2 -MT net/libnetworking_a-if_ethersubr.o -MD -MP -MF net/.deps/libnetworking_a-if_ethersubr.Tpo -c -o net/libnetworking_a-if_ethersubr.o test -f 'net/if_ethersubr.c' || echo '../../../../../../../../rtems.orig/c/src/../../cpukit/libnetworking/'net/if_ethersubr.c
cc1: warnings being treated as errors
In file included from ../../../../../../../../rtems.orig/c/src/../../cpukit/libnetworking/net/if_ethersubr.c:61:
../../cpukit/../../../pc686/lib/include/net/if_llc.h:65: warning: 'packed' attribute ignored for field of type 'struct <anonymous>'
../../cpukit/../../../pc686/lib/include/net/if_llc.h:69: warning: 'packed' attribute ignored for field of type 'struct <anonymous>'
../../cpukit/../../../pc686/lib/include/net/if_llc.h:73: warning: 'packed' attribute ignored for field of type 'struct <anonymous>'
../../cpukit/../../../pc686/lib/include/net/if_llc.h:85: warning: 'packed' attribute ignored for field of type 'struct <anonymous>'
../../cpukit/../../../pc686/lib/include/net/if_llc.h:94: warning: 'packed' attribute ignored for field of type 'struct <anonymous>'
../../../../../../../../rtems.orig/c/src/../../cpukit/libnetworking/net/if_ethersubr.c: In function 'ether_addmulti':
../../../../../../../../rtems.orig/c/src/../../cpukit/libnetworking/net/if_ethersubr.c:598: warning: dereferencing type-punned pointer might break strict-aliasing rules
../../../../../../../../rtems.orig/c/src/../../cpukit/libnetworking/net/if_ethersubr.c: In function 'ether_delmulti':
../../../../../../../../rtems.orig/c/src/../../cpukit/libnetworking/net/if_ethersubr.c:692: warning: dereferencing type-punned pointer might break strict-aliasing rules
../../../../../../../../rtems.orig/c/src/../../cpukit/libnetworking/net/if_ethersubr.c: In function 'ether_ioctl':
../../../../../../../../rtems.orig/c/src/../../cpukit/libnetworking/net/if_ethersubr.c:881: warning: dereferencing type-punned pointer might break strict-aliasing rules
make: * [net/libnetworking_a-if_ethersubr.o] Error 1

comment:2 Changed on 11/20/14 at 03:16:26 by Chris Johns

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.