re PR target/63810 (gcc sets incorrect macro for OS X deployment targets)
authorLawrence Velázquez <vq@larryv.me>
Thu, 28 May 2015 12:27:05 +0000 (14:27 +0200)
committerMike Stump <mrs@gcc.gnu.org>
Thu, 28 May 2015 12:27:05 +0000 (12:27 +0000)
commit98fc3d49dab880e42163a9e661048fdf9e8a5995
tree20c7b2ea1af3e320b3b12776646a85bfb072bfec
parent6a344b953a3e8a51808bc260f8f5f2f2f363e2c2
re PR target/63810 (gcc sets incorrect macro for OS X deployment targets)

2015-05-28  Lawrence Velázquez  <vq@larryv.me>

PR target/63810
* config/darwin-c.c (version_components): New global enum.
(parse_version, version_as_legacy_macro)
(version_as_modern_macro, macosx_version_as_macro): New functions.
(version_as_macro): Remove.
(darwin_cpp_builtins): Use new function.

testsuite:
PR target/63810
* gcc.dg/darwin-minversion-3.c: Update testcase.
* gcc.dg/darwin-minversion-4.c: Ditto.
* gcc.dg/darwin-minversion-5.c: New testcase.
* gcc.dg/darwin-minversion-6.c: Ditto.
* gcc.dg/darwin-minversion-7.c: Ditto.
* gcc.dg/darwin-minversion-8.c: Ditto.
* gcc.dg/darwin-minversion-9.c: Ditto.
* gcc.dg/darwin-minversion-10.c: Ditto.
* gcc.dg/darwin-minversion-11.c: Ditto.
* gcc.dg/darwin-minversion-12.c: Ditto.

From-SVN: r223808
13 files changed:
gcc/ChangeLog
gcc/config/darwin-c.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/darwin-minversion-10.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/darwin-minversion-11.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/darwin-minversion-12.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/darwin-minversion-3.c
gcc/testsuite/gcc.dg/darwin-minversion-4.c
gcc/testsuite/gcc.dg/darwin-minversion-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/darwin-minversion-6.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/darwin-minversion-7.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/darwin-minversion-8.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/darwin-minversion-9.c [new file with mode: 0644]