Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497298 - sys-devel/llvm-3.4 miscompiles code with varargs
Summary: sys-devel/llvm-3.4 miscompiles code with varargs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL: http://llvm.org/bugs/show_bug.cgi?id=...
Whiteboard:
Keywords:
Depends on:
Blocks: 915000
  Show dependency tree
 
Reported: 2014-01-06 18:16 UTC by Holger Hoffstätte
Modified: 2023-10-01 06:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
r197503 1/4 (r197503-x86-X86ISelLowering.patch,563 bytes, patch)
2014-01-06 22:46 UTC, Holger Hoffstätte
Details | Diff
r197503 2/4 (r197503-x86-X86InstrCompiler.patch,998 bytes, patch)
2014-01-06 22:46 UTC, Holger Hoffstätte
Details | Diff
r197503 3/4 (r197503-x86-vaargs.ll,2.36 KB, text/plain)
2014-01-06 22:47 UTC, Holger Hoffstätte
Details
r197503 4/4 (r197503-x86-vastart-defs-eflags.ll,798 bytes, text/plain)
2014-01-06 22:47 UTC, Holger Hoffstätte
Details
r197505 (r197505-x86-vaargs.patch,547 bytes, patch)
2014-01-06 22:47 UTC, Holger Hoffstätte
Details | Diff
r197520 (r197520-x86-X86ISelLowering.patch,801 bytes, patch)
2014-01-06 22:48 UTC, Holger Hoffstätte
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Hoffstätte 2014-01-06 18:16:56 UTC
See URL; basically a pretty bad bug that didn't make it for 3.4, as described in: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20131216/199116.html

Adding those patches (r197503, r197505, r197520) from upstream would prevent a lot of upfront pain. They are small and will be in future releases.

Reproducible: Always

Steps to Reproduce:
see $URL

Actual Results:  
see $URL


Expected Results:  
see $URL
Comment 2 Holger Hoffstätte 2014-01-06 22:46:29 UTC
Created attachment 367222 [details, diff]
r197503 1/4
Comment 3 Holger Hoffstätte 2014-01-06 22:46:49 UTC
Created attachment 367224 [details, diff]
r197503 2/4
Comment 4 Holger Hoffstätte 2014-01-06 22:47:12 UTC
Created attachment 367226 [details]
r197503 3/4
Comment 5 Holger Hoffstätte 2014-01-06 22:47:33 UTC
Created attachment 367228 [details]
r197503 4/4
Comment 6 Holger Hoffstätte 2014-01-06 22:47:59 UTC
Created attachment 367230 [details, diff]
r197505
Comment 7 Holger Hoffstätte 2014-01-06 22:48:20 UTC
Created attachment 367232 [details, diff]
r197520
Comment 8 Holger Hoffstätte 2014-01-06 22:49:29 UTC
(In reply to Holger Hoffstätte from comment #1)

I've extracted and attached the patches with meaningful (ordered) names so you don't have to. Hope this helps.
Comment 9 Bernard Cafarelli gentoo-dev 2014-01-08 13:32:18 UTC
Hmm that's a nasty bug, thanks for the report and patch hunting! I added the patch to current (masked) 3.4 ebuild, tests still run fine