cparser
14 years agocondeval is called jump threading now
Sebastian Buchwald [Tue, 14 Jul 2009 15:21:16 +0000 (15:21 +0000)]
condeval is called jump threading now

[r26270]

14 years agocondeval is called jump threading now
Sebastian Buchwald [Tue, 14 Jul 2009 15:18:25 +0000 (15:18 +0000)]
condeval is called jump threading now

[r26269]

14 years agocondeval is called jump threading now
Matthias Braun [Tue, 14 Jul 2009 15:16:02 +0000 (15:16 +0000)]
condeval is called jump threading now

[r26268]

14 years agoremove old/unnecessary files
Matthias Braun [Tue, 14 Jul 2009 15:15:59 +0000 (15:15 +0000)]
remove old/unnecessary files

[r26267]

14 years ago- icc 11 defines __ptr32
Michael Beck [Mon, 6 Jul 2009 20:39:03 +0000 (20:39 +0000)]
- icc 11 defines __ptr32

[r26242]

14 years ago- updated for libFirm w/O irg parameters
Michael Beck [Sun, 5 Jul 2009 17:21:40 +0000 (17:21 +0000)]
- updated for libFirm w/O irg parameters

[r26238]

15 years ago- moved ansi alias to optimization level 2 (like gcc), effectively removing
Michael Beck [Thu, 25 Jun 2009 23:02:46 +0000 (23:02 +0000)]
- moved ansi alias to optimization level 2 (like gcc), effectively removing
  level O4. We loose some benchmarks due to -O3 usage ...

[r26189]

15 years agofix default proj getting constructed in wrong block
Matthias Braun [Fri, 19 Jun 2009 15:12:58 +0000 (15:12 +0000)]
fix default proj getting constructed in wrong block

[r26165]

15 years agoimprove/fix preprocessor flag handling for some cases with assembler files
Matthias Braun [Fri, 19 Jun 2009 11:10:06 +0000 (11:10 +0000)]
improve/fix preprocessor flag handling for some cases with assembler files

[r26161]

15 years agoavoid warnings in the produced jna output
Matthias Braun [Fri, 19 Jun 2009 11:10:03 +0000 (11:10 +0000)]
avoid warnings in the produced jna output

[r26160]

15 years ago64bit compile fix
Matthias Braun [Mon, 15 Jun 2009 12:00:46 +0000 (12:00 +0000)]
64bit compile fix

[r26140]

