cparser
16 years agouse inline instead of INLINE ;-)
Matthias Braun [Wed, 9 Jan 2008 10:03:45 +0000 (10:03 +0000)]
use inline instead of INLINE ;-)

[r18843]

16 years agouse INLINE instead of inline
Michael Beck [Tue, 8 Jan 2008 22:12:09 +0000 (22:12 +0000)]
use INLINE instead of inline

[r18842]

16 years agoopt_funccall() now takes an additional parameter
Michael Beck [Sun, 6 Jan 2008 16:36:54 +0000 (16:36 +0000)]
opt_funccall() now takes an additional parameter

[r18841]

16 years agosynchronize with edgfe:
Michael Beck [Sun, 30 Dec 2007 16:52:48 +0000 (16:52 +0000)]
synchronize with edgfe:
 - add missing CHECK_ALL()
 - FIXME added

[r18840]

16 years agoFixed broken merge of r846 and added back deleted wide string concatenate functions.
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]

16 years agoadd preprocessor tokens for STDC pragma and vararg macro
Michael Beck [Sat, 29 Dec 2007 19:15:34 +0000 (19:15 +0000)]
add preprocessor tokens for STDC pragma and vararg macro

[r18838]

16 years ago- more doxygen info added
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]

16 years agoanother parse error
Matthias Braun [Sat, 29 Dec 2007 15:13:06 +0000 (15:13 +0000)]
another parse error

[r18836]

16 years agoadd missing skip_typeref
Matthias Braun [Sat, 29 Dec 2007 14:57:00 +0000 (14:57 +0000)]
add missing skip_typeref

[r18835]

16 years agoadd implicit casts to conditional preds
Matthias Braun [Sat, 29 Dec 2007 14:40:44 +0000 (14:40 +0000)]
add implicit casts to conditional preds

[r18834]

16 years agomore tricky error18
Matthias Braun [Sat, 29 Dec 2007 14:36:57 +0000 (14:36 +0000)]
more tricky error18

[r18833]

16 years agoimprove trinary operator semantics
Matthias Braun [Sat, 29 Dec 2007 14:27:34 +0000 (14:27 +0000)]
improve trinary operator semantics

[r18832]

16 years agoone more parse error
Matthias Braun [Sat, 29 Dec 2007 14:19:29 +0000 (14:19 +0000)]
one more parse error

[r18831]

16 years agodeclaration may be NULL for abstract declarators
Matthias Braun [Sat, 29 Dec 2007 14:07:49 +0000 (14:07 +0000)]
declaration may be NULL for abstract declarators

[r18830]

16 years agoold declaration may be NULL
Matthias Braun [Sat, 29 Dec 2007 14:01:23 +0000 (14:01 +0000)]
old declaration may be NULL

[r18829]

16 years agoRemember the correct old declaration in stack_push(). This fixes cp_error016.c
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]

16 years agoanother parser problen
Matthias Braun [Fri, 28 Dec 2007 23:12:13 +0000 (23:12 +0000)]
another parser problen

[r18827]

16 years agoalso support extern variable declarations in local scope
Matthias Braun [Fri, 28 Dec 2007 22:08:04 +0000 (22:08 +0000)]
also support extern variable declarations in local scope

[r18826]

16 years agosupport functions declared in local scope
Matthias Braun [Fri, 28 Dec 2007 22:02:07 +0000 (22:02 +0000)]
support functions declared in local scope

[r18825]

16 years agotry working around/fixing cp_error015
Matthias Braun [Fri, 28 Dec 2007 21:44:58 +0000 (21:44 +0000)]
try working around/fixing cp_error015

[r18824]

16 years agoanother parse error
Matthias Braun [Fri, 28 Dec 2007 19:55:01 +0000 (19:55 +0000)]
another parse error

[r18823]

16 years agoimprove declaration counter
Matthias Braun [Fri, 28 Dec 2007 19:22:20 +0000 (19:22 +0000)]
improve declaration counter

[r18822]

16 years agofix default labels missing their statements
Matthias Braun [Fri, 28 Dec 2007 19:14:25 +0000 (19:14 +0000)]
fix default labels missing their statements

[r18821]

