This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX


2015-06-03 18:25 GMT+03:00 Joseph Myers <joseph@codesourcery.com>:
> On Wed, 3 Jun 2015, Ilya Enkovich wrote:
>
>> Spec files are not scanned by translator. I tried to split this spec
>> into two parts to move message into a header file but with no success.
>> Any ideas how it can be done?
>
> If a spec in a .c or .h file contains %e or %n immediately followed by the
> message text (the message text being in the same string as the %e / %n -
> not split up with macros, etc.), then exgettext should extract the message
> for translation.

Right. But I need to enable/disable this message during configuration.
To do it I have a spec file with either note or an empty string. I
also tried to do smth like:

header:

#define MSG "%nsome msg"

#define NOTE_SPEC  "%(config_spec)" MSG "}"

spec file:

*config_spec = %{<some_opt>:

But that didn't work.

Thanks,
Ilya

>
> --
> Joseph S. Myers
> joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]