cparser
15 years agoRename orig_type to src_type in semantic_cast(), to avoid confusion with the usual...
Christoph Mallon [Fri, 12 Sep 2008 06:51:13 +0000 (06:51 +0000)]
Rename orig_type to src_type in semantic_cast(), to avoid confusion with the usual meaning (unskipped type) of "orig".

[r21886]

15 years agoRemove else-if-chain in semantic_cast(), because it leads to omission of errors,...
Christoph Mallon [Fri, 12 Sep 2008 06:49:10 +0000 (06:49 +0000)]
Remove else-if-chain in semantic_cast(), because it leads to omission of errors, when the destination type is a pointer type.

[r21885]

15 years agoStill print some errors even if invalid types are involved in semantic_cast().
Christoph Mallon [Fri, 12 Sep 2008 06:44:17 +0000 (06:44 +0000)]
Still print some errors even if invalid types are involved in semantic_cast().

[r21884]

15 years agoPrint source position of expression instead of HERE in semantic_cast().
Christoph Mallon [Fri, 12 Sep 2008 06:41:50 +0000 (06:41 +0000)]
Print source position of expression instead of HERE in semantic_cast().

[r21883]

15 years agoIndentation.
Christoph Mallon [Fri, 12 Sep 2008 06:41:02 +0000 (06:41 +0000)]
Indentation.

[r21882]

15 years agoSort.
Christoph Mallon [Fri, 12 Sep 2008 06:34:46 +0000 (06:34 +0000)]
Sort.

[r21881]

15 years agoskip_typeref().
Christoph Mallon [Fri, 12 Sep 2008 06:25:37 +0000 (06:25 +0000)]
skip_typeref().

[r21880]

15 years agoReduce code duplication.
Christoph Mallon [Fri, 12 Sep 2008 06:04:41 +0000 (06:04 +0000)]
Reduce code duplication.

[r21879]

15 years agotest for nested comments
Michael Beck [Fri, 12 Sep 2008 04:37:50 +0000 (04:37 +0000)]
test for nested comments

[r21878]

15 years ago- implemented -Wcomment (currently non-working because cpp filters all
Michael Beck [Fri, 12 Sep 2008 04:35:50 +0000 (04:35 +0000)]
- implemented -Wcomment (currently non-working because cpp filters all
  comments)

[r21877]

15 years agoadd some more (unimplemented) warnings
Michael Beck [Fri, 12 Sep 2008 04:23:23 +0000 (04:23 +0000)]
add some more (unimplemented) warnings

[r21876]

15 years agotest program for cast errors
Michael Beck [Fri, 12 Sep 2008 03:31:49 +0000 (03:31 +0000)]
test program for cast errors

[r21875]

15 years ago- removed todo
Michael Beck [Fri, 12 Sep 2008 03:31:00 +0000 (03:31 +0000)]
- removed todo

[r21874]

15 years ago- -Wcast-qual implemented
Michael Beck [Fri, 12 Sep 2008 03:30:36 +0000 (03:30 +0000)]
- -Wcast-qual implemented
- fixed semantic_assign() error messages
- implemented semantic_cast()

[r21873]

15 years ago- do not print a space at the end of qualifiers (needed for diagnostic)
Michael Beck [Fri, 12 Sep 2008 02:22:38 +0000 (02:22 +0000)]
- do not print a space at the end of qualifiers (needed for diagnostic)

[r21872]

15 years ago-Waggregate-return implemented
Michael Beck [Fri, 12 Sep 2008 01:36:36 +0000 (01:36 +0000)]
-Waggregate-return implemented

[r21871]

15 years agoadd test for padding
Michael Beck [Fri, 12 Sep 2008 01:11:49 +0000 (01:11 +0000)]
add test for padding

[r21870]

15 years agoimplemented -Wdiv-by-zero
Michael Beck [Thu, 11 Sep 2008 23:58:37 +0000 (23:58 +0000)]
implemented -Wdiv-by-zero

[r21866]

15 years agoset the stack alignment to 2^4 on apple
Michael Beck [Thu, 11 Sep 2008 23:24:14 +0000 (23:24 +0000)]
set the stack alignment to 2^4 on apple

[r21865]

15 years ago_Win32 build fix
Michael Beck [Thu, 11 Sep 2008 22:48:06 +0000 (22:48 +0000)]
_Win32 build fix

[r21861]

15 years agos/imature_blocks/immature_blocks/.
Christoph Mallon [Thu, 11 Sep 2008 11:38:01 +0000 (11:38 +0000)]
s/imature_blocks/immature_blocks/.

[r21843]

15 years agoUse new_Block() instead of new_immBlock(), when the number of CF predecessors is...
Christoph Mallon [Thu, 11 Sep 2008 11:36:59 +0000 (11:36 +0000)]
Use new_Block() instead of new_immBlock(), when the number of CF predecessors is known in advance.

[r21842]

15 years agoHandle DM_NORETURN in ast2firm.
Christoph Mallon [Thu, 11 Sep 2008 11:30:19 +0000 (11:30 +0000)]
Handle DM_NORETURN in ast2firm.

[r21840]

15 years agoIndentation.
Christoph Mallon [Thu, 11 Sep 2008 06:26:35 +0000 (06:26 +0000)]
Indentation.

[r21829]

15 years agowe need to keep_alive memory as well for potential endless loops
Matthias Braun [Wed, 10 Sep 2008 14:18:09 +0000 (14:18 +0000)]
we need to keep_alive memory as well for potential endless loops

[r21821]

15 years agoimplement hex floats
Matthias Braun [Wed, 10 Sep 2008 12:35:15 +0000 (12:35 +0000)]
implement hex floats

[r21819]

15 years agobuild right side of += etc. before left side
Matthias Braun [Tue, 9 Sep 2008 16:09:00 +0000 (16:09 +0000)]
build right side of += etc. before left side

[r21789]

15 years agoimproved "builtin"-strcmp
Michael Beck [Mon, 8 Sep 2008 10:12:43 +0000 (10:12 +0000)]
improved "builtin"-strcmp

[r21746]

15 years agorerun builtins.h creation if script changed
Michael Beck [Mon, 8 Sep 2008 09:48:14 +0000 (09:48 +0000)]
rerun builtins.h creation if script changed

[r21745]

15 years agofix
Matthias Braun [Mon, 8 Sep 2008 08:17:00 +0000 (08:17 +0000)]
fix

[r21744]

15 years agobunch of mac fixes and improvements
Matthias Braun [Sun, 7 Sep 2008 16:35:52 +0000 (16:35 +0000)]
bunch of mac fixes and improvements

[r21740]

15 years agoconvert more driver code to new style
Matthias Braun [Thu, 4 Sep 2008 14:36:27 +0000 (14:36 +0000)]
convert more driver code to new style

[r21705]

15 years agoa rank is not an atomic_type_kind_t
Matthias Braun [Thu, 4 Sep 2008 12:49:30 +0000 (12:49 +0000)]
a rank is not an atomic_type_kind_t

[r21703]

15 years agoFix r21499: The types must be unsigned, not signed.
Christoph Mallon [Thu, 4 Sep 2008 12:31:49 +0000 (12:31 +0000)]
Fix r21499: The types must be unsigned, not signed.

[r21701]

15 years agoRename -fluffig to -fsync, perform opt_sync() (formerly opt_ldst2()) last to not...
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]

15 years agoWarn about unreachable empty compound statements.
Christoph Mallon [Wed, 3 Sep 2008 20:16:08 +0000 (20:16 +0000)]
Warn about unreachable empty compound statements.

[r21681]

15 years agoFix cp_error049.
Christoph Mallon [Wed, 3 Sep 2008 20:11:42 +0000 (20:11 +0000)]
Fix cp_error049.

[r21680]

15 years agoCrash in ast2firm concerning unreachable if.
Christoph Mallon [Wed, 3 Sep 2008 20:09:28 +0000 (20:09 +0000)]
Crash in ast2firm concerning unreachable if.

[r21679]

15 years agofurther fixes for MMD handling
Matthias Braun [Tue, 2 Sep 2008 08:44:14 +0000 (08:44 +0000)]
further fixes for MMD handling

[r21635]

15 years agohack cparser to write output of -MMD to the correct file
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]

15 years agosizeof from vla type is not constant
Matthias Braun [Tue, 2 Sep 2008 08:17:21 +0000 (08:17 +0000)]
sizeof from vla type is not constant

[r21633]

15 years agofix problems when a case is INT_MAX
Matthias Braun [Mon, 1 Sep 2008 16:57:39 +0000 (16:57 +0000)]
fix problems when a case is INT_MAX

[r21630]

15 years agoFix bug in duplicate case value checker: Ignore the default case label.
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]

15 years agoadd testcase for multi-char constant
Michael Beck [Mon, 1 Sep 2008 12:48:43 +0000 (12:48 +0000)]
add testcase for multi-char constant

[r21626]

15 years agofixed constant case
Michael Beck [Mon, 1 Sep 2008 12:38:08 +0000 (12:38 +0000)]
fixed constant case

[r21624]

15 years agoImplement ast2firm part of the GNU "a ?: b" extension.
Christoph Mallon [Mon, 1 Sep 2008 10:46:40 +0000 (10:46 +0000)]
Implement ast2firm part of the GNU "a ?: b" extension.

[r21620]

15 years ago- add support for \e escape
Michael Beck [Mon, 1 Sep 2008 01:27:03 +0000 (01:27 +0000)]
- add support for \e escape
- BugFix: printing of character constants

[r21617]

15 years ago- implemented GNU ?: operator (no ast2firm support yet
Michael Beck [Mon, 1 Sep 2008 01:03:43 +0000 (01:03 +0000)]
- implemented GNU ?: operator (no ast2firm support yet

[r21616]

15 years agoadd testcase for asm name
Michael Beck [Mon, 1 Sep 2008 00:35:38 +0000 (00:35 +0000)]
add testcase for asm name

[r21615]

15 years agoadd testcase for empty structs
Michael Beck [Mon, 1 Sep 2008 00:31:08 +0000 (00:31 +0000)]
add testcase for empty structs

[r21614]

15 years agotestcase for gcc ?: operator
Michael Beck [Mon, 1 Sep 2008 00:29:01 +0000 (00:29 +0000)]
testcase for gcc ?: operator

[r21613]

15 years agoadd testcase for incomplete enums
Michael Beck [Mon, 1 Sep 2008 00:23:22 +0000 (00:23 +0000)]
add testcase for incomplete enums

[r21612]

15 years agoadd testcase for union cast
Michael Beck [Mon, 1 Sep 2008 00:21:05 +0000 (00:21 +0000)]
add testcase for union cast

[r21611]

15 years agoadd test for escape escape
Michael Beck [Mon, 1 Sep 2008 00:12:50 +0000 (00:12 +0000)]
add test for escape escape

[r21610]

15 years agoadd test for hexfloats
Michael Beck [Mon, 1 Sep 2008 00:05:35 +0000 (00:05 +0000)]
add test for hexfloats

[r21609]

15 years agotest for computed goto
Michael Beck [Mon, 1 Sep 2008 00:01:55 +0000 (00:01 +0000)]
test for computed goto

[r21608]

15 years agoadd test for local label
Michael Beck [Sun, 31 Aug 2008 23:53:29 +0000 (23:53 +0000)]
add test for local label

[r21607]

15 years agoHandle -fno-strength-reduce.
Christoph Mallon [Sun, 31 Aug 2008 22:13:12 +0000 (22:13 +0000)]
Handle -fno-strength-reduce.

[r21606]

15 years agoHandle -fno-syntax-only.
Christoph Mallon [Sun, 31 Aug 2008 22:12:04 +0000 (22:12 +0000)]
Handle -fno-syntax-only.

[r21605]

15 years agoHandle -falign-loops=, -falign-jumps= and -falign-functions= before removing the...
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]

15 years agoStore a copy of the original option string pointer instead of conditionally recalcula...
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]

15 years agoCheck for common, not no-common, because the no- prefix is handled earlier.
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]

15 years agoReplace strcmp(a, b) == 0 and strncmp(a, b, sizeof(b) - 1) == 0 by streq() resp....
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]

15 years agoMinor cleanup.
Christoph Mallon [Sun, 31 Aug 2008 21:37:11 +0000 (21:37 +0000)]
Minor cleanup.

[r21600]

15 years ago- add -f[no-]short-wchar
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]

15 years agoCorrect off-by-one error in source position of empty statements.
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]

15 years agoadd type_unsigned_short
Michael Beck [Sun, 31 Aug 2008 21:21:53 +0000 (21:21 +0000)]
add type_unsigned_short

[r21597]

15 years agoSlightly simplify warning/error generation in check_pointer_arithmetic().
Christoph Mallon [Sun, 31 Aug 2008 16:56:37 +0000 (16:56 +0000)]
Slightly simplify warning/error generation in check_pointer_arithmetic().

[r21596]

15 years agoSimplify daisy chaining statements in parse_compound_statement().
Christoph Mallon [Sun, 31 Aug 2008 16:36:15 +0000 (16:36 +0000)]
Simplify daisy chaining statements in parse_compound_statement().

[r21595]

15 years agos/parse_brace_expression/parse_parenthesized_expression/.
Christoph Mallon [Sun, 31 Aug 2008 16:30:13 +0000 (16:30 +0000)]
s/parse_brace_expression/parse_parenthesized_expression/.

[r21594]

15 years agoCorrect typo in r21582: Set qualifiers, not modifiers.
Christoph Mallon [Sun, 31 Aug 2008 15:49:19 +0000 (15:49 +0000)]
Correct typo in r21582:  Set qualifiers, not modifiers.

