cparser
15 years agocreate mode from cparser type not from ir_nodes which could have become Bads already
Matthias Braun [Wed, 3 Dec 2008 08:47:24 +0000 (08:47 +0000)]
create mode from cparser type not from ir_nodes which could have become Bads already

[r24246]

15 years agofix bad construction of logical binops with constant left side
Matthias Braun [Wed, 3 Dec 2008 08:33:32 +0000 (08:33 +0000)]
fix bad construction of logical binops with constant left side

[r24245]

15 years agospecify error label for expect macro, fix wrong anchor set when parsing for;
Matthias Braun [Wed, 3 Dec 2008 08:25:04 +0000 (08:25 +0000)]
specify error label for expect macro, fix wrong anchor set when parsing for;

[r24243]

15 years agoRemove incorrect assertion. It is perfectly valid for the size expression of a VLA...
Christoph Mallon [Wed, 3 Dec 2008 07:07:49 +0000 (07:07 +0000)]
Remove incorrect assertion. It is perfectly valid for the size expression of a VLA to be a constant after transforming into IR (though not a constant expression in the C sense).

[r24242]

15 years agoAdhere §6.7.6:2 footnote 126: Empty parentheses in a type name are interpreted as...
Christoph Mallon [Tue, 2 Dec 2008 22:29:52 +0000 (22:29 +0000)]
Adhere §6.7.6:2 footnote 126:  Empty parentheses in a type name are interpreted as ``function with no parameter specification, rather than redundant parentheses around the omitted identifier.

[r24237]

15 years agoC++ operator can be at the start of a statement, too.
Christoph Mallon [Tue, 2 Dec 2008 15:22:24 +0000 (15:22 +0000)]
C++ operator can be at the start of a statement, too.

[r24227]

15 years agoUpdate comment.
Christoph Mallon [Tue, 2 Dec 2008 15:03:45 +0000 (15:03 +0000)]
Update comment.

[r24226]

15 years agoAdd C++ tokens to the anchors in parse_compound_statement().
Christoph Mallon [Tue, 2 Dec 2008 15:03:04 +0000 (15:03 +0000)]
Add C++ tokens to the anchors in parse_compound_statement().

[r24225]

15 years agoDo not unnecessarily throw away typedef information when parsing parameters.
Christoph Mallon [Tue, 2 Dec 2008 14:30:40 +0000 (14:30 +0000)]
Do not unnecessarily throw away typedef information when parsing parameters.

[r24222]

15 years agoAdd billions and billions of anchors to parse_compound_statement().
Christoph Mallon [Tue, 2 Dec 2008 14:17:12 +0000 (14:17 +0000)]
Add billions and billions of anchors to parse_compound_statement().

[r24220]

15 years agoDo not print a space in a return statement, which has no expression.
Christoph Mallon [Tue, 2 Dec 2008 14:02:43 +0000 (14:02 +0000)]
Do not print a space in a return statement, which has no expression.

[r24219]

15 years agoBuild AST, even if the select expression (->) is invalid.
Christoph Mallon [Tue, 2 Dec 2008 13:00:49 +0000 (13:00 +0000)]
Build AST, even if the select expression (->) is invalid.

[r24217]

15 years agoadd manpage to release
Matthias Braun [Mon, 1 Dec 2008 18:00:17 +0000 (18:00 +0000)]
add manpage to release

[r24206]

15 years agoincrement version for next release
Matthias Braun [Mon, 1 Dec 2008 17:23:02 +0000 (17:23 +0000)]
increment version for next release

[r24195]

15 years agoincrement version number for release
Matthias Braun [Mon, 1 Dec 2008 17:22:29 +0000 (17:22 +0000)]
increment version number for release

[r24194]

15 years agouse american style date
Matthias Braun [Mon, 1 Dec 2008 12:45:42 +0000 (12:45 +0000)]
use american style date

[r24183]

15 years agowe have a bugtracker
Matthias Braun [Mon, 1 Dec 2008 12:06:42 +0000 (12:06 +0000)]
we have a bugtracker

[r24181]

15 years agocall symbols identifiers in error messages
Matthias Braun [Mon, 1 Dec 2008 12:06:34 +0000 (12:06 +0000)]
call symbols identifiers in error messages

[r24180]

15 years agoUpdate NEWS.
Christoph Mallon [Mon, 1 Dec 2008 11:40:30 +0000 (11:40 +0000)]
Update NEWS.

[r24177]

15 years agoOnly warn about a superfluous "packed" attribute for a struct, if it was actually...
Christoph Mallon [Sun, 30 Nov 2008 14:28:44 +0000 (14:28 +0000)]
Only warn about a superfluous "packed" attribute for a struct, if it was actually specified.

[r24161]

15 years agoDo not show typedefs, which were created for error correction, in the printed AST.
Christoph Mallon [Sun, 30 Nov 2008 14:23:35 +0000 (14:23 +0000)]
Do not show typedefs, which were created for error correction, in the printed AST.

[r24160]

15 years agoRemove wrong symbol from warning messages.
Christoph Mallon [Sun, 30 Nov 2008 14:16:26 +0000 (14:16 +0000)]
Remove wrong symbol from warning messages.

[r24159]

