diff mbox

PATCH: Add bootstrap-mpx.mk

Message ID 20150323192748.GA3614@intel.com
State New
Headers show

Commit Message

H.J. Lu March 23, 2015, 7:27 p.m. UTC
Hi,

This patch adds bootstrap-mpx.mk so that we test mpx in gcc build by
configuring GCC with

--enable-libmpx --with-build-config="bootstrap-mpx"

OK to install?


H.J.
---
2015-03-23  H.J. Lu  <hongjiu.lu@intel.com>

	* bootstrap-mpx.mk: New file.

Comments

Ilya Enkovich April 13, 2015, 10:43 a.m. UTC | #1
2015-03-23 22:27 GMT+03:00 H.J. Lu <hongjiu.lu@intel.com>:
> Hi,
>
> This patch adds bootstrap-mpx.mk so that we test mpx in gcc build by
> configuring GCC with
>
> --enable-libmpx --with-build-config="bootstrap-mpx"
>
> OK to install?
>
>
> H.J.
> ---
> 2015-03-23  H.J. Lu  <hongjiu.lu@intel.com>
>
>         * bootstrap-mpx.mk: New file.
>
> diff --git a/config/bootstrap-mpx.mk b/config/bootstrap-mpx.mk
> new file mode 100644
> index 0000000..ed97826
> --- /dev/null
> +++ b/config/bootstrap-mpx.mk
> @@ -0,0 +1,9 @@
> +# This option enables -fcheck-pointer-bounds -mmpx for stage2 and stage3.
> +
> +STAGE2_CFLAGS += -fcheck-pointer-bounds -mmpx
> +STAGE3_CFLAGS += -fcheck-pointer-bounds -mmpx
> +POSTSTAGE1_LDFLAGS += -fcheck-pointer-bounds -mmpx \
> +                     -static-libmpx -static-libmpxwrappers \
> +                     -B$$r/prev-$(TARGET_SUBDIR)/libmpx \
> +                     -B$$r/prev-$(TARGET_SUBDIR)/libmpx/mpxrt/.libs \
> +                     -B$$r/prev-$(TARGET_SUBDIR)/libmpx/mpxwrap/.libs

Hi,

Static constructors created by Pointer Bounds Checker get random seed
in their names. -frandom-seed should be used to avoid comparison
errors.

Thanks,
Ilya
diff mbox

Patch

diff --git a/config/bootstrap-mpx.mk b/config/bootstrap-mpx.mk
new file mode 100644
index 0000000..ed97826
--- /dev/null
+++ b/config/bootstrap-mpx.mk
@@ -0,0 +1,9 @@ 
+# This option enables -fcheck-pointer-bounds -mmpx for stage2 and stage3.
+
+STAGE2_CFLAGS += -fcheck-pointer-bounds -mmpx
+STAGE3_CFLAGS += -fcheck-pointer-bounds -mmpx
+POSTSTAGE1_LDFLAGS += -fcheck-pointer-bounds -mmpx \
+		      -static-libmpx -static-libmpxwrappers \
+		      -B$$r/prev-$(TARGET_SUBDIR)/libmpx \
+		      -B$$r/prev-$(TARGET_SUBDIR)/libmpx/mpxrt/.libs \
+		      -B$$r/prev-$(TARGET_SUBDIR)/libmpx/mpxwrap/.libs