[LLVMbugs] [Bug 2251] New: request: enable gnatlink to use -emit-llvm when compiling the binder generated main
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Apr 25 06:14:53 PDT 2008
http://llvm.org/bugs/show_bug.cgi?id=2251
Summary: request: enable gnatlink to use -emit-llvm when
compiling the binder generated main
Product: new-bugs
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rodkay at dodo.com.au
CC: llvmbugs at cs.uiuc.edu
Hi,
When gnatmake is invoked with -emil-llvm, '-emit-llvm' is not recorded in
the ali file.The reason for this is that gnatmake passes an invisible -gnatez
argument to the compiler to indicate the end of the arguments that should be
placed in the ali file. So gcc gets invoked something like this:
gcc -emit-llvm -gnatez -c file.adb
However gcc rewrites -emit-llvm into -emit-llvm-bc if used with -c.
Actually what it apparently does is turn the -c into -emit-llvm-bc.
This gives
gcc -gnatez -emit-llvm-bc file.adb
Since -emit-llvm-bc is now after the -gnatez, it is no longer placed
in the ali file.
This means (for example) that gnatlink will not use -emit-llvm when
compiling the binder generated main; and that gnatmake -s will always
think there is a switch mismatch and recompile every time.
cheers,
Rod.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list