15 years agoUse quotes more consistently in error and warning messages.
Christoph Mallon [Sun, 30 Nov 2008 14:11:03 +0000 (14:11 +0000)]
Use quotes more consistently in error and warning messages.

[r24158]

15 years agoFix typo, document -Wl, and -Wp,.
Christoph Mallon [Sun, 30 Nov 2008 13:56:42 +0000 (13:56 +0000)]
Fix typo, document -Wl, and -Wp,.

[r24157]

15 years agoImplement (and document \o/) -Werror-implicit-function-declaration.
Christoph Mallon [Sun, 30 Nov 2008 08:10:59 +0000 (08:10 +0000)]
Implement (and document \o/) -Werror-implicit-function-declaration.

[r24155]

15 years agoDocument some more switches.
Christoph Mallon [Sun, 30 Nov 2008 07:57:28 +0000 (07:57 +0000)]
Document some more switches.

[r24154]

15 years agoStart writing a manpage for cparser.
Christoph Mallon [Sat, 29 Nov 2008 22:14:42 +0000 (22:14 +0000)]
Start writing a manpage for cparser.

[r24151]

15 years agoResolve another null pointer access.
Christoph Mallon [Sat, 29 Nov 2008 15:24:29 +0000 (15:24 +0000)]
Resolve another null pointer access.

[r24143]

15 years agoResolve several null pointer accesses, when encountering empty declaration statements.
Christoph Mallon [Sat, 29 Nov 2008 15:06:45 +0000 (15:06 +0000)]
Resolve several null pointer accesses, when encountering empty declaration statements.

[r24142]

15 years agoImprove warning message, when there are too few format specifiers.
Christoph Mallon [Sat, 29 Nov 2008 09:58:53 +0000 (09:58 +0000)]
Improve warning message, when there are too few format specifiers.

[r24137]

15 years agoSay '\0' instead of NUL in warning messages.
Christoph Mallon [Sat, 29 Nov 2008 09:57:37 +0000 (09:57 +0000)]
Say '\0' instead of NUL in warning messages.

[r24136]

15 years agoUse fprintf and %lc to output a wchar_t.
Christoph Mallon [Sat, 29 Nov 2008 09:11:07 +0000 (09:11 +0000)]
Use fprintf and %lc to output a wchar_t.

[r24135]

15 years agoRevert r24133.
Christoph Mallon [Sat, 29 Nov 2008 09:09:00 +0000 (09:09 +0000)]
Revert r24133.

[r24134]

15 years ago- Mixing wchar and normal output is forbidden by the C standard
Matthias Braun [Sat, 29 Nov 2008 09:03:11 +0000 (09:03 +0000)]
- Mixing wchar and normal output is forbidden by the C standard
   (and fails on linux but not on BSD)

[r24133]

15 years agoAvoid null pointer access in the format string checker when an unknown format specifi...
Christoph Mallon [Sat, 29 Nov 2008 08:39:36 +0000 (08:39 +0000)]
Avoid null pointer access in the format string checker when an unknown format specifier ist encountered and there is no further argument.

[r24132]

15 years agoarg might be NULL
Matthias Braun [Sat, 29 Nov 2008 08:13:14 +0000 (08:13 +0000)]
arg might be NULL

[r24130]

15 years agonewer gcc need filetype for preprocessing .s apparently
Matthias Braun [Fri, 28 Nov 2008 13:13:08 +0000 (13:13 +0000)]
newer gcc need filetype for preprocessing .s apparently

[r24115]

15 years agoarch_op is no more
Matthias Braun [Fri, 28 Nov 2008 12:47:17 +0000 (12:47 +0000)]
arch_op is no more

[r24114]

15 years agoimprove token display
Matthias Braun [Fri, 28 Nov 2008 12:01:08 +0000 (12:01 +0000)]
improve token display

[r24106]

15 years agoI give up with modulo shift - doing the right thing is not compatible with firm at...
Matthias Braun [Fri, 28 Nov 2008 11:48:50 +0000 (11:48 +0000)]
I give up with modulo shift - doing the right thing is not compatible with firm at the moment :-(

[r24105]

15 years agoEscape ;, too. Sort.
Christoph Mallon [Fri, 28 Nov 2008 10:32:47 +0000 (10:32 +0000)]
Escape ;, too. Sort.

[r24102]

15 years agomore gcc compatibility flags
Matthias Braun [Fri, 28 Nov 2008 10:21:43 +0000 (10:21 +0000)]
more gcc compatibility flags

[r24101]

15 years agoimplement -print-file-name
Matthias Braun [Fri, 28 Nov 2008 09:58:35 +0000 (09:58 +0000)]
implement -print-file-name

[r24100]

15 years agomore escaping needed
Matthias Braun [Fri, 28 Nov 2008 09:43:56 +0000 (09:43 +0000)]
more escaping needed

[r24099]

15 years agocrude implementation of -Wp
Matthias Braun [Fri, 28 Nov 2008 09:40:47 +0000 (09:40 +0000)]
crude implementation of -Wp

[r24098]

15 years agoUse fputs/fputc where appropriate.
Christoph Mallon [Fri, 28 Nov 2008 07:31:30 +0000 (07:31 +0000)]
Use fputs/fputc where appropriate.

[r24096]

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]