[Bug 11800] building SES support fails w/ gcc-3.4.5

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

 



http://bugzilla.kernel.org/show_bug.cgi?id=11800





------- Comment #4 from anonymous@xxxxxxxxxxxxxxxxxxxx  2008-10-22 14:17 -------
Reply-To: James.Bottomley@xxxxxxxxxxxxxxxxxxxxx

On Wed, 2008-10-22 at 13:30 -0700, Andrew Morton wrote:
> OK, it's here:
> 
> 	buf = kmalloc(vpd_len, GFP_KERNEL);
> 
> it's a gcc bug.
> 
> Please see if you can find some way to make it go away - perhaps change
> vpd_len's type to `int', things like that.
> 
> Or use a different compiler version :(

Could it be an optimisation issue?  The static oversize test relies on
the compiler optimising away a leg that can never be reached if the size
is under the max. If you do a make V=1 you'll see what optimisation
flags the compiler is using ... if it's -O2 then yes, the compiler
should be optimising stuff away and it's a clear compiler problem.  If
it's anything else, we might have a mis setting of the optimisation
level in the kernel build.

James


-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux