cparser
15 years agoRemove two unnecessary return;.
Christoph Mallon [Tue, 9 Dec 2008 10:24:21 +0000 (10:24 +0000)]
Remove two unnecessary return;.

[r24445]

15 years agoAdd one more case to -Wparentheses: x + y << z.
Christoph Mallon [Tue, 9 Dec 2008 10:23:32 +0000 (10:23 +0000)]
Add one more case to -Wparentheses: x + y << z.

[r24444]

15 years agomore stuff lying around here
Matthias Braun [Tue, 9 Dec 2008 08:32:50 +0000 (08:32 +0000)]
more stuff lying around here

[r24437]

15 years agoadapt to latest firm changes
Matthias Braun [Tue, 9 Dec 2008 08:05:13 +0000 (08:05 +0000)]
adapt to latest firm changes

[r24435]

15 years agoadapt for latest firm changes
Matthias Braun [Tue, 9 Dec 2008 07:57:24 +0000 (07:57 +0000)]
adapt for latest firm changes

[r24431]

15 years agofix warning
Matthias Braun [Tue, 9 Dec 2008 07:53:51 +0000 (07:53 +0000)]
fix warning

[r24427]

15 years agoRemove dead variable initialisation.
Christoph Mallon [Tue, 9 Dec 2008 07:51:19 +0000 (07:51 +0000)]
Remove dead variable initialisation.

[r24426]

15 years agodo NOT add default: cases to enum switches
Matthias Braun [Tue, 9 Dec 2008 07:42:37 +0000 (07:42 +0000)]
do NOT add default: cases to enum switches

[r24425]

15 years agouse C linkage for implicit functions
Matthias Braun [Tue, 9 Dec 2008 07:36:14 +0000 (07:36 +0000)]
use C linkage for implicit functions

[r24424]

15 years ago- removed unused immediate fp mode
Michael Beck [Mon, 8 Dec 2008 23:38:09 +0000 (23:38 +0000)]
- removed unused immediate fp mode

[r24421]

15 years agoResolved some uninitialized variable warnings
Moritz Kroll [Mon, 8 Dec 2008 23:29:59 +0000 (23:29 +0000)]
Resolved some uninitialized variable warnings

[r24420]

15 years agoCompiles now with Cygwin, if -Werror is disabled in Makefile
Moritz Kroll [Mon, 8 Dec 2008 22:30:29 +0000 (22:30 +0000)]
Compiles now with Cygwin, if -Werror is disabled in Makefile

[r24415]

15 years agoFixed name mangling of implicitly declared functions (especially on Win32)
Moritz Kroll [Mon, 8 Dec 2008 20:44:13 +0000 (20:44 +0000)]
Fixed name mangling of implicitly declared functions (especially on Win32)

[r24408]

15 years agoRemove trailing \n from panic messages.
Christoph Mallon [Mon, 8 Dec 2008 20:40:13 +0000 (20:40 +0000)]
Remove trailing \n from panic messages.

[r24407]

15 years agoAdapted tokens.inc for Cygwin and MinGW
Moritz Kroll [Mon, 8 Dec 2008 14:53:27 +0000 (14:53 +0000)]
Adapted tokens.inc for Cygwin and MinGW

[r24401]

15 years agoMap a few more GCC builtin functions to libc equivalents.
Christoph Mallon [Mon, 8 Dec 2008 12:42:42 +0000 (12:42 +0000)]
Map a few more GCC builtin functions to libc equivalents.

[r24396]

15 years agoRepair L"a" "b" concatenation.
Christoph Mallon [Mon, 8 Dec 2008 12:41:46 +0000 (12:41 +0000)]
Repair L"a" "b" concatenation.

[r24395]

15 years ago- Repair evaluating && with constant left hand side with value 0
Christoph Mallon [Mon, 8 Dec 2008 12:27:26 +0000 (12:27 +0000)]
- Repair evaluating && with constant left hand side with value 0
- Try to constant fold the right hand side of && and ||, if the left hand side is constant.

[r24393]

15 years agoRemove false_block != NULL tests, which never can be false.
Christoph Mallon [Mon, 8 Dec 2008 11:57:29 +0000 (11:57 +0000)]
Remove false_block != NULL tests, which never can be false.

[r24390]

15 years agoImprove error recovery, if the : of a ?: operator is missing.
Christoph Mallon [Mon, 8 Dec 2008 11:11:44 +0000 (11:11 +0000)]
Improve error recovery, if the : of a ?: operator is missing.

[r24388]

15 years agoAllow sizeof(void) and __alignof__(void) as GCC extension.
Christoph Mallon [Mon, 8 Dec 2008 09:33:32 +0000 (09:33 +0000)]
Allow sizeof(void) and __alignof__(void) as GCC extension.

[r24386]

15 years agoStore an unsigned char in the current lexer character buffer ("c") to avoid confusion...
Christoph Mallon [Mon, 8 Dec 2008 08:50:33 +0000 (08:50 +0000)]
Store an unsigned char in the current lexer character buffer ("c") to avoid confusion with EOF.

[r24384]

15 years ago"Support" more GCC builtin functions, i.e. tell the preprocessor to map them to their...
Christoph Mallon [Mon, 8 Dec 2008 08:21:37 +0000 (08:21 +0000)]
"Support" more GCC builtin functions, i.e. tell the preprocessor to map them to their libc equivalents.

[r24383]

15 years agoCorrectly print octal escape sequences, when the char has negative value.
Christoph Mallon [Mon, 8 Dec 2008 08:19:48 +0000 (08:19 +0000)]
Correctly print octal escape sequences, when the char has negative value.

[r24382]

15 years agoEvaluate the argument of va_end for its side effects.
Christoph Mallon [Sun, 7 Dec 2008 21:59:41 +0000 (21:59 +0000)]
Evaluate the argument of va_end for its side effects.

[r24379]

15 years agoCompound literals are lvalues.
Christoph Mallon [Sun, 7 Dec 2008 21:20:55 +0000 (21:20 +0000)]
Compound literals are lvalues.

[r24378]

15 years agoSlightly change whitespace when printing for-statements.
Christoph Mallon [Sun, 7 Dec 2008 17:35:19 +0000 (17:35 +0000)]
Slightly change whitespace when printing for-statements.

[r24376]

15 years agoImplement -Wparentheses.
Christoph Mallon [Sun, 7 Dec 2008 16:57:27 +0000 (16:57 +0000)]
Implement -Wparentheses.

[r24375]

15 years ago- select_addr() must create an constant in constant-folfing mode
Michael Beck [Sun, 7 Dec 2008 13:47:09 +0000 (13:47 +0000)]
- select_addr() must create an constant in constant-folfing mode

[r24373]

15 years ago- fixed assertiton (used ENTIFY_PARAMETER yet)
Michael Beck [Sun, 7 Dec 2008 13:23:02 +0000 (13:23 +0000)]
- fixed assertiton (used ENTIFY_PARAMETER yet)
- add missing skip_typeref()

[r24372]

15 years ago| needs to be escaped, too.
Christoph Mallon [Sat, 6 Dec 2008 18:31:55 +0000 (18:31 +0000)]
| needs to be escaped, too.

[r24361]

15 years agoAdd partial support for C++ wchar_t.
Christoph Mallon [Sat, 6 Dec 2008 15:44:46 +0000 (15:44 +0000)]
Add partial support for C++ wchar_t.

[r24354]

15 years agoPrint scalar initialisers as assignment expressions instead of plain expressions...
Christoph Mallon [Fri, 5 Dec 2008 11:02:58 +0000 (11:02 +0000)]
Print scalar initialisers as assignment expressions instead of plain expressions, so expressions using the comma operator get parenthesized properly.

[r24315]

15 years agoAdd print_assignment_expression() as shortcut for print_expression_prec(expr, PREC_AS...
Christoph Mallon [Fri, 5 Dec 2008 10:59:17 +0000 (10:59 +0000)]
Add print_assignment_expression() as shortcut for print_expression_prec(expr, PREC_ASSIGNMENT).

[r24314]

15 years agoOne more declaration-with-no-declarators-null-pointer fix.
Christoph Mallon [Fri, 5 Dec 2008 10:43:19 +0000 (10:43 +0000)]
One more declaration-with-no-declarators-null-pointer fix.

[r24313]

15 years agoSimplify array_access_addr() by using adjust_for_pointer_arithmetic().
Christoph Mallon [Thu, 4 Dec 2008 11:13:21 +0000 (11:13 +0000)]
Simplify array_access_addr() by using adjust_for_pointer_arithmetic().

[r24287]

15 years agoConvert the value before taking the shortcut in adjust_for_pointer_arithmetic(),...
Christoph Mallon [Thu, 4 Dec 2008 10:51:54 +0000 (10:51 +0000)]
Convert the value before taking the shortcut in adjust_for_pointer_arithmetic(), so doing pointer arithmetic with char* and a long long offset works.
PR: #0000008

[r24286]

15 years agoremove output in error case
Matthias Braun [Wed, 3 Dec 2008 22:07:52 +0000 (22:07 +0000)]
remove output in error case

[r24280]

15 years agoAccept the undocumented GCC extension escape sequence \E and treat it the same way...
Christoph Mallon [Wed, 3 Dec 2008 21:26:26 +0000 (21:26 +0000)]
Accept the undocumented GCC extension escape sequence \E and treat it the same way as \e.

[r24276]

15 years agoRepair semantic of return-statements for C and implement them for C++.
Christoph Mallon [Wed, 3 Dec 2008 21:00:43 +0000 (21:00 +0000)]
Repair semantic of return-statements for C and implement them for C++.

[r24274]

15 years agoIndentation.
Christoph Mallon [Wed, 3 Dec 2008 11:28:37 +0000 (11:28 +0000)]
Indentation.

[r24255]

15 years agoProperly print parameters, which have no type (identifier lists).
Christoph Mallon [Wed, 3 Dec 2008 10:34:32 +0000 (10:34 +0000)]
Properly print parameters, which have no type (identifier lists).

[r24251]

15 years agoParameter identifier lists are no prototypes.
Christoph Mallon [Wed, 3 Dec 2008 10:34:00 +0000 (10:34 +0000)]
Parameter identifier lists are no prototypes.

[r24250]

15 years agoWhen parsing k&r parameter identifier lists, do not add the entities to the scope...
Christoph Mallon [Wed, 3 Dec 2008 09:23:24 +0000 (09:23 +0000)]
When parsing k&r parameter identifier lists, do not add the entities to the scope, if we have none.  This happens for inner declarators.

[r24249]

15 years agoBefore setting volatility, check that FIRM did not give us a Bad.
Christoph Mallon [Wed, 3 Dec 2008 08:57:19 +0000 (08:57 +0000)]
Before setting volatility, check that FIRM did not give us a Bad.

[r24248]

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]