Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiler does not check %primitive's existence #5297

Closed
vicuna opened this issue Jun 21, 2011 · 1 comment

Comments

Projects
None yet
2 participants
@vicuna
Copy link

commented Jun 21, 2011

Original bug ID: 5297
Reporter: Dmitry Grebeniuk
Assigned to: @lefessan
Status: closed (set by @xavierleroy on 2013-08-31T10:46:35Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.13.0+dev
Fixed in version: 3.13.0+dev
Category: ~DO NOT USE (was: OCaml general)

Bug description

I don't know whether it is serious error or not, but I'm reporting it anyway.
When I have incorrectly spelled "%primitivename" in external declaration, I got assembler error:

$ cat q.ml
external q : 'a -> 'a = "%q"
let () = q ()
$ ocamlopt q.ml
/tmp/camlasm3926b2.s: Assembler messages:
/tmp/camlasm3926b2.s:23: Error: junk q (%rip)' after expression /tmp/camlasm3926b2.s:23: Error: missing or invalid immediate expression 25q@GOTPCREL(%rip)'
File "q.ml", line 1, characters 0-1:
Error: Assembler error, input left in file /tmp/camlasm3926b2.s
$

File attachments

@vicuna

This comment has been minimized.

Copy link
Author

commented Feb 18, 2012

Comment author: @lefessan

Fixed in commit 12165 of SVN trunk.

@vicuna vicuna closed this Aug 31, 2013

@vicuna vicuna added the bug label Mar 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.