cparser
12 years agofix --help display
Matthias Braun [Tue, 20 Dec 2011 13:34:51 +0000 (14:34 +0100)]
fix --help display

12 years agoFixed wrong enum type.
Sebastian Buchwald [Wed, 21 Dec 2011 13:20:43 +0000 (14:20 +0100)]
Fixed wrong enum type.

12 years agomaturing start and end block isn't necessary anymore with latest libfirm
Matthias Braun [Mon, 19 Dec 2011 09:57:08 +0000 (10:57 +0100)]
maturing start and end block isn't necessary anymore with latest libfirm

12 years agodo not use ir_.*_ptr types
Matthias Braun [Mon, 12 Dec 2011 15:18:24 +0000 (16:18 +0100)]
do not use ir_.*_ptr types

12 years agoDo not link on every make invocation
Andreas Zwinkau [Mon, 19 Dec 2011 14:45:50 +0000 (15:45 +0100)]
Do not link on every make invocation

Previously, ld had to be called, because the static libfirm might have
been updated.

Note the little hack, which apparently makes GNU Make re-evaluated the
Makefile, whenever the phony libfirm_subdir goal has been executed:

> Makefile: libfirm_subdir

12 years agofix noreturn attribute
Matthias Braun [Thu, 8 Dec 2011 17:39:49 +0000 (18:39 +0100)]
fix noreturn attribute

12 years agoignore gcc --unroll-loops
Matthias Braun [Wed, 7 Dec 2011 17:54:57 +0000 (18:54 +0100)]
ignore gcc --unroll-loops

12 years agoupdate NEWS, README
Matthias Braun [Wed, 7 Dec 2011 17:54:47 +0000 (18:54 +0100)]
update NEWS, README

12 years agofix warnings
Matthias Braun [Mon, 28 Nov 2011 17:44:16 +0000 (18:44 +0100)]
fix warnings

12 years agocompound literals are linker_constants
Matthias Braun [Thu, 24 Nov 2011 20:13:20 +0000 (21:13 +0100)]
compound literals are linker_constants

12 years agofix non-scalar type initializers
Matthias Braun [Thu, 24 Nov 2011 20:13:05 +0000 (21:13 +0100)]
fix non-scalar type initializers

12 years agocreate constant initializers as entities in data segment
Matthias Braun [Thu, 24 Nov 2011 20:00:02 +0000 (21:00 +0100)]
create constant initializers as entities in data segment

12 years agocleanup driver interface a bit
Matthias Braun [Fri, 18 Nov 2011 16:16:29 +0000 (17:16 +0100)]
cleanup driver interface a bit

12 years agothe frontend shouldn't care about the inliner
Matthias Braun [Thu, 17 Nov 2011 16:33:46 +0000 (17:33 +0100)]
the frontend shouldn't care about the inliner

12 years agoalways put a mode into assembler constraints
Matthias Braun [Thu, 17 Nov 2011 16:33:39 +0000 (17:33 +0100)]
always put a mode into assembler constraints

12 years agouse ir_export_file so we can also export to stdout
Matthias Braun [Thu, 17 Nov 2011 16:33:03 +0000 (17:33 +0100)]
use ir_export_file so we can also export to stdout

12 years agodo not continue if program import failed
Matthias Braun [Wed, 16 Nov 2011 17:44:43 +0000 (18:44 +0100)]
do not continue if program import failed

12 years agoadapt to latest libfirm
Matthias Braun [Thu, 10 Nov 2011 14:37:23 +0000 (15:37 +0100)]
adapt to latest libfirm

12 years agoremove $Id$, it does not work with git anyway
Matthias Braun [Thu, 10 Nov 2011 13:24:59 +0000 (14:24 +0100)]
remove $Id$, it does not work with git anyway

12 years agofix indentation
Matthias Braun [Thu, 10 Nov 2011 13:22:39 +0000 (14:22 +0100)]
fix indentation

12 years agoremove unused fourcc.h
Matthias Braun [Thu, 10 Nov 2011 13:22:20 +0000 (14:22 +0100)]
remove unused fourcc.h

12 years agoremove unused adt/align.h
Matthias Braun [Thu, 10 Nov 2011 13:21:46 +0000 (14:21 +0100)]
remove unused adt/align.h

