cparser
13 years agoOverhaul for_statement_to_firm() so it is more friendly towards SSA construction...
Christoph Mallon [Sun, 6 Feb 2011 07:50:46 +0000 (07:50 +0000)]
Overhaul for_statement_to_firm() so it is more friendly towards SSA construction due to maturing in dominance order.

[r28316]

13 years agoSimplify maturing of the header block in do_while_statement_to_firm(). This also...
Christoph Mallon [Sun, 6 Feb 2011 07:50:42 +0000 (07:50 +0000)]
Simplify maturing of the header block in do_while_statement_to_firm(). This also is more friendly towards SSA construction due to maturing in dominance order.

[r28315]

13 years agoOverhaul while_statement_to_firm(). Now it is a tad shorter/simpler and more friendly...
Christoph Mallon [Sun, 6 Feb 2011 07:50:39 +0000 (07:50 +0000)]
Overhaul while_statement_to_firm(). Now it is a tad shorter/simpler and more friendly towards SSA construction due to maturing in dominance order.

[r28314]

13 years agoOverhaul if_statement_to_firm(). Now it is a tad shorter/simpler and more friendly...
Christoph Mallon [Sun, 6 Feb 2011 07:50:35 +0000 (07:50 +0000)]
Overhaul if_statement_to_firm(). Now it is a tad shorter/simpler and more friendly towards SSA construction due to maturing in dominance order.

[r28313]

13 years agoSimplify daisy chaining local labels.
Christoph Mallon [Sat, 5 Feb 2011 09:04:11 +0000 (09:04 +0000)]
Simplify daisy chaining local labels.

[r28309]

13 years agoDo not eat() the semicolon at the end of a local label declaration, but expect() it.
Christoph Mallon [Sat, 5 Feb 2011 09:04:07 +0000 (09:04 +0000)]
Do not eat() the semicolon at the end of a local label declaration, but expect() it.

[r28308]

13 years agoImprove error recovery: Do not create an invalid statement if the semicolon at the...
Christoph Mallon [Sat, 5 Feb 2011 09:04:03 +0000 (09:04 +0000)]
Improve error recovery: Do not create an invalid statement if the semicolon at the end of a goto statement is missing.

[r28307]

13 years agoCorrect typo in label name.
Christoph Mallon [Sat, 5 Feb 2011 09:04:00 +0000 (09:04 +0000)]
Correct typo in label name.

[r28306]

13 years agoRemove unnecessary gotos.
Christoph Mallon [Sat, 5 Feb 2011 09:03:56 +0000 (09:03 +0000)]
Remove unnecessary gotos.

[r28305]

13 years agoProvide the specific error message about a label at the end of a compound statement...
Christoph Mallon [Sat, 5 Feb 2011 09:03:51 +0000 (09:03 +0000)]
Provide the specific error message about a label at the end of a compound statement not just for goto labels but for case and default labels, too.

[r28304]

13 years agoReduce variable scope.
Christoph Mallon [Sat, 5 Feb 2011 09:03:47 +0000 (09:03 +0000)]
Reduce variable scope.

[r28303]

13 years agoSimplify case_label_to_firm() a bit, which can be done since new_immBlock() does...
Christoph Mallon [Sat, 5 Feb 2011 09:03:43 +0000 (09:03 +0000)]
Simplify case_label_to_firm() a bit, which can be done since new_immBlock() does not set current_block anymore.

[r28302]

13 years agoSimplify do_while_statement_to_firm() a bit, which can be done since new_immBlock...
Christoph Mallon [Sat, 5 Feb 2011 09:03:39 +0000 (09:03 +0000)]
Simplify do_while_statement_to_firm() a bit, which can be done since new_immBlock() does not set current_block anymore.

[r28301]

13 years agoCorrect copy&paste-o in warning message.
Christoph Mallon [Sat, 5 Feb 2011 09:03:34 +0000 (09:03 +0000)]
Correct copy&paste-o in warning message.

[r28300]

