Bug 64694

Summary: xorg fail to start after llvm upgrade
Product: Mesa Reporter: Rafael Castillo <jrch2k10>
Component: Drivers/Gallium/radeonsiAssignee: Christian König <ckoenig.leichtzumerken>
Status: RESOLVED FIXED QA Contact:
Severity: blocker    
Priority: highest CC: ckoenig.leichtzumerken
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: crash image
Possible fix

Description Rafael Castillo 2013-05-17 03:32:22 UTC
Created attachment 79451 [details]
crash image

After update llvm to 16/05/2013 svn and mesa git xorg crashes giving a list of symbols of selectiondag and passmanager.

ILl atach image feom the crash(writing from my tablet)
Comment 1 Michel Dänzer 2013-05-17 08:17:38 UTC
I bisected this to LLVM r182062: 'Generate debug info for by-value struct args even if they are not used.' Enabling the DEBUG code in SelectionDAGISel::LowerArguments(), it complains that "LowerFormalArguments emitted a null value!".

I suspect SITargetLowering::LowerFormalArguments() needs to be adapted for this, but I'm not sure how. Christian, can you take a look?
Comment 2 Christian König 2013-05-17 09:02:49 UTC
Created attachment 79457 [details] [review]
Possible fix

Does this patch helps?
Comment 3 Michel Dänzer 2013-05-17 09:32:37 UTC
(In reply to comment #2)
> Does this patch helps?

It does, thanks!

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Comment 4 Christian König 2013-05-17 09:48:46 UTC
Fix pushed upstream.

Thx for the help.
Comment 5 Rafael Castillo 2013-05-17 14:15:30 UTC
as always many thx for your help, very much appreciated

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.