libiberty: prevent integer overflow.Take care of very old bug leading to heap-buffer overflow byprocessing certain file headers via bfd binary.PR: 200888Obtained from: OpenBSDMFC after: 2 wee
libiberty: prevent integer overflow.Take care of very old bug leading to heap-buffer overflow byprocessing certain file headers via bfd binary.PR: 200888Obtained from: OpenBSDMFC after: 2 weeks
show more ...
gcc: Add support for Apple's Block extensionBlock objects [1] are a C-level syntactic and runtime feature. Theyare similar to standard C functions, but in addition to executablecode they may also
gcc: Add support for Apple's Block extensionBlock objects [1] are a C-level syntactic and runtime feature. Theyare similar to standard C functions, but in addition to executablecode they may also contain variable bindings to automatic (stack)or managed (heap) memory. A block can therefore maintain a set ofstate (data) that it can use to impact behavior when executed.This port is based on Apple's GCC 5646 with some bugfixes fromApple GCC 5666.3. It has some small differences with the supportin clang, which remains the recommended compiler.Perhaps the most notable difference is that in GCC that __blockis not actually a keyword, but a macro. There will be workaroundfor this issue in a near future. Other issues can be consulted inthe clang documentation [2]For better compatiblity with Apple's GCC and llvm-gcc some relatedfixes and features from Apple have been included. Support for thenon-standard nested functions in GCC is now off by default.No effort was made to update the ObjC support since FreeBSD doesn'tcarry ObjC in the base system, but some of the code crept in andwas more difficult to remove than to adjust.Reference:[1]https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Blocks/Articles/00_Introduction.html[2]http://clang.llvm.org/compatibility.html#block-variable-initializationObtained from: Apple GCC 4.2MFC after: 3 weeks
GCC 4.2.1 release miscellaneous support libraries.
GCC 4.2.0 release miscellaneous support libraries.