12 years agolibfirm doesn't allow Conv Is(xx b) anymore
Matthias Braun [Mon, 7 Nov 2011 12:34:28 +0000 (13:34 +0100)]
libfirm doesn't allow Conv Is(xx b) anymore

12 years agoUse new libFirm version with localopts phase
Andreas Zwinkau [Fri, 4 Nov 2011 14:25:46 +0000 (15:25 +0100)]
Use new libFirm version with localopts phase

12 years agoupdate to a less broken libfirm revision
Matthias Braun [Thu, 3 Nov 2011 17:45:48 +0000 (18:45 +0100)]
update to a less broken libfirm revision

12 years agofix wrong type of case statements
Matthias Braun [Thu, 3 Nov 2011 16:45:09 +0000 (17:45 +0100)]
fix wrong type of case statements

§6.8.4.2:3 The expression of each case label shall be an integer
           constant expression
§6.8.4.2:5 The constant expression in each case label is converted to the
           promoted type of the controlling expression.

12 years agoadapt to new Switch node
Matthias Braun [Wed, 2 Nov 2011 18:00:56 +0000 (19:00 +0100)]
adapt to new Switch node

12 years agoadapt to pn_Builtin_1_result removal
Matthias Braun [Wed, 2 Nov 2011 18:00:45 +0000 (19:00 +0100)]
adapt to pn_Builtin_1_result removal

12 years agolinker flags to the end
Andreas Zwinkau [Fri, 28 Oct 2011 20:09:13 +0000 (22:09 +0200)]
linker flags to the end

12 years agoadapt to firm ir_mode changes
Matthias Braun [Tue, 25 Oct 2011 12:53:37 +0000 (14:53 +0200)]
adapt to firm ir_mode changes

12 years agoast2firm: do not load from incomplete typed objects
Matthias Braun [Tue, 25 Oct 2011 10:53:18 +0000 (12:53 +0200)]
ast2firm: do not load from incomplete typed objects

12 years agosizeof(void) is 1
Matthias Braun [Tue, 25 Oct 2011 10:55:44 +0000 (12:55 +0200)]
sizeof(void) is 1

This only matters when GNU mode is enabled, but then you can perform
pointer arithmetic with void in which case its size should also be 1

12 years agoDisplay libfirm revision on --version
Andreas Zwinkau [Wed, 26 Oct 2011 13:52:17 +0000 (15:52 +0200)]
Display libfirm revision on --version

12 years agoUpdate libfirm submodule reference
Andreas Zwinkau [Tue, 25 Oct 2011 13:47:04 +0000 (15:47 +0200)]
Update libfirm submodule reference

12 years agorepair prepare_main_collect2 hack
Matthias Braun [Thu, 20 Oct 2011 12:58:06 +0000 (14:58 +0200)]
repair prepare_main_collect2 hack

12 years agofix typo on systems with unsigned short as wchar_t
Matthias Braun [Thu, 20 Oct 2011 12:28:36 +0000 (14:28 +0200)]
fix typo on systems with unsigned short as wchar_t

12 years agoupdate submodule reference
Matthias Braun [Wed, 19 Oct 2011 19:47:11 +0000 (21:47 +0200)]
update submodule reference

12 years agoall sources are dependent on config.h
Matthias Braun [Wed, 19 Oct 2011 19:33:14 +0000 (21:33 +0200)]
all sources are dependent on config.h

12 years agouse a better url for the libfirm submodule
Matthias Braun [Wed, 19 Oct 2011 19:32:59 +0000 (21:32 +0200)]
use a better url for the libfirm submodule

12 years agoUpdate libfirm submodule reference
Andreas Zwinkau [Wed, 19 Oct 2011 14:39:15 +0000 (16:39 +0200)]
Update libfirm submodule reference

12 years agovalues resulting from a bitfield store need to be sign extended
Matthias Braun [Fri, 14 Oct 2011 11:03:47 +0000 (13:03 +0200)]
values resulting from a bitfield store need to be sign extended

This should fix testsuite/C/cp_error069.c

12 years agosplit enum type construction and value computation
Matthias Braun [Thu, 13 Oct 2011 12:25:39 +0000 (14:25 +0200)]
split enum type construction and value computation

This fixes testsuite/C/cp_error068.c

12 years agopass -ansi flag to preprocessor
Matthias Braun [Tue, 27 Sep 2011 15:13:10 +0000 (17:13 +0200)]
pass -ansi flag to preprocessor

