Bug 42212

Summary: orcc --assembly generates invalid code
Product: Orc Reporter: Geoff <geoff>
Component: OrcAssignee: David Schleef <ds>
Status: NEW --- QA Contact:
Severity: critical    
Priority: medium CC: arcriley
Version: unspecified   
Hardware: x86 (IA32)   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Output of orcc --assembly

Description Geoff 2011-10-25 07:08:34 UTC
Created attachment 52739 [details]
Output of orcc --assembly

orcc 0.4.16 compiled on win32 with mingw-32 toolchain, gcc 4.6.1

Source file: example1orc.orc from the distribution's "examples" subfolder.

Command line:

orcc --assembly -o example1orc.S example1orc.orc

Problem:

Emitted code includes 3x "push %(null)" at the start of the function, and 3x "pop %(null)" at the end of it.

Emitted .S file attached, the erroneous elements are on lines 52,54,55 and 177-179

The resulting code cannot be compiled by gcc/as
Comment 1 Nikolay Lazarov 2012-12-12 17:46:53 UTC
I have the same problem. I'm running ubuntu 12.10, 32bit. My orc version is 0.4.16
Comment 2 Nikolay Lazarov 2012-12-12 19:55:46 UTC
Update: I have tried to compile using the package and building it from git, but either way fails.

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.