This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

use of _Pragma operator with pre-processed output from CG tools

for reasons a little complicated to explain here, i'm running .c source files through the pre-processor (using the compiler's -ppl option) and then subsequently passing the pre-processed sources to the compiler at later point in time....  as it turns out, the output of running the pre-processor is itself legal C that can be input to the compiler....

the problem is the _Pragma operator, which results in no output when passed through the pre-processor; had it simply output the corresponding #pragma directive, the output would remain legal C and no information would be lost.   had i, for instance, actually used a #pragma directive in my original sources, the pre-processor would simply pass this through to the next phase....  but clearly, i'm using _Pragma for the very reasons the operator was introduced in the first place -- to enable generation of #pragma directives in the pre-processor!!

is there some way to use _Pragma in my original .c source, and effectively preserve this information after running the pre-processor???

  • Sorry, but there is no way to keep the pragmas in the preprocessed output.  I filed SDSCM00035166 in our ClearQuest system to request this capability.  Feel free to query status on this record here.  Use the "Find Record ID" box.

    Thanks and regards,

    -George