Check for warnings in a bunch of the linker invocations, and add one
authorChandler Carruth <chandlerc@gmail.com>
Mon, 4 Mar 2013 02:07:55 +0000 (02:07 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 4 Mar 2013 02:07:55 +0000 (02:07 +0000)
commit58d6eb6d033bcfe10ac3964b03702d6808452fd1
tree6082f42fca7de6a9c0b336109c6bd265ba3ee5f1
parentf22d0acfac3fb58cfaab1c4283bff37d6fd7a2c9
Check for warnings in a bunch of the linker invocations, and add one
with both -static-libgcc and -static on the commandline.

Fix a warning in the latter case due to a backwards short circuiting ||
operator in the driver. No real functionality changed here, just allows
the driver to properly consume -static-libgcc when -static is also
specified.

llvm-svn: 176429
clang/lib/Driver/Tools.cpp
clang/test/Driver/linux-ld.c