cparser
16 years agoconst.
Christoph Mallon [Wed, 5 Dec 2007 19:11:57 +0000 (19:11 +0000)]
const.

[r18616]

16 years agoa bug
Matthias Braun [Wed, 5 Dec 2007 17:19:05 +0000 (17:19 +0000)]
a bug

[r18615]

16 years agoconstant folding for && and ||
Matthias Braun [Wed, 5 Dec 2007 17:16:37 +0000 (17:16 +0000)]
constant folding for && and ||

[r18614]

16 years agomore cases where we have to count declarations
Matthias Braun [Wed, 5 Dec 2007 17:09:15 +0000 (17:09 +0000)]
more cases where we have to count declarations

[r18613]

16 years agoimplement __builtin_expect, fix _Bool in ast2firm, improve declaration counting ...
Matthias Braun [Wed, 5 Dec 2007 17:04:42 +0000 (17:04 +0000)]
implement __builtin_expect, fix _Bool in ast2firm, improve declaration counting (still buggy)

[r18612]

16 years agoenum entries are constant, transform -fomit-frame-pointer to -bomitfp
Matthias Braun [Wed, 5 Dec 2007 16:30:24 +0000 (16:30 +0000)]
enum entries are constant, transform -fomit-frame-pointer to -bomitfp

[r18611]

16 years agoadd an is_constant_expression, only try to fold expressions that are really constant...
Matthias Braun [Wed, 5 Dec 2007 16:21:14 +0000 (16:21 +0000)]
add an is_constant_expression, only try to fold expressions that are really constant and have no side effects

[r18610]

16 years agoBugFix: expression may be NULL in count_decls_in_expr()
Michael Beck [Wed, 5 Dec 2007 16:00:21 +0000 (16:00 +0000)]
BugFix: expression may be NULL in count_decls_in_expr()

[r18609]

16 years agofixed output of function types
Michael Beck [Wed, 5 Dec 2007 15:41:41 +0000 (15:41 +0000)]
fixed output of function types

[r18608]

16 years agorevision seems to work now
Michael Beck [Wed, 5 Dec 2007 15:09:23 +0000 (15:09 +0000)]
revision seems to work now

[r18607]

16 years agoBetter revision handling.
Christoph Mallon [Wed, 5 Dec 2007 14:42:22 +0000 (14:42 +0000)]
Better revision handling.

[r18606]

16 years agoadd --version
Michael Beck [Wed, 5 Dec 2007 14:25:23 +0000 (14:25 +0000)]
add --version

[r18605]

16 years agoAdd options:
Michael Beck [Wed, 5 Dec 2007 13:16:31 +0000 (13:16 +0000)]
Add options:
 - --signed_chars/--unsigned_chars
 - -m16/-m32/-m64 switching the frontend to 16/32/64 bit (only 32bit is supported in the BE yet)

[r18604]

16 years agofixed calculation of local variables number
Michael Beck [Wed, 5 Dec 2007 02:05:06 +0000 (02:05 +0000)]
fixed calculation of local variables number

[r18603]

16 years ago- add debug info to entities
Michael Beck [Wed, 5 Dec 2007 01:38:19 +0000 (01:38 +0000)]
- add debug info to entities
- some more const's

[r18602]

16 years ago- WIN32 compile fixes
Michael Beck [Wed, 5 Dec 2007 01:22:54 +0000 (01:22 +0000)]
- WIN32 compile fixes
- removed old (wrong) lowering of highlevel structs
- removed dumping, now done by firm_opt (using -f options)

[r18601]

16 years ago- BugFix: initialize the parser after command line was parsed, else dialect specific...
Michael Beck [Tue, 4 Dec 2007 16:56:56 +0000 (16:56 +0000)]
- BugFix: initialize the parser after command line was parsed, else dialect specific token does not work
- preliminary support for MS decl modifier
- add support for __forceinline
- set inline property right

[r18600]

16 years agofinished implementation of __func__ and _PRETTY_FUNC__
Michael Beck [Tue, 4 Dec 2007 15:16:55 +0000 (15:16 +0000)]
finished implementation of __func__ and _PRETTY_FUNC__

[r18599]

16 years ago- add mostly all GCC/MSVC keywords
Michael Beck [Tue, 4 Dec 2007 15:05:49 +0000 (15:05 +0000)]
- add mostly all GCC/MSVC keywords
- add c_mode: contains current dialect/C-mode
- add command line switches to set the C mode

[r18598]

16 years agofix print ast and print fluffy
Matthias Braun [Tue, 4 Dec 2007 14:26:26 +0000 (14:26 +0000)]
fix print ast and print fluffy

[r18597]

16 years agofix type generation for flexible arrays in structs
Matthias Braun [Tue, 4 Dec 2007 14:25:51 +0000 (14:25 +0000)]
fix type generation for flexible arrays in structs

[r18596]

16 years agoonly get mode if needed
Matthias Braun [Tue, 4 Dec 2007 13:55:24 +0000 (13:55 +0000)]
only get mode if needed

[r18595]

16 years agolong double alignment is 4, implement wide character constant parsing, add another...
Matthias Braun [Tue, 4 Dec 2007 13:46:41 +0000 (13:46 +0000)]
long double alignment is 4, implement wide character constant parsing, add another hack to have ? : constant folding

[r18594]

16 years agoimprove error messages in commandline parsing
Matthias Braun [Tue, 4 Dec 2007 11:01:17 +0000 (11:01 +0000)]
improve error messages in commandline parsing

[r18593]

16 years agoadd list of warnings to TODO
Matthias Braun [Tue, 4 Dec 2007 10:56:18 +0000 (10:56 +0000)]
add list of warnings to TODO

[r18592]

16 years agoinitialize backend after parsing arguments
Matthias Braun [Tue, 4 Dec 2007 09:46:25 +0000 (09:46 +0000)]
initialize backend after parsing arguments

[r18591]

16 years agoaccept -ofilename instead of just -o filename
Matthias Braun [Tue, 4 Dec 2007 09:17:09 +0000 (09:17 +0000)]
accept -ofilename instead of just -o filename

[r18590]

16 years agoBugFix: entity allocation set for global/tls vars
Michael Beck [Mon, 3 Dec 2007 18:02:48 +0000 (18:02 +0000)]
BugFix: entity allocation set for global/tls vars
Uses now the same optimizer loop as the edgfe compiler

[r18589]

16 years agofix a few segfaults
Matthias Braun [Sun, 2 Dec 2007 22:13:56 +0000 (22:13 +0000)]
fix a few segfaults

[r18588]

16 years agoadd a mode that compiles and dumps 1 irg as result
Matthias Braun [Sun, 2 Dec 2007 19:17:50 +0000 (19:17 +0000)]
add a mode that compiles and dumps 1 irg as result

[r18587]

16 years agoupdated TODO, improved driver stuff a bit to use more pipes and allow input/output...
Matthias Braun [Sun, 2 Dec 2007 17:57:58 +0000 (17:57 +0000)]
updated TODO, improved driver stuff a bit to use more pipes and allow input/output from stdin/stdout

[r18586]

16 years agoimplement builtin_isgreater and friends
Matthias Braun [Fri, 30 Nov 2007 23:09:55 +0000 (23:09 +0000)]
implement builtin_isgreater and friends

[r18585]

16 years agomerge UNEXPR and BINEXPR enums with EXPR enum
Matthias Braun [Fri, 30 Nov 2007 22:35:15 +0000 (22:35 +0000)]
merge UNEXPR and BINEXPR enums with EXPR enum

[r18584]

16 years agoBe more permissvive in what is accepted syntactically as second argument of va_start().
Christoph Mallon [Fri, 30 Nov 2007 21:51:24 +0000 (21:51 +0000)]
Be more permissvive in what is accepted syntactically as second argument of va_start().

[r18583]

16 years agoAdd support for variadic arguments.
Christoph Mallon [Fri, 30 Nov 2007 18:35:37 +0000 (18:35 +0000)]
Add support for variadic arguments.

[r18582]

16 years agoupdated Makefiles
Matthias Braun [Fri, 30 Nov 2007 16:31:21 +0000 (16:31 +0000)]
updated Makefiles

[r18581]

16 years agoNext wchar_t step: Initialization with wide string literals.
Christoph Mallon [Fri, 30 Nov 2007 14:49:17 +0000 (14:49 +0000)]
Next wchar_t step: Initialization with wide string literals.

[r18580]

16 years agofurther improve initializers
Matthias Braun [Fri, 30 Nov 2007 13:55:20 +0000 (13:55 +0000)]
further improve initializers

[r18579]

16 years agofix deref address again
Matthias Braun [Fri, 30 Nov 2007 13:15:39 +0000 (13:15 +0000)]
fix deref address again

[r18578]

16 years agofix dereferncing of pointer+compound types
Matthias Braun [Fri, 30 Nov 2007 13:04:28 +0000 (13:04 +0000)]
fix dereferncing of pointer+compound types

