On 12/03/14 07:28, Ilya Enkovich wrote:
   #ifndef MPX_SPEC
   #define MPX_SPEC "\
-%{!nostdlib:%{!nodefaultlibs:" LIBMPX_SPEC "}}"
+%{!nostdlib:%{!nodefaultlibs:" LIBMPX_SPEC LIBMPXWRAPPERS_SPEC "}}"
   #endif

Ugh.  Somehow I missed that MPX_SPEC was in gcc.c along with the uses of
LIBMPX_SPEC.  Aren't all these target specific and thus belong in the x86
specific files?

Is config/i386/linux-common.h is a proper place for these specs then?
Depends on whether or not we expect MPX to show up on other systems such as *bsd, mingw, solaris, etc.

So I'd say linux-common.h is better than gcc.c, but perhaps not the best location. Uros should chime in here.

Right. Wrappers code doesn't use anything specific to MPX.  In case of
pure software solution we should be able to compile and use this
library without changes (except compilation flags).  But in case pure
software solution exists MPX option should still be available and we
should have two builds for this library.
Ok. Just wanted to be sure I understood how the pieces fit together. I don't really expect a software implementation, but keeping it in mind helps us reasonably consider where certain things belong implementation wise.

jeff

Reply via email to