16 years agoimplement anonymous struct/union members gcc extension
Matthias Braun [Fri, 28 Dec 2007 19:06:41 +0000 (19:06 +0000)]
implement anonymous struct/union members gcc extension

[r18820]

16 years agofix some wrong tokens
Matthias Braun [Fri, 28 Dec 2007 15:46:25 +0000 (15:46 +0000)]
fix some wrong tokens

[r18819]

16 years agotest for last bug
Matthias Braun [Tue, 25 Dec 2007 13:55:29 +0000 (13:55 +0000)]
test for last bug

[r18818]

16 years agoMerry Christmas Everyone (well and I fixed parsing of initializer list entries that...
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]

16 years agoWarn, when the initialisation or step expression of a for-statement has no effect.
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]

16 years agoAdd missing skip_typeref() when printing constants.
Christoph Mallon [Thu, 20 Dec 2007 16:16:37 +0000 (16:16 +0000)]
Add missing skip_typeref() when printing constants.

[r18815]

16 years agoImplement wide string literal concatenation (with normal string literals, too).
Christoph Mallon [Thu, 20 Dec 2007 16:04:08 +0000 (16:04 +0000)]
Implement wide string literal concatenation (with normal string literals, too).

[r18814]

16 years agoAlways set the alignment and set the layout_fixed flag for array types, even if they...
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]

16 years agoDecide whether to use pn_Cmp_Ne or pn_Cmp_Lg for inequality comparisons depending...
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]

16 years agoReally avoid constructing two struct types for the same struct in FIRM.
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]

16 years ago- -Wmultichar implemented
Michael Beck [Wed, 19 Dec 2007 17:02:39 +0000 (17:02 +0000)]
- -Wmultichar implemented

[r18810]

16 years agoMulti-line character constants implemented
Michael Beck [Wed, 19 Dec 2007 16:59:55 +0000 (16:59 +0000)]
Multi-line character constants implemented

[r18809]

16 years agofix cp_error012
Matthias Braun [Wed, 19 Dec 2007 15:54:13 +0000 (15:54 +0000)]
fix cp_error012

[r18808]

16 years agoanother error
Matthias Braun [Wed, 19 Dec 2007 15:54:12 +0000 (15:54 +0000)]
another error

[r18807]

16 years agoavoid construct 2 struct types for the same struct in firm
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]

16 years agoonly print a warning for asm statements for now...
Matthias Braun [Wed, 19 Dec 2007 15:31:16 +0000 (15:31 +0000)]
only print a warning for asm statements for now...

[r18805]

16 years agoAdd debug info for types
Michael Beck [Wed, 19 Dec 2007 15:08:14 +0000 (15:08 +0000)]
Add debug info for types

[r18804]

16 years agoStrange ast2firm error for initializers.
Christoph Mallon [Wed, 19 Dec 2007 13:53:52 +0000 (13:53 +0000)]
Strange ast2firm error for initializers.

[r18803]

16 years agosome doxygen docu added
Michael Beck [Wed, 19 Dec 2007 13:38:25 +0000 (13:38 +0000)]
some doxygen docu added

[r18802]

16 years ago- GCC case A ... E: extention implemented
Michael Beck [Wed, 19 Dec 2007 13:37:56 +0000 (13:37 +0000)]
- GCC case A ... E: extention implemented

[r18801]

16 years agomore doxygen docu added
Michael Beck [Wed, 19 Dec 2007 13:10:27 +0000 (13:10 +0000)]
more doxygen docu added

[r18800]

16 years ago- restored last missing checkin: fixed precedence and associativity
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]

16 years ago- add option --no-implicit-cast to supres printing of implicit casts
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]

16 years agofix last commit
Matthias Braun [Tue, 18 Dec 2007 15:25:33 +0000 (15:25 +0000)]
fix last commit

[r18797]

16 years agostring initializers might be surrounded by {}
Matthias Braun [Tue, 18 Dec 2007 14:35:20 +0000 (14:35 +0000)]
string initializers might be surrounded by {}

[r18796]

16 years agomark implicit array sizes and don't always print them
Matthias Braun [Tue, 18 Dec 2007 14:04:04 +0000 (14:04 +0000)]
mark implicit array sizes and don't always print them

[r18795]

16 years agoanother compiler crash
Matthias Braun [Tue, 18 Dec 2007 13:19:04 +0000 (13:19 +0000)]
another compiler crash

[r18794]

16 years agofix problems with local anonymous declarations
Matthias Braun [Tue, 18 Dec 2007 00:49:55 +0000 (00:49 +0000)]
fix problems with local anonymous declarations

[r18793]

16 years agodon't set new scopes when parsing struct fields, fix explicit struct conv
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]

16 years agomore testcases
Matthias Braun [Tue, 18 Dec 2007 00:44:20 +0000 (00:44 +0000)]
more testcases

[r18791]

16 years agoparser namespace problem
Matthias Braun [Mon, 17 Dec 2007 23:21:11 +0000 (23:21 +0000)]
parser namespace problem

[r18790]

16 years agofix implicit struct casts
Matthias Braun [Mon, 17 Dec 2007 23:16:51 +0000 (23:16 +0000)]
fix implicit struct casts

[r18789]

16 years agoOnly warn when pointer types are incompatible in assignment and do not generate an...
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]

16 years agoFix explicit dereferencing of function pointers.
Christoph Mallon [Mon, 17 Dec 2007 18:22:26 +0000 (18:22 +0000)]
Fix explicit dereferencing of function pointers.

[r18787]

16 years agoWhen parsing a union declaration, build a union type, not a struct type.
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]

16 years agoAccept __builtin_nan and __builtin_nand.
Christoph Mallon [Mon, 17 Dec 2007 17:56:23 +0000 (17:56 +0000)]
Accept __builtin_nan and __builtin_nand.

[r18785]

16 years agoalways prefere complete over incomplete types when mergin declarations
Matthias Braun [Mon, 17 Dec 2007 16:07:50 +0000 (16:07 +0000)]
always prefere complete over incomplete types when mergin declarations

[r18784]

16 years agotestprogs for bugs, more TODO ideas
Matthias Braun [Mon, 17 Dec 2007 15:47:05 +0000 (15:47 +0000)]
testprogs for bugs, more TODO ideas

[r18783]

16 years agobug in current cparser
Matthias Braun [Mon, 17 Dec 2007 15:47:05 +0000 (15:47 +0000)]
bug in current cparser

[r18782]

16 years agochange complicated syntax
Matthias Braun [Mon, 17 Dec 2007 15:46:56 +0000 (15:46 +0000)]
change complicated syntax

[r18781]

16 years agoFix creation of local static variables.
Christoph Mallon [Mon, 17 Dec 2007 14:48:13 +0000 (14:48 +0000)]
Fix creation of local static variables.

[r18780]

16 years agorename the statement_base_t statement to base in the statement structs
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]

16 years agorename datatype to type in expression_base_t, rename expression_base_t expression...
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]

16 years agoFix parsing of K&R style function definitions.
Christoph Mallon [Mon, 17 Dec 2007 11:14:04 +0000 (11:14 +0000)]
Fix parsing of K&R style function definitions.

[r18777]

16 years agoDo not crash when the second parameter of va_start() has no declaration.
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]

16 years agoUpdate the pointer to the last element when putting new elements into the lists of...
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]

16 years agoDo no include -Wswitch-default in -Wall.
Christoph Mallon [Sun, 16 Dec 2007 08:21:52 +0000 (08:21 +0000)]
Do no include -Wswitch-default in -Wall.

[r18774]

16 years ago- fixed gcc compilation
Michael Beck [Sat, 15 Dec 2007 19:02:39 +0000 (19:02 +0000)]
- fixed gcc compilation
- fixed -Wsign-compare

[r18773]

16 years ago- implemented -Wsign-compare
Michael Beck [Sat, 15 Dec 2007 18:56:02 +0000 (18:56 +0000)]
- implemented -Wsign-compare
- recognize -Wshadow (semantic not implemented yet)

[r18772]

16 years agoImproved __alignof__: If expression represents a variable, return the alignment of...
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]

16 years ago- fixed _-alignof__ expression: it has the same syntax like sizeof ...
Michael Beck [Sat, 15 Dec 2007 18:14:42 +0000 (18:14 +0000)]
- fixed _-alignof__ expression: it has the same syntax like sizeof ...

[r18770]

16 years agoWarn about unused global static variables, too, and do not warn about unused static...
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]

16 years agoRemove duplicates.
Christoph Mallon [Sat, 15 Dec 2007 15:41:07 +0000 (15:41 +0000)]
Remove duplicates.

[r18768]

16 years agoAccept -Wno-all, -Wno-extra and -Wno-unused like GCC.
Christoph Mallon [Sat, 15 Dec 2007 15:39:51 +0000 (15:39 +0000)]
Accept -Wno-all, -Wno-extra and -Wno-unused like GCC.

[r18767]

16 years ago- renamed is_type_floating() to is_type_float()
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]

16 years agofinished -Wunused-function
Michael Beck [Sat, 15 Dec 2007 04:14:15 +0000 (04:14 +0000)]
finished -Wunused-function

[r18765]

16 years agoimplemented -Wall, -Wextra, -Wunused, -Wunused-function with limited
Michael Beck [Sat, 15 Dec 2007 04:03:40 +0000 (04:03 +0000)]
implemented -Wall, -Wextra, -Wunused, -Wunused-function with limited
functionality

[r18764]

16 years agoimproved error output for function cases
Michael Beck [Sat, 15 Dec 2007 03:47:00 +0000 (03:47 +0000)]
improved error output for function cases

[r18763]

16 years agofinished -Wunused-parameter
Michael Beck [Sat, 15 Dec 2007 03:34:02 +0000 (03:34 +0000)]
finished -Wunused-parameter

[r18762]

16 years agoprelimiraries for -Wunused-parameter and -Wunused-variable:
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]

16 years ago- fixed source position of binary expressions
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]

16 years ago- implemented -Wunused-label
Michael Beck [Sat, 15 Dec 2007 02:49:56 +0000 (02:49 +0000)]
- implemented -Wunused-label

[r18759]

16 years ago- implemented Wfloat-equal
Michael Beck [Sat, 15 Dec 2007 02:30:37 +0000 (02:30 +0000)]
- implemented Wfloat-equal

[r18758]

16 years ago- renamed context_t to the more logical scope_t
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]

16 years agoImplement -Wmain.
Christoph Mallon [Fri, 14 Dec 2007 19:21:54 +0000 (19:21 +0000)]
Implement -Wmain.

[r18756]

16 years agoPrint the unskipped type in warnings.
Christoph Mallon [Fri, 14 Dec 2007 18:29:09 +0000 (18:29 +0000)]
Print the unskipped type in warnings.

[r18755]

16 years agoAlso do not warn about function declarations without a prior declaration. *sigh*
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]

16 years agoSimplify condition.
Christoph Mallon [Fri, 14 Dec 2007 18:14:40 +0000 (18:14 +0000)]
Simplify condition.

[r18753]

16 years agoDo not warn about no prior declaration for extern declarations.
Christoph Mallon [Fri, 14 Dec 2007 18:11:21 +0000 (18:11 +0000)]
Do not warn about no prior declaration for extern declarations.

[r18752]

16 years agoDo not warn about no prior declaration for non-global variables, enum entries and...
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]

16 years agoDo not warn about an empty statement after a label, i.e. label:;.
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]

16 years agoWarn when a non-static global variable has no prior declaration.
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]

16 years agoadd option -l and -L, reorganize option handler
Michael Beck [Fri, 14 Dec 2007 17:24:40 +0000 (17:24 +0000)]
add option -l and -L, reorganize option handler

[r18748]

16 years agoDo not warn, if main() has no prior declaration or prototype.
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]

16 years agomark_private works again
Matthias Braun [Fri, 14 Dec 2007 17:02:28 +0000 (17:02 +0000)]
mark_private works again

[r18746]

16 years agodisable cc optimisations for now until they are fixed
Matthias Braun [Fri, 14 Dec 2007 17:02:01 +0000 (17:02 +0000)]
disable cc optimisations for now until they are fixed

[r18745]

16 years agono need to pass expression type around in parse_sub_initializer
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]