summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/xcore-opts.c
Commit message (Collapse)AuthorAgeFilesLines
* [Clang] Replace cc1 options '-mdisable-fp-elim' and '-momit-leaf-frame-pointer'Yuanfang Chen2019-07-201-2/+1
| | | | | | | | | | | | | | | | with '-mframe-pointer' After D56351 and D64294, frame pointer handling is migrated to tri-state (all, non-leaf, none) in clang driver and on the function attribute. This patch makes the frame pointer handling cc1 option tri-state. Reviewers: chandlerc, rnk, t.p.northover, MaskRay Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D56353 llvm-svn: 366645
* [Driver] Refactor interaction between -f(no-)?omit-frame-pointer and ↵Fangrui Song2019-07-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -m(no-)?omit-leaf-frame-pointer Use a tri-state enum to represent shouldUseFramePointer() and shouldUseLeafFramePointer(). This simplifies the logic and fixes PR9825: -fno-omit-frame-pointer doesn't imply -mno-omit-leaf-frame-pointer. and PR24003: /Oy- /O2 should not omit leaf frame pointer: this matches MSVC x86-32. (/Oy- is a no-op on MSVC x86-64.) and: when CC1 option -mdisable-fp-elim if absent, -momit-leaf-frame-pointer can also be omitted. The new behavior matches GCC: -fomit-frame-pointer wins over -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer loses out to -momit-leaf-frame-pointer The behavior makes lots of sense. We have 4 states: - 00) leaf retained, non-leaf retained - 01) leaf retained, non-leaf omitted (this is invalid) - 10) leaf omitted, non-leaf retained (what -momit-leaf-frame-pointer was designed for) - 11) leaf omitted, non-leaf omitted "omit" options taking precedence over "no-omit" options is the only way to make 3 valid states representable with -f(no-)?omit-frame-pointer and -m(no-)?omit-leaf-pointer. Reviewed By: ychen Differential Revision: https://reviews.llvm.org/D64294 llvm-svn: 365860
* [xcore] Make the exceptions test actually check for the absence of ↵Filipe Cabecinhas2015-01-291-2/+2
| | | | | | -fexceptions in the proper place llvm-svn: 227443
* XCore target: fix handling of -g0 flagRobert Lytton2014-05-021-0/+5
| | | | llvm-svn: 207833
* Fix broken CHECK linesNico Rieck2014-02-161-2/+2
| | | | llvm-svn: 201477
* XCore target pass -v flag to assembler & linkerRobert Lytton2014-02-131-3/+4
| | | | llvm-svn: 201312
* XCore target -fexceptions flag handlingRobert Lytton2014-02-131-0/+15
| | | | | | | XCore target has -fno-exception as the default option Pass on "-fexceptions" flag to xcc (linker) llvm-svn: 201310
* XCore target: Pass through "-fverbose-asm" flag to xcc assembler.Robert Lytton2014-02-111-2/+2
| | | | llvm-svn: 201141
* XCore target has -fno-use-cxa-atexit as default.Robert Lytton2013-11-121-1/+2
| | | | llvm-svn: 194460
* remove path separator from test/Driver/xcore-opts.cRobert Lytton2013-10-111-2/+2
| | | | llvm-svn: 192439
* XCore target: add an xcore toolchain implementationRobert Lytton2013-10-111-1/+6
| | | | llvm-svn: 192437
* fix xcore-opts.c testRobert Lytton2013-09-111-1/+1
| | | | llvm-svn: 190526
* XCore target: correct test layoutRobert Lytton2013-08-191-13/+5
| | | | llvm-svn: 188663
* Add XCore targetRobert Lytton2013-08-131-0/+15
llvm-svn: 188258
OpenPOWER on IntegriCloud