Questions tagged [llvm-gcc]

llvm-gcc is a modified version of gcc that compiles C/ObjC programs into native objects, LLVM bitcode or LLVM assembly language, depending upon the options.

llvm-gcc is a modified version of gcc that compiles C/ObjC programs into native objects, LLVM bitcode or LLVM assembly language, depending upon the options.

218 questions
3
votes
1 answer

KLEE WARNINGS and no inputs generated

I am new in KLEE. I had installed klee, followed the instructions correctly. if i run program from tutorial: int get_sign(int x) { if (x == 0) return 0; if (x < 0) return -1; else return 1; } int main() { int a; klee_make_symbolic(&a,…
Urmas Repinski
  • 109
  • 1
  • 6
3
votes
2 answers

i have an error when executing "from lxml import etree" in the python command line after successfully installed lxml by pip

bash-3.2$ pip install lxml-2.3.5.tgz Unpacking ./lxml-2.3.5.tgz Running setup.py egg_info for package from file:///Users/apple/workspace/pythonhome/misc/lxml-2.3.5.tgz Building lxml version 2.3.5. Building with Cython…
heghogbbb
  • 249
  • 1
  • 6
  • 13
3
votes
2 answers

Basic source-to-source transformation with Clang

I have successfully build the sample code Now my I have a requirement that if I have a sample code like below: int inc(int& p) { p++; printf("In inc [%d]\n", p); return p; } int main() { int i = 0; int y,z; …
Programmer
  • 8,303
  • 23
  • 78
  • 162
3
votes
1 answer

gcc44-c++ Support Required

I recently downloaded code as mentioned in http://clang.llvm.org/get_started.html link. My GCC version is 4.1.2. The compilation went fine for at least an hour before the below error started to occur in console. The LLVM support stated that I need…
Programmer
  • 8,303
  • 23
  • 78
  • 162
3
votes
3 answers

Why does GCC add assembly commands to my inline assembly?

I'm using Apple's llvm-gcc to compile some code with inline assembly. I wrote what I want it to do, but it adds extraneous commands that keep writing variables to memory. Why is it doing this and how can I stop it? Example: __asm__{ mov r11,…
Loyal Tingley
  • 910
  • 1
  • 8
  • 20
2
votes
2 answers

On OSX, why does /usr/bin/cpp not support stringification of macro arguments while gcc -E and clang -E do?

If I have the following code in foo.c #define P(x) printf("%s\n", #x) void main() { P(3 == 4); } Invoking gcc -E foo.c will output: int main() { printf("%s\n", "3 == 4"); } Notice that the # operator has stringified the literal for macro…
Kelly Norton
  • 3,001
  • 1
  • 17
  • 9
2
votes
2 answers

Cython & Hadoopy compiling error.. any ideas on a fix?

I'm trying to run Hadoopy, but am getting a compiling error on OS X: ImportError: Building module failed: ["CompileError: command 'llvm-gcc-4.2' failed with exit status 1\n" I have /Developer/usr/bin in my $PATH, and am running latest version of…
Dolan Antenucci
  • 15,432
  • 17
  • 74
  • 100
2
votes
2 answers

Strange assignment error

Why this works: - (void) setupInteraction:(IBITSInteraction*)interaction withInfo:(NSDictionary*)info { CGRect rect = ([info objectForKey:kInteractionFrameKey] ? CGRectFromString([info objectForKey:kInteractionFrameKey]) : CGRectZero); …
D33pN16h7
  • 2,030
  • 16
  • 20
2
votes
0 answers

Redefinition of 'struct __block_literal_1' in Obj-C

I've been working around this problem for a while now and it's really driving me insane. Whenever I declare a block, I get a compile error in Xcode 4.1 compiling with LLVM GCC 4.2: Redefinition of 'struct __block_literal_1' Even examples of blocks…
2
votes
1 answer

issues with Visual Studio Code (mac) and langage C

I need to learn to code in C for my studies, so i use Visual studio code for this. I had to code in Pascal before, that's why I already have xcode, install fpc. Recently, i wanted to do some cleaning on my storage and i deleted few applications.…
A.Patrick
  • 31
  • 7
2
votes
2 answers

Tool for gcc GIMPLE modification?

I need to add to gcc support of an OpenMP-like (directive) language. I know it is possible to dump GIMPLE code and then "undump" it and continue compilation. I want to modify the dumped DIMPLE to add calls of my dynamic library, modify variables,…
Vlad Krylov
  • 2,684
  • 3
  • 21
  • 23
2
votes
1 answer

Compilation error (ld: cannot find libmvec_nonshared.a,libmvec.so.1) while using Installed GCC-4.5.3

Unable to print traceback or stackdump using GCC-4.8.5 as starting with GCC version 4.6, the default setting has been changed to -fomit-frame-pointer. Read in the internet like the default can be reverted to -fno-omit-frame-pointer by configuring…
2
votes
1 answer

llvm - fastest way of checking if function A is calling function B

I need to check if function A in my file is calling function B. My current approach is to go through all the instructions in function A and see if any of the call/invoke instructions are calling B. Can anyone suggest a better approach?
mikasa
  • 783
  • 1
  • 11
  • 29
2
votes
1 answer

llvm - write a pass that checks if a function is present in a file

What I'm trying to achieve here is simple. I need my pass to go through the functions in a file (and hence, FunctionPass) and check if one of them is the one I'm looking for. I want to achieve this in a clean, simple way. So far, I'm extracting the…
mikasa
  • 783
  • 1
  • 11
  • 29
2
votes
1 answer

Get the arguments of a function in bitcasts in calls, llvm

I am pretty new with llvm and having trouble digging deep into the following IR line: %call2 = call float bitcast (float (float, i32*)* @function to float (float, i32 addrspace(1)*)*)(float %11, i32 addrspace(1)* %arrayidx) What I need to extract…
Shervin
  • 409
  • 7
  • 13