Implementation notes: mipso32, gcc23, crypto_aead/grain128aead

Computer: gcc23
Microarchitecture: mipso32; Octeon II (cnmips64v2)
Architecture: mipso32
CPU ID: unknown CPU ID
SUPERCOP version: 20230530
Operation: crypto_aead
Primitive: grain128aead

Compiler output

Implementation: T:opt32
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
grain128aead_32p.c: grain128aead_32p.c: In function 'auth_accumulate':
grain128aead_32p.c: grain128aead_32p.c:82:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
grain128aead_32p.c: for (int i = 0; i < 16; i++) {
grain128aead_32p.c: ^
grain128aead_32p.c: grain128aead_32p.c:82:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
grain128aead_32p.c: grain128aead_32p.c: In function 'auth_accumulate8':
grain128aead_32p.c: grain128aead_32p.c:115:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
grain128aead_32p.c: for (int i = 0; i < 8; i++) {
grain128aead_32p.c: ^
grain128aead_32p.c: grain128aead_32p.c: In function 'grain_init':
grain128aead_32p.c: grain128aead_32p.c:151:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
grain128aead_32p.c: for (int i = 0; i < 8; i++) {
grain128aead_32p.c: ^
grain128aead_32p.c: grain128aead_32p.c:159:11: error: redefinition of 'i'
grain128aead_32p.c: for (int i = 0; i < 2; i++) {
grain128aead_32p.c: ^
grain128aead_32p.c: grain128aead_32p.c:151:11: note: previous definition of 'i' was here
grain128aead_32p.c: for (int i = 0; i < 8; i++) {
grain128aead_32p.c: ^
grain128aead_32p.c: grain128aead_32p.c:159:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
grain128aead_32p.c: for (int i = 0; i < 2; i++) {
grain128aead_32p.c: ^
grain128aead_32p.c: grain128aead_32p.c:167:11: error: redefinition of 'i'
grain128aead_32p.c: for (int i = 0; i < 2; i++) {
grain128aead_32p.c: ^
grain128aead_32p.c: ...

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opt32
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opt32
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opt32
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opt32

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
grain128aead.c: grain128aead.c: In function 'init_grain':
grain128aead.c: grain128aead.c:29:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
grain128aead.c: for (int i = 0; i < 12; i++) {
grain128aead.c: ^
grain128aead.c: grain128aead.c:29:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
grain128aead.c: grain128aead.c:30:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
grain128aead.c: for (int j = 0; j < 8; j++) {
grain128aead.c: ^
grain128aead.c: grain128aead.c:36:11: error: redefinition of 'i'
grain128aead.c: for (int i = 96; i < 127; i++) {
grain128aead.c: ^
grain128aead.c: grain128aead.c:29:11: note: previous definition of 'i' was here
grain128aead.c: for (int i = 0; i < 12; i++) {
grain128aead.c: ^
grain128aead.c: grain128aead.c:36:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
grain128aead.c: for (int i = 96; i < 127; i++) {
grain128aead.c: ^
grain128aead.c: grain128aead.c:42:11: error: redefinition of 'i'
grain128aead.c: for (int i = 0; i < 16; i++) {
grain128aead.c: ^
grain128aead.c: grain128aead.c:36:11: note: previous definition of 'i' was here
grain128aead.c: for (int i = 96; i < 127; i++) {
grain128aead.c: ^
grain128aead.c: grain128aead.c:42:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
grain128aead.c: for (int i = 0; i < 16; i++) {
grain128aead.c: ...

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref