cparser
15 years ago?: with omitted true-expression needs special handling if the condition ends in a...
Christoph Mallon [Sun, 21 Dec 2008 18:25:56 +0000 (18:25 +0000)]
?: with omitted true-expression needs special handling if the condition ends in a comparison, too.

[r24843]

15 years agoImplement -Wshadow.
Christoph Mallon [Sun, 21 Dec 2008 18:02:44 +0000 (18:02 +0000)]
Implement -Wshadow.

[r24841]

15 years agoHandle pointer arithmetic with variable sized types in ast2firm.
Christoph Mallon [Sun, 21 Dec 2008 17:57:03 +0000 (17:57 +0000)]
Handle pointer arithmetic with variable sized types in ast2firm.

[r24840]

15 years agoUnify the form of references to the standard.
Christoph Mallon [Sun, 21 Dec 2008 17:04:37 +0000 (17:04 +0000)]
Unify the form of references to the standard.

[r24839]

15 years agoBetter show something (syntactically invalid) when printing a for-statement with...
Christoph Mallon [Sun, 21 Dec 2008 16:54:16 +0000 (16:54 +0000)]
Better show something (syntactically invalid) when printing a for-statement with multiple declarations instead of panic()ing.

[r24838]

15 years ago- implemented __builtin_prefetch()
Michael Beck [Sun, 21 Dec 2008 14:54:46 +0000 (14:54 +0000)]
- implemented __builtin_prefetch()
- __builtin_prefetch is now a builtin_symbol

[r24836]

15 years ago- some commnets
Michael Beck [Sun, 21 Dec 2008 14:17:16 +0000 (14:17 +0000)]
- some commnets

[r24834]

15 years agoRemove two redundant get_dbg_info() which were found while implementing -Wshadow.
Christoph Mallon [Sun, 21 Dec 2008 13:08:21 +0000 (13:08 +0000)]
Remove two redundant get_dbg_info() which were found while implementing -Wshadow.

[r24827]

15 years agoAvoid double parentheses when AST printing sizeof expressions.
Christoph Mallon [Sun, 21 Dec 2008 13:06:37 +0000 (13:06 +0000)]
Avoid double parentheses when AST printing sizeof expressions.

[r24826]

15 years ago- implement builtin_(frame|return)_address() firm representation using Builtin nodes
Michael Beck [Thu, 18 Dec 2008 18:34:49 +0000 (18:34 +0000)]
- implement builtin_(frame|return)_address() firm representation using Builtin nodes

[r24795]

15 years agoUse revert_automatic_type_conversion() to determine the type of typeof().
Christoph Mallon [Thu, 18 Dec 2008 13:05:10 +0000 (13:05 +0000)]
Use revert_automatic_type_conversion() to determine the type of typeof().

[r24780]

15 years agotypeof() always has a type set, so there is no need to access the expression.
Christoph Mallon [Thu, 18 Dec 2008 13:04:41 +0000 (13:04 +0000)]
typeof() always has a type set, so there is no need to access the expression.

[r24779]

15 years agoImplement __builtin_types_compatible_p().
Christoph Mallon [Thu, 18 Dec 2008 12:04:54 +0000 (12:04 +0000)]
Implement __builtin_types_compatible_p().

[r24777]

15 years agoIndentation.
Christoph Mallon [Thu, 18 Dec 2008 11:09:08 +0000 (11:09 +0000)]
Indentation.

[r24775]

15 years agoSkip non-parameter entities in parameter lists. This happens when a struct/union...
Christoph Mallon [Thu, 18 Dec 2008 11:08:32 +0000 (11:08 +0000)]
Skip non-parameter entities in parameter lists. This happens when a struct/union tag is declared in a parameter list.

[r24774]

15 years ago- reimplemented __builtin_frame_address() and __builtin_return_address() as a builtin...
Michael Beck [Thu, 18 Dec 2008 10:53:43 +0000 (10:53 +0000)]
- reimplemented __builtin_frame_address() and __builtin_return_address() as a builtin_symbol
- generate code for __builtin_frame_address(0)

[r24773]

15 years agoMerge common cases in print_entity().
Christoph Mallon [Thu, 18 Dec 2008 10:51:05 +0000 (10:51 +0000)]
Merge common cases in print_entity().

[r24772]

15 years agoTwo places did not respect, that the true expression of ?: may be missing.
Christoph Mallon [Thu, 18 Dec 2008 08:08:17 +0000 (08:08 +0000)]
Two places did not respect, that the true expression of ?: may be missing.

[r24768]

15 years agoAdd some more bits for EXPR_BUILTIN_ADDRESS.
Christoph Mallon [Thu, 18 Dec 2008 07:50:38 +0000 (07:50 +0000)]
Add some more bits for EXPR_BUILTIN_ADDRESS.

[r24767]

15 years ago- implemented __builtin_(return|frame)_address() FE support
Michael Beck [Wed, 17 Dec 2008 23:46:51 +0000 (23:46 +0000)]
- implemented __builtin_(return|frame)_address() FE support
- fixed some warnings

[r24764]

15 years ago- Win32 has no strings.h
Michael Beck [Wed, 17 Dec 2008 23:18:57 +0000 (23:18 +0000)]
- Win32 has no strings.h

[r24763]

15 years agoSlightly simplify traversing declaration lists.
Christoph Mallon [Wed, 17 Dec 2008 13:46:03 +0000 (13:46 +0000)]
Slightly simplify traversing declaration lists.

[r24750]

15 years agoDo not set a non-null last declaration for a declaration statement, if the declaratio...
Christoph Mallon [Wed, 17 Dec 2008 13:33:15 +0000 (13:33 +0000)]
Do not set a non-null last declaration for a declaration statement, if the declaration statement ist empty.

[r24749]

15 years agoImprove the AST a little: Overwrite the type of a function at the definition in case...
Christoph Mallon [Wed, 17 Dec 2008 10:44:48 +0000 (10:44 +0000)]
Improve the AST a little: Overwrite the type of a function at the definition in case the previous declaration used a typedef.

[r24747]

15 years agoDo not emit an error about different entity kinds for the same symbol, if error entit...
Christoph Mallon [Wed, 17 Dec 2008 10:30:18 +0000 (10:30 +0000)]
Do not emit an error about different entity kinds for the same symbol, if error entities are involved.

[r24746]

15 years agoDo not change the local prev_type in record_entity(). The warning about missing...
Christoph Mallon [Wed, 17 Dec 2008 09:09:34 +0000 (09:09 +0000)]
Do not change the local prev_type in record_entity().  The warning about missing prior prototypes is missing otherwise.

[r24744]

15 years agoPut { of function on separate line.
Christoph Mallon [Wed, 17 Dec 2008 08:26:26 +0000 (08:26 +0000)]
Put { of function on separate line.

[r24740]

15 years agoLength 1 for global int x[]; is actually required by the standard!
Christoph Mallon [Wed, 17 Dec 2008 07:53:51 +0000 (07:53 +0000)]
Length 1 for global int x[]; is actually required by the standard!

[r24739]

15 years agoAdd the macro lengthof().
Christoph Mallon [Wed, 17 Dec 2008 07:52:22 +0000 (07:52 +0000)]
Add the macro lengthof().

[r24738]

15 years agoSLL(3) is too much, SLL(2) is sufficient.
Christoph Mallon [Tue, 16 Dec 2008 23:26:26 +0000 (23:26 +0000)]
SLL(3) is too much, SLL(2) is sufficient.

[r24736]

15 years agoSmall cleanup.
Christoph Mallon [Tue, 16 Dec 2008 23:20:36 +0000 (23:20 +0000)]
Small cleanup.

[r24735]

15 years agoFix stupid error in r24659.
Christoph Mallon [Tue, 16 Dec 2008 21:30:07 +0000 (21:30 +0000)]
Fix stupid error in r24659.

[r24733]

15 years agoAdd a skip_typeref(). In case of error a typedef could end up there.
Christoph Mallon [Tue, 16 Dec 2008 19:04:14 +0000 (19:04 +0000)]
Add a skip_typeref().  In case of error a typedef could end up there.

[r24730]

15 years agoRestore error check lost in r23661: The type of a function definition must not be...
Christoph Mallon [Tue, 16 Dec 2008 19:00:20 +0000 (19:00 +0000)]
Restore error check lost in r23661: The type of a function definition must not be a typedef.

[r24729]

15 years agoSort.
Christoph Mallon [Tue, 16 Dec 2008 18:57:09 +0000 (18:57 +0000)]
Sort.

[r24728]

15 years agoDo not consider alignment in the type hash. It is just wrong.
Christoph Mallon [Tue, 16 Dec 2008 14:41:19 +0000 (14:41 +0000)]
Do not consider alignment in the type hash.  It is just wrong.

[r24718]

15 years agoFix calculation of the value of multi-character character constants in signed char...
Christoph Mallon [Tue, 16 Dec 2008 11:19:57 +0000 (11:19 +0000)]
Fix calculation of the value of multi-character character constants in signed char mode.

[r24710]

15 years agoAdd (harmless) missing else.
Christoph Mallon [Tue, 16 Dec 2008 11:18:33 +0000 (11:18 +0000)]
Add (harmless) missing else.

[r24709]

15 years agoTypo.
Christoph Mallon [Tue, 16 Dec 2008 10:08:02 +0000 (10:08 +0000)]
Typo.

[r24708]

15 years agoUse .Sq instead of ''.
Christoph Mallon [Mon, 15 Dec 2008 23:56:27 +0000 (23:56 +0000)]
Use .Sq instead of ''.

[r24701]

15 years agoRename --{,un}sigend-chars to -f{,un}signed-char and document them in the manpage.
Christoph Mallon [Mon, 15 Dec 2008 23:43:04 +0000 (23:43 +0000)]
Rename --{,un}sigend-chars to -f{,un}signed-char and document them in the manpage.

[r24700]

15 years agoBetter check for is_Cond() instead of !is_Bad(): The Cond could have become a Tuple...
Christoph Mallon [Mon, 15 Dec 2008 22:59:51 +0000 (22:59 +0000)]
Better check for is_Cond() instead of !is_Bad(): The Cond could have become a Tuple, too.

[r24699]

15 years agoBefore setting branch prediction info for a Cond, make sure it is not Bad.
Christoph Mallon [Mon, 15 Dec 2008 22:56:22 +0000 (22:56 +0000)]
Before setting branch prediction info for a Cond, make sure it is not Bad.

[r24698]

15 years agoWhen automatically generating a target filename, place it in the current directory...
Christoph Mallon [Mon, 15 Dec 2008 21:07:33 +0000 (21:07 +0000)]
When automatically generating a target filename, place it in the current directory instead of the directory of the source file.  Also resolve the existing bug, that the file is placed in the wrong directory with the wrong name in case that the filename has no suffix, but a directory name contains a dot.
PR: #0000024

[r24696]

15 years agoInclude missing header.
Christoph Mallon [Mon, 15 Dec 2008 19:09:07 +0000 (19:09 +0000)]
Include missing header.

[r24695]

15 years agoDo not create bogus wide char initializer from char string, i.e. add missing break;.
Christoph Mallon [Mon, 15 Dec 2008 14:36:54 +0000 (14:36 +0000)]
Do not create bogus wide char initializer from char string, i.e. add missing break;.

[r24690]

15 years agoFix minor bug in UTF-8 decoder when handling partly decoded chars.
Christoph Mallon [Mon, 15 Dec 2008 14:19:54 +0000 (14:19 +0000)]
Fix minor bug in UTF-8 decoder when handling partly decoded chars.

[r24689]

15 years agoDo not crash on alignof($TYPE).
Christoph Mallon [Mon, 15 Dec 2008 13:12:34 +0000 (13:12 +0000)]
Do not crash on alignof($TYPE).

[r24688]

15 years agoMake the input encoding selectable via −finput‐charset=. Currently suported are...
Christoph Mallon [Mon, 15 Dec 2008 12:58:02 +0000 (12:58 +0000)]
Make the input encoding selectable via −finput‐charset=.  Currently suported are ISO-8859-1, ISO-8859-15 and UTF-8.  The default is UTF-8 now (was ISO-8859-1).

[r24686]

15 years ago- renamed cons_flags to ir_cons_flags
Michael Beck [Mon, 15 Dec 2008 12:22:47 +0000 (12:22 +0000)]
- renamed cons_flags to ir_cons_flags

[r24682]

15 years agofix stupid memory error
Matthias Braun [Mon, 15 Dec 2008 09:28:29 +0000 (09:28 +0000)]
fix stupid memory error

[r24679]

15 years agofixed __alignof__ construction, always build constants on const_code_irg
Matthias Braun [Sun, 14 Dec 2008 11:54:04 +0000 (11:54 +0000)]
fixed __alignof__ construction, always build constants on const_code_irg

[r24663]

15 years agoUse identify_new_type() instead of duplicating it.
Christoph Mallon [Sun, 14 Dec 2008 11:09:23 +0000 (11:09 +0000)]
Use identify_new_type() instead of duplicating it.

[r24659]

15 years ago- change enum to have an underlying atomic type
Matthias Braun [Sun, 14 Dec 2008 11:05:39 +0000 (11:05 +0000)]
- change enum to have an underlying atomic type
- improve handling of mode attribute a bit

[r24658]

15 years agoAdjusted for latest firm
Moritz Kroll [Sun, 14 Dec 2008 10:54:37 +0000 (10:54 +0000)]
Adjusted for latest firm

[r24657]

15 years agoSimplify eat() macro.
Christoph Mallon [Sun, 14 Dec 2008 10:42:40 +0000 (10:42 +0000)]
Simplify eat() macro.

[r24653]

15 years agoUnify the form of references to the standard.
Christoph Mallon [Sun, 14 Dec 2008 10:41:02 +0000 (10:41 +0000)]
Unify the form of references to the standard.

[r24652]

15 years agoUse identify_new_type() instead of duplicating it.
Christoph Mallon [Sun, 14 Dec 2008 10:16:58 +0000 (10:16 +0000)]
Use identify_new_type() instead of duplicating it.

[r24650]

15 years agoFix handling of alignment in skip_typeref(). skip_typeref() for typedefs of compound...
Christoph Mallon [Sun, 14 Dec 2008 08:22:54 +0000 (08:22 +0000)]
Fix handling of alignment in skip_typeref().  skip_typeref() for typedefs of compound types, which were used to create a qualified declaration, reset the alignment to 0.

[r24645]

15 years agofurther attributes+types tweaks
Matthias Braun [Sun, 14 Dec 2008 00:09:31 +0000 (00:09 +0000)]
further attributes+types tweaks

[r24639]

15 years agofirst implementation of aligned attribute
Matthias Braun [Sat, 13 Dec 2008 23:10:27 +0000 (23:10 +0000)]
first implementation of aligned attribute

[r24636]

15 years agoSet size and alignment for atomic/complex/imagenary types created from type specifiers.
Christoph Mallon [Sat, 13 Dec 2008 22:54:22 +0000 (22:54 +0000)]
Set size and alignment for atomic/complex/imagenary types created from type specifiers.

[r24635]

15 years agorespect alignment in typehash
Matthias Braun [Sat, 13 Dec 2008 22:49:04 +0000 (22:49 +0000)]
respect alignment in typehash

[r24634]

15 years agofix subtle implicit cast problem
Matthias Braun [Sat, 13 Dec 2008 20:42:43 +0000 (20:42 +0000)]
fix subtle implicit cast problem

[r24627]

15 years agomissing skip_typeref
Matthias Braun [Sat, 13 Dec 2008 19:47:38 +0000 (19:47 +0000)]
missing skip_typeref

[r24626]

15 years agoFix typo in lazy op constant folding.
Christoph Mallon [Sat, 13 Dec 2008 19:35:17 +0000 (19:35 +0000)]
Fix typo in lazy op constant folding.

[r24624]

15 years agomore skip_typerefs
Matthias Braun [Sat, 13 Dec 2008 19:22:17 +0000 (19:22 +0000)]
more skip_typerefs

[r24622]

15 years agotype might be a struct
Matthias Braun [Sat, 13 Dec 2008 19:20:27 +0000 (19:20 +0000)]
type might be a struct

[r24621]

15 years agowe have to convert assign ops back up to mode_arithmetic
Matthias Braun [Sat, 13 Dec 2008 19:12:37 +0000 (19:12 +0000)]
we have to convert assign ops back up to mode_arithmetic

[r24620]

15 years agoalways fold consts
Matthias Braun [Sat, 13 Dec 2008 18:03:44 +0000 (18:03 +0000)]
always fold consts

[r24614]

15 years ago- build float arithmetic ops in backend arithmetic mode
Matthias Braun [Sat, 13 Dec 2008 17:45:52 +0000 (17:45 +0000)]
- build float arithmetic ops in backend arithmetic mode
- fix assignment expressions returning non-converted nodes

[r24608]

15 years agoCorrectly handle shadowing of enum type declarations.
Christoph Mallon [Sat, 13 Dec 2008 10:54:37 +0000 (10:54 +0000)]
Correctly handle shadowing of enum type declarations.
PR: #0000020

[r24590]

15 years agoAccept any integer constant expression as null pointer constant, not just (casted...
Christoph Mallon [Sat, 13 Dec 2008 10:19:41 +0000 (10:19 +0000)]
Accept any integer constant expression as null pointer constant, not just (casted) literal zero.

[r24589]

15 years agoConsider lazy evaluation for && and || in is_constant_expression().
Christoph Mallon [Sat, 13 Dec 2008 10:18:45 +0000 (10:18 +0000)]
Consider lazy evaluation for && and || in is_constant_expression().

[r24588]

15 years agoPrint type definitions and local label declarations in function scope, i.e. remove...
Christoph Mallon [Sat, 13 Dec 2008 10:03:01 +0000 (10:03 +0000)]
Print type definitions and local label declarations in function scope, i.e. remove pointless and wrong special case.

[r24587]

15 years agoRemove the unused STATEMENT_LOCAL_LABEL/struct local_label_statement_t. It never...
Christoph Mallon [Sat, 13 Dec 2008 09:46:45 +0000 (09:46 +0000)]
Remove the unused STATEMENT_LOCAL_LABEL/struct local_label_statement_t. It never gets built. I have no idea where this came from.

[r24586]

15 years agofix for latest firm
Matthias Braun [Fri, 12 Dec 2008 14:47:09 +0000 (14:47 +0000)]
fix for latest firm

[r24569]

15 years agoremove wrong assert
Matthias Braun [Fri, 12 Dec 2008 12:03:46 +0000 (12:03 +0000)]
remove wrong assert

[r24563]

15 years agoAdhere in the expression walker that __builtin_prefetch has two optional parameters.
Christoph Mallon [Fri, 12 Dec 2008 09:53:32 +0000 (09:53 +0000)]
Adhere in the expression walker that __builtin_prefetch has two optional parameters.

[r24557]

15 years agoOmit several errors, which include a name, if a declarator has no name (there was...
Christoph Mallon [Thu, 11 Dec 2008 23:19:58 +0000 (23:19 +0000)]
Omit several errors, which include a name, if a declarator has no name (there was an error about this fact before).

[r24553]

15 years agoIf a declarator has no name, record the location of the start of the declaration...
Christoph Mallon [Thu, 11 Dec 2008 23:04:46 +0000 (23:04 +0000)]
If a declarator has no name, record the location of the start of the declaration as its source position.

[r24552]

15 years agoIndentation.
Christoph Mallon [Thu, 11 Dec 2008 22:07:37 +0000 (22:07 +0000)]
Indentation.

[r24551]

15 years agoDo not assert when * or [] do not have pointer type in revert_automatic_type_conversi...
Christoph Mallon [Thu, 11 Dec 2008 22:05:57 +0000 (22:05 +0000)]
Do not assert when * or [] do not have pointer type in revert_automatic_type_conversion(), but just return the error type. This happens when the types of the operands are wrong.

[r24550]

15 years agoBe not too unhappy (i.e. assert) if there is a typedef in a compound declaration.
Christoph Mallon [Thu, 11 Dec 2008 21:22:07 +0000 (21:22 +0000)]
Be not too unhappy (i.e. assert) if there is a typedef in a compound declaration.

[r24549]

15 years agoCorrectly handle empty compound statements in check_reachable(), i.e. continue at...
Christoph Mallon [Thu, 11 Dec 2008 21:17:30 +0000 (21:17 +0000)]
Correctly handle empty compound statements in check_reachable(), i.e. continue at the statement after the {}.

[r24548]

15 years agoOmit semantic tests in parse_compound_declarators(), which do not apply to (anonymous...
Christoph Mallon [Thu, 11 Dec 2008 21:15:40 +0000 (21:15 +0000)]
Omit semantic tests in parse_compound_declarators(), which do not apply to (anonymous) bitfields.

[r24547]

15 years agoAdd directories and filename pattern to make_release.sh.
Christoph Mallon [Thu, 11 Dec 2008 20:27:03 +0000 (20:27 +0000)]
Add directories and filename pattern to make_release.sh.

[r24546]

15 years agoUpdate NEWS.
Christoph Mallon [Thu, 11 Dec 2008 15:00:45 +0000 (15:00 +0000)]
Update NEWS.

[r24532]

15 years agoResolve warning.
Christoph Mallon [Thu, 11 Dec 2008 14:22:54 +0000 (14:22 +0000)]
Resolve warning.

[r24531]

15 years agoImprove the behaviour of -Wsign-compare in presence of constant expressions.
Christoph Mallon [Thu, 11 Dec 2008 13:54:56 +0000 (13:54 +0000)]
Improve the behaviour of -Wsign-compare in presence of constant expressions.

[r24528]

15 years agoResolve warnings.
Christoph Mallon [Thu, 11 Dec 2008 12:38:01 +0000 (12:38 +0000)]
Resolve warnings.

[r24524]

15 years agoMark variables used in the size expression of array declarators as read.
Christoph Mallon [Thu, 11 Dec 2008 12:17:10 +0000 (12:17 +0000)]
Mark variables used in the size expression of array declarators as read.

[r24522]

15 years agoDo not record error entities of kind ENTITY_COMPOUND_MEMBER, because this would pollu...
Christoph Mallon [Thu, 11 Dec 2008 12:11:03 +0000 (12:11 +0000)]
Do not record error entities of kind ENTITY_COMPOUND_MEMBER, because this would pollute the current scope.

[r24521]

15 years agoGet rid of repeated unused variable warnings.
Christoph Mallon [Thu, 11 Dec 2008 11:56:50 +0000 (11:56 +0000)]
Get rid of repeated unused variable warnings.

[r24519]

15 years agoPrettify printing of qualified pointer types.
Christoph Mallon [Thu, 11 Dec 2008 11:11:05 +0000 (11:11 +0000)]
Prettify printing of qualified pointer types.

[r24518]

15 years agoGet rid of unnecessary negation.
Christoph Mallon [Thu, 11 Dec 2008 11:05:28 +0000 (11:05 +0000)]
Get rid of unnecessary negation.

[r24517]

15 years agoResolve warning.
Christoph Mallon [Thu, 11 Dec 2008 11:03:47 +0000 (11:03 +0000)]
Resolve warning.

[r24516]

15 years agoMark variables used in sub initializers as read.
Christoph Mallon [Thu, 11 Dec 2008 11:03:29 +0000 (11:03 +0000)]
Mark variables used in sub initializers as read.

[r24515]

15 years agoWhitespace.
Christoph Mallon [Thu, 11 Dec 2008 10:26:23 +0000 (10:26 +0000)]
Whitespace.

[r24514]

15 years agoMinor formatting nit in the manpage.
Christoph Mallon [Thu, 11 Dec 2008 10:26:03 +0000 (10:26 +0000)]
Minor formatting nit in the manpage.

[r24513]