12 years agoRemove stale and strange entries from .gitignore.
Christoph Mallon [Tue, 11 Oct 2011 08:31:33 +0000 (10:31 +0200)]
Remove stale and strange entries from .gitignore.

12 years agoConsistently use $(BUILDDIR) instead of build.
Christoph Mallon [Tue, 11 Oct 2011 08:20:41 +0000 (10:20 +0200)]
Consistently use $(BUILDDIR) instead of build.

12 years agocparser.bootstrap2 depends on cparser.bootstrap.
Christoph Mallon [Tue, 11 Oct 2011 08:16:40 +0000 (10:16 +0200)]
cparser.bootstrap2 depends on cparser.bootstrap.

12 years agoRemove dubious/unnecessary dependencies.
Christoph Mallon [Tue, 11 Oct 2011 08:16:13 +0000 (10:16 +0200)]
Remove dubious/unnecessary dependencies.

12 years agoList all phony targets in .PHONY.
Christoph Mallon [Tue, 11 Oct 2011 08:15:25 +0000 (10:15 +0200)]
List all phony targets in .PHONY.

12 years agoUse $(CC) -MMD instead of makedepend for tracking header dependencies.
Christoph Mallon [Tue, 11 Oct 2011 08:12:28 +0000 (10:12 +0200)]
Use $(CC) -MMD instead of makedepend for tracking header dependencies.

makedepend might not be available.

12 years agoCreate build directories more systematically.
Christoph Mallon [Tue, 11 Oct 2011 08:02:09 +0000 (10:02 +0200)]
Create build directories more systematically.

In particular this corrects one typo: cpbe2 should be cpbe.

12 years agoProperly update revision.h.
Christoph Mallon [Tue, 11 Oct 2011 07:51:34 +0000 (09:51 +0200)]
Properly update revision.h.

revision.h was not updated anymore once it existed.

12 years agoRemove stale comment.
Christoph Mallon [Tue, 11 Oct 2011 06:39:56 +0000 (08:39 +0200)]
Remove stale comment.

12 years agoReport an error if a struct contains only a flexible array member.
Christoph Mallon [Mon, 10 Oct 2011 12:33:25 +0000 (14:33 +0200)]
Report an error if a struct contains only a flexible array member.

12 years agoUse $(FIRM_HOME) instead of hardcoding libfirm. Also do not unconditionally show...
Christoph Mallon [Mon, 10 Oct 2011 10:59:46 +0000 (12:59 +0200)]
Use $(FIRM_HOME) instead of hardcoding libfirm. Also do not unconditionally show the sub-make command.

12 years agoBuild the debug version with -O0, not -O2.
Christoph Mallon [Mon, 10 Oct 2011 07:09:14 +0000 (09:09 +0200)]
Build the debug version with -O0, not -O2.

12 years agoAdapt CFLAGS according to variant
Andreas Zwinkau [Fri, 30 Sep 2011 12:20:50 +0000 (14:20 +0200)]
Adapt CFLAGS according to variant

12 years agoUpdate libfirm submodule reference
Andreas Zwinkau [Wed, 28 Sep 2011 08:27:27 +0000 (10:27 +0200)]
Update libfirm submodule reference

Some Sparc fixes
One local opt fix

12 years agoUpdate libfirm submodule reference
Andreas Zwinkau [Mon, 26 Sep 2011 08:34:58 +0000 (10:34 +0200)]
Update libfirm submodule reference

12 years agoSet visibility for compilerlib entities.
Manuel Mohr [Fri, 23 Sep 2011 10:47:40 +0000 (12:47 +0200)]
Set visibility for compilerlib entities.

12 years agoSet the compilerlib entity creation callback on non-linux systems.
Manuel Mohr [Thu, 22 Sep 2011 14:35:41 +0000 (16:35 +0200)]
Set the compilerlib entity creation callback on non-linux systems.

12 years agoadapt to latest libfirm
Matthias Braun [Thu, 22 Sep 2011 14:55:41 +0000 (16:55 +0200)]
adapt to latest libfirm

12 years agoadapt to latest libfirm
Matthias Braun [Fri, 16 Sep 2011 11:07:55 +0000 (13:07 +0200)]
adapt to latest libfirm

12 years agoUpdate libfirm submodule reference
Andreas Zwinkau [Thu, 15 Sep 2011 13:55:52 +0000 (15:55 +0200)]
Update libfirm submodule reference

