HomePhabricator

[mips] Define macros related to -mabicalls in the preprocessor

Description

[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

Details

Committed
sdardisFeb 21 2017, 8:01 AM
Reviewer
seanbruno
Differential Revision
D29032: [mips] Define macros related to -mabicalls in the preprocessor
Branches
Unknown
Tags
Unknown