summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-25 00:12:20 +0000
committerDan Gohman <gohman@apple.com>2010-04-25 00:12:20 +0000
commita1c94049c27bf41c6024a042a1c15f8c89174d09 (patch)
treecabd42099ea11cc4d9969ff3bc9225ed2b8fca40 /clang/lib
parent9556257252cec8531730f8c76263293723a7defd (diff)
downloadbcm5719-llvm-a1c94049c27bf41c6024a042a1c15f8c89174d09.tar.gz
bcm5719-llvm-a1c94049c27bf41c6024a042a1c15f8c89174d09.zip
Fix an autoconf bug: The second argument to AC_LANG_PROGRAM is code that
gets placed inside a main function, and should not itself be a main function. This is silently hidden in GCC-hosted builds because the inner main looks like a nested function declaration, which GCC supports. In builds with compilers which do not support nested functions (by default), this was causing an error, which caused these autoconf checks to fail, leaving their options disabled. This fixes test/Feature/load_module.ll on x86_64-unknown-linux-gnu llvm-gcc selfhost builds, among other things. This also includes a regenerated configure, as the diff is small and telling. llvm-svn: 102288
Diffstat (limited to 'clang/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud