Christoph Mallon [Thu, 11 Jun 2009 09:29:28 +0000 (09:29 +0000)]
Handle ?: in is_address_constant().
[r26127]
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]
Matthias Braun [Mon, 8 Jun 2009 12:29:00 +0000 (12:29 +0000)]
some more work towards (c++) namespace support
[r26111]
Christoph Mallon [Wed, 3 Jun 2009 11:01:31 +0000 (11:01 +0000)]
Declarations with empty parentheses are incompatible with prototypes with ellipsis.
[r26097]
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]
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]
Matthias Braun [Wed, 3 Jun 2009 09:28:56 +0000 (09:28 +0000)]
fix C/bool2.c
[r26094]
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]
Matthias Braun [Mon, 1 Jun 2009 08:53:42 +0000 (08:53 +0000)]
adapt to latest libfirm
[r26083]
Matthias Braun [Fri, 29 May 2009 11:40:10 +0000 (11:40 +0000)]
fix int->bool conversion
[r26069]
Matthias Braun [Fri, 29 May 2009 10:42:40 +0000 (10:42 +0000)]
fix switch generation for dead case
[r26068]
Matthias Braun [Thu, 28 May 2009 10:51:29 +0000 (10:51 +0000)]
fix remaining bitfield initializer problems
[r26060]
Matthias Braun [Wed, 27 May 2009 14:47:26 +0000 (14:47 +0000)]
fix union init problems
[r26058]
Matthias Braun [Wed, 27 May 2009 08:10:26 +0000 (08:10 +0000)]
sync with edgfe
[r26055]
Matthias Braun [Fri, 15 May 2009 11:40:13 +0000 (11:40 +0000)]
NEWS update, fix type compatibility check for k&r functions
[r25970]
Matthias Braun [Thu, 14 May 2009 22:24:21 +0000 (22:24 +0000)]
don't mark functions without prototype as variadic
[r25963]
Matthias Braun [Thu, 14 May 2009 19:38:43 +0000 (19:38 +0000)]
missing skip_typerefs
[r25960]
Matthias Braun [Thu, 14 May 2009 17:45:01 +0000 (17:45 +0000)]
next iteration of kr handling after a discussion with Christoph
[r25955]
Matthias Braun [Thu, 14 May 2009 11:29:33 +0000 (11:29 +0000)]
fix fehler127 (again)
[r25946]
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]
Michael Beck [Fri, 8 May 2009 15:05:56 +0000 (15:05 +0000)]
new attempt to fix the prototyped kr function problem
[r25908]
Matthias Braun [Thu, 7 May 2009 14:14:05 +0000 (14:14 +0000)]
adapt to latest Builtin changes
[r25890]
Matthias Braun [Thu, 7 May 2009 11:37:17 +0000 (11:37 +0000)]
ssize_t is no C99 :-(
[r25884]
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]
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]
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]
Michael Beck [Tue, 7 Apr 2009 22:32:08 +0000 (22:32 +0000)]
- fixed handling of variadic types/calling conventions
[r25819]
Michael Beck [Tue, 7 Apr 2009 14:36:48 +0000 (14:36 +0000)]
- 2009 patch
[r25818]
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]
Michael Beck [Tue, 7 Apr 2009 12:22:09 +0000 (12:22 +0000)]
- fixed handling of calling convention in function_types_compatible()
[r25816]
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]
Michael Beck [Tue, 7 Apr 2009 12:10:38 +0000 (12:10 +0000)]
- fixed function type calling convention
[r25814]
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]
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]
Moritz Kroll [Mon, 6 Apr 2009 11:49:23 +0000 (11:49 +0000)]
Fixed assertion on C/gnu99/attributes5.c
[r25794]
Matthias Braun [Fri, 20 Mar 2009 05:32:50 +0000 (05:32 +0000)]
fix
[r25711]
Matthias Braun [Fri, 20 Mar 2009 05:21:46 +0000 (05:21 +0000)]
another bugfix
[r25709]
Matthias Braun [Fri, 20 Mar 2009 05:03:08 +0000 (05:03 +0000)]
bugfix
[r25706]
Matthias Braun [Fri, 20 Mar 2009 04:51:26 +0000 (04:51 +0000)]
another iteration of the struct layout code
[r25705]
Matthias Braun [Fri, 20 Mar 2009 04:51:03 +0000 (04:51 +0000)]
strings are visibility local
[r25704]
Matthias Braun [Tue, 10 Mar 2009 01:43:41 +0000 (01:43 +0000)]
another bitfield fix
[r25656]
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]
Matthias Braun [Mon, 9 Mar 2009 20:01:48 +0000 (20:01 +0000)]
attempt to fix bug #40
[r25652]
Matthias Braun [Mon, 9 Mar 2009 16:18:43 +0000 (16:18 +0000)]
TODO update
[r25649]
Matthias Braun [Mon, 9 Mar 2009 16:12:46 +0000 (16:12 +0000)]
correctly fix calling convention problems from bug #42
[r25648]
Matthias Braun [Sun, 8 Mar 2009 19:23:44 +0000 (19:23 +0000)]
packed struct implementation, attribute assignment isn't always correct yet
[r25642]
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]
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]
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]
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]
Matthias Braun [Sat, 7 Mar 2009 23:32:22 +0000 (23:32 +0000)]
fix
[r25624]
Matthias Braun [Sat, 7 Mar 2009 23:11:29 +0000 (23:11 +0000)]
support attribute(__const) because it is used in glibc headers
[r25622]
Matthias Braun [Sat, 7 Mar 2009 20:40:28 +0000 (20:40 +0000)]
fix __extension__ in for statement
[r25615]
Matthias Braun [Sat, 7 Mar 2009 20:34:38 +0000 (20:34 +0000)]
improve deprecated handling, parse attributes after bitfields
[r25614]
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]
Matthias Braun [Sat, 7 Mar 2009 19:55:51 +0000 (19:55 +0000)]
fix for last commit
[r25610]
Matthias Braun [Sat, 7 Mar 2009 19:52:41 +0000 (19:52 +0000)]
rewrite of attribute handling
[r25609]
Matthias Braun [Fri, 27 Feb 2009 17:06:41 +0000 (17:06 +0000)]
don't emit dead initializers
[r25577]
Matthias Braun [Fri, 27 Feb 2009 16:54:57 +0000 (16:54 +0000)]
report an error on static function declarations in local scope
[r25576]
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]
Christoph Mallon [Fri, 20 Feb 2009 16:45:42 +0000 (16:45 +0000)]
Marginally simplify parse_goto().
[r25535]
Christoph Mallon [Fri, 20 Feb 2009 16:39:52 +0000 (16:39 +0000)]
Typos.
[r25534]
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]
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]
Christoph Mallon [Fri, 6 Feb 2009 12:24:54 +0000 (12:24 +0000)]
skip_typeref().
[r25444]
Christoph Mallon [Fri, 6 Feb 2009 12:23:18 +0000 (12:23 +0000)]
Remove unnecessary assignment.
[r25443]
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]
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]
Christoph Mallon [Wed, 4 Feb 2009 13:02:32 +0000 (13:02 +0000)]
Improve error recovery: Gracefully handle type names while parsing expressions.
[r25425]
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]
Christoph Mallon [Wed, 4 Feb 2009 09:32:45 +0000 (09:32 +0000)]
Minor correction of error message.
[r25421]
Christoph Mallon [Fri, 30 Jan 2009 18:41:06 +0000 (18:41 +0000)]
Reference the standard.
[r25407]
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]
Matthias Braun [Thu, 29 Jan 2009 17:27:43 +0000 (17:27 +0000)]
cosmetics
[r25398]
Matthias Braun [Thu, 29 Jan 2009 17:27:40 +0000 (17:27 +0000)]
array size must be integer
[r25397]
Matthias Braun [Thu, 29 Jan 2009 17:27:22 +0000 (17:27 +0000)]
some things aren't constant
[r25396]
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]
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]
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]
Christoph Mallon [Tue, 27 Jan 2009 23:33:22 +0000 (23:33 +0000)]
Indendation.
[r25384]
Christoph Mallon [Tue, 27 Jan 2009 14:50:58 +0000 (14:50 +0000)]
fputs() + fputc() -> fputs().
[r25382]
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]
Matthias Braun [Tue, 20 Jan 2009 09:48:53 +0000 (09:48 +0000)]
missing skip_typeref
[r25287]
Matthias Braun [Tue, 20 Jan 2009 09:48:41 +0000 (09:48 +0000)]
add missing directories to Makefile
[r25286]
Michael Beck [Mon, 19 Jan 2009 20:55:11 +0000 (20:55 +0000)]
- fixed access to outer variables
[r25270]
Michael Beck [Mon, 19 Jan 2009 16:19:52 +0000 (16:19 +0000)]
- corerctly transform inner functions to firm
[r25265]
Michael Beck [Mon, 19 Jan 2009 01:06:42 +0000 (01:06 +0000)]
Get rid of pn_Start_value_param:
Access to value_type entities is now given by the frame pointer.
[r25250]
Michael Beck [Sun, 18 Jan 2009 01:05:51 +0000 (01:05 +0000)]
- some doxygen info for the changed routines
[r25242]
Michael Beck [Sun, 18 Jan 2009 01:00:33 +0000 (01:00 +0000)]
- add __based support
[r25241]
Christoph Mallon [Sat, 3 Jan 2009 06:55:57 +0000 (06:55 +0000)]
Remove unused variable.
[r25075]
Michael Beck [Sat, 3 Jan 2009 04:48:59 +0000 (04:48 +0000)]
- add intrinsic lowerer for strcpy(), mempcpy(), memmove(), strncmp()
- add missing strlen() intrinsic lowerer
[r25073]
Michael Beck [Sat, 3 Jan 2009 04:13:52 +0000 (04:13 +0000)]
- free-standing is a negative option
[r25071]
Michael Beck [Sat, 3 Jan 2009 03:56:38 +0000 (03:56 +0000)]
- implemented va_copy(), needed for C99
- add semantic to va_arg
- add walk_expression support for va_* expressions
[r25070]
Christoph Mallon [Fri, 2 Jan 2009 19:37:17 +0000 (19:37 +0000)]
map strcasecmp() to _stricmp() for Windows.
[r25066]
Michael Beck [Fri, 2 Jan 2009 17:45:38 +0000 (17:45 +0000)]
- typo fixed
[r25064]
Michael Beck [Fri, 2 Jan 2009 17:33:13 +0000 (17:33 +0000)]
- add FE support for MS _AddressOfReturnAddress()
[r25062]
Michael Beck [Fri, 2 Jan 2009 17:32:24 +0000 (17:32 +0000)]
- some comments
[r25061]
Michael Beck [Fri, 2 Jan 2009 17:31:06 +0000 (17:31 +0000)]
- va_start/va_arg uses now the stack parameter alignment
[r25060]
Michael Beck [Fri, 2 Jan 2009 17:13:48 +0000 (17:13 +0000)]
- add stricmp() macro
[r25056]
Christoph Mallon [Fri, 2 Jan 2009 11:43:19 +0000 (11:43 +0000)]
Use next_token() instead of eat() after eat_until_matching_token(), because we could have reached EOF.
[r25039]