]> granicus.if.org Git - clang/commit
[mips] Define macros related to -mabicalls in the preprocessor
authorSimon Dardis <simon.dardis@imgtec.com>
Tue, 21 Feb 2017 16:01:00 +0000 (16:01 +0000)
committerSimon Dardis <simon.dardis@imgtec.com>
Tue, 21 Feb 2017 16:01:00 +0000 (16:01 +0000)
commitb3210f2343e57899584ac5f1385bddb67e54158f
treeeb2465ccf9ea1dda6b8867b24812ea8df9c5e30f
parent33c364f57c9ed1b95460b3d1ff3aaf2cc012b0e7
[mips] Define macros related to -mabicalls in the preprocessor

Summary:
Historically, NetBSD, FreeBSD and OpenBSD have defined the macro ABICALLS in
the preprocessor when -mabicalls is in effect.

Mainline GCC later defined __mips_abicalls when -mabicalls is in effect.

This patch teaches the preprocessor to define these macros when appropriate.

NetBSD does not require the ABICALLS macro.

This resolves PR/31694.

Thanks to Sean Bruno for highlighting this issue!

Reviewers: slthakur, seanbruno

Reviewed By: seanbruno

Subscribers: joerg, brad, emaste, seanbruno, cfe-commits

Differential Revision: https://reviews.llvm.org/D29032

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@295728 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/Preprocessor/init.c