1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[fun@kru ~]% cc -c -pedantic -std=c89 test.c
test.c: In function ‘x’:
test.c:9: warning: ISO C90 forbids mixed declarations and code
[fun@kru ~]% cc -c -std=c89 test.c          
[fun@kru ~]% cc -c -std=c99 test.c
[fun@kru ~]% cc -c -pedantixc -std=c99 test.c
cc: unrecognized option '-pedantixc'
[fun@kru ~]% cc -c -pedantic -std=c99 test.c 
[fun@kru ~]% gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) 
[fun@kru ~]% cat test.c 
void bla(void);
void x(int y)
{
    int x;

    for(x=0; x<y; x++)
        bla();

    int n = y/2;
    for(n=0; n<y; n++)
        bla();

}
[fun@kru ~]%