cparser
16 years agosome refactoring in preparation for a preprocessor
Matthias Braun [Tue, 19 Feb 2008 23:16:06 +0000 (23:16 +0000)]
some refactoring in preparation for a preprocessor

[r18900]

16 years agomake sure dirs are constructed in makefile
Matthias Braun [Mon, 18 Feb 2008 18:28:20 +0000 (18:28 +0000)]
make sure dirs are constructed in makefile

[r18899]

16 years agofix bootstrap targets
Matthias Braun [Mon, 18 Feb 2008 15:37:42 +0000 (15:37 +0000)]
fix bootstrap targets

[r18898]

16 years agofix bootstrap target in makefile, make_release.sh script
Matthias Braun [Mon, 18 Feb 2008 15:31:28 +0000 (15:31 +0000)]
fix bootstrap target in makefile, make_release.sh script

[r18897]

16 years agoREADME for release
Matthias Braun [Mon, 18 Feb 2008 15:25:34 +0000 (15:25 +0000)]
README for release

[r18896]

16 years agoadd license comments
Matthias Braun [Mon, 18 Feb 2008 15:09:27 +0000 (15:09 +0000)]
add license comments

[r18895]

16 years agoadd license prefix
Matthias Braun [Mon, 18 Feb 2008 15:08:52 +0000 (15:08 +0000)]
add license prefix

[r18894]

16 years agotextfiles for release
Matthias Braun [Mon, 18 Feb 2008 15:02:27 +0000 (15:02 +0000)]
textfiles for release

[r18893]

16 years agofix is_constant_expression for conditionals
Matthias Braun [Mon, 18 Feb 2008 15:00:22 +0000 (15:00 +0000)]
fix is_constant_expression for conditionals

[r18892]

16 years agoAdd layer 8 semantics to expression_has_effect(), i.e. comment it.
Christoph Mallon [Sun, 17 Feb 2008 11:59:20 +0000 (11:59 +0000)]
Add layer 8 semantics to expression_has_effect(), i.e. comment it.

[r18891]

16 years agoList to be created directory names in a variable.
Christoph Mallon [Sun, 17 Feb 2008 11:57:20 +0000 (11:57 +0000)]
List to be created directory names in a variable.

[r18890]

16 years agowe can do make bootstrap2 now
Matthias Braun [Sun, 17 Feb 2008 11:40:26 +0000 (11:40 +0000)]
we can do make bootstrap2 now

[r18889]

16 years agoonly make implicit cast if array size expression != NULL
Matthias Braun [Sun, 17 Feb 2008 10:49:45 +0000 (10:49 +0000)]
only make implicit cast if array size expression != NULL

[r18888]