12 years agoInclude adt/strutil.c within Makefile
Andreas Zwinkau [Wed, 14 Sep 2011 16:13:38 +0000 (18:13 +0200)]
Include adt/strutil.c within Makefile

12 years agoUpdate libfirm submodule reference
Andreas Zwinkau [Wed, 14 Sep 2011 14:31:55 +0000 (16:31 +0200)]
Update libfirm submodule reference

12 years agoWhen doing micro-optimisations, then go all the way: Use memcmp() instead of strncmp().
Christoph Mallon [Wed, 14 Sep 2011 09:18:52 +0000 (11:18 +0200)]
When doing micro-optimisations, then go all the way: Use memcmp() instead of strncmp().

12 years agoUse streq() instead of strcmp() == 0.
Christoph Mallon [Wed, 14 Sep 2011 09:10:48 +0000 (11:10 +0200)]
Use streq() instead of strcmp() == 0.

12 years agoUse strstart() instead of strncmp().
Christoph Mallon [Wed, 14 Sep 2011 09:02:50 +0000 (11:02 +0200)]
Use strstart() instead of strncmp().

12 years agoChange strcmp_underscore() to streq_underscore().
Christoph Mallon [Wed, 14 Sep 2011 08:41:31 +0000 (10:41 +0200)]
Change strcmp_underscore() to streq_underscore().

12 years agoMerge the two copies of strcmp_underscore().
Christoph Mallon [Wed, 14 Sep 2011 08:38:18 +0000 (10:38 +0200)]
Merge the two copies of strcmp_underscore().

12 years agoCorrect checking for well known functions: Properly check for __builtin_ prefix.
Christoph Mallon [Wed, 14 Sep 2011 07:20:14 +0000 (09:20 +0200)]
Correct checking for well known functions: Properly check for __builtin_ prefix.

The code checked for _..uiltin_ (. being arbitrary chars) or even crashed on strings shorter than 3 chars.

