[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Warning: Immediates 21 and 32 will give undefined behavior.



On Friday 31 July 2009, Carlos O'Donell wrote:
> On Fri, Jul 31, 2009 at 10:26 AM, Frans Pop<elendil@planet.nl> wrote:
> > During compilations using gcc-4.3 of the upstream 2.6.31-rc4 kernel,
> > I twice noticed the warning below. As the compilation was done with
> > '-j4', I'm not sure what code causes it. I'm also not sure if the
> > example below is the same as the first time I saw it.
> >
> > <snip>
> >  CC [M]  drivers/pcmcia/pd6729.o
> >  CC [M]  drivers/pcmcia/i82365.o
> >  CC [M]  net/netfilter/nf_conntrack_proto_sctp.o
> >  CC [M]  drivers/net/e1000e/ich8lan.o
> >  CC [M]  net/netfilter/nf_conntrack_proto_udplite.o
> >  CC [M]  drivers/pcmcia/i82092.o
> >  CC [M]  drivers/net/e1000e/es2lan.o
> >  CC [M]  drivers/net/e1000/e1000_hw.o
> >  CC [M]  net/netfilter/nf_conntrack_netlink.o
> >  LD [M]  drivers/pcmcia/pcmcia_core.o
> >  LD [M]  drivers/pcmcia/pcmcia.o
> >  CC      drivers/regulator/core.o
> >  CC [M]  drivers/net/e1000e/lib.o
> >  CC [M]  net/netfilter/nf_conntrack_amanda.o
> >  CC [M]  drivers/regulator/fixed.o
> >  CC [M]  drivers/regulator/bq24022.o
> >  CC [M]  drivers/net/e1000e/phy.o
> >  CC [M]  drivers/regulator/wm8350-regulator.o
> >  CC [M]  net/netfilter/nf_conntrack_ftp.o
> >  CC [M]  drivers/net/e1000/e1000_ethtool.o
> > {standard input}: Assembler messages:
> > {standard input}:1345: Warning: Immediates 21 and 32 will give undefined behavior.

I got the same warning again later during the same compilation:
  LD [M]  drivers/net/wireless/iwlwifi/iwlcore.o
  LD [M]  drivers/net/wireless/iwlwifi/iwlagn.o
  LD [M]  drivers/net/wireless/iwlwifi/iwl3945.o
  LD      drivers/net/wireless/libertas_tf/built-in.o
  CC [M]  drivers/net/wireless/libertas_tf/main.o
  CC [M]  drivers/net/wireless/libertas/11d.o
  CC [M]  drivers/scsi/sym53c8xx_2/sym_hipd.o
  CC [M]  drivers/net/wireless/libertas_tf/cmd.o
  CC [M]  drivers/net/wireless/libertas/debugfs.o
  CC [M]  drivers/usb/misc/iowarrior.o
{standard input}: Assembler messages:
{standard input}:435: Warning: Immediates 21 and 32 will give undefined behavior.
  CC [M]  drivers/net/wireless/libertas_tf/if_usb.o
  CC [M]  drivers/usb/misc/isight_firmware.o
  CC [M]  drivers/net/wireless/libertas/persistcfg.o
  CC [M]  drivers/usb/misc/ldusb.o
  CC [M]  drivers/net/wireless/libertas/ethtool.o
  CC [M]  drivers/usb/misc/trancevibrator.o
  CC [M]  drivers/scsi/sym53c8xx_2/sym_malloc.o
  LD [M]  drivers/net/wireless/libertas_tf/libertas_tf.o
  LD [M]  drivers/net/wireless/libertas_tf/libertas_tf_usb.o

If needed I can do the build again with V=1 and without -j4 so
we'd get a better idea what exactly causes it.

Cheers,
FJP


Reply to: