cparser
13 years agoFeature: Show the column number in diagnostic messages.
Christoph Mallon [Sat, 4 Jun 2011 12:27:05 +0000 (14:27 +0200)]
Feature: Show the column number in diagnostic messages.

- This can be toggled with -f[no-]show-column. Default is on.
- The column number can be off, because gcc's preprocessors collapses consecutive whitespace.

13 years agoRename the attribute linenr of struct source_position_t to lineno.
Christoph Mallon [Sat, 4 Jun 2011 12:35:35 +0000 (14:35 +0200)]
Rename the attribute linenr of struct source_position_t to lineno.

13 years agoReduce code duplication for printing diagnostics.
Christoph Mallon [Sat, 4 Jun 2011 11:56:55 +0000 (13:56 +0200)]
Reduce code duplication for printing diagnostics.

13 years agoReport an error when the index of an array access is not of integer type.
Christoph Mallon [Thu, 2 Jun 2011 07:20:10 +0000 (09:20 +0200)]
Report an error when the index of an array access is not of integer type.

13 years agoCleanup, reduce code duplication.
Christoph Mallon [Thu, 2 Jun 2011 07:13:36 +0000 (09:13 +0200)]
Cleanup, reduce code duplication.

13 years agoAdd missing check for reference declarator.
Christoph Mallon [Wed, 1 Jun 2011 08:46:06 +0000 (10:46 +0200)]
Add missing check for reference declarator.

13 years agoRemove unnecessary gotos.
Christoph Mallon [Wed, 1 Jun 2011 08:37:29 +0000 (10:37 +0200)]
Remove unnecessary gotos.

13 years agoMake error message a bit more clear.
Christoph Mallon [Wed, 1 Jun 2011 08:36:14 +0000 (10:36 +0200)]
Make error message a bit more clear.

13 years agoCleanup.
Christoph Mallon [Wed, 1 Jun 2011 08:34:59 +0000 (10:34 +0200)]
Cleanup.

Use (void) for empty parameter lists and reduce code duplication.

13 years agoUse a null pointer for marking the current position as unreachable again.
Christoph Mallon [Wed, 1 Jun 2011 08:34:15 +0000 (10:34 +0200)]
Use a null pointer for marking the current position as unreachable again.

Using a BadBB has no benefits.

13 years agoAdd Bad preds for unreachable code
Andreas Zwinkau [Tue, 31 May 2011 14:10:30 +0000 (16:10 +0200)]
Add Bad preds for unreachable code

Fixes C/segfault7

13 years agoConstruct Bads for unreachable code
Andreas Zwinkau [Tue, 31 May 2011 14:02:01 +0000 (16:02 +0200)]
Construct Bads for unreachable code

Otherwise local opts might produce "strange" graphs, for example, loops without Phis.

13 years agoIgnore -fvisibility= arguments
Andreas Zwinkau [Tue, 31 May 2011 12:16:39 +0000 (14:16 +0200)]
Ignore -fvisibility= arguments

13 years agoReport an error on empty character constants, i.e. ''.
Christoph Mallon [Tue, 31 May 2011 11:41:18 +0000 (13:41 +0200)]
Report an error on empty character constants, i.e. ''.

13 years agotrigger flip-flopping normalisation
Matthias Braun [Tue, 31 May 2011 10:47:11 +0000 (12:47 +0200)]
trigger flip-flopping normalisation

13 years agoadded --help texts which document most options
Matthias Braun [Mon, 30 May 2011 12:22:34 +0000 (14:22 +0200)]
added --help texts which document most options

13 years agoremove unsupported option omit-leaf-frame-pointer option
Matthias Braun [Fri, 27 May 2011 09:08:20 +0000 (11:08 +0200)]
remove unsupported option omit-leaf-frame-pointer option

13 years agooption was parsed twice
Matthias Braun [Fri, 27 May 2011 09:03:09 +0000 (11:03 +0200)]
option was parsed twice

13 years agoCorrect parsing of abstract function declarators.
Christoph Mallon [Mon, 30 May 2011 10:33:28 +0000 (12:33 +0200)]
Correct parsing of abstract function declarators.

13 years agoPrevent dereferencing a null pointer, when parse_attribute_gnu() returns an empty...
Christoph Mallon [Sun, 29 May 2011 10:16:20 +0000 (12:16 +0200)]
Prevent dereferencing a null pointer, when parse_attribute_gnu() returns an empty list of attributes.

13 years agofix a few builtin declarations, add stpcpy builtin
Matthias Braun [Sat, 7 May 2011 11:05:39 +0000 (13:05 +0200)]
fix a few builtin declarations, add stpcpy builtin

13 years agofix const_void_ptr builtin types
Matthias Braun [Sat, 7 May 2011 00:09:42 +0000 (02:09 +0200)]
fix const_void_ptr builtin types

13 years agoremoving unused entities from the frame should happen as late as possible
Matthias Braun [Thu, 26 May 2011 11:28:26 +0000 (13:28 +0200)]
removing unused entities from the frame should happen as late as possible

13 years agoperform a convopt after target lowering, reorder some localopts
Matthias Braun [Thu, 26 May 2011 11:09:30 +0000 (13:09 +0200)]
perform a convopt after target lowering, reorder some localopts

13 years agoignore type qualifiers when checking arguments of main
Matthias Braun [Tue, 24 May 2011 10:23:55 +0000 (12:23 +0200)]
ignore type qualifiers when checking arguments of main

13 years agoremove pointless concept of a builtin-type
Matthias Braun [Tue, 24 May 2011 09:32:10 +0000 (11:32 +0200)]
remove pointless concept of a builtin-type

13 years agoFixed parameter type.
Sebastian Buchwald [Thu, 19 May 2011 15:01:38 +0000 (17:01 +0200)]
Fixed parameter type.

13 years agoAvoid unnecessary casts.
Christoph Mallon [Thu, 19 May 2011 11:29:46 +0000 (13:29 +0200)]
Avoid unnecessary casts.

13 years agoRemove the unnecessary distinction between compound_t structe and compound_t unione...
Christoph Mallon [Thu, 19 May 2011 06:33:00 +0000 (08:33 +0200)]
Remove the unnecessary distinction between compound_t structe and compound_t unione in struct entity_t, just use compound_t compound.

Its only use was causing code duplication in the AST printer anyway.
Everybody else already uses compound.

13 years agoWhitespace fix.
Christoph Mallon [Thu, 19 May 2011 05:38:56 +0000 (07:38 +0200)]
Whitespace fix.

13 years agoRemove unnecessary cast.
Christoph Mallon [Thu, 19 May 2011 05:38:43 +0000 (07:38 +0200)]
Remove unnecessary cast.

13 years agoHandle GNU __REDIRECT on MACHO.
Christoph Mallon [Thu, 19 May 2011 05:36:39 +0000 (07:36 +0200)]
Handle GNU __REDIRECT on MACHO.

13 years agoCorrent whitespace inconsistencies when printing type qualifiers.
Christoph Mallon [Mon, 16 May 2011 14:11:20 +0000 (16:11 +0200)]
Corrent whitespace inconsistencies when printing type qualifiers.

13 years agoRevert "gcse requires unreachable code removed"
Matthias Braun [Wed, 11 May 2011 10:36:42 +0000 (12:36 +0200)]
Revert "gcse requires unreachable code removed"

This reverts commit 246fd89748d4ad7ba600f4369f73f2ea9c60c76f.

13 years agogcse requires unreachable code removed
Andreas Zwinkau [Fri, 6 May 2011 10:48:57 +0000 (12:48 +0200)]
gcse requires unreachable code removed

13 years agoadapt to firm allowing Bad with different modes now
Matthias Braun [Thu, 5 May 2011 17:12:35 +0000 (19:12 +0200)]
adapt to firm allowing Bad with different modes now

13 years agoDo not compare boolean values with false/true, just use them.
Christoph Mallon [Thu, 5 May 2011 15:29:41 +0000 (17:29 +0200)]
Do not compare boolean values with false/true, just use them.

13 years agoCorrect off-by-something errors in error messages about declarators.
Christoph Mallon [Thu, 5 May 2011 15:28:37 +0000 (17:28 +0200)]
Correct off-by-something errors in error messages about declarators.

13 years agothere's no need to hide rtsopt from the options
Matthias Braun [Thu, 5 May 2011 11:14:00 +0000 (13:14 +0200)]
there's no need to hide rtsopt from the options

13 years agoOS/X headers expect __INTMAX_TYPE__ to be defined
Matthias Braun [Wed, 4 May 2011 23:36:35 +0000 (01:36 +0200)]
OS/X headers expect __INTMAX_TYPE__ to be defined

13 years agoimplement -fprofile-generate -fprofile-use similar to gcc
Matthias Braun [Thu, 28 Apr 2011 14:48:11 +0000 (16:48 +0200)]
implement -fprofile-generate -fprofile-use similar to gcc

13 years agofix some -fno-XXX options
Matthias Braun [Thu, 28 Apr 2011 12:24:01 +0000 (14:24 +0200)]
fix some -fno-XXX options

13 years agodo not use shortcut to determine operation mode as the left side could be a Bad
Matthias Braun [Wed, 27 Apr 2011 17:36:14 +0000 (19:36 +0200)]
do not use shortcut to determine operation mode as the left side could be a Bad

13 years agodo extensive verification by default
Matthias Braun [Wed, 27 Apr 2011 16:26:45 +0000 (18:26 +0200)]
do extensive verification by default

13 years agouse lower_CopyB as a phase
Matthias Braun [Wed, 27 Apr 2011 16:27:06 +0000 (18:27 +0200)]
use lower_CopyB as a phase

13 years agochange NEWS file to use markdown syntax
Matthias Braun [Mon, 18 Apr 2011 10:31:17 +0000 (12:31 +0200)]
change NEWS file to use markdown syntax

13 years agoupdate Makefile
Matthias Braun [Fri, 15 Apr 2011 14:13:46 +0000 (16:13 +0200)]
update Makefile

13 years agoupdate make_release.sh
Matthias Braun [Fri, 15 Apr 2011 14:13:24 +0000 (16:13 +0200)]
update make_release.sh

13 years agoNEWS update
Matthias Braun [Fri, 15 Apr 2011 14:13:13 +0000 (16:13 +0200)]
NEWS update

13 years agofix target-triple handling
Matthias Braun [Fri, 8 Apr 2011 14:14:07 +0000 (16:14 +0200)]
fix target-triple handling

13 years agoAdded .i file extension. Changed behaviour for .ii file extension.
Julius Neuffer [Thu, 14 Apr 2011 11:48:33 +0000 (13:48 +0200)]
Added .i file extension. Changed behaviour for .ii file extension.

13 years agoInline function, which consists of a single call, into its only caller.
Christoph Mallon [Fri, 8 Apr 2011 10:50:05 +0000 (12:50 +0200)]
Inline function, which consists of a single call, into its only caller.

13 years agoRemove stale stuff from Makefile.
Christoph Mallon [Fri, 8 Apr 2011 10:49:23 +0000 (12:49 +0200)]
Remove stale stuff from Makefile.

13 years agofix xmalloc problems
Manuel Mohr [Fri, 8 Apr 2011 08:43:03 +0000 (10:43 +0200)]
fix xmalloc problems

13 years agofix for last commit
Matthias Braun [Thu, 7 Apr 2011 09:32:30 +0000 (11:32 +0200)]
fix for last commit

13 years agorefactor machine/os initialisation part so it can be reused by other frontends
Matthias Braun [Thu, 7 Apr 2011 09:22:46 +0000 (11:22 +0200)]
refactor machine/os initialisation part so it can be reused by other frontends

13 years agoavoid apple specific assembler invocation
Matthias Braun [Tue, 5 Apr 2011 07:47:01 +0000 (09:47 +0200)]
avoid apple specific assembler invocation

13 years agoSimplify/Clean up firm_option().
Christoph Mallon [Thu, 31 Mar 2011 13:00:50 +0000 (15:00 +0200)]
Simplify/Clean up firm_option().

13 years agoActivate fp-vrp at -O2.
Christoph Mallon [Thu, 31 Mar 2011 11:24:13 +0000 (13:24 +0200)]
Activate fp-vrp at -O2.

13 years agobring gcse back as own phase
Matthias Braun [Wed, 30 Mar 2011 14:54:37 +0000 (16:54 +0200)]
bring gcse back as own phase

13 years agosimplify more driver stuff and remove more unused options
Matthias Braun [Wed, 30 Mar 2011 12:12:12 +0000 (14:12 +0200)]
simplify more driver stuff and remove more unused options

13 years agoadapt to simplified opt_funccall interface
Matthias Braun [Wed, 30 Mar 2011 11:58:23 +0000 (13:58 +0200)]
adapt to simplified opt_funccall interface

13 years agoadapt to TLS simplifications in firm
Matthias Braun [Wed, 23 Mar 2011 13:26:41 +0000 (14:26 +0100)]
adapt to TLS simplifications in firm

13 years agoremove a bunch of unimplemented/obsolete commandline switches
Matthias Braun [Wed, 30 Mar 2011 09:10:22 +0000 (11:10 +0200)]
remove a bunch of unimplemented/obsolete commandline switches

