Matthias Braun [Thu, 14 Feb 2008 19:57:07 +0000 (19:57 +0000)]
fix cp_error020, fix warning
[r18860]
Matthias Braun [Thu, 14 Feb 2008 15:57:41 +0000 (15:57 +0000)]
error20
[r18859]
Matthias Braun [Thu, 14 Feb 2008 15:44:59 +0000 (15:44 +0000)]
cast enum expressions to enum type if needed
[r18858]
Matthias Braun [Thu, 14 Feb 2008 15:44:43 +0000 (15:44 +0000)]
selfcheck target for the makefile
[r18857]
Christoph Mallon [Thu, 14 Feb 2008 15:03:35 +0000 (15:03 +0000)]
NUL-terminate strings on obstacks before finishing.
[r18856]
Christoph Mallon [Thu, 14 Feb 2008 15:01:01 +0000 (15:01 +0000)]
Use "obst.h" instead of <obstack.h>.
[r18855]
Matthias Braun [Thu, 14 Feb 2008 14:57:29 +0000 (14:57 +0000)]
add obstack to cparser sources
[r18854]
Matthias Braun [Thu, 14 Feb 2008 14:06:58 +0000 (14:06 +0000)]
implement compound literals (ineficient code at the moment)
[r18853]
Matthias Braun [Thu, 14 Feb 2008 13:08:23 +0000 (13:08 +0000)]
use new firm timing facilities
[r18852]
Matthias Braun [Wed, 13 Feb 2008 18:20:39 +0000 (18:20 +0000)]
- first iteration of new initializer code
- implemented __builtin_offsetof
[r18851]
Matthias Braun [Tue, 12 Feb 2008 15:15:08 +0000 (15:15 +0000)]
improve error message when expression is expected
[r18850]
Matthias Braun [Fri, 8 Feb 2008 14:01:52 +0000 (14:01 +0000)]
fix optimized build, add benchmark mode
[r18849]
Christoph Mallon [Wed, 23 Jan 2008 14:10:34 +0000 (14:10 +0000)]
Indent.
[r18848]
Matthias Braun [Tue, 22 Jan 2008 23:08:50 +0000 (23:08 +0000)]
create invalid expression if reference can't be resolved to avoid crashs
[r18847]
Matthias Braun [Tue, 22 Jan 2008 22:37:37 +0000 (22:37 +0000)]
use new firm initializer syntax
[r18846]
Matthias Braun [Tue, 22 Jan 2008 22:37:36 +0000 (22:37 +0000)]
rename to avoid name clashes with libfirm changes
[r18845]
Matthias Braun [Tue, 22 Jan 2008 22:26:00 +0000 (22:26 +0000)]
signed char and unsigned char can be initialized with string constants too
[r18844]
Matthias Braun [Wed, 9 Jan 2008 10:03:45 +0000 (10:03 +0000)]
use inline instead of INLINE ;-)
[r18843]
Michael Beck [Tue, 8 Jan 2008 22:12:09 +0000 (22:12 +0000)]
use INLINE instead of inline
[r18842]
Michael Beck [Sun, 6 Jan 2008 16:36:54 +0000 (16:36 +0000)]
opt_funccall() now takes an additional parameter
[r18841]
Michael Beck [Sun, 30 Dec 2007 16:52:48 +0000 (16:52 +0000)]
synchronize with edgfe:
- add missing CHECK_ALL()
- FIXME added
[r18840]
Michael Beck [Sun, 30 Dec 2007 01:40:45 +0000 (01:40 +0000)]
Fixed broken merge of r846 and added back deleted wide string concatenate functions.
[r18839]
Michael Beck [Sat, 29 Dec 2007 19:15:34 +0000 (19:15 +0000)]
add preprocessor tokens for STDC pragma and vararg macro
[r18838]
Michael Beck [Sat, 29 Dec 2007 19:13:59 +0000 (19:13 +0000)]
- more doxygen info added
- more portable handling of char to int
- parse STDC pragma's
[r18837]
Matthias Braun [Sat, 29 Dec 2007 15:13:06 +0000 (15:13 +0000)]
another parse error
[r18836]
Matthias Braun [Sat, 29 Dec 2007 14:57:00 +0000 (14:57 +0000)]
add missing skip_typeref
[r18835]
Matthias Braun [Sat, 29 Dec 2007 14:40:44 +0000 (14:40 +0000)]
add implicit casts to conditional preds
[r18834]
Matthias Braun [Sat, 29 Dec 2007 14:36:57 +0000 (14:36 +0000)]
more tricky error18
[r18833]
Matthias Braun [Sat, 29 Dec 2007 14:27:34 +0000 (14:27 +0000)]
improve trinary operator semantics
[r18832]
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]