[r18577]

16 years agoignore some more options
Matthias Braun [Fri, 30 Nov 2007 13:04:12 +0000 (13:04 +0000)]
ignore some more options

[r18576]

16 years agoadd a bunch of missing skip_typerefs...
Matthias Braun [Fri, 30 Nov 2007 12:28:59 +0000 (12:28 +0000)]
add a bunch of missing skip_typerefs...

[r18575]

16 years agoimplemented several type compatibility rules, renamed function_type->result_type...
Matthias Braun [Fri, 30 Nov 2007 11:22:25 +0000 (11:22 +0000)]
implemented several type compatibility rules, renamed function_type->result_type to return_type

[r18574]

16 years agofix character literals in initializer hierarchies
Matthias Braun [Thu, 29 Nov 2007 21:51:49 +0000 (21:51 +0000)]
fix character literals in initializer hierarchies

[r18573]

16 years agorelated fix about unspecified parameters -> () on function defintion means no parameters
Matthias Braun [Thu, 29 Nov 2007 21:35:03 +0000 (21:35 +0000)]
related fix about unspecified parameters -> () on function defintion means no parameters

[r18572]

16 years agodeclaration with unspecified parameters can follow declaration with specified parameters
Matthias Braun [Thu, 29 Nov 2007 21:26:41 +0000 (21:26 +0000)]
declaration with unspecified parameters can follow declaration with specified parameters

[r18571]

16 years agoMissing file.
Christoph Mallon [Thu, 29 Nov 2007 16:37:28 +0000 (16:37 +0000)]
Missing file.

[r18570]

16 years agoFirst iteration in adding wide string literal support. No input encoding handling...
Christoph Mallon [Thu, 29 Nov 2007 16:36:36 +0000 (16:36 +0000)]
First iteration in adding wide string literal support.  No input encoding handling or string concatenation, yet.

[r18569]

16 years agokr tests
Matthias Braun [Thu, 29 Nov 2007 15:01:34 +0000 (15:01 +0000)]
kr tests

[r18568]

16 years agoimplement K&R style function definitions, code cleanup here and there
Matthias Braun [Thu, 29 Nov 2007 15:00:53 +0000 (15:00 +0000)]
implement K&R style function definitions, code cleanup here and there

[r18567]

16 years agointroduce some builtin types
Matthias Braun [Wed, 28 Nov 2007 16:41:26 +0000 (16:41 +0000)]
introduce some builtin types

[r18566]

16 years agofix my last commit
Matthias Braun [Wed, 28 Nov 2007 15:30:59 +0000 (15:30 +0000)]
fix my last commit

[r18565]

16 years agoimplemented builtin_nan, nand
Matthias Braun [Wed, 28 Nov 2007 15:19:09 +0000 (15:19 +0000)]
implemented builtin_nan, nand

[r18564]

16 years agoadd some tests/stuff that was lying around here
Matthias Braun [Wed, 28 Nov 2007 10:58:14 +0000 (10:58 +0000)]
add some tests/stuff that was lying around here

[r18563]

16 years agoadd missing file
Matthias Braun [Wed, 28 Nov 2007 10:56:41 +0000 (10:56 +0000)]
add missing file

[r18562]

16 years ago- create strict convs where necessary
Matthias Braun [Wed, 28 Nov 2007 10:56:28 +0000 (10:56 +0000)]
- create strict convs where necessary
- implement __builtin_nanf (enough so bits/nan.h works)
- avoid more casts
- fix determination of integer constant type

[r18561]

16 years agoadd parsing of asm statements, avoid some statement casts
Matthias Braun [Tue, 27 Nov 2007 23:20:36 +0000 (23:20 +0000)]
add parsing of asm statements, avoid some statement casts

[r18560]

16 years agofix compound returning functions
Matthias Braun [Tue, 27 Nov 2007 22:14:28 +0000 (22:14 +0000)]
fix compound returning functions

[r18559]

16 years agofix duplicate_type, improve a comment
Matthias Braun [Tue, 27 Nov 2007 19:36:32 +0000 (19:36 +0000)]
fix duplicate_type, improve a comment

[r18558]

16 years agos/true/false/, fix a typo: a function definition with () means no parameters, not...
Christoph Mallon [Tue, 27 Nov 2007 19:11:30 +0000 (19:11 +0000)]
s/true/false/, fix a typo: a function definition with () means no parameters, not unspecified.

[r18557]

