[Bug 910363]

Jamborm 910363 at bugs.launchpad.net
Thu Jan 5 13:39:22 UTC 2012


(In reply to comment #3)
> Where 4.6 says:
> 
> Candidate (2069): this
> ! Disqualifying this - Encountered a bit-field access.
> 
> which hints at what needs backporting.
> 
> Martin?

Right, this seems to be PR 45644, for some reason I did not backport
the fix to 4.5.  It should be fixed by committing 
http://gcc.gnu.org/viewcvs?view=revision&revision=164313
I'll do the backport and test it today.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-4.5 in Ubuntu.
https://bugs.launchpad.net/bugs/910363

Title:
  miscompile writing to bitfield at -Os

Status in The GNU Compiler Collection:
  In Progress
Status in “gcc-4.5” package in Ubuntu:
  New

Bug description:
  The attached preprocessed file was extracted out of a file from LLVM. When it was compiled by g++-4.5 at -Os, and LLVM's test suite was run, it resulted in the assert in PointerType's constructor firing:
  llvm::PointerType::PointerType(llvm::Type*, unsigned int): Assertion `oldNCT == NumContainedTys && "bitfield written out of bounds?"' failed.

  This was the invocation I used:
  g++-4.5 -Os -fPIC -g -pedantic -Wno-long-long -fno-exceptions -o lib/VMCore/CMakeFiles/LLVMCore.dir/Type2.cpp.o -c Type2.ii

  Further details here:
  http://llvm.org/PR11652

  ProblemType: Bug
  DistroRelease: Ubuntu 11.04
  Package: g++-4.5 4.5.2-8ubuntu4
  Uname: Linux 3.1.0-custom x86_64
  Architecture: amd64
  Date: Tue Dec 27 22:11:40 2011
  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
  ProcEnviron:
   LANGUAGE=en_US:en
   PATH=(custom, user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: gcc-4.5
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/910363/+subscriptions




More information about the foundations-bugs mailing list