Fix for reported Hexagon compilation error
PiperOrigin-RevId: 313874395 Change-Id: If71d9b1aa6aedff436aa8be59efac490ba163ed0
This commit is contained in:
parent
3fbd5ac42e
commit
481aec85d6
|
@ -86,8 +86,9 @@ typedef struct TfLiteIntArray {
|
||||||
int size;
|
int size;
|
||||||
// gcc 6.1+ have a bug where flexible members aren't properly handled
|
// gcc 6.1+ have a bug where flexible members aren't properly handled
|
||||||
// https://github.com/google/re2/commit/b94b7cd42e9f02673cd748c1ac1d16db4052514c
|
// https://github.com/google/re2/commit/b94b7cd42e9f02673cd748c1ac1d16db4052514c
|
||||||
#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ == 6 && \
|
#if (!defined(__clang__) && defined(__GNUC__) && __GNUC__ == 6 && \
|
||||||
__GNUC_MINOR__ >= 1
|
__GNUC_MINOR__ >= 1) || \
|
||||||
|
defined(HEXAGON)
|
||||||
int data[0];
|
int data[0];
|
||||||
#else
|
#else
|
||||||
int data[];
|
int data[];
|
||||||
|
@ -125,6 +126,7 @@ typedef struct TfLiteFloatArray {
|
||||||
int size;
|
int size;
|
||||||
// gcc 6.1+ have a bug where flexible members aren't properly handled
|
// gcc 6.1+ have a bug where flexible members aren't properly handled
|
||||||
// https://github.com/google/re2/commit/b94b7cd42e9f02673cd748c1ac1d16db4052514c
|
// https://github.com/google/re2/commit/b94b7cd42e9f02673cd748c1ac1d16db4052514c
|
||||||
|
// This also applies to the toolchain used for Qualcomm Hexagon DSPs.
|
||||||
#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ == 6 && \
|
#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ == 6 && \
|
||||||
__GNUC_MINOR__ >= 1
|
__GNUC_MINOR__ >= 1
|
||||||
float data[0];
|
float data[0];
|
||||||
|
|
|
@ -86,8 +86,9 @@ typedef struct TfLiteIntArray {
|
||||||
int size;
|
int size;
|
||||||
// gcc 6.1+ have a bug where flexible members aren't properly handled
|
// gcc 6.1+ have a bug where flexible members aren't properly handled
|
||||||
// https://github.com/google/re2/commit/b94b7cd42e9f02673cd748c1ac1d16db4052514c
|
// https://github.com/google/re2/commit/b94b7cd42e9f02673cd748c1ac1d16db4052514c
|
||||||
#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ == 6 && \
|
#if (!defined(__clang__) && defined(__GNUC__) && __GNUC__ == 6 && \
|
||||||
__GNUC_MINOR__ >= 1
|
__GNUC_MINOR__ >= 1) || \
|
||||||
|
defined(HEXAGON)
|
||||||
int data[0];
|
int data[0];
|
||||||
#else
|
#else
|
||||||
int data[];
|
int data[];
|
||||||
|
@ -125,6 +126,7 @@ typedef struct TfLiteFloatArray {
|
||||||
int size;
|
int size;
|
||||||
// gcc 6.1+ have a bug where flexible members aren't properly handled
|
// gcc 6.1+ have a bug where flexible members aren't properly handled
|
||||||
// https://github.com/google/re2/commit/b94b7cd42e9f02673cd748c1ac1d16db4052514c
|
// https://github.com/google/re2/commit/b94b7cd42e9f02673cd748c1ac1d16db4052514c
|
||||||
|
// This also applies to the toolchain used for Qualcomm Hexagon DSPs.
|
||||||
#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ == 6 && \
|
#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ == 6 && \
|
||||||
__GNUC_MINOR__ >= 1
|
__GNUC_MINOR__ >= 1
|
||||||
float data[0];
|
float data[0];
|
||||||
|
|
Loading…
Reference in New Issue