13 years agoRemove unnecessary test in ast2firm: A label-statement always has an inner statement.
Christoph Mallon [Fri, 4 Feb 2011 14:27:21 +0000 (14:27 +0000)]
Remove unnecessary test in ast2firm: A label-statement always has an inner statement.

[r28299]

13 years agoRemove unnecessary test in ast2firm: A case-label-statement always has an inner state...
Christoph Mallon [Fri, 4 Feb 2011 14:27:18 +0000 (14:27 +0000)]
Remove unnecessary test in ast2firm: A case-label-statement always has an inner statement.

[r28298]

13 years agoRemove unnecessary test in ast2firm: A switch-statement always has a body.
Christoph Mallon [Fri, 4 Feb 2011 14:27:16 +0000 (14:27 +0000)]
Remove unnecessary test in ast2firm: A switch-statement always has a body.

[r28297]

13 years agoRemove unnecessary test in ast2firm: A for-statement always has a body.
Christoph Mallon [Fri, 4 Feb 2011 14:27:14 +0000 (14:27 +0000)]
Remove unnecessary test in ast2firm: A for-statement always has a body.

[r28296]

13 years agoRemove unnecessary tests in ast2firm: An if-statement always has a true_statement.
Christoph Mallon [Fri, 4 Feb 2011 14:27:13 +0000 (14:27 +0000)]
Remove unnecessary tests in ast2firm: An if-statement always has a true_statement.

[r28295]

13 years agoImprove error recovery: Produce a valid statement and continue parsing even if the...
Christoph Mallon [Fri, 4 Feb 2011 14:27:10 +0000 (14:27 +0000)]
Improve error recovery: Produce a valid statement and continue parsing even if the ":" after "default" is missing.

[r28294]

13 years agoWhitespace fixes.
Christoph Mallon [Fri, 4 Feb 2011 14:27:06 +0000 (14:27 +0000)]
Whitespace fixes.

[r28293]

13 years agoRemove unnecessary/wrong cast. ARR_SHRINKLEN() uses size_t now.
Christoph Mallon [Mon, 31 Jan 2011 10:02:34 +0000 (10:02 +0000)]
Remove unnecessary/wrong cast. ARR_SHRINKLEN() uses size_t now.

[r28284]

13 years agoUse correct parameter name in comment.
Christoph Mallon [Mon, 31 Jan 2011 10:02:31 +0000 (10:02 +0000)]
Use correct parameter name in comment.

[r28283]

13 years agoRemoved superflous computations, these are done later again.
Michael Beck [Fri, 28 Jan 2011 01:06:19 +0000 (01:06 +0000)]
Removed superflous computations, these are done later again.

[r28275]

13 years agoBugFix: Implement missing void casts, this fixed cp_error064.c
Michael Beck [Fri, 28 Jan 2011 01:06:10 +0000 (01:06 +0000)]
BugFix: Implement missing void casts, this fixed cp_error064.c

[r28274]

13 years agoSimplify while_statement_to_firm() a bit, which can be done since new_immBlock()...
Christoph Mallon [Wed, 19 Jan 2011 14:53:32 +0000 (14:53 +0000)]
Simplify while_statement_to_firm() a bit, which can be done since new_immBlock() does not set current_block anymore.

[r28260]

13 years agoworkaround/fix jam dependency problems
Matthias Braun [Thu, 13 Jan 2011 11:55:59 +0000 (11:55 +0000)]
workaround/fix jam dependency problems

[r28245]

13 years agoconstructors/destructors pointers must have visibility_private
Matthias Braun [Thu, 13 Jan 2011 11:55:58 +0000 (11:55 +0000)]
constructors/destructors pointers must have visibility_private

[r28244]

13 years agoattempt to workaround input problems on OS/X gdb
Matthias Braun [Wed, 5 Jan 2011 17:28:27 +0000 (17:28 +0000)]
attempt to workaround input problems on OS/X gdb

[r28207]

