Skip to content

Commit

Permalink
sulong/test: fix __builtin__clear_cache
Browse files Browse the repository at this point in the history
  • Loading branch information
zapster committed Mar 25, 2020
1 parent e7a672f commit e48f77a
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2019, Oracle and/or its affiliates.
* Copyright (c) 2017, 2020, Oracle and/or its affiliates.
*
* All rights reserved.
*
Expand Down Expand Up @@ -27,6 +27,14 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/

void __clear_cache(void *begin, void *end) {
/*
* Old llvm/gcc+dragonegg versions do not intrinsify __builtin___clear_cache but replace it with a call to
* __clear_cache from libgcc. Lets make sure the target exist even if not linked against libgcc.
*/
}

int main() {
char a[100];
__builtin___clear_cache(a, a + 100);
Expand Down

0 comments on commit e48f77a

Please sign in to comment.