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
5
votes
1 answer

frontend to LLVM-based compiler

I am trying to develop a compiler based on the LLVM infrastructure. My language has a C like syntax and so I would like to leverage existing C compilers. Right now I am focusing on the frontend (lexical analysis, parsing), but I am confused as to…
Ali J
  • 332
  • 1
  • 5
  • 8
4
votes
2 answers

No code coverage with Mac OS X Lion and XCode 4 / llvm-g++-4.2

Other people have reported not being able to generate code coverage with XCode 4, but I find not only can I not do it from within XCode 4, I can't do it even with a simple toy program from the command line. I followed the examples given here and…
Ben Hocking
  • 7,790
  • 5
  • 37
  • 52
4
votes
1 answer

What is required to generate code coverage data using XCode 4

I have been trying to generate code coverage data for my application on XCode 4.2.1 (build 4D502) using the steps outlined at http://code.google.com/p/coverstory/wiki/UsingCoverstory I am obviously missing something as there are no .gcno or .gcda…
4
votes
1 answer

Getting LLVM error when building to device but not in simulator

When I attempt to build my test target to either my iPad1 (4.3.5) or iPhone4 (4.3.5) I'm getting the following error from Xcode 4 (Build 4A304a): Internal compiler error: tree check: expected tree that contains 'decl with visibility' structure, have…
ShogoDodo
  • 63
  • 2
4
votes
1 answer

Does specifying parameters or variables as __attribute__ ((unused)) allow the compiler to perform any additional optimizations?

I'm particularly curious about LLVM 4.1, but would be interested in other compilers' behavior as well. According to the GCC documentation (which LLVM supports at least in part), the unused attribute has the following behavior: This attribute,…
mon4goos
  • 1,569
  • 13
  • 24
4
votes
2 answers

__block attribute on property declarations

I have to fix some existing code that builds just fine with LLVM (on iOS) so that it builds with llvm-gcc-4.2 too. I'm done with pretty much everything, except this pattern which is found at a few places: @property (nonatomic, retain) __block id…
user1530597
  • 43
  • 1
  • 3
4
votes
0 answers

Compiler-RT CLANG LLVM

I have GCC 4.1.2 and like to build CLANG / LLVM using this GCC compiler version ony. I need source to source translation library so that I can modify my existing source code for some requirement. Initially I faced issues regarding…
Programmer
  • 8,303
  • 23
  • 78
  • 162
4
votes
1 answer

GL_COLOR_BUFFER_BIT and many more show "undeclared identifier by Xcode

I am trying run Apple documentation sample code, placed on this link... Sample Code However when I run this code XCode fails to compile. It shows several error stating that below listed variables are not…
TeaCupApp
  • 11,316
  • 18
  • 70
  • 150
4
votes
4 answers

C - Compiling with -Wall doesn't warn about uninitialized variables

I have an example flawed program that should give exactly one warning about an uninitialized variable, but when I compile it gcc doesn't give me any warnings. Here is the code: #include int main() { int foo; printf("I am a…
Nick Knowlson
  • 7,185
  • 6
  • 47
  • 63
4
votes
2 answers

What is "system-supplied DSO" that gdb references?

I'm running gdb with set verbose on and I'm trying to understand one of the messages I am getting: Reading symbols from system-supplied DSO at 0x7ffff7ffb000...(no debugging symbols found)...done. What is thesystem-supplied DSO? After some search…
Gabriel Southern
  • 9,602
  • 12
  • 56
  • 95
4
votes
2 answers

llvm-gcc missing on Mac OS X Lion: can not install mysql-python

I recently upgraded to Mac OS X 10.7 from 10.6. I decided to use Python 2.7. But when I'm trying to install the MySQLdb module to run Django, it fails: $ sudo pip install MySQL-python Downloading/unpacking MySQL-python […] Running setup.py…
alexpirine
  • 3,023
  • 1
  • 26
  • 41
3
votes
2 answers

how to install Cython on lion

I'm trying to install cython on lion but this is what I get: $ export CC=gcc-4.2 $ gcc --version i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00) $ python setup.py install error: command…
Ihmahr
  • 1,110
  • 1
  • 16
  • 25
3
votes
1 answer

llvm-g++-4.2 and C++ new-style type casting

I'm facing a weird problem. I looked around all over stackoverflow.com and elsewhere, but I didn't find an answer. Here's some background: I'm writing a simple library; mostly for educational purposes and to understand C++ better. I'm using a…
themoondothshine
  • 2,983
  • 5
  • 24
  • 34
3
votes
2 answers

linker error Assertion failed: (atom->fixupCount() == 1)

Using Xcode 4.0.2, I have a target that compiles, links, and runs properly in the simulator. However when I compile and link it for an iOS device I get the following (full) linker error: Ld…
mmorris
  • 4,006
  • 3
  • 27
  • 29
3
votes
1 answer

Is there a way to disable #warning in LLVM GCC 4.2 from causing a warning in certain Targets

I'm looking for a compliler flag to disable the GCC #warning directive in Debug targets but not release targets. Does anyone know of a way to do this?
Matthew Bischoff
  • 1,043
  • 11
  • 27
1 2
3
14 15