13 years agoFixed type sizes and alignment for -m64.
Michael Beck [Thu, 30 Dec 2010 21:23:22 +0000 (21:23 +0000)]
Fixed type sizes and alignment for -m64.

[r28205]

13 years agoonly write out functions for the main file when generating JNA declarations
Matthias Braun [Fri, 3 Dec 2010 15:05:26 +0000 (15:05 +0000)]
only write out functions for the main file when generating JNA declarations

[r28178]

13 years agoadapt to latest libfirm
Matthias Braun [Wed, 1 Dec 2010 13:11:32 +0000 (13:11 +0000)]
adapt to latest libfirm

[r28173]

13 years agowe might also have array null-initializers; do NOT do anythign for union members
Matthias Braun [Wed, 1 Dec 2010 12:45:55 +0000 (12:45 +0000)]
we might also have array null-initializers; do NOT do anythign for union members

[r28171]

13 years agofix dyanimc_initializer creation for IR_INITIALIZER_NULL on struct types
Matthias Braun [Wed, 1 Dec 2010 12:02:48 +0000 (12:02 +0000)]
fix dyanimc_initializer creation for IR_INITIALIZER_NULL on struct types

[r28170]

13 years agocond may be NULL
Matthias Braun [Wed, 1 Dec 2010 12:02:47 +0000 (12:02 +0000)]
cond may be NULL

[r28169]

13 years agonew_d_defaultProj fails if its argument is already a Bad. Do not use it anymore ...
Matthias Braun [Mon, 29 Nov 2010 18:01:48 +0000 (18:01 +0000)]
new_d_defaultProj fails if its argument is already a Bad. Do not use it anymore (defaultProj is odd anyway IMO)

[r28165]

13 years agolong double must not be exported as java double
Matthias Braun [Mon, 29 Nov 2010 18:01:48 +0000 (18:01 +0000)]
long double must not be exported as java double

[r28164]

13 years agoFix Bug 62 aka C_struct_init testcase
Andreas Zwinkau [Thu, 25 Nov 2010 14:47:21 +0000 (14:47 +0000)]
Fix Bug 62 aka C_struct_init testcase

[r28158]

13 years agoadapt style of generated code to java coding conventions
Matthias Braun [Mon, 22 Nov 2010 14:04:44 +0000 (14:04 +0000)]
adapt style of generated code to java coding conventions

[r28151]

13 years agoadapt to latest libfirm
Matthias Braun [Thu, 4 Nov 2010 12:15:45 +0000 (12:15 +0000)]
adapt to latest libfirm

[r28129]

13 years agoLet git ignore more visual studio files.
Michael Beck [Sat, 30 Oct 2010 00:56:42 +0000 (00:56 +0000)]
Let git ignore more visual studio files.

[r28123]

13 years agoUse EXIT_SUCCESS and EXIT_FAILURE where appropriate.
Michael Beck [Thu, 28 Oct 2010 19:19:12 +0000 (19:19 +0000)]
Use EXIT_SUCCESS and EXIT_FAILURE where appropriate.

[r28122]

13 years agoavoid warning in generated jna code
Matthias Braun [Wed, 13 Oct 2010 14:59:07 +0000 (14:59 +0000)]
avoid warning in generated jna code

[r28117]

13 years agoFix JNA direct-mode wrapper
Andreas Zwinkau [Wed, 13 Oct 2010 14:47:22 +0000 (14:47 +0000)]
Fix JNA direct-mode wrapper

[r28115]

13 years agoadd more definitions for __builtin___XXX_chk
Matthias Braun [Tue, 12 Oct 2010 22:17:54 +0000 (22:17 +0000)]
add more definitions for __builtin___XXX_chk

[r28113]

13 years agoinitial implementation of builtin_object_size
Matthias Braun [Tue, 12 Oct 2010 22:17:53 +0000 (22:17 +0000)]
initial implementation of builtin_object_size

[r28112]

13 years agofix bug on darwn introduced in the '-mtriple' commit
Matthias Braun [Tue, 12 Oct 2010 21:53:20 +0000 (21:53 +0000)]
fix bug on darwn introduced in the '-mtriple' commit