13 years agoRemove gcse optimization
Andreas Zwinkau [Fri, 25 Mar 2011 14:03:31 +0000 (15:03 +0100)]
Remove gcse optimization

It does exactly the same as 'place',
so where 'gcse' was called by default,
the driver now calls 'place'.

13 years agoPut parallelize-mem into safe-defaults
Andreas Zwinkau [Thu, 17 Mar 2011 14:43:51 +0000 (15:43 +0100)]
Put parallelize-mem into safe-defaults

It was simply disabled before.

13 years agoredo big_endian bitfield packing in a simpler and more correct way
Matthias Braun [Wed, 16 Mar 2011 17:44:36 +0000 (18:44 +0100)]
redo big_endian bitfield packing in a simpler and more correct way

13 years agofix whitespace errors
Matthias Braun [Tue, 15 Mar 2011 11:47:22 +0000 (12:47 +0100)]
fix whitespace errors

13 years agoremove broken/unused caml export
Matthias Braun [Tue, 15 Mar 2011 11:45:53 +0000 (12:45 +0100)]
remove broken/unused caml export

13 years agodo not force -m32 by default but make -m32 work correctly
Matthias Braun [Mon, 14 Mar 2011 12:41:49 +0000 (13:41 +0100)]
do not force -m32 by default but make -m32 work correctly

13 years agoforward -static and -shared flag to linker (like gcc does)
Matthias Braun [Mon, 14 Mar 2011 12:01:58 +0000 (13:01 +0100)]
forward -static and -shared flag to linker (like gcc does)

13 years agoFix type semantics: &, ^ and | require integer operands.
Christoph Mallon [Fri, 11 Mar 2011 21:00:00 +0000 (22:00 +0100)]
Fix type semantics: &, ^ and | require integer operands.

13 years agofix confusing error message when misspelling -mXXX options
Matthias Braun [Mon, 7 Mar 2011 12:07:34 +0000 (13:07 +0100)]
fix confusing error message when misspelling -mXXX options

13 years agocompound parameter lowering is done in lower_for_target now
Matthias Braun [Fri, 4 Mar 2011 11:53:31 +0000 (11:53 +0000)]
compound parameter lowering is done in lower_for_target now

[r28473]

13 years agomake the uninitialized warning depend on the -wuninitialized switch
Matthias Braun [Thu, 3 Mar 2011 15:54:57 +0000 (15:54 +0000)]
make the uninitialized warning depend on the -wuninitialized switch

[r28472]

13 years agoadapt to firm Cmp changes
Matthias Braun [Mon, 28 Feb 2011 11:46:14 +0000 (11:46 +0000)]
adapt to firm Cmp changes

[r28461]

13 years agoFix another typo in the same comment.
Christoph Mallon [Thu, 24 Feb 2011 11:01:30 +0000 (11:01 +0000)]
Fix another typo in the same comment.

[r28448]

13 years agoFix typo in comment.
Christoph Mallon [Thu, 24 Feb 2011 10:22:09 +0000 (10:22 +0000)]
Fix typo in comment.

[r28444]

13 years agoRemove duplicate assert.
Christoph Mallon [Thu, 24 Feb 2011 10:22:08 +0000 (10:22 +0000)]
Remove duplicate assert.

[r28443]

13 years agoThere is no need to #ifdef an identifier before #undefing it.
Christoph Mallon [Thu, 24 Feb 2011 10:22:06 +0000 (10:22 +0000)]
There is no need to #ifdef an identifier before #undefing it.

[r28442]

13 years agoAllow declarations after labels in C++ mode.
Christoph Mallon [Thu, 24 Feb 2011 10:22:04 +0000 (10:22 +0000)]
Allow declarations after labels in C++ mode.

[r28441]

13 years agoImprove error message: Show the position of the label statement instead of the }...
Christoph Mallon [Thu, 24 Feb 2011 10:22:02 +0000 (10:22 +0000)]
Improve error message: Show the position of the label statement instead of the } when complaining about a label at the end of a compound statement.

[r28440]

13 years agoDo not check for a null pointer in the type printer, because we stopped using null...
Christoph Mallon [Thu, 24 Feb 2011 10:21:59 +0000 (10:21 +0000)]
Do not check for a null pointer in the type printer, because we stopped using null pointers as error type long ago.

[r28439]

13 years agoHandle GNU extension __REDIRECT
Andreas Zwinkau [Thu, 24 Feb 2011 09:59:09 +0000 (09:59 +0000)]
Handle GNU extension __REDIRECT