12 years agoFurther correct re-typedef in C++: Even in system headers only identical (not just...
Christoph Mallon [Wed, 14 Sep 2011 07:15:53 +0000 (09:15 +0200)]
Further correct re-typedef in C++: Even in system headers only identical (not just compatible) typedefs are allowed.

12 years agoMove function descriptions into headers.
Christoph Mallon [Wed, 14 Sep 2011 07:05:25 +0000 (09:05 +0200)]
Move function descriptions into headers.

12 years agoUpdate libfirm submodule reference
Andreas Zwinkau [Tue, 13 Sep 2011 14:55:43 +0000 (16:55 +0200)]
Update libfirm submodule reference

12 years agoadd special treatment for known setjmp/longjmp function names
Matthias Braun [Tue, 13 Sep 2011 11:28:15 +0000 (13:28 +0200)]
add special treatment for known setjmp/longjmp function names

12 years agonoreturn, returns_twice, nothrow are method-type attributes
Matthias Braun [Tue, 13 Sep 2011 11:28:55 +0000 (13:28 +0200)]
noreturn, returns_twice, nothrow are method-type attributes

12 years agoPass -s flag to linker.
Sebastian Buchwald [Tue, 13 Sep 2011 07:45:39 +0000 (09:45 +0200)]
Pass -s flag to linker.

12 years agoFixed typo.
Sebastian Buchwald [Tue, 13 Sep 2011 06:41:52 +0000 (08:41 +0200)]
Fixed typo.

12 years agofix/improve double typedef exceptions
Matthias Braun [Mon, 12 Sep 2011 08:59:06 +0000 (10:59 +0200)]
fix/improve double typedef exceptions

12 years agopass -w flag on to preprocessor
Matthias Braun [Tue, 6 Sep 2011 15:25:42 +0000 (17:25 +0200)]
pass -w flag on to preprocessor

12 years agoThe typeof-type is always set, no need to check and use the expression's type as...
Christoph Mallon [Sat, 10 Sep 2011 10:16:32 +0000 (12:16 +0200)]
The typeof-type is always set, no need to check and use the expression's type as fallback.

12 years agoMake get_type_alignment_compound() static.
Christoph Mallon [Sat, 10 Sep 2011 09:42:06 +0000 (11:42 +0200)]
Make get_type_alignment_compound() static.

12 years agoMake sure that get_type_alignment() is not passed a typedef.
Christoph Mallon [Sat, 10 Sep 2011 09:39:05 +0000 (11:39 +0200)]
Make sure that get_type_alignment() is not passed a typedef.

12 years agoUpdate libfirm submodule reference
Andreas Zwinkau [Tue, 6 Sep 2011 10:26:48 +0000 (12:26 +0200)]
Update libfirm submodule reference

12 years agoparse line-directive flags to detect system headers
Matthias Braun [Mon, 5 Sep 2011 17:53:22 +0000 (19:53 +0200)]
parse line-directive flags to detect system headers

In system headers we disable the redundant decl warning and the
redefinition error for typedefs

12 years agoremove unfinished preproc directive parsing code
Matthias Braun [Mon, 5 Sep 2011 17:02:20 +0000 (19:02 +0200)]
remove unfinished preproc directive parsing code

12 years agoThe variants of advance_current_object() and descend_into_subtype() in ast2firm must...
Christoph Mallon [Mon, 5 Sep 2011 11:04:03 +0000 (13:04 +0200)]
The variants of advance_current_object() and descend_into_subtype() in ast2firm must use skip_unnamed_bitfields(), too.

12 years agoSkip unnamed bitfield in descend_into_subtype() and advance_current_object().
Christoph Mallon [Sat, 3 Sep 2011 15:28:11 +0000 (17:28 +0200)]
Skip unnamed bitfield in descend_into_subtype() and advance_current_object().

Unnamed bitfields cannot be initialized, so they must be skipped.

12 years agoCorrect copy&paste error.
Christoph Mallon [Sat, 3 Sep 2011 09:09:42 +0000 (11:09 +0200)]
Correct copy&paste error.

The case above handles long long, this one is about unsigned long long.

12 years agoThe struct alignment of long double on 32 bit Darwin is 16 bytes.
Christoph Mallon [Sat, 3 Sep 2011 08:54:08 +0000 (10:54 +0200)]
The struct alignment of long double on 32 bit Darwin is 16 bytes.

12 years agoThe struct alignment of (unsigned) long long on 32 bit Darwin is 4 bytes.
Christoph Mallon [Sat, 3 Sep 2011 08:51:53 +0000 (10:51 +0200)]
The struct alignment of (unsigned) long long on 32 bit Darwin is 4 bytes.

12 years agoAdapted cparser to CopyB lowering changes.
Manuel Mohr [Wed, 31 Aug 2011 17:37:35 +0000 (19:37 +0200)]
Adapted cparser to CopyB lowering changes.

12 years agoPass -msoft-float to linker so that the correct libraries are linked.
Manuel Mohr [Fri, 26 Aug 2011 12:30:05 +0000 (14:30 +0200)]
Pass -msoft-float to linker so that the correct libraries are linked.

12 years agoEnable the usage of different firm variants
Andreas Zwinkau [Fri, 8 Apr 2011 14:33:07 +0000 (16:33 +0200)]
Enable the usage of different firm variants

12 years agoDownload libfirm release if no submodule present
Andreas Zwinkau [Thu, 10 Mar 2011 21:24:54 +0000 (22:24 +0100)]
Download libfirm release if no submodule present

Fallback for tarball version

Set to version 1.19.1, as this will not work with
the current 1.18.1 anyways.

12 years agoUse submodule for libfirm binding
Andreas Zwinkau [Thu, 10 Mar 2011 17:40:59 +0000 (18:40 +0100)]
Use submodule for libfirm binding

cparser usually depends on a specific libfirm revision,
so it makes sense to target a specific one via submodules.

12 years agoGenerate revision from git describe
Andreas Zwinkau [Mon, 6 Jun 2011 13:28:13 +0000 (15:28 +0200)]
Generate revision from git describe

12 years agoadapt to firm va_start changes
Matthias Braun [Mon, 22 Aug 2011 14:17:25 +0000 (16:17 +0200)]
adapt to firm va_start changes

12 years agoSimplify sizeof(x) / sizeof(x[0]) to lengthof(x).
Christoph Mallon [Fri, 19 Aug 2011 06:48:55 +0000 (08:48 +0200)]
Simplify sizeof(x) / sizeof(x[0]) to lengthof(x).

12 years agoSimplify iterating over opts[].
Christoph Mallon [Fri, 19 Aug 2011 06:58:00 +0000 (08:58 +0200)]
Simplify iterating over opts[].