16 years agoimplement VLAs (just the Free nodes aren't constructed yet)
Matthias Braun [Sun, 17 Feb 2008 10:45:44 +0000 (10:45 +0000)]
implement VLAs (just the Free nodes aren't constructed yet)

[r18887]

16 years agoit gets even more strange
Matthias Braun [Sat, 16 Feb 2008 17:43:15 +0000 (17:43 +0000)]
it gets even more strange

[r18886]

16 years agoit gets even more strange
Matthias Braun [Sat, 16 Feb 2008 17:42:39 +0000 (17:42 +0000)]
it gets even more strange

[r18885]

16 years agoVLA test
Matthias Braun [Sat, 16 Feb 2008 17:03:38 +0000 (17:03 +0000)]
VLA test

[r18884]

16 years agodisable some optimisations in debug mode
Matthias Braun [Sat, 16 Feb 2008 16:17:34 +0000 (16:17 +0000)]
disable some optimisations in debug mode

[r18883]

16 years agocrude -g implementation
Matthias Braun [Sat, 16 Feb 2008 16:13:23 +0000 (16:13 +0000)]
crude -g implementation

[r18882]

16 years agodon't print trailing 0 in strings
Matthias Braun [Sat, 16 Feb 2008 16:09:32 +0000 (16:09 +0000)]
don't print trailing 0 in strings

[r18881]

16 years agostring literals really have array type, revert_automatic_type_conversion should respe...
Matthias Braun [Sat, 16 Feb 2008 16:04:34 +0000 (16:04 +0000)]
string literals really have array type, revert_automatic_type_conversion should respect that

[r18880]

16 years agosizeof from string is defect
Matthias Braun [Sat, 16 Feb 2008 15:40:49 +0000 (15:40 +0000)]
sizeof from string is defect

[r18879]

16 years agoimprove bootstrap rule, align long long to 4 bytes
Matthias Braun [Sat, 16 Feb 2008 15:35:08 +0000 (15:35 +0000)]
improve bootstrap rule, align long long to 4 bytes

[r18878]

16 years agolower const_code nodes
Matthias Braun [Sat, 16 Feb 2008 15:33:10 +0000 (15:33 +0000)]
lower const_code nodes

[r18877]

16 years agoerror22
Matthias Braun [Sat, 16 Feb 2008 15:14:18 +0000 (15:14 +0000)]
error22

[r18876]

16 years agoadd missing skip_typerefs
Matthias Braun [Sat, 16 Feb 2008 15:06:17 +0000 (15:06 +0000)]
add missing skip_typerefs

[r18875]

16 years agoget char signedness from lang_features.h
Matthias Braun [Sat, 16 Feb 2008 14:41:05 +0000 (14:41 +0000)]
get char signedness from lang_features.h

[r18874]

16 years agomore testcases I had lying around here
Matthias Braun [Fri, 15 Feb 2008 23:25:35 +0000 (23:25 +0000)]
more testcases I had lying around here

[r18873]

16 years agoconstruct 0/1 instead of mode_b->int convs
Matthias Braun [Fri, 15 Feb 2008 23:24:43 +0000 (23:24 +0000)]
construct 0/1 instead of mode_b->int convs

[r18872]

16 years agoadd bootstrap target, don't set frame_type to fixed layout, lower_compound_calls...
Matthias Braun [Fri, 15 Feb 2008 22:30:46 +0000 (22:30 +0000)]
add bootstrap target, don't set frame_type to fixed layout, lower_compound_calls is modifying it

[r18871]

16 years ago- implemented non-constant initializers
Matthias Braun [Fri, 15 Feb 2008 20:17:01 +0000 (20:17 +0000)]
- implemented non-constant initializers
- differentiate between specified and effective storage_class
- improve constness checks (esp. for constant initializers)

=> make selfcheck works

[r18870]

16 years agoTODO update
Matthias Braun [Fri, 15 Feb 2008 14:49:30 +0000 (14:49 +0000)]
TODO update

[r18869]

16 years agoarray sizes are determined correctly from initializer again
Matthias Braun [Fri, 15 Feb 2008 14:47:56 +0000 (14:47 +0000)]
array sizes are determined correctly from initializer again

[r18868]

16 years agoanother compound literal test
Matthias Braun [Fri, 15 Feb 2008 14:45:30 +0000 (14:45 +0000)]
another compound literal test

[r18867]

16 years agoanother initializer test
Matthias Braun [Fri, 15 Feb 2008 14:40:19 +0000 (14:40 +0000)]
another initializer test

[r18866]

16 years agomore tricky initialiser tests
Matthias Braun [Fri, 15 Feb 2008 11:15:16 +0000 (11:15 +0000)]
more tricky initialiser tests

[r18865]

16 years agofix string initializers, improve initializer semantic in parser
Matthias Braun [Fri, 15 Feb 2008 10:59:57 +0000 (10:59 +0000)]
fix string initializers, improve initializer semantic in parser

[r18864]

16 years agoimplement -O switch
Matthias Braun [Fri, 15 Feb 2008 10:59:05 +0000 (10:59 +0000)]
implement -O switch

[r18863]

16 years agocorrect is_const test for compound literals
Matthias Braun [Fri, 15 Feb 2008 10:58:49 +0000 (10:58 +0000)]
correct is_const test for compound literals

[r18862]

16 years agomore parsetests
Matthias Braun [Fri, 15 Feb 2008 10:57:36 +0000 (10:57 +0000)]
more parsetests

[r18861]

16 years agofix cp_error020, fix warning
Matthias Braun [Thu, 14 Feb 2008 19:57:07 +0000 (19:57 +0000)]
fix cp_error020, fix warning

[r18860]

16 years agoerror20
Matthias Braun [Thu, 14 Feb 2008 15:57:41 +0000 (15:57 +0000)]
error20

[r18859]

16 years agocast enum expressions to enum type if needed
Matthias Braun [Thu, 14 Feb 2008 15:44:59 +0000 (15:44 +0000)]
cast enum expressions to enum type if needed

[r18858]

16 years agoselfcheck target for the makefile
Matthias Braun [Thu, 14 Feb 2008 15:44:43 +0000 (15:44 +0000)]
selfcheck target for the makefile

[r18857]

16 years agoNUL-terminate strings on obstacks before finishing.
Christoph Mallon [Thu, 14 Feb 2008 15:03:35 +0000 (15:03 +0000)]
NUL-terminate strings on obstacks before finishing.

[r18856]

16 years agoUse "obst.h" instead of <obstack.h>.
Christoph Mallon [Thu, 14 Feb 2008 15:01:01 +0000 (15:01 +0000)]
Use "obst.h" instead of <obstack.h>.

[r18855]

16 years agoadd obstack to cparser sources
Matthias Braun [Thu, 14 Feb 2008 14:57:29 +0000 (14:57 +0000)]
add obstack to cparser sources

[r18854]

16 years agoimplement compound literals (ineficient code at the moment)
Matthias Braun [Thu, 14 Feb 2008 14:06:58 +0000 (14:06 +0000)]
implement compound literals (ineficient code at the moment)

[r18853]

16 years agouse new firm timing facilities
Matthias Braun [Thu, 14 Feb 2008 13:08:23 +0000 (13:08 +0000)]
use new firm timing facilities

[r18852]

16 years ago- first iteration of new initializer code
Matthias Braun [Wed, 13 Feb 2008 18:20:39 +0000 (18:20 +0000)]
- first iteration of new initializer code
- implemented __builtin_offsetof

[r18851]

16 years agoimprove error message when expression is expected
Matthias Braun [Tue, 12 Feb 2008 15:15:08 +0000 (15:15 +0000)]
improve error message when expression is expected

[r18850]

16 years agofix optimized build, add benchmark mode
Matthias Braun [Fri, 8 Feb 2008 14:01:52 +0000 (14:01 +0000)]
fix optimized build, add benchmark mode

[r18849]

16 years agoIndent.
Christoph Mallon [Wed, 23 Jan 2008 14:10:34 +0000 (14:10 +0000)]
Indent.

[r18848]

16 years agocreate invalid expression if reference can't be resolved to avoid crashs
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]

16 years agouse new firm initializer syntax
Matthias Braun [Tue, 22 Jan 2008 22:37:37 +0000 (22:37 +0000)]
use new firm initializer syntax

[r18846]

16 years agorename to avoid name clashes with libfirm changes
Matthias Braun [Tue, 22 Jan 2008 22:37:36 +0000 (22:37 +0000)]
rename to avoid name clashes with libfirm changes

[r18845]

16 years agosigned char and unsigned char can be initialized with string constants too
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]

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]