Matthias Braun [Sat, 29 Dec 2007 14:19:29 +0000 (14:19 +0000)]
one more parse error
[r18831]
Matthias Braun [Sat, 29 Dec 2007 14:07:49 +0000 (14:07 +0000)]
declaration may be NULL for abstract declarators
[r18830]
Matthias Braun [Sat, 29 Dec 2007 14:01:23 +0000 (14:01 +0000)]
old declaration may be NULL
[r18829]
Christoph Mallon [Sat, 29 Dec 2007 13:56:52 +0000 (13:56 +0000)]
Remember the correct old declaration in stack_push(). This fixes cp_error016.c
[r18828]
Matthias Braun [Fri, 28 Dec 2007 23:12:13 +0000 (23:12 +0000)]
another parser problen
[r18827]
Matthias Braun [Fri, 28 Dec 2007 22:08:04 +0000 (22:08 +0000)]
also support extern variable declarations in local scope
[r18826]
Matthias Braun [Fri, 28 Dec 2007 22:02:07 +0000 (22:02 +0000)]
support functions declared in local scope
[r18825]
Matthias Braun [Fri, 28 Dec 2007 21:44:58 +0000 (21:44 +0000)]
try working around/fixing cp_error015
[r18824]
Matthias Braun [Fri, 28 Dec 2007 19:55:01 +0000 (19:55 +0000)]
another parse error
[r18823]
Matthias Braun [Fri, 28 Dec 2007 19:22:20 +0000 (19:22 +0000)]
improve declaration counter
[r18822]
Matthias Braun [Fri, 28 Dec 2007 19:14:25 +0000 (19:14 +0000)]
fix default labels missing their statements
[r18821]
Matthias Braun [Fri, 28 Dec 2007 19:06:41 +0000 (19:06 +0000)]
implement anonymous struct/union members gcc extension
[r18820]
Matthias Braun [Fri, 28 Dec 2007 15:46:25 +0000 (15:46 +0000)]
fix some wrong tokens
[r18819]
Matthias Braun [Tue, 25 Dec 2007 13:55:29 +0000 (13:55 +0000)]
test for last bug
[r18818]
Matthias Braun [Tue, 25 Dec 2007 13:54:21 +0000 (13:54 +0000)]
Merry Christmas Everyone (well and I fixed parsing of initializer list entries that start with {)
[r18817]
Christoph Mallon [Tue, 25 Dec 2007 13:41:01 +0000 (13:41 +0000)]
Warn, when the initialisation or step expression of a for-statement has no effect.
[r18816]
Christoph Mallon [Thu, 20 Dec 2007 16:16:37 +0000 (16:16 +0000)]
Add missing skip_typeref() when printing constants.
[r18815]
Christoph Mallon [Thu, 20 Dec 2007 16:04:08 +0000 (16:04 +0000)]
Implement wide string literal concatenation (with normal string literals, too).
[r18814]
Christoph Mallon [Thu, 20 Dec 2007 12:36:09 +0000 (12:36 +0000)]
Always set the alignment and set the layout_fixed flag for array types, even if they are flexible array members.
[r18813]
Christoph Mallon [Thu, 20 Dec 2007 10:01:10 +0000 (10:01 +0000)]
Decide whether to use pn_Cmp_Ne or pn_Cmp_Lg for inequality comparisons depending on whether floats get compared.
[r18812]
Christoph Mallon [Thu, 20 Dec 2007 06:19:13 +0000 (06:19 +0000)]
Really avoid constructing two struct types for the same struct in FIRM.
[r18811]
Michael Beck [Wed, 19 Dec 2007 17:02:39 +0000 (17:02 +0000)]
- -Wmultichar implemented
[r18810]
Michael Beck [Wed, 19 Dec 2007 16:59:55 +0000 (16:59 +0000)]
Multi-line character constants implemented
[r18809]
Matthias Braun [Wed, 19 Dec 2007 15:54:13 +0000 (15:54 +0000)]
fix cp_error012
[r18808]
Matthias Braun [Wed, 19 Dec 2007 15:54:12 +0000 (15:54 +0000)]
another error
[r18807]
Matthias Braun [Wed, 19 Dec 2007 15:35:59 +0000 (15:35 +0000)]
avoid construct 2 struct types for the same struct in firm
[r18806]
Matthias Braun [Wed, 19 Dec 2007 15:31:16 +0000 (15:31 +0000)]
only print a warning for asm statements for now...
[r18805]
Michael Beck [Wed, 19 Dec 2007 15:08:14 +0000 (15:08 +0000)]
Add debug info for types
[r18804]
Christoph Mallon [Wed, 19 Dec 2007 13:53:52 +0000 (13:53 +0000)]
Strange ast2firm error for initializers.
[r18803]
Michael Beck [Wed, 19 Dec 2007 13:38:25 +0000 (13:38 +0000)]
some doxygen docu added
[r18802]
Michael Beck [Wed, 19 Dec 2007 13:37:56 +0000 (13:37 +0000)]
- GCC case A ... E: extention implemented
[r18801]
Michael Beck [Wed, 19 Dec 2007 13:10:27 +0000 (13:10 +0000)]
more doxygen docu added
[r18800]
Michael Beck [Wed, 19 Dec 2007 12:47:49 +0000 (12:47 +0000)]
- restored last missing checkin: fixed precedence and associativity
- renamed --no-implicit-casts to --print-implicit-casts (with reverse logic)
- implement --print-parenthesis to explicit print parenthesis to show operator precedence
[r18799]
Michael Beck [Tue, 18 Dec 2007 16:39:59 +0000 (16:39 +0000)]
- add option --no-implicit-cast to supres printing of implicit casts
- only print parenthesis if requiered by the precedence of the operator
- fixed output of case labels
[r18798]
Matthias Braun [Tue, 18 Dec 2007 15:25:33 +0000 (15:25 +0000)]
fix last commit
[r18797]
Matthias Braun [Tue, 18 Dec 2007 14:35:20 +0000 (14:35 +0000)]
string initializers might be surrounded by {}
[r18796]
Matthias Braun [Tue, 18 Dec 2007 14:04:04 +0000 (14:04 +0000)]
mark implicit array sizes and don't always print them
[r18795]
Matthias Braun [Tue, 18 Dec 2007 13:19:04 +0000 (13:19 +0000)]
another compiler crash
[r18794]
Matthias Braun [Tue, 18 Dec 2007 00:49:55 +0000 (00:49 +0000)]
fix problems with local anonymous declarations
[r18793]
Matthias Braun [Tue, 18 Dec 2007 00:44:20 +0000 (00:44 +0000)]
don't set new scopes when parsing struct fields, fix explicit struct conv
[r18792]
Matthias Braun [Tue, 18 Dec 2007 00:44:20 +0000 (00:44 +0000)]
more testcases
[r18791]
Matthias Braun [Mon, 17 Dec 2007 23:21:11 +0000 (23:21 +0000)]
parser namespace problem
[r18790]
Matthias Braun [Mon, 17 Dec 2007 23:16:51 +0000 (23:16 +0000)]
fix implicit struct casts
[r18789]
Christoph Mallon [Mon, 17 Dec 2007 18:38:49 +0000 (18:38 +0000)]
Only warn when pointer types are incompatible in assignment and do not generate an error.
[r18788]
Christoph Mallon [Mon, 17 Dec 2007 18:22:26 +0000 (18:22 +0000)]
Fix explicit dereferencing of function pointers.
[r18787]
Christoph Mallon [Mon, 17 Dec 2007 18:01:54 +0000 (18:01 +0000)]
When parsing a union declaration, build a union type, not a struct type.
[r18786]
Christoph Mallon [Mon, 17 Dec 2007 17:56:23 +0000 (17:56 +0000)]
Accept __builtin_nan and __builtin_nand.
[r18785]
Matthias Braun [Mon, 17 Dec 2007 16:07:50 +0000 (16:07 +0000)]
always prefere complete over incomplete types when mergin declarations
[r18784]
Matthias Braun [Mon, 17 Dec 2007 15:47:05 +0000 (15:47 +0000)]
testprogs for bugs, more TODO ideas
[r18783]
Matthias Braun [Mon, 17 Dec 2007 15:47:05 +0000 (15:47 +0000)]
bug in current cparser
[r18782]
Matthias Braun [Mon, 17 Dec 2007 15:46:56 +0000 (15:46 +0000)]
change complicated syntax
[r18781]
Christoph Mallon [Mon, 17 Dec 2007 14:48:13 +0000 (14:48 +0000)]
Fix creation of local static variables.
[r18780]
Matthias Braun [Mon, 17 Dec 2007 13:42:31 +0000 (13:42 +0000)]
rename the statement_base_t statement to base in the statement structs
[r18779]
Matthias Braun [Mon, 17 Dec 2007 13:12:32 +0000 (13:12 +0000)]
rename datatype to type in expression_base_t, rename expression_base_t expression to base in all the expression structs
[r18778]
Christoph Mallon [Mon, 17 Dec 2007 11:14:04 +0000 (11:14 +0000)]
Fix parsing of K&R style function definitions.
[r18777]
Christoph Mallon [Mon, 17 Dec 2007 10:37:33 +0000 (10:37 +0000)]
Do not crash when the second parameter of va_start() has no declaration.
[r18776]
Christoph Mallon [Sun, 16 Dec 2007 08:42:27 +0000 (08:42 +0000)]
Update the pointer to the last element when putting new elements into the lists of goto and label statements. This fixes spurious warnings.
[r18775]
Christoph Mallon [Sun, 16 Dec 2007 08:21:52 +0000 (08:21 +0000)]
Do no include -Wswitch-default in -Wall.
[r18774]
Michael Beck [Sat, 15 Dec 2007 19:02:39 +0000 (19:02 +0000)]
- fixed gcc compilation
- fixed -Wsign-compare
[r18773]
Michael Beck [Sat, 15 Dec 2007 18:56:02 +0000 (18:56 +0000)]
- implemented -Wsign-compare
- recognize -Wshadow (semantic not implemented yet)
[r18772]
Michael Beck [Sat, 15 Dec 2007 18:29:08 +0000 (18:29 +0000)]
Improved __alignof__: If expression represents a variable, return the alignment of this variable.
[r18771]
Michael Beck [Sat, 15 Dec 2007 18:14:42 +0000 (18:14 +0000)]
- fixed _-alignof__ expression: it has the same syntax like sizeof ...
[r18770]
Christoph Mallon [Sat, 15 Dec 2007 16:44:30 +0000 (16:44 +0000)]
Warn about unused global static variables, too, and do not warn about unused static *inline* functions.
[r18769]
Christoph Mallon [Sat, 15 Dec 2007 15:41:07 +0000 (15:41 +0000)]
Remove duplicates.
[r18768]
Christoph Mallon [Sat, 15 Dec 2007 15:39:51 +0000 (15:39 +0000)]
Accept -Wno-all, -Wno-extra and -Wno-unused like GCC.
[r18767]
Michael Beck [Sat, 15 Dec 2007 13:57:38 +0000 (13:57 +0000)]
- renamed is_type_floating() to is_type_float()
- some doxygen docu added
[r18766]
Michael Beck [Sat, 15 Dec 2007 04:14:15 +0000 (04:14 +0000)]
finished -Wunused-function
[r18765]
Michael Beck [Sat, 15 Dec 2007 04:03:40 +0000 (04:03 +0000)]
implemented -Wall, -Wextra, -Wunused, -Wunused-function with limited
functionality
[r18764]
Michael Beck [Sat, 15 Dec 2007 03:47:00 +0000 (03:47 +0000)]
improved error output for function cases
[r18763]
Michael Beck [Sat, 15 Dec 2007 03:34:02 +0000 (03:34 +0000)]
finished -Wunused-parameter
[r18762]
Michael Beck [Sat, 15 Dec 2007 03:22:36 +0000 (03:22 +0000)]
prelimiraries for -Wunused-parameter and -Wunused-variable:
- mark used declarations
- add field to link declarations
- recognize options (no warnings yet)
[r18761]
Michael Beck [Sat, 15 Dec 2007 03:07:35 +0000 (03:07 +0000)]
- fixed source position of binary expressions
- added initialization for -Wunused-label
- switched some warnings off by default
[r18760]
Michael Beck [Sat, 15 Dec 2007 02:49:56 +0000 (02:49 +0000)]
- implemented -Wunused-label
[r18759]
Michael Beck [Sat, 15 Dec 2007 02:30:37 +0000 (02:30 +0000)]
- implemented Wfloat-equal
[r18758]
Michael Beck [Fri, 14 Dec 2007 23:43:07 +0000 (23:43 +0000)]
- renamed context_t to the more logical scope_t
- improved -Wmain checks
- fixed icc warnings (jumping over initialization)
[r18757]
Christoph Mallon [Fri, 14 Dec 2007 19:21:54 +0000 (19:21 +0000)]
Implement -Wmain.
[r18756]
Christoph Mallon [Fri, 14 Dec 2007 18:29:09 +0000 (18:29 +0000)]
Print the unskipped type in warnings.
[r18755]
Christoph Mallon [Fri, 14 Dec 2007 18:19:45 +0000 (18:19 +0000)]
Also do not warn about function declarations without a prior declaration. *sigh*
[r18754]
Christoph Mallon [Fri, 14 Dec 2007 18:14:40 +0000 (18:14 +0000)]
Simplify condition.
[r18753]
Christoph Mallon [Fri, 14 Dec 2007 18:11:21 +0000 (18:11 +0000)]
Do not warn about no prior declaration for extern declarations.
[r18752]
Christoph Mallon [Fri, 14 Dec 2007 18:08:18 +0000 (18:08 +0000)]
Do not warn about no prior declaration for non-global variables, enum entries and static thread local variables.
[r18751]
Christoph Mallon [Fri, 14 Dec 2007 17:44:25 +0000 (17:44 +0000)]
Do not warn about an empty statement after a label, i.e. label:;.
[r18750]
Christoph Mallon [Fri, 14 Dec 2007 17:28:16 +0000 (17:28 +0000)]
Warn when a non-static global variable has no prior declaration.
[r18749]
Michael Beck [Fri, 14 Dec 2007 17:24:40 +0000 (17:24 +0000)]
add option -l and -L, reorganize option handler
[r18748]
Christoph Mallon [Fri, 14 Dec 2007 17:17:35 +0000 (17:17 +0000)]
Do not warn, if main() has no prior declaration or prototype.
[r18747]
Matthias Braun [Fri, 14 Dec 2007 17:02:28 +0000 (17:02 +0000)]
mark_private works again
[r18746]
Matthias Braun [Fri, 14 Dec 2007 17:02:01 +0000 (17:02 +0000)]
disable cc optimisations for now until they are fixed
[r18745]
Matthias Braun [Fri, 14 Dec 2007 17:02:01 +0000 (17:02 +0000)]
no need to pass expression type around in parse_sub_initializer
[r18744]
Christoph Mallon [Fri, 14 Dec 2007 16:54:15 +0000 (16:54 +0000)]
Make warning about statement without effect less aggressive for && and ||.
[r18743]
Matthias Braun [Fri, 14 Dec 2007 16:52:36 +0000 (16:52 +0000)]
fix warnings, disable empty statement warning by default
[r18742]
Matthias Braun [Fri, 14 Dec 2007 16:52:27 +0000 (16:52 +0000)]
-W switches are not allowed to have a whitespace after -W
[r18741]
Christoph Mallon [Fri, 14 Dec 2007 10:04:41 +0000 (10:04 +0000)]
Add -Wempty-statement, which warns about empty statements, i.e. lone ';'
[r18740]
Christoph Mallon [Fri, 14 Dec 2007 09:50:38 +0000 (09:50 +0000)]
Do not crash, when the body of an switch statement is empty.
[r18739]
Christoph Mallon [Fri, 14 Dec 2007 09:48:32 +0000 (09:48 +0000)]
Implement -Wunknown-pragmas.
[r18738]
Christoph Mallon [Fri, 14 Dec 2007 09:44:12 +0000 (09:44 +0000)]
Implement -Wswitch-default.
[r18737]
Christoph Mallon [Fri, 14 Dec 2007 07:21:18 +0000 (07:21 +0000)]
Consider type qualifiers to avoid incorrect format warnings.
[r18736]
Christoph Mallon [Fri, 14 Dec 2007 06:36:31 +0000 (06:36 +0000)]
Remove stray \n.
[r18735]
Christoph Mallon [Thu, 13 Dec 2007 22:25:35 +0000 (22:25 +0000)]
Fix r741.
[r18734]
Christoph Mallon [Thu, 13 Dec 2007 22:04:01 +0000 (22:04 +0000)]
Implement -Wmissing_prototypes.
[r18733]
Christoph Mallon [Thu, 13 Dec 2007 21:51:13 +0000 (21:51 +0000)]
Implement -Wunused-value.
[r18732]