Bug 42212 - orcc --assembly generates invalid code
Summary: orcc --assembly generates invalid code
Status: NEW
Alias: None
Product: Orc
Classification: Unclassified
Component: Orc (show other bugs)
Version: unspecified
Hardware: x86 (IA32) All
: medium critical
Assignee: David Schleef
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-25 07:08 UTC by Geoff
Modified: 2012-12-12 19:59 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Output of orcc --assembly (3.08 KB, application/octet-stream)
2011-10-25 07:08 UTC, Geoff
Details

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.