Used to specify a different ld_name than function name.
E.g. use to redirect fstat to fstat64 in GNU.

Fixes C/gnu99/redirect

[r28437]

13 years agoAttemp to fix typedef_init.c testcase.
Michael Beck [Sun, 20 Feb 2011 11:13:11 +0000 (11:13 +0000)]
Attemp to fix typedef_init.c testcase.

[r28425]

13 years agoadd some comments, made for loop look "more usual", no functional change
Michael Beck [Sun, 20 Feb 2011 11:13:02 +0000 (11:13 +0000)]
add some comments, made for loop look "more usual", no functional change

[r28424]

13 years agoChange is_error_entity() to !is_entity_valid(), which is consistent with is_type_valid().
Christoph Mallon [Fri, 18 Feb 2011 21:05:13 +0000 (21:05 +0000)]
Change is_error_entity() to !is_entity_valid(), which is consistent with is_type_valid().

[r28419]

13 years agoCorrect logic in is_error_entity().
Christoph Mallon [Fri, 18 Feb 2011 21:05:10 +0000 (21:05 +0000)]
Correct logic in is_error_entity().

This fixes C/should_fail/typedef_enum.c.

[r28418]

13 years agoimplement sizeof(func) and alignof(func) in gnu99 mode
Matthias Braun [Fri, 18 Feb 2011 16:45:53 +0000 (16:45 +0000)]
implement sizeof(func) and alignof(func) in gnu99 mode

[r28414]

13 years agoCorrect off-by-whatever errors of the source position in parse_select_expression().
Christoph Mallon [Fri, 18 Feb 2011 12:09:26 +0000 (12:09 +0000)]
Correct off-by-whatever errors of the source position in parse_select_expression().

[r28407]

13 years agoCorrect typo in comment.
Christoph Mallon [Fri, 18 Feb 2011 12:09:24 +0000 (12:09 +0000)]
Correct typo in comment.

[r28406]

13 years agoPrefer get_mode_{minus_one,null}() over new_tarval_from_long({-1,0}).
Christoph Mallon [Fri, 18 Feb 2011 12:09:23 +0000 (12:09 +0000)]
Prefer get_mode_{minus_one,null}() over new_tarval_from_long({-1,0}).

[r28405]

13 years agoAssign the proper namespace to all new entities and assert that nobody tries to retri...
Christoph Mallon [Fri, 18 Feb 2011 12:09:19 +0000 (12:09 +0000)]
Assign the proper namespace to all new entities and assert that nobody tries to retrieve entities with NAMESPACE_INVALID.

This corrects C/should_fail/conflicting_types.c.

[r28404]

13 years agoSupport -pthread argument on Linux
Andreas Zwinkau [Fri, 18 Feb 2011 10:02:51 +0000 (10:02 +0000)]
Support -pthread argument on Linux

Other platforms require different arguments or different behavior.

[r28402]

13 years agoRate EXPR_REFERENCE (variable uses) with error type as EXPR_CLASS_ERROR instead of...
Christoph Mallon [Thu, 17 Feb 2011 13:45:49 +0000 (13:45 +0000)]
Rate EXPR_REFERENCE (variable uses) with error type as EXPR_CLASS_ERROR instead of EXPR_CLASS_VARIABLE.

For "case unknown_var:" this prevents the subsequent error that the case label is not constant.

[r28393]

13 years agofix last commit: conditional_expression might use compounds
Matthias Braun [Wed, 9 Feb 2011 16:13:41 +0000 (16:13 +0000)]
fix last commit: conditional_expression might use compounds

[r28359]

13 years agofix cp_error065.c
Matthias Braun [Wed, 9 Feb 2011 14:50:48 +0000 (14:50 +0000)]
fix cp_error065.c

[r28357]

13 years agoAdding some file extensions for detection
Andreas Zwinkau [Wed, 9 Feb 2011 14:48:45 +0000 (14:48 +0000)]
Adding some file extensions for detection

Interpretation according to gcc.

[r28355]

13 years agofix warning
Matthias Braun [Wed, 9 Feb 2011 13:55:49 +0000 (13:55 +0000)]
fix warning

[r28348]

13 years agoadapt to remove of Quot node in latest libfirm
Matthias Braun [Wed, 9 Feb 2011 13:55:48 +0000 (13:55 +0000)]
adapt to remove of Quot node in latest libfirm

[r28347]