cparser
15 years agoFix typo.
Christoph Mallon [Fri, 28 Nov 2008 07:23:07 +0000 (07:23 +0000)]
Fix typo.

[r24095]

15 years agoFix typo in comment, correct other comment.
Christoph Mallon [Fri, 28 Nov 2008 07:01:51 +0000 (07:01 +0000)]
Fix typo in comment, correct other comment.

[r24094]

15 years ago-some doxygen docu added
Michael Beck [Fri, 28 Nov 2008 06:20:10 +0000 (06:20 +0000)]
-some doxygen docu added

[r24091]

15 years agoAdjusted code to mode-less Const and Const_type constructors
Moritz Kroll [Thu, 27 Nov 2008 20:50:12 +0000 (20:50 +0000)]
Adjusted code to mode-less Const and Const_type constructors

[r24089]

15 years agoHandle another GCC perversion: Global arrays without explicit storage class and...
Christoph Mallon [Thu, 27 Nov 2008 14:43:50 +0000 (14:43 +0000)]
Handle another GCC perversion:  Global arrays without explicit storage class and unspecified length are assumed to have length 1.

[r24061]

15 years agoUpdate NEWS.
Christoph Mallon [Thu, 27 Nov 2008 12:11:38 +0000 (12:11 +0000)]
Update NEWS.

[r24049]

15 years ago+TODO
Matthias Braun [Thu, 27 Nov 2008 11:44:47 +0000 (11:44 +0000)]
+TODO

[r24048]

15 years agoSimplify code a bit.
Christoph Mallon [Thu, 27 Nov 2008 11:17:24 +0000 (11:17 +0000)]
Simplify code a bit.

[r24046]

15 years agodon't abort if symbol is NULL in record_declaration
Matthias Braun [Thu, 27 Nov 2008 10:01:14 +0000 (10:01 +0000)]
don't abort if symbol is NULL in record_declaration

[r24039]

15 years agofix builting expect handling and implement taking address of builtin functions (produ...
Matthias Braun [Thu, 27 Nov 2008 09:43:04 +0000 (09:43 +0000)]
fix builting expect handling and implement taking address of builtin functions (produces warning + NULL pointer)

[r24037]

15 years agoSmall cleanup.
Christoph Mallon [Thu, 27 Nov 2008 09:08:37 +0000 (09:08 +0000)]
Small cleanup.

[r24034]

15 years agoResolve redundant declaration warning when parsing the declaration list of k&r functions.
Christoph Mallon [Wed, 26 Nov 2008 10:21:12 +0000 (10:21 +0000)]
Resolve redundant declaration warning when parsing the declaration list of k&r functions.

[r24010]

15 years agoImprove error recovery when parsing the declaration list of k&r functions.
Christoph Mallon [Wed, 26 Nov 2008 10:05:19 +0000 (10:05 +0000)]
Improve error recovery when parsing the declaration list of k&r functions.

[r24008]

15 years agoLet make clean delete builtins.h, too.
Christoph Mallon [Wed, 26 Nov 2008 06:15:08 +0000 (06:15 +0000)]
Let make clean delete builtins.h, too.

[r24007]

15 years agoUpdate version number.
Christoph Mallon [Wed, 26 Nov 2008 06:09:45 +0000 (06:09 +0000)]
Update version number.

[r24006]

15 years agoRemove \n, which do not belong into a error message.
Christoph Mallon [Tue, 25 Nov 2008 22:22:22 +0000 (22:22 +0000)]
Remove \n, which do not belong into a error message.

[r24005]

15 years agofix transparent unions
Matthias Braun [Tue, 25 Nov 2008 13:38:34 +0000 (13:38 +0000)]
fix transparent unions

[r23987]

15 years agoprint transparent union modifiers for types
Matthias Braun [Tue, 25 Nov 2008 13:35:11 +0000 (13:35 +0000)]
print transparent union modifiers for types

[r23986]

15 years agoI should at least compile before commiting
Matthias Braun [Tue, 25 Nov 2008 13:28:17 +0000 (13:28 +0000)]
I should at least compile before commiting

[r23985]

15 years agofix one more problematic omitted conditional case
Matthias Braun [Tue, 25 Nov 2008 13:27:40 +0000 (13:27 +0000)]
fix one more problematic omitted conditional case

[r23984]

15 years agofix
Matthias Braun [Tue, 25 Nov 2008 13:16:07 +0000 (13:16 +0000)]
fix

[r23983]

15 years ago- Introduce ENTITY_PARAMETER
Matthias Braun [Tue, 25 Nov 2008 13:11:06 +0000 (13:11 +0000)]
- Introduce ENTITY_PARAMETER
- functions aren't lvalues

[r23981]

15 years agoImprove error recovery, when parsing case statements.
Christoph Mallon [Mon, 24 Nov 2008 13:01:35 +0000 (13:01 +0000)]
Improve error recovery, when parsing case statements.

[r23933]

15 years agoImprove warning message, when there are too few format specifiers.
Christoph Mallon [Mon, 24 Nov 2008 13:00:52 +0000 (13:00 +0000)]
Improve warning message, when there are too few format specifiers.

[r23932]

15 years ago'*' and '&' can start declarations with implicit int.
Christoph Mallon [Mon, 24 Nov 2008 10:38:41 +0000 (10:38 +0000)]
'*' and '&' can start declarations with implicit int.

[r23930]

15 years agoAdd '' around several %K and %T in error and warning messages.
Christoph Mallon [Mon, 24 Nov 2008 10:02:25 +0000 (10:02 +0000)]
Add '' around several %K and %T in error and warning messages.

[r23927]

15 years agoFix error in last commit.
Christoph Mallon [Fri, 21 Nov 2008 14:18:59 +0000 (14:18 +0000)]
Fix error in last commit.

[r23893]

15 years agos/bash/sh/ and use tar -C instead of pushd.
Christoph Mallon [Fri, 21 Nov 2008 14:16:49 +0000 (14:16 +0000)]
s/bash/sh/ and use tar -C instead of pushd.

[r23892]

15 years agoNot Bourne Again.
Christoph Mallon [Fri, 21 Nov 2008 13:18:05 +0000 (13:18 +0000)]
Not Bourne Again.

[r23885]

15 years agoreduce not supported error to a warning
Matthias Braun [Fri, 21 Nov 2008 10:17:16 +0000 (10:17 +0000)]
reduce not supported error to a warning

[r23876]

15 years agok&r style parameters need array/function type to pointer type degeneration, too.
Christoph Mallon [Fri, 21 Nov 2008 10:00:19 +0000 (10:00 +0000)]
k&r style parameters need array/function type to pointer type degeneration, too.

[r23875]

15 years agoget rid of scope->parent
Matthias Braun [Fri, 21 Nov 2008 09:45:04 +0000 (09:45 +0000)]
get rid of scope->parent

[r23874]

15 years agoRemove unreachable statements.
Christoph Mallon [Thu, 20 Nov 2008 11:05:43 +0000 (11:05 +0000)]
Remove unreachable statements.

[r23845]

15 years agoOnly warn about unreachable declaration statements, if at least one declarator has...
Christoph Mallon [Thu, 20 Nov 2008 10:56:55 +0000 (10:56 +0000)]
Only warn about unreachable declaration statements, if at least one declarator has an initializer.

[r23844]

15 years agoFix r23842 for for statements without condition.
Christoph Mallon [Thu, 20 Nov 2008 10:48:41 +0000 (10:48 +0000)]
Fix r23842 for for statements without condition.

[r23843]

15 years agoCheck for (un)reachable code in statement expressions and initializers.
Christoph Mallon [Thu, 20 Nov 2008 10:46:07 +0000 (10:46 +0000)]
Check for (un)reachable code in statement expressions and initializers.

[r23842]

15 years agoDo not print quotes around __func__ etc., because it is wrong.
Christoph Mallon [Thu, 20 Nov 2008 07:29:14 +0000 (07:29 +0000)]
Do not print quotes around __func__ etc., because it is wrong.

[r23841]

15 years agoWhitespace and stuff.
Christoph Mallon [Thu, 20 Nov 2008 06:38:02 +0000 (06:38 +0000)]
Whitespace and stuff.

[r23840]

15 years agoCorrect precedence for printing ?: in C++ mode.
Christoph Mallon [Thu, 20 Nov 2008 06:27:03 +0000 (06:27 +0000)]
Correct precedence for printing ?: in C++ mode.

[r23839]

15 years agoCorrect precedence of postfix ++ and -- in the AST-printer.
Christoph Mallon [Wed, 19 Nov 2008 22:25:52 +0000 (22:25 +0000)]
Correct precedence of postfix ++ and -- in the AST-printer.

[r23837]

15 years agoSimplify printing suffix of constants.
Christoph Mallon [Wed, 19 Nov 2008 22:11:28 +0000 (22:11 +0000)]
Simplify printing suffix of constants.

[r23836]

15 years agoFix printing of necessary () in the AST-printer.
Christoph Mallon [Wed, 19 Nov 2008 22:09:01 +0000 (22:09 +0000)]
Fix printing of necessary () in the AST-printer.

[r23835]

15 years agoHandle static __thread local variables in ast2firm.
Christoph Mallon [Wed, 19 Nov 2008 18:00:34 +0000 (18:00 +0000)]
Handle static __thread local variables in ast2firm.

[r23825]

15 years agoImprove storage class handling:
Christoph Mallon [Wed, 19 Nov 2008 17:18:37 +0000 (17:18 +0000)]
Improve storage class handling:
- __thread is now a flag instead of three extra storage classes
- Add semantic checks for wrong storage classes (and inline) in declarations.

[r23820]

15 years ago- handle const and volatile qualifiers right, ignore others
Michael Beck [Wed, 19 Nov 2008 12:45:52 +0000 (12:45 +0000)]
- handle const and volatile qualifiers right, ignore others

[r23815]

15 years agoCounter-fix add_flag().
Christoph Mallon [Wed, 19 Nov 2008 12:24:55 +0000 (12:24 +0000)]
Counter-fix add_flag().

[r23811]

15 years ago- add missing default
Michael Beck [Wed, 19 Nov 2008 12:23:29 +0000 (12:23 +0000)]
- add missing default

[r23810]

15 years agoadd unsigned char type
Michael Beck [Wed, 19 Nov 2008 12:20:02 +0000 (12:20 +0000)]
add unsigned char type

[r23808]

15 years ago- add '['
Michael Beck [Wed, 19 Nov 2008 12:05:36 +0000 (12:05 +0000)]
- add '['
- fix 's', 'S'

[r23805]

15 years ago- first version of scanf parameter check
Michael Beck [Wed, 19 Nov 2008 11:43:30 +0000 (11:43 +0000)]
- first version of scanf parameter check

[r23803]

15 years agoextern reference variables may be uninitialized.
Christoph Mallon [Wed, 19 Nov 2008 10:59:14 +0000 (10:59 +0000)]
extern reference variables may be uninitialized.

[r23802]

15 years ago- fixed Win32 version of add_flag again
Michael Beck [Wed, 19 Nov 2008 10:54:53 +0000 (10:54 +0000)]
- fixed Win32 version of add_flag again

[r23801]

15 years agoExpressions with reference type are lvalues.
Christoph Mallon [Wed, 19 Nov 2008 10:52:21 +0000 (10:52 +0000)]
Expressions with reference type are lvalues.

[r23800]

15 years agoFunction types as parameters work again.
Christoph Mallon [Wed, 19 Nov 2008 09:37:04 +0000 (09:37 +0000)]
Function types as parameters work again.

[r23796]

15 years agoskip_typeref().
Christoph Mallon [Wed, 19 Nov 2008 09:02:39 +0000 (09:02 +0000)]
skip_typeref().

[r23795]

15 years agoTurn the two bool parameters of parse_declarator() into an enum.
Christoph Mallon [Wed, 19 Nov 2008 08:46:59 +0000 (08:46 +0000)]
Turn the two bool parameters of parse_declarator() into an enum.

[r23794]

15 years agoImprove error message.
Christoph Mallon [Wed, 19 Nov 2008 07:41:23 +0000 (07:41 +0000)]
Improve error message.

[r23793]

15 years agoEnsure that references are initialised.
Christoph Mallon [Wed, 19 Nov 2008 07:39:18 +0000 (07:39 +0000)]
Ensure that references are initialised.

[r23792]

15 years agoPut warning under warning.other flag.
Christoph Mallon [Wed, 19 Nov 2008 07:07:51 +0000 (07:07 +0000)]
Put warning under warning.other flag.

[r23791]

15 years agoReally call ourselves as promised, otherwise this leads to spurious warnings.
Christoph Mallon [Tue, 18 Nov 2008 22:11:24 +0000 (22:11 +0000)]
Really call ourselves as promised, otherwise this leads to spurious warnings.

[r23787]

15 years agoFactorise macro.
Christoph Mallon [Tue, 18 Nov 2008 22:06:39 +0000 (22:06 +0000)]
Factorise macro.

[r23786]

15 years agoBe more consistent, when talking about types in error messages.
Christoph Mallon [Tue, 18 Nov 2008 22:04:32 +0000 (22:04 +0000)]
Be more consistent, when talking about types in error messages.

[r23785]

15 years agoCite the standard and adhere it a bit more.
Christoph Mallon [Tue, 18 Nov 2008 21:59:49 +0000 (21:59 +0000)]
Cite the standard and adhere it a bit more.

[r23783]

15 years ago- Factorise code to check the semantic of conditions
Christoph Mallon [Tue, 18 Nov 2008 21:29:18 +0000 (21:29 +0000)]
- Factorise code to check the semantic of conditions
- Always set the result type of && and ||
- Do semantic check for the condition of if-statements.

[r23781]

15 years agoFix last commit.
Christoph Mallon [Tue, 18 Nov 2008 19:29:37 +0000 (19:29 +0000)]
Fix last commit.

[r23779]

15 years agoAdd semantic check: §6.8.5:2 The controlling expression of an iteration statement...
Christoph Mallon [Tue, 18 Nov 2008 19:26:58 +0000 (19:26 +0000)]
Add semantic check: §6.8.5:2 The controlling expression of an iteration statement shall have scalar type.

[r23778]

15 years agoSimplify if-cascade.
Christoph Mallon [Tue, 18 Nov 2008 19:10:33 +0000 (19:10 +0000)]
Simplify if-cascade.

[r23775]

15 years agoFix r23726.
Christoph Mallon [Tue, 18 Nov 2008 18:56:47 +0000 (18:56 +0000)]
Fix r23726.

[r23774]

15 years ago- better (and hopefully correct) implementation of __based pointer
Michael Beck [Tue, 18 Nov 2008 16:13:45 +0000 (16:13 +0000)]
- better (and hopefully correct) implementation of __based pointer

[r23767]

15 years agoOne more fix for r23739: extern declarations may be incomplete.
Christoph Mallon [Tue, 18 Nov 2008 14:54:54 +0000 (14:54 +0000)]
One more fix for r23739: extern declarations may be incomplete.

[r23762]

15 years agoFix r23739 (rejecting declarations of incomplete type) for arrays with unknown size...
Christoph Mallon [Tue, 18 Nov 2008 14:47:04 +0000 (14:47 +0000)]
Fix r23739 (rejecting declarations of incomplete type) for arrays with unknown size, but with initializer.

[r23760]

15 years agoParse C++ references.
Christoph Mallon [Tue, 18 Nov 2008 14:39:59 +0000 (14:39 +0000)]
Parse C++ references.

[r23759]

15 years agoPut error for goto over VLA onto the TODO list.
Christoph Mallon [Tue, 18 Nov 2008 07:51:07 +0000 (07:51 +0000)]
Put error for goto over VLA onto the TODO list.

[r23741]

15 years agoReject variable declarations of incomplete type.
Christoph Mallon [Mon, 17 Nov 2008 18:32:07 +0000 (18:32 +0000)]
Reject variable declarations of incomplete type.

[r23739]

15 years agoDo not mangle restrict qualifiers.
Christoph Mallon [Mon, 17 Nov 2008 14:31:23 +0000 (14:31 +0000)]
Do not mangle restrict qualifiers.

[r23731]

15 years agoHandle mangling of anonymous types, which only have a typedef name.
Christoph Mallon [Mon, 17 Nov 2008 12:06:25 +0000 (12:06 +0000)]
Handle mangling of anonymous types, which only have a typedef name.

[r23726]

15 years agoFix off-by-one error in error message.
Christoph Mallon [Mon, 17 Nov 2008 11:04:20 +0000 (11:04 +0000)]
Fix off-by-one error in error message.

[r23725]

15 years agoRemove pointless assert().
Christoph Mallon [Mon, 17 Nov 2008 11:01:55 +0000 (11:01 +0000)]
Remove pointless assert().

[r23724]

15 years agoIndentation and stuff.
Christoph Mallon [Mon, 17 Nov 2008 10:59:41 +0000 (10:59 +0000)]
Indentation and stuff.

[r23723]

15 years agoMerge semantic_compound() into parse_compound_declarators().
Christoph Mallon [Mon, 17 Nov 2008 10:53:01 +0000 (10:53 +0000)]
Merge semantic_compound() into parse_compound_declarators().

[r23722]

15 years agoCompound types are incomplete until the }.
Christoph Mallon [Mon, 17 Nov 2008 10:34:26 +0000 (10:34 +0000)]
Compound types are incomplete until the }.

[r23721]

15 years agos/puts("")/putchar(n)/.
Christoph Mallon [Mon, 17 Nov 2008 10:22:34 +0000 (10:22 +0000)]
s/puts("")/putchar(n)/.

[r23720]

15 years agoImprove r23717, because it broke non-WIN32 (cpp is unhappy about -DNAME= and DEFN...
Christoph Mallon [Mon, 17 Nov 2008 09:08:27 +0000 (09:08 +0000)]
Improve r23717, because it broke non-WIN32 (cpp is unhappy about -DNAME= and DEFN as separate parameters) and further there are more add_flag() which may contain spaces.

[r23719]

15 years ago- parsing of __based implemented (more semantic in assignment might be needed)
Michael Beck [Mon, 17 Nov 2008 01:14:41 +0000 (01:14 +0000)]
- parsing of __based implemented (more semantic in assignment might be needed)

[r23718]

15 years ago- windows does not handle \_, use quotes
Michael Beck [Mon, 17 Nov 2008 00:52:48 +0000 (00:52 +0000)]
- windows does not handle \_, use quotes
- fixed if( style

[r23717]

15 years agokeep it simple and stupid: cast to unsigned instead of messing around with SIZET_FMT...
Matthias Braun [Sun, 16 Nov 2008 23:16:20 +0000 (23:16 +0000)]
keep it simple and stupid: cast to unsigned instead of messing around with SIZET_FMT define

[r23715]

15 years ago- %zu is not supported on windows
Michael Beck [Sun, 16 Nov 2008 22:35:01 +0000 (22:35 +0000)]
- %zu is not supported on windows
- kicked some obstack_printf()

[r23714]

15 years agoImplement mangling of complex and imaginary types.
Christoph Mallon [Sun, 16 Nov 2008 15:47:06 +0000 (15:47 +0000)]
Implement mangling of complex and imaginary types.

[r23713]

15 years agoPartially implement mangling of array types.
Christoph Mallon [Sun, 16 Nov 2008 15:39:27 +0000 (15:39 +0000)]
Partially implement mangling of array types.

[r23712]

15 years agoPartially implement mangling of enum types.
Christoph Mallon [Sun, 16 Nov 2008 14:43:26 +0000 (14:43 +0000)]
Partially implement mangling of enum types.

[r23711]

15 years agoPartially implement mangling of compound types.
Christoph Mallon [Sun, 16 Nov 2008 14:30:09 +0000 (14:30 +0000)]
Partially implement mangling of compound types.

[r23710]

15 years agoProcess calling convention attributes again.
Christoph Mallon [Sun, 16 Nov 2008 12:07:09 +0000 (12:07 +0000)]
Process calling convention attributes again.

[r23709]

15 years agoRemove wrong \n.
Christoph Mallon [Sun, 16 Nov 2008 11:45:53 +0000 (11:45 +0000)]
Remove wrong \n.

[r23708]

15 years agoMove local variable declaration closer to its use.
Christoph Mallon [Sun, 16 Nov 2008 11:06:01 +0000 (11:06 +0000)]
Move local variable declaration closer to its use.

[r23707]

15 years agoFix condition of multi-char constant warning.
Christoph Mallon [Sun, 16 Nov 2008 10:36:19 +0000 (10:36 +0000)]
Fix condition of multi-char constant warning.

[r23706]

15 years agoFix r23702 and r23704.
Christoph Mallon [Sun, 16 Nov 2008 10:30:35 +0000 (10:30 +0000)]
Fix r23702 and r23704.

[r23705]

15 years agoSlightly simplify daisy chaining gotos.
Christoph Mallon [Sun, 16 Nov 2008 10:25:16 +0000 (10:25 +0000)]
Slightly simplify daisy chaining gotos.

[r23704]

15 years agoFix comment.
Christoph Mallon [Sun, 16 Nov 2008 10:21:42 +0000 (10:21 +0000)]
Fix comment.

[r23703]

15 years agoSlightly simplify daisy chaining labels.
Christoph Mallon [Sun, 16 Nov 2008 10:18:45 +0000 (10:18 +0000)]
Slightly simplify daisy chaining labels.

[r23702]

15 years agoSlightly simplify daisy chaining in parse_asm_arguments().
Christoph Mallon [Sun, 16 Nov 2008 09:59:42 +0000 (09:59 +0000)]
Slightly simplify daisy chaining in parse_asm_arguments().

[r23701]