Cee Compiler Clang
 
StartSeite | Neues | TestSeite | ForumSeite | Teilnehmer | Kategorien | Index | Hilfe | Einstellungen | Ändern

Veränderung (zum vorhergehenden Autor) (Änderung, Korrektur, Normalansicht)

Verändert: 1c1,60
Beschreibe hier die neue Seite.

Unter FreeBSD wurde beginnend mit Release 10.0 der Compiler gcc (CeeCompilerGcc)
ausgetauscht gegen den Compiler clang.

clang beherrscht weitgehend den neuesten C-Standard C11.

http://clang.llvm.org/

[[code]
111] cc -v
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: x86_64-unknown-freebsd10.1
Thread model: posix
Selected GCC installation:
112]
]

Die Meldungen sind vielzahliger, ausführlicher, aufwendiger und in Farbe:

[[code]
In file included from bsh.c:914:
./mod/function.c:857:17: warning: '&&' within '||' [-Wlogical-op-parentheses]
if (*a=='-'&&(m=1,1)||*a=='+') ++a;
-------^----------
./mod/function.c:857:17: note: place parentheses around the '&&' expression to silence this
warning
if (*a=='-'&&(m=1,1)||*a=='+') ++a;
^
( )
In file included from bsh.c:916:
./mod/catv.c:111:38: warning: '&&' within '||' [-Wlogical-op-parentheses]
if ( (end||bp!=buf&&(end=1,1)||!nr)
-------^------------
./mod/catv.c:111:38: note: place parentheses around the '&&' expression to silence this
warning
if ( (end||bp!=buf&&(end=1,1)||!nr)
^
( )
./mod/catv.c:129:37: warning: add explicit braces to avoid dangling else [-Wdangling-else]
else break;
^
./mod/catv.c:170:31: warning: '&&' within '||' [-Wlogical-op-parentheses]
||o&16&&(S->fd=(int)v, v>9) )
------^--------------------
./mod/catv.c:170:31: note: place parentheses around the '&&' expression to silence this
warning
||o&16&&(S->fd=(int)v, v>9) )
^
( )
./mod/catv.c:197:49: warning: '&&' within '||' [-Wlogical-op-parentheses]
if (S->seekb<0||(S->offs||S->beg||S->end)&&&

---------------------------^-
./mod/catv.c:197:49: note: place parentheses around the '&&' expression to silence this
warning
]

Die ---------- sind in Wirklichkeit Tilden, die man hier im Wiki nicht schreiben kann.
Mit der drittletzten Zeile gab es auch Probleme, wie man an der Quelle sehen kann.


Unter FreeBSD wurde beginnend mit Release 10.0 der Compiler gcc (CeeCompilerGcc) ausgetauscht gegen den Compiler clang.

clang beherrscht weitgehend den neuesten C-Standard C11.

http://clang.llvm.org/

111]  cc -v
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: x86_64-unknown-freebsd10.1
Thread model: posix
Selected GCC installation: 
112] 

Die Meldungen sind vielzahliger, ausführlicher, aufwendiger und in Farbe:


In file included from bsh.c:914:
./mod/function.c:857:17: warning: '&&' within '||' [-Wlogical-op-parentheses]
     if (*a=='-'&&(m=1,1)||*a=='+')  ++a;
         -------^----------
./mod/function.c:857:17: note: place parentheses around the '&&' expression to silence this
      warning
     if (*a=='-'&&(m=1,1)||*a=='+')  ++a;
                ^
         (               )
In file included from bsh.c:916:
./mod/catv.c:111:38: warning: '&&' within '||' [-Wlogical-op-parentheses]
                  if (  (end||bp!=buf&&(end=1,1)||!nr)
                              -------^------------
./mod/catv.c:111:38: note: place parentheses around the '&&' expression to silence this
      warning
                  if (  (end||bp!=buf&&(end=1,1)||!nr)
                                     ^
                              (                 )
./mod/catv.c:129:37: warning: add explicit braces to avoid dangling else [-Wdangling-else]
                                    else             break;
                                    ^
./mod/catv.c:170:31: warning: '&&' within '||' [-Wlogical-op-parentheses]
                        ||o&16&&(S->fd=(int)v, v>9) )
                        ------^--------------------
./mod/catv.c:170:31: note: place parentheses around the '&&' expression to silence this
      warning
                        ||o&16&&(S->fd=(int)v, v>9) )
                              ^
                          (                        )
./mod/catv.c:197:49: warning: '&&' within '||' [-Wlogical-op-parentheses]
       if (S->seekb<0||(S->offs||S->beg||S->end)&&
                     ---------------------------^-
./mod/catv.c:197:49: note: place parentheses around the '&&' expression to silence this
      warning

Die ---------- sind in Wirklichkeit Tilden, die man hier im Wiki nicht schreiben kann. Mit der drittletzten Zeile gab es auch Probleme, wie man an der Quelle sehen kann.


StartSeite | Neues | TestSeite | ForumSeite | Teilnehmer | Kategorien | Index | Hilfe | Einstellungen | Ändern
Text dieser Seite ändern (zuletzt geändert: 30. März 2015 16:34 (diff))
Suchbegriff: gesucht wird
im Titel
im Text