[r28110]

13 years agoJNA generator now emits for JNA direct-mode
Andreas Zwinkau [Mon, 11 Oct 2010 12:52:02 +0000 (12:52 +0000)]
JNA generator now emits for JNA direct-mode
(hopefully performance gains)

[r28094]

13 years agowork when strings are const char*
Matthias Braun [Mon, 11 Oct 2010 12:03:01 +0000 (12:03 +0000)]
work when strings are const char*

[r28092]

13 years agoperform archep lowering before the target-lowering pass
Matthias Braun [Mon, 11 Oct 2010 12:03:00 +0000 (12:03 +0000)]
perform archep lowering before the target-lowering pass

[r28091]

13 years agoadapt to libfirm (rename tarval to ir_tarval)
Matthias Braun [Fri, 8 Oct 2010 13:37:02 +0000 (13:37 +0000)]
adapt to libfirm (rename tarval to ir_tarval)

[r28063]

13 years agoadapt to latest libfirm
Matthias Braun [Wed, 6 Oct 2010 08:40:49 +0000 (08:40 +0000)]
adapt to latest libfirm

[r28045]

13 years agoadd -mtriple= to specify target architecture; refactor target architecture specific...
Matthias Braun [Wed, 6 Oct 2010 08:40:48 +0000 (08:40 +0000)]
add -mtriple= to specify target architecture; refactor target architecture specific code

[r28044]

13 years agoadapt to latest libfirm
Matthias Braun [Wed, 22 Sep 2010 14:08:07 +0000 (14:08 +0000)]
adapt to latest libfirm

[r28025]

13 years agoset graph to phase_low directly after running lower_for_target
Matthias Braun [Wed, 22 Sep 2010 14:08:06 +0000 (14:08 +0000)]
set graph to phase_low directly after running lower_for_target

[r28024]