15 years agouse real (firm) output positions instead of C one (this fixes asm_test7.c
Matthias Braun [Sat, 13 Jun 2009 20:22:06 +0000 (20:22 +0000)]
use real (firm) output positions instead of C one (this fixes asm_test7.c

[r26137]

15 years agoimprove handling of multiple input files
Matthias Braun [Thu, 11 Jun 2009 09:30:27 +0000 (09:30 +0000)]
improve handling of multiple input files

[r26130]

15 years agofix cp_error059
Matthias Braun [Thu, 11 Jun 2009 09:30:26 +0000 (09:30 +0000)]
fix cp_error059

[r26129]

15 years agoredefine __VERSION__ preprocessor macro
Matthias Braun [Thu, 11 Jun 2009 09:30:25 +0000 (09:30 +0000)]
redefine __VERSION__ preprocessor macro

[r26128]

15 years agoHandle ?: in is_address_constant().
Christoph Mallon [Thu, 11 Jun 2009 09:29:28 +0000 (09:29 +0000)]
Handle ?: in is_address_constant().

[r26127]

15 years agoadd a gitignore file (no direct converion between svn:ignore and .gitignore possible...
Matthias Braun [Mon, 8 Jun 2009 13:23:10 +0000 (13:23 +0000)]
add a gitignore file (no direct converion between svn:ignore and .gitignore possible unfortunately)

[r26112]

15 years agosome more work towards (c++) namespace support
Matthias Braun [Mon, 8 Jun 2009 12:29:00 +0000 (12:29 +0000)]
some more work towards (c++) namespace support

[r26111]

15 years agoDeclarations with empty parentheses are incompatible with prototypes with ellipsis.
Christoph Mallon [Wed, 3 Jun 2009 11:01:31 +0000 (11:01 +0000)]
Declarations with empty parentheses are incompatible with prototypes with ellipsis.

[r26097]

15 years agoEmit an error, if a non-variadic function contains va_start.
Christoph Mallon [Wed, 3 Jun 2009 10:21:18 +0000 (10:21 +0000)]
Emit an error, if a non-variadic function contains va_start.

[r26096]

15 years agoIf a K&R function definition has a variadic prototype earlier, then make the function...
Christoph Mallon [Wed, 3 Jun 2009 10:19:58 +0000 (10:19 +0000)]
If a K&R function definition has a variadic prototype earlier, then make the function definition variadic, too.

[r26095]

15 years agofix C/bool2.c
Matthias Braun [Wed, 3 Jun 2009 09:28:56 +0000 (09:28 +0000)]
fix C/bool2.c

[r26094]

15 years agorefactor some cast code, use Convb instead of Mux to handle int->bool conversion
Matthias Braun [Wed, 3 Jun 2009 08:49:08 +0000 (08:49 +0000)]
refactor some cast code, use Convb instead of Mux to handle int->bool conversion

[r26091]

15 years agoadapt to latest libfirm
Matthias Braun [Mon, 1 Jun 2009 08:53:42 +0000 (08:53 +0000)]
adapt to latest libfirm

[r26083]

15 years agofix int->bool conversion
Matthias Braun [Fri, 29 May 2009 11:40:10 +0000 (11:40 +0000)]
fix int->bool conversion

[r26069]

15 years agofix switch generation for dead case
Matthias Braun [Fri, 29 May 2009 10:42:40 +0000 (10:42 +0000)]
fix switch generation for dead case

[r26068]

15 years agofix remaining bitfield initializer problems
Matthias Braun [Thu, 28 May 2009 10:51:29 +0000 (10:51 +0000)]
fix remaining bitfield initializer problems

[r26060]

15 years agofix union init problems
Matthias Braun [Wed, 27 May 2009 14:47:26 +0000 (14:47 +0000)]
fix union init problems

[r26058]

15 years agosync with edgfe
Matthias Braun [Wed, 27 May 2009 08:10:26 +0000 (08:10 +0000)]
sync with edgfe

[r26055]

15 years agoNEWS update, fix type compatibility check for k&r functions
Matthias Braun [Fri, 15 May 2009 11:40:13 +0000 (11:40 +0000)]
NEWS update, fix type compatibility check for k&r functions

[r25970]

15 years agodon't mark functions without prototype as variadic
Matthias Braun [Thu, 14 May 2009 22:24:21 +0000 (22:24 +0000)]
don't mark functions without prototype as variadic

[r25963]

15 years agomissing skip_typerefs
Matthias Braun [Thu, 14 May 2009 19:38:43 +0000 (19:38 +0000)]
missing skip_typerefs

[r25960]

15 years agonext iteration of kr handling after a discussion with Christoph
Matthias Braun [Thu, 14 May 2009 17:45:01 +0000 (17:45 +0000)]
next iteration of kr handling after a discussion with Christoph

[r25955]

15 years agofix fehler127 (again)
Matthias Braun [Thu, 14 May 2009 11:29:33 +0000 (11:29 +0000)]
fix fehler127 (again)

[r25946]

15 years agounspecified_parameters, are set by kr parameter parser now (and is not set for protot...
Matthias Braun [Mon, 11 May 2009 15:27:34 +0000 (15:27 +0000)]
unspecified_parameters, are set by kr parameter parser now (and is not set for prototyped functions)

[r25927]

15 years agonew attempt to fix the prototyped kr function problem
Michael Beck [Fri, 8 May 2009 15:05:56 +0000 (15:05 +0000)]
new attempt to fix the prototyped kr function problem

[r25908]

15 years agoadapt to latest Builtin changes
Matthias Braun [Thu, 7 May 2009 14:14:05 +0000 (14:14 +0000)]
adapt to latest Builtin changes

[r25890]

15 years agossize_t is no C99 :-(
Matthias Braun [Thu, 7 May 2009 11:37:17 +0000 (11:37 +0000)]
ssize_t is no C99 :-(

[r25884]

15 years agoRemove unnecessary special case: sizeof expressions always have their type set, there...
Christoph Mallon [Sun, 3 May 2009 10:49:30 +0000 (10:49 +0000)]
Remove unnecessary special case: sizeof expressions always have their type set, there is no need to look at the expression to determine the type.

[r25864]

15 years agoWhen doing format string checking handle ?: as format expression, i.e. process the...
Christoph Mallon [Sat, 2 May 2009 13:04:00 +0000 (13:04 +0000)]
When doing format string checking handle ?: as format expression, i.e. process the true- and false-expressions recursively.

[r25861]

15 years agoRemove unnecessary special case: sizeof expressions always have their type set, there...
Christoph Mallon [Sat, 2 May 2009 10:28:09 +0000 (10:28 +0000)]
Remove unnecessary special case: sizeof expressions always have their type set, there is no need to look at the expression to determine the type.

[r25860]

15 years ago- fixed handling of variadic types/calling conventions
Michael Beck [Tue, 7 Apr 2009 22:32:08 +0000 (22:32 +0000)]
- fixed handling of variadic types/calling conventions

[r25819]

15 years ago- 2009 patch
Michael Beck [Tue, 7 Apr 2009 14:36:48 +0000 (14:36 +0000)]
- 2009 patch

[r25818]

15 years ago- implement -mrtd
Michael Beck [Tue, 7 Apr 2009 14:24:13 +0000 (14:24 +0000)]
- implement -mrtd
- show the calling convention iff the default one is not __cdecl
- print the "bla bla free software bla" on --version

[r25817]

15 years ago- fixed handling of calling convention in function_types_compatible()
Michael Beck [Tue, 7 Apr 2009 12:22:09 +0000 (12:22 +0000)]
- fixed handling of calling convention in function_types_compatible()

[r25816]

15 years ago- BugFix: use CC_DEFAULT as the default calling convention, NOT CDECL
Michael Beck [Tue, 7 Apr 2009 12:14:19 +0000 (12:14 +0000)]
- BugFix: use CC_DEFAULT as the default calling convention, NOT CDECL

[r25815]

15 years ago- fixed function type calling convention
Michael Beck [Tue, 7 Apr 2009 12:10:38 +0000 (12:10 +0000)]
- fixed function type calling convention

[r25814]

15 years ago- BugFix: make_function_1_type_variadic() must hash the type itself, NOT
Michael Beck [Tue, 7 Apr 2009 12:04:51 +0000 (12:04 +0000)]
- BugFix: make_function_1_type_variadic() must hash the type itself, NOT
  modify another one
- BugFix: r25810: only functions can have a prototype
- add a prototyped filed to function types
- K&R functions having a prototype are NOT variadic: this fixes
  fehler166.c

[r25813]

15 years ago- do NOT warn about "unnecessary static forward declaration" if the
Michael Beck [Tue, 7 Apr 2009 11:25:49 +0000 (11:25 +0000)]
- do NOT warn about "unnecessary static forward declaration" if the
  definition is a K&R style function

[r25810]

15 years agoFixed assertion on C/gnu99/attributes5.c
Moritz Kroll [Mon, 6 Apr 2009 11:49:23 +0000 (11:49 +0000)]
Fixed assertion on C/gnu99/attributes5.c

[r25794]

15 years agofix
Matthias Braun [Fri, 20 Mar 2009 05:32:50 +0000 (05:32 +0000)]
fix

[r25711]

15 years agoanother bugfix
Matthias Braun [Fri, 20 Mar 2009 05:21:46 +0000 (05:21 +0000)]
another bugfix

[r25709]

15 years agobugfix
Matthias Braun [Fri, 20 Mar 2009 05:03:08 +0000 (05:03 +0000)]
bugfix

[r25706]

15 years agoanother iteration of the struct layout code
Matthias Braun [Fri, 20 Mar 2009 04:51:26 +0000 (04:51 +0000)]
another iteration of the struct layout code

[r25705]

15 years agostrings are visibility local
Matthias Braun [Fri, 20 Mar 2009 04:51:03 +0000 (04:51 +0000)]
strings are visibility local

[r25704]

15 years agoanother bitfield fix
Matthias Braun [Tue, 10 Mar 2009 01:43:41 +0000 (01:43 +0000)]
another bitfield fix

[r25656]

15 years agofix packed bitfield handling, long double is 16bytes in memory on OS/X but still...
Matthias Braun [Tue, 10 Mar 2009 01:30:29 +0000 (01:30 +0000)]
fix packed bitfield handling, long double is 16bytes in memory on OS/X but still only 10 byte in the CPU - need to differentiate CPU/memory representation

[r25654]

15 years agoattempt to fix bug #40
Matthias Braun [Mon, 9 Mar 2009 20:01:48 +0000 (20:01 +0000)]
attempt to fix bug #40

[r25652]

15 years agoTODO update
Matthias Braun [Mon, 9 Mar 2009 16:18:43 +0000 (16:18 +0000)]
TODO update

[r25649]

15 years agocorrectly fix calling convention problems from bug #42
Matthias Braun [Mon, 9 Mar 2009 16:12:46 +0000 (16:12 +0000)]
correctly fix calling convention problems from bug #42

[r25648]

15 years agopacked struct implementation, attribute assignment isn't always correct yet
Matthias Braun [Sun, 8 Mar 2009 19:23:44 +0000 (19:23 +0000)]
packed struct implementation, attribute assignment isn't always correct yet

[r25642]

15 years agoRework compound type handling:
Matthias Braun [Sun, 8 Mar 2009 16:19:00 +0000 (16:19 +0000)]
Rework compound type handling:
- type layout is calculated completely in parser.c now. No more code duplication  in ast2firm.c
- anonymous structs/unions are not flattened anymore, but implicit select
  expressions are created

[r25637]

15 years ago- do not expand the frame size for inner functions, they are NOT living on the outer...
Michael Beck [Sun, 8 Mar 2009 10:47:24 +0000 (10:47 +0000)]
- do not expand the frame size for inner functions, they are NOT living on the outer frame

[r25631]

15 years agocreate fold_constant_to_bool function to avoid some of the problems with long long...
Matthias Braun [Sun, 8 Mar 2009 00:21:52 +0000 (00:21 +0000)]
create fold_constant_to_bool function to avoid some of the problems with long long constants

[r25630]

15 years agodon't output calling convention warnings on non-functions for now, as we tentatively...
Matthias Braun [Sun, 8 Mar 2009 00:01:33 +0000 (00:01 +0000)]
don't output calling convention warnings on non-functions for now, as we tentatively apply the attribute on the return type too. Ignore calling convention when testing for function type compatibility - this is stupid but the way gcc works and we should be compatible here

[r25628]

15 years agofix
Matthias Braun [Sat, 7 Mar 2009 23:32:22 +0000 (23:32 +0000)]
fix

[r25624]

15 years agosupport attribute(__const) because it is used in glibc headers
Matthias Braun [Sat, 7 Mar 2009 23:11:29 +0000 (23:11 +0000)]
support attribute(__const) because it is used in glibc headers

[r25622]

15 years agofix __extension__ in for statement
Matthias Braun [Sat, 7 Mar 2009 20:40:28 +0000 (20:40 +0000)]
fix __extension__ in for statement

[r25615]

15 years agoimprove deprecated handling, parse attributes after bitfields
Matthias Braun [Sat, 7 Mar 2009 20:34:38 +0000 (20:34 +0000)]
improve deprecated handling, parse attributes after bitfields

[r25614]

15 years agowe have to be able to fold EXPR_INVALID since we report is as constant
Matthias Braun [Sat, 7 Mar 2009 20:04:17 +0000 (20:04 +0000)]
we have to be able to fold EXPR_INVALID since we report is as constant

[r25612]

15 years agofix for last commit
Matthias Braun [Sat, 7 Mar 2009 19:55:51 +0000 (19:55 +0000)]
fix for last commit

[r25610]

15 years agorewrite of attribute handling
Matthias Braun [Sat, 7 Mar 2009 19:52:41 +0000 (19:52 +0000)]
rewrite of attribute handling

[r25609]

15 years agodon't emit dead initializers
Matthias Braun [Fri, 27 Feb 2009 17:06:41 +0000 (17:06 +0000)]
don't emit dead initializers

[r25577]

15 years agoreport an error on static function declarations in local scope
Matthias Braun [Fri, 27 Feb 2009 16:54:57 +0000 (16:54 +0000)]
report an error on static function declarations in local scope

[r25576]

15 years agoRenamed get_Cond_defaultProj() to get_Cond_default_proj() for consistency.
Moritz Kroll [Sat, 21 Feb 2009 18:51:26 +0000 (18:51 +0000)]
Renamed get_Cond_defaultProj() to get_Cond_default_proj() for consistency.

[r25546]

15 years agoMarginally simplify parse_goto().
Christoph Mallon [Fri, 20 Feb 2009 16:45:42 +0000 (16:45 +0000)]
Marginally simplify parse_goto().

[r25535]

15 years agoTypos.
Christoph Mallon [Fri, 20 Feb 2009 16:39:52 +0000 (16:39 +0000)]
Typos.

[r25534]

15 years agoSupress the error message that the array size must be an integer expression if the...
Christoph Mallon [Fri, 20 Feb 2009 16:38:59 +0000 (16:38 +0000)]
Supress the error message that the array size must be an integer expression if the type is invalid.

[r25533]

15 years ago- fixed semantic of compound assign operator
Sebastian Buchwald [Thu, 19 Feb 2009 19:24:20 +0000 (19:24 +0000)]
- fixed semantic of compound assign operator
- warn on out-of-range shift counts

[r25531]

15 years agoskip_typeref().
Christoph Mallon [Fri, 6 Feb 2009 12:24:54 +0000 (12:24 +0000)]
skip_typeref().

[r25444]

15 years agoRemove unnecessary assignment.
Christoph Mallon [Fri, 6 Feb 2009 12:23:18 +0000 (12:23 +0000)]
Remove unnecessary assignment.

[r25443]

15 years agoIn strict mode set the error type for a k&r parameter without a type declaration...
Christoph Mallon [Fri, 6 Feb 2009 12:22:28 +0000 (12:22 +0000)]
In strict mode set the error type for a k&r parameter without a type declaration, so we do not encounter a null pointer later on.

[r25442]

15 years agoAdded --export-ir parameter and support for .ir input files (at least one simple...
Moritz Kroll [Fri, 6 Feb 2009 00:48:26 +0000 (00:48 +0000)]
Added --export-ir parameter and support for .ir input files (at least one simple programm with two functions already survives a round trip)

[r25441]

15 years agoImprove error recovery: Gracefully handle type names while parsing expressions.
Christoph Mallon [Wed, 4 Feb 2009 13:02:32 +0000 (13:02 +0000)]
Improve error recovery: Gracefully handle type names while parsing expressions.

[r25425]

15 years agoBefore testing the kind of an entity, make sure we got an entity at all.
Christoph Mallon [Wed, 4 Feb 2009 12:58:10 +0000 (12:58 +0000)]
Before testing the kind of an entity, make sure we got an entity at all.

[r25424]

15 years agoMinor correction of error message.
Christoph Mallon [Wed, 4 Feb 2009 09:32:45 +0000 (09:32 +0000)]
Minor correction of error message.

[r25421]

15 years agoReference the standard.
Christoph Mallon [Fri, 30 Jan 2009 18:41:06 +0000 (18:41 +0000)]
Reference the standard.

[r25407]

15 years agoalthough the literals, label addresses are not constant expression, they are address...
Matthias Braun [Fri, 30 Jan 2009 10:29:25 +0000 (10:29 +0000)]
although the literals, label addresses are not constant expression, they are address constants

[r25401]

15 years agocosmetics
Matthias Braun [Thu, 29 Jan 2009 17:27:43 +0000 (17:27 +0000)]
cosmetics

[r25398]

15 years agoarray size must be integer
Matthias Braun [Thu, 29 Jan 2009 17:27:40 +0000 (17:27 +0000)]
array size must be integer

[r25397]

15 years agosome things aren't constant
Matthias Braun [Thu, 29 Jan 2009 17:27:22 +0000 (17:27 +0000)]
some things aren't constant

[r25396]

15 years agoavoid obstack_printf for very large strings (it's cheating with a fixed size buffer)
Matthias Braun [Thu, 29 Jan 2009 17:04:24 +0000 (17:04 +0000)]
avoid obstack_printf for very large strings (it's cheating with a fixed size buffer)

[r25395]

15 years agoDocument evaluation of typedef with VLA declarator by citing the standard.
Christoph Mallon [Wed, 28 Jan 2009 10:07:59 +0000 (10:07 +0000)]
Document evaluation of typedef with VLA declarator by citing the standard.

[r25386]

15 years agoC99 §6.2.3:1 24) There is only one name space for tags even though three are possible.
Christoph Mallon [Wed, 28 Jan 2009 00:07:31 +0000 (00:07 +0000)]
C99 §6.2.3:1 24)  There is only one name space for tags even though three are possible.

[r25385]

15 years agoIndendation.
Christoph Mallon [Tue, 27 Jan 2009 23:33:22 +0000 (23:33 +0000)]
Indendation.

[r25384]

15 years agofputs() + fputc() -> fputs().
Christoph Mallon [Tue, 27 Jan 2009 14:50:58 +0000 (14:50 +0000)]
fputs() + fputc() -> fputs().

[r25382]

15 years agofix of by 1 error, add a hack for pointer arrays
Matthias Braun [Tue, 20 Jan 2009 09:49:17 +0000 (09:49 +0000)]
fix of by 1 error, add a hack for pointer arrays

[r25288]

15 years agomissing skip_typeref
Matthias Braun [Tue, 20 Jan 2009 09:48:53 +0000 (09:48 +0000)]
missing skip_typeref

[r25287]

15 years agoadd missing directories to Makefile
Matthias Braun [Tue, 20 Jan 2009 09:48:41 +0000 (09:48 +0000)]
add missing directories to Makefile

[r25286]

15 years ago- fixed access to outer variables
Michael Beck [Mon, 19 Jan 2009 20:55:11 +0000 (20:55 +0000)]
- fixed access to outer variables

[r25270]