[Libclc-dev] [PATCH 2/2] Pass -fno-builtin flag to clang to silence warnings
Aaron Watry
awatry at gmail.com
Mon Dec 23 06:26:35 PST 2013
On first glance, this looks ok to me, but I have to ask if you've run
this through a piglit run. All of the builtin function compiler
warnings are gone, and the package builds/links for me, but I can't
currently run it through piglit on my EG/SI (target data layout issues
and other compiler weirdness depending on the machine).
I just want to make sure we aren't relying on any builtin functions
existing at run-time which will be disabled by the clang compiler
flag.
If you've run this through piglit successfully, then:
Reviewed-by: Aaron Watry <awatry at gmail.com>
--Aaron
On Thu, Dec 19, 2013 at 11:57 PM, Tom Stellard <tom at stellard.net> wrote:
> From: Tom Stellard <thomas.stellard at amd.com>
>
> ---
> configure.py | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/configure.py b/configure.py
> index 2038b11..c3f7576 100755
> --- a/configure.py
> +++ b/configure.py
> @@ -156,6 +156,7 @@ for target in targets:
> for device in available_targets[target]['devices']:
> # The rule for building a .bc file for the specified architecture using clang.
> clang_bc_flags = "-target %s -I`dirname $in` %s " \
> + "-fno-builtin " \
> "-Dcl_clang_storage_class_specifiers " \
> "-Dcl_khr_fp64 " \
> "-Dcles_khr_int64 " \
> --
> 1.8.1.4
>
>
> _______________________________________________
> Libclc-dev mailing list
> Libclc-dev at pcc.me.uk
> http://www.pcc.me.uk/cgi-bin/mailman/listinfo/libclc-dev
More information about the Libclc-dev
mailing list