Matthias Braun [Sun, 7 Sep 2008 16:35:52 +0000 (16:35 +0000)]
bunch of mac fixes and improvements
[r21740]
Matthias Braun [Thu, 4 Sep 2008 14:36:27 +0000 (14:36 +0000)]
convert more driver code to new style
[r21705]
Matthias Braun [Thu, 4 Sep 2008 12:49:30 +0000 (12:49 +0000)]
a rank is not an atomic_type_kind_t
[r21703]
Christoph Mallon [Thu, 4 Sep 2008 12:31:49 +0000 (12:31 +0000)]
Fix r21499: The types must be unsigned, not signed.
[r21701]
Christoph Mallon [Thu, 4 Sep 2008 09:32:26 +0000 (09:32 +0000)]
Rename -fluffig to -fsync, perform opt_sync() (formerly opt_ldst2()) last to not interfere with load store optimisation.
[r21690]
Christoph Mallon [Wed, 3 Sep 2008 20:16:08 +0000 (20:16 +0000)]
Warn about unreachable empty compound statements.
[r21681]
Christoph Mallon [Wed, 3 Sep 2008 20:11:42 +0000 (20:11 +0000)]
Fix cp_error049.
[r21680]
Christoph Mallon [Wed, 3 Sep 2008 20:09:28 +0000 (20:09 +0000)]
Crash in ast2firm concerning unreachable if.
[r21679]
Matthias Braun [Tue, 2 Sep 2008 08:44:14 +0000 (08:44 +0000)]
further fixes for MMD handling
[r21635]
Matthias Braun [Tue, 2 Sep 2008 08:21:58 +0000 (08:21 +0000)]
hack cparser to write output of -MMD to the correct file
[r21634]
Matthias Braun [Tue, 2 Sep 2008 08:17:21 +0000 (08:17 +0000)]
sizeof from vla type is not constant
[r21633]
Matthias Braun [Mon, 1 Sep 2008 16:57:39 +0000 (16:57 +0000)]
fix problems when a case is INT_MAX
[r21630]
Christoph Mallon [Mon, 1 Sep 2008 13:25:40 +0000 (13:25 +0000)]
Fix bug in duplicate case value checker: Ignore the default case label.
[r21628]
Michael Beck [Mon, 1 Sep 2008 12:48:43 +0000 (12:48 +0000)]
add testcase for multi-char constant
[r21626]
Michael Beck [Mon, 1 Sep 2008 12:38:08 +0000 (12:38 +0000)]
fixed constant case
[r21624]
Christoph Mallon [Mon, 1 Sep 2008 10:46:40 +0000 (10:46 +0000)]
Implement ast2firm part of the GNU "a ?: b" extension.
[r21620]
Michael Beck [Mon, 1 Sep 2008 01:27:03 +0000 (01:27 +0000)]
- add support for \e escape
- BugFix: printing of character constants
[r21617]
Michael Beck [Mon, 1 Sep 2008 01:03:43 +0000 (01:03 +0000)]
- implemented GNU ?: operator (no ast2firm support yet
[r21616]
Michael Beck [Mon, 1 Sep 2008 00:35:38 +0000 (00:35 +0000)]
add testcase for asm name
[r21615]
Michael Beck [Mon, 1 Sep 2008 00:31:08 +0000 (00:31 +0000)]
add testcase for empty structs
[r21614]
Michael Beck [Mon, 1 Sep 2008 00:29:01 +0000 (00:29 +0000)]
testcase for gcc ?: operator
[r21613]
Michael Beck [Mon, 1 Sep 2008 00:23:22 +0000 (00:23 +0000)]
add testcase for incomplete enums
[r21612]
Michael Beck [Mon, 1 Sep 2008 00:21:05 +0000 (00:21 +0000)]
add testcase for union cast
[r21611]
Michael Beck [Mon, 1 Sep 2008 00:12:50 +0000 (00:12 +0000)]
add test for escape escape
[r21610]
Michael Beck [Mon, 1 Sep 2008 00:05:35 +0000 (00:05 +0000)]
add test for hexfloats
[r21609]
Michael Beck [Mon, 1 Sep 2008 00:01:55 +0000 (00:01 +0000)]
test for computed goto
[r21608]
Michael Beck [Sun, 31 Aug 2008 23:53:29 +0000 (23:53 +0000)]
add test for local label
[r21607]
Christoph Mallon [Sun, 31 Aug 2008 22:13:12 +0000 (22:13 +0000)]
Handle -fno-strength-reduce.
[r21606]
Christoph Mallon [Sun, 31 Aug 2008 22:12:04 +0000 (22:12 +0000)]
Handle -fno-syntax-only.
[r21605]
Christoph Mallon [Sun, 31 Aug 2008 22:10:14 +0000 (22:10 +0000)]
Handle -falign-loops=, -falign-jumps= and -falign-functions= before removing the no- prefix. Also handle these switches without =.
[r21604]
Christoph Mallon [Sun, 31 Aug 2008 22:04:47 +0000 (22:04 +0000)]
Store a copy of the original option string pointer instead of conditionally recalculating it.
[r21603]
Christoph Mallon [Sun, 31 Aug 2008 22:00:31 +0000 (22:00 +0000)]
Check for common, not no-common, because the no- prefix is handled earlier.
[r21602]
Christoph Mallon [Sun, 31 Aug 2008 21:59:28 +0000 (21:59 +0000)]
Replace strcmp(a, b) == 0 and strncmp(a, b, sizeof(b) - 1) == 0 by streq() resp. strstart().
[r21601]
Christoph Mallon [Sun, 31 Aug 2008 21:37:11 +0000 (21:37 +0000)]
Minor cleanup.
[r21600]
Michael Beck [Sun, 31 Aug 2008 21:25:31 +0000 (21:25 +0000)]
- add -f[no-]short-wchar
- generic code for -f[no-]option
- ignore -fjump-tables for now
[r21599]
Christoph Mallon [Sun, 31 Aug 2008 21:23:55 +0000 (21:23 +0000)]
Correct off-by-one error in source position of empty statements.
[r21598]
Michael Beck [Sun, 31 Aug 2008 21:21:53 +0000 (21:21 +0000)]
add type_unsigned_short
[r21597]
Christoph Mallon [Sun, 31 Aug 2008 16:56:37 +0000 (16:56 +0000)]
Slightly simplify warning/error generation in check_pointer_arithmetic().
[r21596]
Christoph Mallon [Sun, 31 Aug 2008 16:36:15 +0000 (16:36 +0000)]
Simplify daisy chaining statements in parse_compound_statement().
[r21595]
Christoph Mallon [Sun, 31 Aug 2008 16:30:13 +0000 (16:30 +0000)]
s/parse_brace_expression/parse_parenthesized_expression/.
[r21594]
Christoph Mallon [Sun, 31 Aug 2008 15:49:19 +0000 (15:49 +0000)]
Correct typo in r21582: Set qualifiers, not modifiers.
[r21592]
Christoph Mallon [Sun, 31 Aug 2008 15:19:42 +0000 (15:19 +0000)]
Add missing return when printing error type in intern_print_type_pre().
[r21591]
Christoph Mallon [Sun, 31 Aug 2008 14:22:57 +0000 (14:22 +0000)]
Only warn, when assigning pointers and the LHS pointed to type lacks qualifiers (like GCC does).
[r21590]
Christoph Mallon [Sun, 31 Aug 2008 13:02:12 +0000 (13:02 +0000)]
Empty line for readability.
[r21589]
Michael Beck [Sun, 31 Aug 2008 13:02:10 +0000 (13:02 +0000)]
test case for -Wwrite-strings
[r21588]
Christoph Mallon [Sun, 31 Aug 2008 13:01:24 +0000 (13:01 +0000)]
type_int and type_void get already initialised by init_basic_types().
[r21587]
Christoph Mallon [Sun, 31 Aug 2008 12:56:19 +0000 (12:56 +0000)]
Sort.
[r21586]
Michael Beck [Sun, 31 Aug 2008 12:42:20 +0000 (12:42 +0000)]
- do not issue warnings for unused parameters of main: gcc suppresses them
[r21585]
Michael Beck [Sun, 31 Aug 2008 12:20:35 +0000 (12:20 +0000)]
-BugFix: must use const_wchar_T
[r21584]
Michael Beck [Sun, 31 Aug 2008 12:16:05 +0000 (12:16 +0000)]
type_const_char is now globally available
[r21583]
Michael Beck [Sun, 31 Aug 2008 12:13:33 +0000 (12:13 +0000)]
- implemented -Wwrite-strings
[r21582]
Michael Beck [Sun, 31 Aug 2008 11:38:27 +0000 (11:38 +0000)]
- improved test
[r21581]
Michael Beck [Sun, 31 Aug 2008 11:35:31 +0000 (11:35 +0000)]
- BugFix: function types have not size 0, so condition must be changed
[r21580]
Michael Beck [Sun, 31 Aug 2008 11:32:13 +0000 (11:32 +0000)]
- BugFix: GCC allows arithmetic on function pointers
- implemented -Wpointer-arith
[r21579]
Michael Beck [Sun, 31 Aug 2008 10:57:37 +0000 (10:57 +0000)]
- implemented -Wswitch-enum
- revert wrong typo fix
- fixed reachability test by using first_case and last_case
[r21577]
Michael Beck [Sun, 31 Aug 2008 10:55:23 +0000 (10:55 +0000)]
typo fixed
[r21576]
Michael Beck [Sun, 31 Aug 2008 10:54:54 +0000 (10:54 +0000)]
added is_type_enum()
[r21575]
Michael Beck [Sun, 31 Aug 2008 10:11:04 +0000 (10:11 +0000)]
- add testcase for switch on enum
[r21574]
Michael Beck [Sun, 31 Aug 2008 09:59:40 +0000 (09:59 +0000)]
- fixed some "enumerated type mixed with another type" warnings on icc
[r21573]
Michael Beck [Fri, 29 Aug 2008 11:43:16 +0000 (11:43 +0000)]
MAGIC_DEFAULT_PN_NUMBER is gone away ...
[r21565]
Michael Beck [Thu, 28 Aug 2008 13:04:53 +0000 (13:04 +0000)]
use the spare_size flags
[r21549]
Christoph Mallon [Thu, 28 Aug 2008 12:34:55 +0000 (12:34 +0000)]
Add the GCC options -f(no-)dollars-in-identifiers.
[r21545]
Michael Beck [Thu, 28 Aug 2008 12:35:21 +0000 (12:35 +0000)]
- removed non-functional jmp-tbl switch
[r21544]
Christoph Mallon [Thu, 28 Aug 2008 12:29:14 +0000 (12:29 +0000)]
Be somewhat resilient to typos in declaration specifiers to avoid stray error messages later on.
[r21543]
Michael Beck [Thu, 28 Aug 2008 12:20:29 +0000 (12:20 +0000)]
Fixed handling of case labels:
- correctly check gnu extensions
- handle GNU empty ranges
- fold constants only once
[r21542]
Michael Beck [Thu, 28 Aug 2008 11:55:41 +0000 (11:55 +0000)]
forgot to save file
[r21537]
Michael Beck [Thu, 28 Aug 2008 11:49:24 +0000 (11:49 +0000)]
'$' in symbols can be switched off (if someone implements a command-line option for it)
[r21536]
Christoph Mallon [Thu, 28 Aug 2008 11:28:16 +0000 (11:28 +0000)]
Only warn about reaching the end of a non-void function, if the return type is valid.
[r21535]
Christoph Mallon [Thu, 28 Aug 2008 11:23:30 +0000 (11:23 +0000)]
Reduce indentation.
[r21534]
Christoph Mallon [Thu, 28 Aug 2008 11:22:34 +0000 (11:22 +0000)]
newtype is a bool.
[r21533]
Christoph Mallon [Thu, 28 Aug 2008 11:20:39 +0000 (11:20 +0000)]
Fix typo in error message.
[r21532]
Christoph Mallon [Wed, 27 Aug 2008 18:15:53 +0000 (18:15 +0000)]
Attach a sensible source position to conditional (?:) expressions.
[r21526]
Christoph Mallon [Wed, 27 Aug 2008 18:10:07 +0000 (18:10 +0000)]
Use the source position of the specifier for a declarator, until it gets a name. This gives a meaningful source positions to nameless parameters.
[r21525]
Christoph Mallon [Wed, 27 Aug 2008 17:47:48 +0000 (17:47 +0000)]
Accept $ in identifers.
[r21524]
Christoph Mallon [Wed, 27 Aug 2008 17:38:25 +0000 (17:38 +0000)]
Fix parse error when parsing functions returning function pointers: The parameter list of the function pointer incorrectly got associated with the function declaration overriding the parameter list of the function.
[r21523]
Christoph Mallon [Wed, 27 Aug 2008 17:35:04 +0000 (17:35 +0000)]
Typo in string.
[r21522]
Christoph Mallon [Wed, 27 Aug 2008 17:31:42 +0000 (17:31 +0000)]
When printing parentheses around a function declarator, print the closing parenthesis after the parameter list, not before it.
[r21521]
Christoph Mallon [Wed, 27 Aug 2008 15:00:33 +0000 (15:00 +0000)]
Fix off-by-one error in source position of binary operations.
[r21518]
Christoph Mallon [Wed, 27 Aug 2008 14:24:52 +0000 (14:24 +0000)]
Fix off-by-one error in source position of unary operations.
[r21516]
Christoph Mallon [Wed, 27 Aug 2008 14:19:24 +0000 (14:19 +0000)]
Simpler fix.
[r21515]
Christoph Mallon [Wed, 27 Aug 2008 14:15:42 +0000 (14:15 +0000)]
Fix last commit.
[r21514]
Christoph Mallon [Wed, 27 Aug 2008 14:15:15 +0000 (14:15 +0000)]
Set the error type as result type, if semantic check of ++/-- fails.
[r21513]
Christoph Mallon [Wed, 27 Aug 2008 14:06:30 +0000 (14:06 +0000)]
Record the source position of unary postfix expressions.
[r21512]
Christoph Mallon [Wed, 27 Aug 2008 09:23:27 +0000 (09:23 +0000)]
Slightly deuglify semantic_arithmetic().
[r21499]
Christoph Mallon [Wed, 27 Aug 2008 09:20:29 +0000 (09:20 +0000)]
Correct printed source position of several error/warning messages.
[r21498]
Christoph Mallon [Wed, 27 Aug 2008 09:07:41 +0000 (09:07 +0000)]
Set the result type of !, even if the operand type is not scalar.
[r21496]
Christoph Mallon [Wed, 27 Aug 2008 09:03:14 +0000 (09:03 +0000)]
Repair semantics of !: Result type is int, not the operand type.
[r21494]
Christoph Mallon [Wed, 27 Aug 2008 08:59:30 +0000 (08:59 +0000)]
Slightly improve warning about unreachable for-statements.
[r21493]
Christoph Mallon [Wed, 27 Aug 2008 08:20:47 +0000 (08:20 +0000)]
Pass -MP on to the preprocessor.
[r21492]
Christoph Mallon [Mon, 25 Aug 2008 18:25:58 +0000 (18:25 +0000)]
Replace case '0' till '9' by DIGITS macro.
[r21458]
Christoph Mallon [Mon, 25 Aug 2008 10:22:07 +0000 (10:22 +0000)]
Advance the format string when seeing '*' for field width and precision.
[r21436]
Christoph Mallon [Mon, 25 Aug 2008 08:44:19 +0000 (08:44 +0000)]
Use only one error message for one error, refer to the previous source position in the same message.
[r21433]
Christoph Mallon [Mon, 25 Aug 2008 08:24:27 +0000 (08:24 +0000)]
check_reachable() continued at the wrong position, when encountering a break statement.
[r21432]
Christoph Mallon [Mon, 25 Aug 2008 08:09:56 +0000 (08:09 +0000)]
Implement -Wmissing-noreturn.
[r21431]
Christoph Mallon [Mon, 25 Aug 2008 08:08:13 +0000 (08:08 +0000)]
Do not dereference a NULL-pointer when there is no declaration while parsing an inner declarator.
[r21430]
Christoph Mallon [Mon, 25 Aug 2008 07:42:30 +0000 (07:42 +0000)]
Implement -Wlong-long.
[r21429]
Christoph Mallon [Mon, 25 Aug 2008 07:27:04 +0000 (07:27 +0000)]
Implement -Wnested-externs.
[r21428]
Christoph Mallon [Mon, 25 Aug 2008 07:06:40 +0000 (07:06 +0000)]
Implement -Wdeclaration-after-statement.
[r21427]
Christoph Mallon [Mon, 25 Aug 2008 06:41:20 +0000 (06:41 +0000)]
Partially implement -Wdeprecated-declarations.
[r21426]
Christoph Mallon [Mon, 25 Aug 2008 06:03:58 +0000 (06:03 +0000)]
Merge declaration modifers when updating previous declaration.
[r21425]