16 years agoHandle TLS.
Christoph Mallon [Tue, 27 Nov 2007 19:02:39 +0000 (19:02 +0000)]
Handle TLS.

[r18556]

16 years agoeliminate more casts, () in a function definition means no parameters not unspecified...
Matthias Braun [Tue, 27 Nov 2007 18:28:39 +0000 (18:28 +0000)]
eliminate more casts, () in a function definition means no parameters not unspecified parameters

[r18555]

16 years agotest some detail about unspecified parameters
Matthias Braun [Tue, 27 Nov 2007 18:27:38 +0000 (18:27 +0000)]
test some detail about unspecified parameters

[r18554]

16 years agoA function declaration with unspecified parameter list is compatible to a declaration...
Christoph Mallon [Tue, 27 Nov 2007 15:40:15 +0000 (15:40 +0000)]
A function declaration with unspecified parameter list is compatible to a declaration with a parameter list.

[r18553]

16 years agofix a bunch of icc warnings
Matthias Braun [Tue, 27 Nov 2007 13:17:15 +0000 (13:17 +0000)]
fix a bunch of icc warnings

[r18552]

16 years agodo double compilation with gcc+icc in the Makefile
Matthias Braun [Tue, 27 Nov 2007 13:17:07 +0000 (13:17 +0000)]
do double compilation with gcc+icc in the Makefile

[r18551]

16 years agoimplemented struct return
Matthias Braun [Tue, 27 Nov 2007 11:02:15 +0000 (11:02 +0000)]
implemented struct return

[r18550]

