Displaying 5 results from an estimated 5 matches for "r_ab".
Did you mean:
rab
2017 Mar 20
1
Fwd: Possible memory problems with mallloc when called with .C()
...supported */
#endif
void dnk_c(double *sortedFsample, unsigned long int n, unsigned
long int k, double *dKol){
double min(double a, double b) {
return (a < b) ? a : b;
}
double max(double a, double b) {
return (a > b) ? a : b;
}
double r_abs(double a){
return (a < 0) ? -a : a;
}
int cmp(const void *a, const void *b) {
return (*(double*)a - *(double*)b);
}
double superior(double x, double i, double m){
double op1 = r_abs(x-(i)/(m));
double op2 = r_abs(x-(i-1)/(m));
re...
2011 Oct 21
2
[LLVMdev] Typo in IsLegalToCallImmediateAddr?
Rafael,
I believe MachO can't represent this relocation, even in non-PIC mode.
On my Mac, I tried compiling "call 256". I got:
in section __TEXT,__text reloc 0: R_ABS reloc but no absolute symbol
at target address
I believe the correct thing to do is:
isTargetELF() && TM.getRelocationModel() == Reloc::Static
This will do the right thing on ELF, and the right thing on other
formats. This may have been the original intent.
- pdox
2011 Oct 21
2
[LLVMdev] Typo in IsLegalToCallImmediateAddr?
Rafael,
Use this bitcode:
define i32 @main() nounwind {
entry:
%call = tail call i32 inttoptr (i64 256 to i32 ()*)() nounwind
ret i32 0
}
And this command:
$ llc -mtriple "i686-linux-gnu" test.ll -o test.s -filetype=asm
-relocation-model=pic
- pdox
2011 Oct 21
0
[LLVMdev] Typo in IsLegalToCallImmediateAddr?
> And this command:
>
> $ llc -mtriple "i686-linux-gnu" test.ll -o test.s -filetype=asm
> -relocation-model=pic
I can reproduce it now. Sorry, I was using a test returning void and we
don't have tail call of immediate.
My impression in that the right fix would be to just remove the
"isTargetELF()". It would make the function correct for ELF and not less
2011 Oct 21
0
[LLVMdev] Typo in IsLegalToCallImmediateAddr?
...com>> Rafael,
>
> I believe MachO can't represent this relocation, even in non-PIC mode.
> On my Mac, I tried compiling "call 256". I got:
I think PIC is just the default (the kernel being non-PIC for
example), but I am not sure.
> in section __TEXT,__text reloc 0: R_ABS reloc but no absolute symbol
> at target address
>
> I believe the correct thing to do is:
>
> isTargetELF() && TM.getRelocationModel() == Reloc::Static
>
> This will do the right thing on ELF, and the right thing on other
> formats. This may have been the original...