[r21592]

15 years agoAdd missing return when printing error type in intern_print_type_pre().
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]

15 years agoOnly warn, when assigning pointers and the LHS pointed to type lacks qualifiers ...
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]

15 years agoEmpty line for readability.
Christoph Mallon [Sun, 31 Aug 2008 13:02:12 +0000 (13:02 +0000)]
Empty line for readability.

[r21589]

15 years agotest case for -Wwrite-strings
Michael Beck [Sun, 31 Aug 2008 13:02:10 +0000 (13:02 +0000)]
test case for -Wwrite-strings

[r21588]

15 years agotype_int and type_void get already initialised by init_basic_types().
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]

15 years agoSort.
Christoph Mallon [Sun, 31 Aug 2008 12:56:19 +0000 (12:56 +0000)]
Sort.

[r21586]

15 years ago- do not issue warnings for unused parameters of main: gcc suppresses them
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]

15 years ago-BugFix: must use const_wchar_T
Michael Beck [Sun, 31 Aug 2008 12:20:35 +0000 (12:20 +0000)]
-BugFix: must use const_wchar_T

[r21584]

15 years agotype_const_char is now globally available
Michael Beck [Sun, 31 Aug 2008 12:16:05 +0000 (12:16 +0000)]
type_const_char is now globally available

[r21583]

15 years ago- implemented -Wwrite-strings
Michael Beck [Sun, 31 Aug 2008 12:13:33 +0000 (12:13 +0000)]
- implemented -Wwrite-strings

[r21582]

15 years ago- improved test
Michael Beck [Sun, 31 Aug 2008 11:38:27 +0000 (11:38 +0000)]
- improved test

[r21581]

15 years ago- BugFix: function types have not size 0, so condition must be changed
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]

15 years ago- BugFix: GCC allows arithmetic on function pointers
Michael Beck [Sun, 31 Aug 2008 11:32:13 +0000 (11:32 +0000)]
- BugFix: GCC allows arithmetic on function pointers
- implemented -Wpointer-arith

[r21579]

15 years ago- implemented -Wswitch-enum
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]

15 years agotypo fixed
Michael Beck [Sun, 31 Aug 2008 10:55:23 +0000 (10:55 +0000)]
typo fixed

[r21576]

15 years agoadded is_type_enum()
Michael Beck [Sun, 31 Aug 2008 10:54:54 +0000 (10:54 +0000)]
added is_type_enum()

[r21575]

15 years ago- add testcase for switch on enum
Michael Beck [Sun, 31 Aug 2008 10:11:04 +0000 (10:11 +0000)]
- add testcase for switch on enum

[r21574]

15 years ago- fixed some "enumerated type mixed with another type" warnings on icc
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]

15 years agoMAGIC_DEFAULT_PN_NUMBER is gone away ...
Michael Beck [Fri, 29 Aug 2008 11:43:16 +0000 (11:43 +0000)]
MAGIC_DEFAULT_PN_NUMBER is gone away ...

[r21565]

15 years agouse the spare_size flags
Michael Beck [Thu, 28 Aug 2008 13:04:53 +0000 (13:04 +0000)]
use the spare_size flags

[r21549]

15 years agoAdd the GCC options -f(no-)dollars-in-identifiers.
Christoph Mallon [Thu, 28 Aug 2008 12:34:55 +0000 (12:34 +0000)]
Add the GCC options -f(no-)dollars-in-identifiers.

[r21545]

15 years ago- removed non-functional jmp-tbl switch
Michael Beck [Thu, 28 Aug 2008 12:35:21 +0000 (12:35 +0000)]
- removed non-functional jmp-tbl switch

[r21544]

15 years agoBe somewhat resilient to typos in declaration specifiers to avoid stray error message...
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]

15 years agoFixed handling of case labels:
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]

15 years agoforgot to save file
Michael Beck [Thu, 28 Aug 2008 11:55:41 +0000 (11:55 +0000)]
forgot to save file

[r21537]

15 years ago'$' in symbols can be switched off (if someone implements a command-line option for it)
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]

15 years agoOnly warn about reaching the end of a non-void function, if the return type is valid.
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]

15 years agoReduce indentation.
Christoph Mallon [Thu, 28 Aug 2008 11:23:30 +0000 (11:23 +0000)]
Reduce indentation.

[r21534]

15 years agonewtype is a bool.
Christoph Mallon [Thu, 28 Aug 2008 11:22:34 +0000 (11:22 +0000)]
newtype is a bool.

[r21533]