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.

Segfault with cgt-7.4.1 when compiling incorretly annotated openmp code

When trying to compile the following snippig, the compiler segaults:


#include <ti/omp/omp.h>
#include <stdio.h>

void main()
{
    #pragma omp
    for (i=0; i < 6; i++)
    {
        printf("Hello before barrier :)");

        #pragma omp barrier

        printf("Hello after barrier :)");
    }
}

output:


"C:/TI/cgt_7.4.1/bin/cl6x" -mv6600 --abi=eabi -g --include_path="C:/TI/cgt_7.4.1/include" --display_error_number --diag_warning=225 --diag_wrap=off --openmp --preproc_with_compile --preproc_dependency="omp_matvec.pp" --cmd_file="./configPkg/compiler.opt"  "../omp_matvec.c"
"../omp_matvec.c", line 19: error #1510: syntax error in OpenMP pragma

INTERNAL ERROR: C:\TI\cgt_7.4.1\bin\acpia6x.exe experienced a segmentation fault while
                processing function main file ../omp_matvec.c line 20

This is a serious problem.  Please contact Customer
Support with this message and a copy of the input file
and help us to continue to make the tools more robust.

Regards, Clemens