summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/clang-g-opts.c
Commit message (Collapse)AuthorAgeFilesLines
* [Driver][Darwin] Use Host Triple to infer target os versionSteven Wu2018-07-031-2/+2
| | | | | | | | | | | | | | | | | | | | Summary: When clang required to infer target os version from --target option and the os version is not specified in targets, check the host triple. If the host and target are both macOS, use host triple to infer target os version. rdar://problem/41651999 Reviewers: arphaman, dexonsmith Reviewed By: arphaman Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D48849 llvm-svn: 336168
* Driver/Darwin: Set the DWARF version based on the deployment target.Adrian Prantl2016-10-171-2/+2
| | | | | | | | | | | System utilities such as atos only support DWARF 4 on OS X 10.11+ and iOS 9+. We thus want to enable DWARF 4 only if the deployment target has a recent enough operating system version and use DWARF 2 for older systems. <rdar://problem/28766743> llvm-svn: 284416
* Debug info: Bump the default DWARF version on Darwin to 4.Adrian Prantl2016-09-091-2/+5
| | | | | | | This is a spiritual re-commit of r201375 with only a brief delay for upgrading the green dragon builders. llvm-svn: 281094
* Stop messing with the 'g' group of options in CompilerInvocation.Douglas Katzman2015-10-081-4/+14
| | | | | | | | | | | | | | | | With this change, most 'g' options are rejected by CompilerInvocation. They remain only as Driver options. The new way to request debug info from cc1 is with "-debug-info-kind={line-tables-only|limited|standalone}" and "-dwarf-version={2|3|4}". In the absence of a command-line option to specify Dwarf version, the Toolchain decides it, rather than placing Toolchain-specific logic in CompilerInvocation. Also fix a bug in the Windows compatibility argument parsing in which the "rightmost argument wins" principle failed. Differential Revision: http://reviews.llvm.org/D13221 llvm-svn: 249655
* specify dwarf version for SolarisAlexander Eremin2014-10-161-0/+2
| | | | llvm-svn: 219901
* Missed a space at the end of the line.Brad Smith2014-06-131-1/+1
| | | | llvm-svn: 210884
* Use dwarf-2 by default on OpenBSD and FreeBSD.Brad Smith2014-06-131-3/+11
| | | | | | | The Tools.cpp part of the patch partially based on a patch from FreeBSD's LLVM tree. llvm-svn: 210883
* Revert "Debug info: Make DWARF4 the default for Darwin, too."Adrian Prantl2014-02-171-1/+1
| | | | | | | | | I'm holding this change to give maintainers of Darwin buildbots more time to update their toolchains. This reverts commit r201375. llvm-svn: 201520
* Debug info: Make DWARF4 the default for Darwin, too.Adrian Prantl2014-02-141-1/+1
| | | | llvm-svn: 201375
* Update testing cases to check dwarf-2 for Darwin.Manman Ren2013-07-031-4/+10
| | | | llvm-svn: 185577
* Debug Info: set default to gdwarf-2 for Darwin.Manman Ren2013-07-021-1/+2
| | | | | | | | | | | | Darwin systems currently do not support dwarf version 3 or above. When we are ready, we can bump the default to gdwarf-4 for Darwin. For other systems, the default is dwarf version 3, if everything goes smoothly, we can bump the version to 4. rdar://13591116 llvm-svn: 185483
* FileCheck'ize testDmitri Gribenko2013-01-281-5/+9
| | | | llvm-svn: 173696
* Revert r155874.Douglas Gregor2012-05-011-14/+5
| | | | llvm-svn: 155878
* Move a non portable test to FileCheck, from Jonathan Gray!Douglas Gregor2012-05-011-5/+14
| | | | llvm-svn: 155874
* Don't produce debug info when given -g. Fixes PR6529.Rafael Espindola2010-03-071-0/+5
llvm-svn: 97897
OpenPOWER on IntegriCloud