697 Commits (ffa7dbad8db1db58eb2405d9815c62fac4c497e7)
 

Author SHA1 Message Date
theraven ffa7dbad8d Cleaner version of the last fix. 13 years ago
theraven fb2e6756f6 Fix (and add test case for) a bug where objc_allocateClassPair() failed if the
superclass had not yet been loaded.
13 years ago
theraven ae3b44ac78 Fix clang's stupid warning to work around a bug in OS X headers... 13 years ago
theraven 63bdbc9440 Add another missing file... 13 years ago
theraven 0b883f2cc2 Add missing test. 13 years ago
theraven ca25388b37 Fix a lock-order reversal where one thread calls some dtable-manipulating
function while another is initializing.
13 years ago
theraven 65e3dc736c Added test of forwarding mechanisms. 13 years ago
theraven b757ea9ffb Tidied up tests, made them work with make as well as ninja generators for
CMake.
13 years ago
theraven 6317b79a10 Implemented the new exception ABI, and a load of tests for it. This is used by
clang trunk if -fobjc-runtime-1.7 is specified and provides significantly
better interoperability with foreign exceptions.

Note: Most of the exception tests will not pass with gcc or clang < 3.3.  They
test things that are impossible to implement quite correctly with the
GCC-compatible exception ABI.

Also updated the release notes to reflect recent improvements.
13 years ago
qmathe 7e5d437065 Restored r35794 changes (that were removed in r35893) but applied them to the
GNUMakefile rather than the Makefile.

This fixes segfaults in programs compiled with Clang using -fobjc-nonfragile-abi 
on Linux x86-32, for a GNUmakefile-based build with GNUstep Make active.
13 years ago
theraven 0dcb0885bf Update opts to work with LLVM trunk (3.3). 13 years ago
theraven aeb0c913b9 Enabled property attribute test, fixed failure. 13 years ago
theraven ef5f8b744d Added more test cases. 13 years ago
theraven bcf6e32311 Make it possible to disable building the tests. 13 years ago
theraven d1336543d8 Build with exceptions (fixes the issue with crashes where +initialize throws)
Start adding the tests to CMake.
13 years ago
theraven d1f3463ac7 Make sure that there is always a comma between T and V in property attributes. 13 years ago
theraven 95aef24803 Fix crash in ARC assignment.
Reported by Banlu Name-of-the-week!
13 years ago
theraven c6614a218c Install libobjcxx if we're building it. 13 years ago
theraven 86d07fa024 Install libobjcxx, if it's built. 13 years ago
theraven ee927d20a5 Remove definitions that don't appear to be needed anymore. 13 years ago
theraven c98014b667 Actually commit the disabling of the llvm opts, and not the output from cmake
help...
13 years ago
theraven be2ee54190 Default building the LLVM optimisations to off if the LLVM CMake module is not
found.
13 years ago
theraven 150aa4ef19 Fix linkage in libobjc. 13 years ago
theraven db3cbec65a Make sure that the asm files are built. Add a configuration option for the include headers so OpenBSD can put them in include/gnustep/objc/ 13 years ago
theraven a5cc173310 Correctly handle the case of GNUstep config not existing. 13 years ago
theraven 651962702a Add uninstall target to CMake. 13 years ago
theraven 5cd0a37e27 Change how we do GOT-relative relocations in objc_msgSend on i386 to make gas
happier.
13 years ago
theraven bfc1a2ed11 Add a flag for setting the library name. 13 years ago
theraven 501d5b9828 Set the C++ runtime to nothing if it is not found. 13 years ago
theraven 2841400e0c Add CPack configuration to CMakeLists.txt. RPMs, DEBs and tarballs can now be built directly from the build system. 13 years ago
theraven 080107e2db Correctly pass the LLVM version in to the LLVM passes as they are built. 13 years ago
theraven a5b4ab9937 Specify the current runtime version to target if the compiler supports this
flag.  This means that the .m files in the runtime will take advantage of
features of this runtime when compiled with a recent clang.
13 years ago
theraven d0562d2127 Added helper function for C++ non-POD type atomic properties.
Fixed prototypes of specialised property functions.
13 years ago
theraven a9be008911 Add optimised special-case property function. 13 years ago
theraven 3c7d6f8fd9 Fix merging CFLAGS. 13 years ago
theraven 77591f9956 Handle the case where the compiler generates the exception table entries in the wrong order. 13 years ago
theraven 7bff0ba7e6 Revert r35794, which broke the Makefile by introducing GNUisms. 13 years ago
theraven 01bf761766 Target i586 on i686 with clang. 13 years ago
theraven 7afed09286 Change how installation location is detected, as per Quentin's suggestion. 13 years ago
theraven 94570d9895 Actually fix header install locations... 13 years ago
theraven 6c131e2eb7 Fix header installation location. 13 years ago
theraven 1d2e5f7a2d Remove non-functional script for doing in-place builds of the LLVM optimisations. 13 years ago
theraven 1002b5fd86 Remove the non-functional Makefile.clang 13 years ago
theraven 4c6f6dbdcf Updated WIP announcement for 1.7. 13 years ago
theraven 3081618c47 Add CMake build system for libobjc2. This will replace the existing build
systems after some further testing.

Currently, we have three build systems for libobjc2:

- GNUmakefile, which provides a number of options but not very cleanly (i.e.
  the only way of knowing what they are is to read the source) and doesn't
  correctly build the Objective-C++ runtime.
- Makefile, which works correctly for a single configuration, but requires
  tweaking by hand to build others.
- Makefile.clang, which is experimental, doesn't really work, and confuses
  people.

The new CMake system:

- Correctly installs in a GNUstep location if one exists, or in a system
  location otherwise.  This is configurable at build time.
- Provides inspectable options for all of the configuration choices (run ccmake
  to see them all)
- Easily supports cross-compilation and out-of-tree builds
- Is easy to extend and inspect
- Automatically builds the LLVM optimisations (which already use CMake, as it's
  the only clean way of building LLVM optimisations out of tree) and can be
  easily configured not to if they are not required.
- Will build a single libobjc.so for platforms that provide a separate C++
  runtime and a separate libobjcxx for ones that don't.
- Can generate build files for make, ninja, XCode, Eclipse, and Visual Studio

For those unfamiliar with CMake, the best way of building is an out-of-tree
build.  For the simplest case, it's just a matter of:

$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo -E make install

If you wish to edit any of the configuration options, the easiest way is to run
ccmake instead of cmake.  You can also run ccmake . from the build directory to
edit the options after initial configuration.

For faster builds , try using ninja instead of make.  Add -G Ninja to the
[c]cmake command line and then run ninja instead of make.
13 years ago
theraven 713957f9d2 Fix lookup of properties after getting their attributes. 13 years ago
theraven 85fd42dd5a Fix an infinite loop when first sending a message to a class that has a hidden class. 13 years ago
theraven c7419155d5 Add some explicit NULL checks in property introspection code. 13 years ago
qmathe e8c14d95b9 Fixed segfaults in programs compiled with Clang using -fobjc-nonfragile-abi on
Linux x86-32. 

If both -03 and -fobjc-nonfragile-abi are used, -march=i586 is required (at 
least on my Linux machine). This flag was lost during the recent GNUmakefile 
rewrite (see r35690).

In addition, I also added MinGW32 and pthread flags used previously in the 
GNUmakefile but missing in the Makefile.
13 years ago
rfm aa98226a0c add diagnostics and warnings to cope better if in a partially set up gnustep 13 years ago