5432N/A# The contents of this file are subject to the terms of the 5432N/A# Common Development and Distribution License (the "License"). 5432N/A# You may not use this file except in compliance with the License. 5432N/A# See the License for the specific language governing permissions 5432N/A# and limitations under the License. 5432N/A# When distributing Covered Code, include this CDDL HEADER in each 5432N/A# If applicable, add the following below this CDDL HEADER, with the 5432N/A# fields enclosed by brackets "[]" replaced with your own identifying 5432N/A# information: Portions Copyright [yyyy] [name of copyright owner] 5432N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. 6921N/A# We use GCC version 4.9.3, and not another version for now. 5456N/A# Depends on S12-only changes in gcc; might be able to deal with later, 5456N/A# but avoid publishing while this is under investigation. 6510N/A# CMake prior to 3.6.0 does not define CMAKE_HOST_SOLARIS. 6510N/A# In that case, we pass it in CMAKE_OPTIONS. 5432N/A# linked with, and not some random and incompatible stuff from 6510N/A# -O0. GCC on SPARC dies with an out-memory error in cc1plus when 6510N/A# building with either -O1 or -O2 (32-bit). If it manages to get 6510N/A# through with -O1 or -O2 (64-bit), the resulting bits are unusable. 5432N/A# Because LLVM's install target doesn't install everything that 6510N/A# Results output is slightly different on Intel vs. SPARC. 6510N/A# Not enabled just yet because of problems with the way opt 6510N/A# and FileCheck emit and parse the test case results. 6510N/A# Do not change the order of these regexp transforms. 6510N/A '-e "/Nothing to be done/d"' 5432N/A# -ftree-vectorize | -fno-tree-vectorize: 5432N/A# builds at some point in the future.. 5432N/A# -ftree-slp-vectorize | -fno-tree-slp-vectorize: 5432N/A# Less aggressive vectorization than -ftree-vectorize, but useful 5432N/A# in case -ftree-slp-vectorize misses some vectorization opportunities. 5432N/A# Documentation at the same URL as above. 5432N/A# builds at some point in the future. 5432N/A# -freorder-blocks | -fno-reorder-blocks 5432N/A# builds at some point in the future. 5432N/A# -ftoplevel-reorder | -fno-toplevel-reorder 5432N/A# Another BasiBlock depentent optimization option. 5432N/A# builds at some point in the future. 5432N/A# Enable stack smashing (stack corruption) protection and detection. 5432N/A# This flag should always be used in conjunction with -Wstack-protector. 5432N/A# -Wstack-protector acts at compile-time, -fstack-protector-all acts 5432N/A# This flag carries significant runtime overhead, but is very useful. 5432N/A# Always enabled for now. May be removed in the future. 5432N/A# -g3: Enable macro visibility in GDB. With just -g, debug builds will 5432N/A# not record the expanded values of macros. With -g3, the values of 5432N/A# expanded macros will be recorded, and macros will be observable in 5432N/A# Assume that the code does not make use of misaligned doubles on SPARC. 5432N/A# On SPARC, doubles must align on 8. This flag makes GCC assume that 5432N/A# there is no misaligned double use in the code, and GCC will not 5432N/A# is such broken code when using this flag, the program will SIGBUS 5432N/A# at runtime. This is a very useful debugging flag. 5432N/A# Use hardware floating-point operations when available. Compilers 5432N/A# generally make very little use of floating-point, but this is 5432N/A# floating-point operations are used. No-op for quad-floating-point 5432N/A# and UltraSPARC-1/2/3 because on those ISA's quad-floating-point 5432N/A# ops are always done in software. But quad-floating-point ops in a 5432N/A# compiler are virtually non-existent. 5432N/A# Tell GCC the size of a pointer on SPARC. 5432N/A# When used in addition to -shared on SPARC, this tells GCC to not pass 5432N/A# -z text to the linker when linking a shared object. 5432N/A# There is some suspicious interaction happening here between GCC/GAS 5432N/A# and the Sun linker. Technically, and in theory, this flag should not 5432N/A# be needed when compiling -fPIC. However, extensive documented use 5432N/A# and practice has shown that it is indeed needed. The disadvantage 5432N/A# of using this flag is that it triggers copy-on-write relocations. 6510N/A# available and they always come with side-effects. 6510N/A# Building for Opteron - which implies SSE2 - is adequate for 6510N/A# CMake tries really hard to be too smart for its own good. 6510N/A# Always build the libLLVM and libclang shared libraries 5432N/A# Put this here for now until the gpatch problems are resolved. 5432N/A# use bash(1) to run the install recipes otherwise clang header installation 6510N/A# There are no master test results just yet. But there will be 6510N/A @
echo "Tests not yet implemented - coming soon in LLVM 3.8.1."