16 years agoconvert statements and expression to new union style (but didn't remove all casts...
Matthias Braun [Tue, 27 Nov 2007 10:17:38 +0000 (10:17 +0000)]
convert statements and expression to new union style (but didn't remove all casts yet)

[r18549]

16 years agoavoid even more casts of type structs
Matthias Braun [Mon, 26 Nov 2007 21:39:42 +0000 (21:39 +0000)]
avoid even more casts of type structs

[r18548]

16 years agoavoid more casts of type structs
Matthias Braun [Mon, 26 Nov 2007 21:34:02 +0000 (21:34 +0000)]
avoid more casts of type structs

[r18547]

16 years agoavoid more casts of type structs
Matthias Braun [Mon, 26 Nov 2007 21:30:24 +0000 (21:30 +0000)]
avoid more casts of type structs

[r18546]

16 years agoput Type types into a union again, but so that all the subtype are still available...
Matthias Braun [Mon, 26 Nov 2007 20:41:18 +0000 (20:41 +0000)]
put Type types into a union again, but so that all the subtype are still available as separate types

[r18545]

16 years agomore asserts
Matthias Braun [Mon, 26 Nov 2007 20:03:55 +0000 (20:03 +0000)]
more asserts

[r18544]

16 years agoadd some assert where typedef/typeof types should not be used, add missing skip_typer...
Matthias Braun [Mon, 26 Nov 2007 20:00:50 +0000 (20:00 +0000)]
add some assert where typedef/typeof types should not be used, add missing skip_typeref in call semantic

[r18543]

16 years agofix array_access in ast2firm
Matthias Braun [Mon, 26 Nov 2007 19:38:54 +0000 (19:38 +0000)]
fix array_access in ast2firm

[r18542]

16 years agobuild unknown if return value is missing
Matthias Braun [Mon, 26 Nov 2007 19:25:13 +0000 (19:25 +0000)]
build unknown if return value is missing

[r18541]

16 years agohandle automatic type conversion of array and function types like described in the...
Matthias Braun [Mon, 26 Nov 2007 18:59:30 +0000 (18:59 +0000)]
handle automatic type conversion of array and function types like described in the C standard

[r18540]

16 years agoSkip typerefs when comparing the pointed-to types of pointers.
Christoph Mallon [Mon, 26 Nov 2007 17:47:19 +0000 (17:47 +0000)]
Skip typerefs when comparing the pointed-to types of pointers.

[r18539]

16 years agoRespect the signedness of char.
Christoph Mallon [Mon, 26 Nov 2007 17:30:01 +0000 (17:30 +0000)]
Respect the signedness of char.

[r18538]

16 years agochange back union stuff and expriment with new union mode for initializers
Matthias Braun [Mon, 26 Nov 2007 16:49:22 +0000 (16:49 +0000)]
change back union stuff and expriment with new union mode for initializers

[r18537]

16 years agoImplement enums.
Christoph Mallon [Mon, 26 Nov 2007 15:17:30 +0000 (15:17 +0000)]
Implement enums.

[r18536]

16 years agoworkaround for not allowed construction: [] not on toplevel ...
Michael Beck [Mon, 26 Nov 2007 01:41:22 +0000 (01:41 +0000)]
workaround for not allowed construction: [] not on toplevel ...
for now, use [1] and replace the whole thing by a list someday

[r18535]

16 years agoreplaced the different type types by one union type saving a lot of casts (and adding...
Michael Beck [Mon, 26 Nov 2007 01:35:06 +0000 (01:35 +0000)]
replaced the different type types by one union type saving a lot of casts (and adding more field specifier :-)

[r18534]

16 years agofixed overrun handling
Michael Beck [Mon, 26 Nov 2007 01:32:14 +0000 (01:32 +0000)]
fixed overrun handling

[r18533]

16 years agofixed warning: unix strtold expect char*
Michael Beck [Mon, 26 Nov 2007 01:05:23 +0000 (01:05 +0000)]
fixed warning: unix strtold expect char*

[r18532]

16 years agointroduce type_qualifiers_t type and remove a lot of warnings
Michael Beck [Sun, 25 Nov 2007 23:30:14 +0000 (23:30 +0000)]
introduce type_qualifiers_t type and remove a lot of warnings

[r18531]

16 years agoreplaced the different statement types by one union type saving a lot of casts (and...
Michael Beck [Sun, 25 Nov 2007 19:35:27 +0000 (19:35 +0000)]
replaced the different statement types by one union type saving a lot of casts (and adding more field specifier :-)

[r18530]

16 years agoBugFix: a break from a case label does not leave a loop
Michael Beck [Sun, 25 Nov 2007 19:34:41 +0000 (19:34 +0000)]
BugFix: a break from a case label does not leave a loop

[r18529]

16 years agoreplaced the different initializer types by one union type saving a lot of casts
Michael Beck [Sun, 25 Nov 2007 18:32:08 +0000 (18:32 +0000)]
replaced the different initializer types by one union type saving a lot of casts

[r18528]

16 years ago- replaced strtoull() function by own implementation (now available on Win32)
Michael Beck [Sun, 25 Nov 2007 18:26:36 +0000 (18:26 +0000)]
- replaced strtoull() function by own implementation (now available on Win32)
- use isxdigit() instead of own function
- use strtod() instead of now existing strtold() on Win32 for now

[r18527]

16 years agouse NORETURN macro instead of gcc like __attribute__(noreturn)
Michael Beck [Sun, 25 Nov 2007 18:12:06 +0000 (18:12 +0000)]
use NORETURN macro instead of gcc like __attribute__(noreturn)

[r18526]

16 years agofixed some warnings
Michael Beck [Sun, 25 Nov 2007 18:05:21 +0000 (18:05 +0000)]
fixed some warnings

[r18525]

16 years agoimplement semantic_assign like the C standard describes it
Matthias Braun [Sat, 24 Nov 2007 14:28:17 +0000 (14:28 +0000)]
implement semantic_assign like the C standard describes it

[r18524]

16 years agostring literals as array intiailizers are supported now
Matthias Braun [Fri, 23 Nov 2007 15:36:41 +0000 (15:36 +0000)]
string literals as array intiailizers are supported now

[r18523]

16 years agothere might be extra commas after } initializer
Matthias Braun [Fri, 23 Nov 2007 00:38:47 +0000 (00:38 +0000)]
there might be extra commas after } initializer

[r18522]

16 years agomore missing skip_typerefs
Matthias Braun [Fri, 23 Nov 2007 00:35:15 +0000 (00:35 +0000)]
more missing skip_typerefs

[r18521]

16 years agosupport initializers for local variables with struct/array type
Matthias Braun [Fri, 23 Nov 2007 00:27:52 +0000 (00:27 +0000)]
support initializers for local variables with struct/array type

[r18520]

16 years agofix some bugs introduces with my last committ
Matthias Braun [Thu, 22 Nov 2007 23:59:27 +0000 (23:59 +0000)]
fix some bugs introduces with my last committ

[r18519]

16 years agofix array declarator parsing, fix a memory error in constructing declarator types
Matthias Braun [Thu, 22 Nov 2007 23:08:30 +0000 (23:08 +0000)]
fix array declarator parsing, fix a memory error in constructing declarator types

[r18518]

16 years agofix printing of array types
Matthias Braun [Thu, 22 Nov 2007 12:49:38 +0000 (12:49 +0000)]
fix printing of array types

[r18517]