13 years agoadapt to latest firm (no need to explicitely invoke switch lowerer, backend does...
Matthias Braun [Fri, 10 Sep 2010 13:32:55 +0000 (13:32 +0000)]
adapt to latest firm (no need to explicitely invoke switch lowerer, backend does it now

[r28005]

13 years agoadd missing semantic check: varargs arguments must have object type (= not void)
Matthias Braun [Fri, 10 Sep 2010 09:29:48 +0000 (09:29 +0000)]
add missing semantic check: varargs arguments must have object type (= not void)

[r27986]

13 years agonew bitfield struct layout code for big-endian (=sparc) machines
Matthias Braun [Mon, 6 Sep 2010 13:06:09 +0000 (13:06 +0000)]
new bitfield struct layout code for big-endian (=sparc) machines

[r27975]

13 years agoCopy gcc behavior: unknown file extension means object file
Andreas Zwinkau [Wed, 18 Aug 2010 14:51:21 +0000 (14:51 +0000)]
Copy gcc behavior: unknown file extension means object file

[r27943]

13 years agoadapt to libfirm API changes
Matthias Braun [Wed, 18 Aug 2010 13:37:15 +0000 (13:37 +0000)]
adapt to libfirm API changes

[r27939]

13 years agocparser ignores -fmessage-length now
Andreas Zwinkau [Wed, 18 Aug 2010 12:51:13 +0000 (12:51 +0000)]
cparser ignores -fmessage-length now

[r27935]

13 years agoFixed icc warning by using enum instead of (equivalent) 0.
Michael Beck [Sat, 7 Aug 2010 10:11:10 +0000 (10:11 +0000)]
Fixed icc warning by using enum instead of (equivalent) 0.

[r27896]

13 years agoNo need for libdl.
Christoph Mallon [Wed, 4 Aug 2010 10:25:54 +0000 (10:25 +0000)]
No need for libdl.

[r27870]

13 years agoUpdate config.mak.example: No more libcore and liblpp.
Christoph Mallon [Wed, 4 Aug 2010 09:26:43 +0000 (09:26 +0000)]
Update config.mak.example: No more libcore and liblpp.

[r27869]

13 years agoadapt to latest libfirm
Matthias Braun [Wed, 28 Jul 2010 15:00:22 +0000 (15:00 +0000)]
adapt to latest libfirm

[r27841]

13 years agono unnecessary and cryptic abreviations: rename vrfy to verify
Matthias Braun [Wed, 28 Jul 2010 14:58:26 +0000 (14:58 +0000)]
no unnecessary and cryptic abreviations: rename vrfy to verify

[r27838]

13 years agodon't output builtin stuff to jna wrappers
Matthias Braun [Fri, 2 Jul 2010 11:26:26 +0000 (11:26 +0000)]
don't output builtin stuff to jna wrappers

[r27684]

14 years agoadapt to new firm dumper interface
Matthias Braun [Fri, 25 Jun 2010 07:21:19 +0000 (07:21 +0000)]
adapt to new firm dumper interface

[r27654]

14 years agoimplement a bare-bones cparser --help
Matthias Braun [Wed, 23 Jun 2010 09:27:10 +0000 (09:27 +0000)]
implement a bare-bones cparser --help

[r27643]

14 years agosome more builtins
Matthias Braun [Thu, 17 Jun 2010 10:26:26 +0000 (10:26 +0000)]
some more builtins

[r27632]

14 years agoremove unused dbg_printf function
Matthias Braun [Thu, 17 Jun 2010 08:50:10 +0000 (08:50 +0000)]
remove unused dbg_printf function

[r27629]

14 years agofirm backend is not optional anymore
Matthias Braun [Fri, 28 May 2010 12:01:47 +0000 (12:01 +0000)]
firm backend is not optional anymore

[r27602]

14 years agomake use of the new possibility to avoid firm_parameter_t
Matthias Braun [Tue, 25 May 2010 13:49:33 +0000 (13:49 +0000)]
make use of the new possibility to avoid firm_parameter_t

[r27585]

14 years agofix for latest libfirm
Matthias Braun [Fri, 21 May 2010 16:34:53 +0000 (16:34 +0000)]
fix for latest libfirm

[r27571]

14 years agoComplement r27480: Remove the removed files from the Makefile, too.
Christoph Mallon [Sat, 8 May 2010 21:21:39 +0000 (21:21 +0000)]
Complement r27480: Remove the removed files from the Makefile, too.

[r27518]

14 years agoupdate for release
Matthias Braun [Wed, 5 May 2010 09:26:43 +0000 (09:26 +0000)]
update for release

[r27487]

14 years agofix for cp_error062
Matthias Braun [Wed, 5 May 2010 09:09:25 +0000 (09:09 +0000)]
fix for cp_error062

[r27485]

14 years agoavoid code duplication in cparser by using libfirms obstack
Matthias Braun [Tue, 4 May 2010 13:14:07 +0000 (13:14 +0000)]
avoid code duplication in cparser by using libfirms obstack

[r27480]

14 years agoonly use rts_entities when number of parameters and results match
Matthias Braun [Mon, 3 May 2010 14:54:53 +0000 (14:54 +0000)]
only use rts_entities when number of parameters and results match

[r27463]

14 years agoupdate jna writer to new integer literals
Matthias Braun [Thu, 29 Apr 2010 11:54:43 +0000 (11:54 +0000)]
update jna writer to new integer literals

[r27457]

14 years agocall it subexpression instead of sub_expression; attempt to improve error reporting...
Matthias Braun [Tue, 27 Apr 2010 08:57:13 +0000 (08:57 +0000)]
call it subexpression instead of sub_expression; attempt to improve error reporting for invalid asm statements

[r27449]

14 years agoThe memory output for asm nodes uses proj N, not N+1.
Christoph Mallon [Mon, 26 Apr 2010 14:58:54 +0000 (14:58 +0000)]
The memory output for asm nodes uses proj N, not N+1.

[r27446]

14 years agoAdd allocate_declarator_zero().
Christoph Mallon [Fri, 23 Apr 2010 16:52:41 +0000 (16:52 +0000)]
Add allocate_declarator_zero().

[r27435]

14 years agoFix C/should_fail/array[13].c: static array parameters require a size.
Christoph Mallon [Thu, 22 Apr 2010 16:19:19 +0000 (16:19 +0000)]
Fix C/should_fail/array[13].c: static array parameters require a size.

[r27433]

14 years agoSlightly simplify checking octal numbers in the lexer.
Christoph Mallon [Thu, 22 Apr 2010 16:19:16 +0000 (16:19 +0000)]
Slightly simplify checking octal numbers in the lexer.

[r27432]

14 years agoFix C/should_fail/array0.c: static is allowed only once in an array declarator.
Christoph Mallon [Thu, 22 Apr 2010 16:19:12 +0000 (16:19 +0000)]
Fix C/should_fail/array0.c: static is allowed only once in an array declarator.

[r27431]

14 years agoMove error message to a better place.
Christoph Mallon [Thu, 22 Apr 2010 16:19:09 +0000 (16:19 +0000)]
Move error message to a better place.

[r27430]

14 years agoAdd references to the standards.
Christoph Mallon [Thu, 22 Apr 2010 16:19:05 +0000 (16:19 +0000)]
Add references to the standards.

[r27429]

14 years agoReduce code duplication.
Christoph Mallon [Thu, 22 Apr 2010 16:19:02 +0000 (16:19 +0000)]
Reduce code duplication.

[r27428]

14 years agoFix C/gnu99/typeof.c: revert_automatic_type_conversion() was missing in the default...
Christoph Mallon [Thu, 22 Apr 2010 16:18:58 +0000 (16:18 +0000)]
Fix C/gnu99/typeof.c: revert_automatic_type_conversion() was missing in the default case.  Remember kids: Code duplication is bad.

[r27427]

14 years ago%s/may not/must not/.
Christoph Mallon [Thu, 22 Apr 2010 16:18:54 +0000 (16:18 +0000)]
%s/may not/must not/.

[r27426]

14 years agofixed uninitialized variable
Michael Beck [Sun, 18 Apr 2010 12:49:47 +0000 (12:49 +0000)]
fixed uninitialized variable

[r27413]

14 years agoenable loop inversion by default seems to be stable now
Matthias Braun [Thu, 15 Apr 2010 14:53:16 +0000 (14:53 +0000)]
enable loop inversion by default seems to be stable now

[r27409]

14 years agoavoid usage of non C99 function
Matthias Braun [Thu, 15 Apr 2010 13:31:08 +0000 (13:31 +0000)]
avoid usage of non C99 function

[r27406]

14 years agobetter packing of struct, updates for release
Matthias Braun [Thu, 15 Apr 2010 13:22:25 +0000 (13:22 +0000)]
better packing of struct, updates for release

[r27405]

14 years agoARG, struct offsets are potentially more than 16bit
Matthias Braun [Wed, 14 Apr 2010 17:01:18 +0000 (17:01 +0000)]
ARG, struct offsets are potentially more than 16bit

[r27399]

14 years agoignore -fPIC
Matthias Braun [Wed, 14 Apr 2010 17:00:54 +0000 (17:00 +0000)]
ignore -fPIC

[r27398]

14 years agoAdd option (-ffp-vrp) for fixpoint VRP.
Christoph Mallon [Mon, 12 Apr 2010 12:48:45 +0000 (12:48 +0000)]
Add option (-ffp-vrp) for fixpoint VRP.

[r27378]

14 years agoClean up the list of optimisations.
Christoph Mallon [Sat, 10 Apr 2010 22:41:01 +0000 (22:41 +0000)]
Clean up the list of optimisations.

[r27375]

14 years agocombo should be enabled by default
Matthias Braun [Wed, 7 Apr 2010 14:33:23 +0000 (14:33 +0000)]
combo should be enabled by default

[r27357]