cparser
15 years agoFix comment.
Christoph Mallon [Sat, 9 Aug 2008 07:33:09 +0000 (07:33 +0000)]
Fix comment.

[r21075]

15 years agoWarn about extra { before a scalar initialiser at the {, not one token after it.
Christoph Mallon [Sat, 9 Aug 2008 07:13:19 +0000 (07:13 +0000)]
Warn about extra { before a scalar initialiser at the {, not one token after it.

[r21074]

15 years agoAccept (but ignore and warn about) MS-style declaration modifiers (cp_error045).
Christoph Mallon [Fri, 8 Aug 2008 08:33:55 +0000 (08:33 +0000)]
Accept (but ignore and warn about) MS-style declaration modifiers (cp_error045).

[r21062]

15 years agoAllow attributes before/between/after * in declarators (partially fixing cp_error045).
Christoph Mallon [Fri, 8 Aug 2008 07:54:31 +0000 (07:54 +0000)]
Allow attributes before/between/after * in declarators (partially fixing cp_error045).

[r21060]

15 years agocp_error045: winnt.h needs a pointer type to a stdcall function
Moritz Kroll [Fri, 8 Aug 2008 00:39:37 +0000 (00:39 +0000)]
cp_error045: winnt.h needs a pointer type to a stdcall function

[r21057]

15 years agoDo not pretend being __STRICT_ANSI__.
Christoph Mallon [Thu, 7 Aug 2008 16:06:38 +0000 (16:06 +0000)]
Do not pretend being __STRICT_ANSI__.

[r21054]

15 years agoAllow perverted case: Be lenient when a function is declared inline, but there is...
Christoph Mallon [Thu, 7 Aug 2008 15:25:25 +0000 (15:25 +0000)]
Allow perverted case: Be lenient when a function is declared inline, but there is not body in the translation unit.

[r21053]

15 years agoFix typo.
Christoph Mallon [Thu, 7 Aug 2008 15:23:36 +0000 (15:23 +0000)]
Fix typo.

[r21052]

15 years agoUse local variables for better readability.
Christoph Mallon [Thu, 7 Aug 2008 15:16:24 +0000 (15:16 +0000)]
Use local variables for better readability.

[r21051]

15 years agoinvalid use of inline (which gcc handles anyway)
Matthias Braun [Thu, 7 Aug 2008 14:44:59 +0000 (14:44 +0000)]
invalid use of inline (which gcc handles anyway)

[r21049]

15 years agoskip_typref().
Christoph Mallon [Thu, 7 Aug 2008 14:26:07 +0000 (14:26 +0000)]
skip_typref().

[r21048]

15 years agoCorrectly handle the result type of conditional expressions, when (void*)0 (a null...
Christoph Mallon [Thu, 7 Aug 2008 14:19:45 +0000 (14:19 +0000)]
Correctly handle the result type of conditional expressions, when (void*)0 (a null pointer constant) is used.

[r21047]

15 years agoThe attribute __align__ may be used without an argument.
Christoph Mallon [Thu, 7 Aug 2008 14:04:05 +0000 (14:04 +0000)]
The attribute __align__ may be used without an argument.

[r21046]

15 years agobetter fix
Matthias Braun [Thu, 7 Aug 2008 12:39:17 +0000 (12:39 +0000)]
better fix

[r21045]

15 years agofix for error44
Matthias Braun [Thu, 7 Aug 2008 12:35:18 +0000 (12:35 +0000)]
fix for error44

[r21044]

15 years agoerror44
Matthias Braun [Thu, 7 Aug 2008 12:27:02 +0000 (12:27 +0000)]
error44

[r21043]

15 years agofix error43
Matthias Braun [Thu, 7 Aug 2008 12:19:02 +0000 (12:19 +0000)]
fix error43

[r21042]

15 years agoone more error
Matthias Braun [Thu, 7 Aug 2008 12:11:56 +0000 (12:11 +0000)]
one more error

[r21040]

15 years agoadd & fix constexpr4
Matthias Braun [Thu, 7 Aug 2008 11:59:11 +0000 (11:59 +0000)]
add & fix constexpr4

[r21038]

15 years agomore constexpr fun
Matthias Braun [Thu, 7 Aug 2008 11:49:51 +0000 (11:49 +0000)]
more constexpr fun

[r21036]

15 years agofix error42
Matthias Braun [Thu, 7 Aug 2008 11:45:27 +0000 (11:45 +0000)]
fix error42

[r21034]

15 years agoerrro42
Matthias Braun [Thu, 7 Aug 2008 11:14:48 +0000 (11:14 +0000)]
errro42

[r21031]

15 years agofix missing skip_typerefs
Matthias Braun [Thu, 7 Aug 2008 11:00:03 +0000 (11:00 +0000)]
fix missing skip_typerefs

[r21030]

15 years agofix for last commit
Matthias Braun [Thu, 7 Aug 2008 10:56:27 +0000 (10:56 +0000)]
fix for last commit

[r21029]

15 years agofix crashs in error case
Matthias Braun [Thu, 7 Aug 2008 10:33:59 +0000 (10:33 +0000)]
fix crashs in error case

[r21028]

15 years agoSlightly simplify token declarations.
Christoph Mallon [Thu, 7 Aug 2008 10:22:07 +0000 (10:22 +0000)]
Slightly simplify token declarations.

[r21027]

15 years agofix parsing of attributes with keyword names
Matthias Braun [Thu, 7 Aug 2008 07:40:30 +0000 (07:40 +0000)]
fix parsing of attributes with keyword names

[r21025]

15 years agohacky implementation of transparent union
Matthias Braun [Thu, 7 Aug 2008 07:25:19 +0000 (07:25 +0000)]
hacky implementation of transparent union

[r21024]

15 years agoimplement transparent_union
Matthias Braun [Wed, 6 Aug 2008 16:32:26 +0000 (16:32 +0000)]
implement transparent_union

[r21021]

15 years agoimprove tester
Matthias Braun [Wed, 6 Aug 2008 16:27:21 +0000 (16:27 +0000)]
improve tester

[r21020]

15 years agosimplify testcase
Matthias Braun [Wed, 6 Aug 2008 16:26:13 +0000 (16:26 +0000)]
simplify testcase

[r21019]

15 years agoImprove type checking for conditional expressions with pointer types (... ? ptr0...
Christoph Mallon [Wed, 6 Aug 2008 11:30:35 +0000 (11:30 +0000)]
Improve type checking for conditional expressions with pointer types (... ? ptr0 : ptr1), though not finished.

[r21011]

15 years agomore tests
Matthias Braun [Wed, 6 Aug 2008 10:45:00 +0000 (10:45 +0000)]
more tests

[r21010]

15 years agoImprove type constraint checking in semantic_sub(), i.e. binary -.
Christoph Mallon [Wed, 6 Aug 2008 10:35:29 +0000 (10:35 +0000)]
Improve type constraint checking in semantic_sub(), i.e. binary -.

[r21009]

15 years agoAlways set the result type of pointer - pointer to type_ptrdiff_t disregarding whethe...
Christoph Mallon [Wed, 6 Aug 2008 09:13:05 +0000 (09:13 +0000)]
Always set the result type of pointer - pointer to type_ptrdiff_t disregarding whether the unqualified pointer types are compatible.

[r21008]

15 years agoCorrect references to the C99 standard.
Christoph Mallon [Wed, 6 Aug 2008 07:11:06 +0000 (07:11 +0000)]
Correct references to the C99 standard.

[r21006]

15 years agoAdd #include <stdbool.h>.
Christoph Mallon [Tue, 5 Aug 2008 21:12:22 +0000 (21:12 +0000)]
Add #include <stdbool.h>.

[r21005]

15 years agonew cp_error040: Input of asm node becomes a NULL pointer
Moritz Kroll [Tue, 5 Aug 2008 12:59:43 +0000 (12:59 +0000)]
new cp_error040: Input of asm node becomes a NULL pointer

[r20991]

15 years agoFix cp_error041.c.
Christoph Mallon [Tue, 5 Aug 2008 07:51:54 +0000 (07:51 +0000)]
Fix cp_error041.c.

[r20985]

15 years agofix shouldfail/paramerror.c: Do not crash when a parameter name is omitted, but gener...
Christoph Mallon [Tue, 5 Aug 2008 07:45:51 +0000 (07:45 +0000)]
fix shouldfail/paramerror.c: Do not crash when a parameter name is omitted, but generate an error.

[r20984]

15 years agoSimplify testcase.
Christoph Mallon [Tue, 5 Aug 2008 07:33:49 +0000 (07:33 +0000)]
Simplify testcase.

[r20983]

15 years agoRemove cp_error040.c: The error message is correct, though not necessary (gcc 4.2...
Christoph Mallon [Tue, 5 Aug 2008 07:15:02 +0000 (07:15 +0000)]
Remove cp_error040.c: The error message is correct, though not necessary (gcc 4.2.3 does not compile Quakeforge 0.5.5 either).  ยง6.2.2 clause 7: "If, within a translation unit, the same identifier appears with both internal and external linkage, the behavior is undefined.".

[r20982]

15 years agocp_error041: Pointer arithmetic with pointer to an enum bitfield
Moritz Kroll [Tue, 5 Aug 2008 02:21:15 +0000 (02:21 +0000)]
cp_error041: Pointer arithmetic with pointer to an enum bitfield

[r20981]

15 years agoFixed '-Wl,<option>' support (only works when gcc is used as linker)
Moritz Kroll [Tue, 5 Aug 2008 01:15:14 +0000 (01:15 +0000)]
Fixed '-Wl,<option>' support (only works when gcc is used as linker)

[r20978]

15 years agoWrong 'static decl after non-static decl' error
Moritz Kroll [Tue, 5 Aug 2008 01:12:15 +0000 (01:12 +0000)]
Wrong 'static decl after non-static decl' error

[r20977]

15 years agoFixed regression of .S support
Moritz Kroll [Tue, 5 Aug 2008 00:37:58 +0000 (00:37 +0000)]
Fixed regression of .S support

[r20976]

15 years agoFixed visibility of inline functions
Moritz Kroll [Tue, 5 Aug 2008 00:32:07 +0000 (00:32 +0000)]
Fixed visibility of inline functions

[r20974]

15 years agoparamerror: crashing shouldfail with missing parameter name
Moritz Kroll [Mon, 4 Aug 2008 23:48:12 +0000 (23:48 +0000)]
paramerror: crashing shouldfail with missing parameter name

[r20973]

15 years agoAdded support for .a and .so files. Added gcc-style linker options (-Wl,<option>)
Moritz Kroll [Mon, 4 Aug 2008 21:22:44 +0000 (21:22 +0000)]
Added support for .a and .so files. Added gcc-style linker options (-Wl,<option>)

[r20972]

15 years agofix result in error case
Matthias Braun [Mon, 4 Aug 2008 12:35:51 +0000 (12:35 +0000)]
fix result in error case

[r20968]

15 years agoadd support for -x
Matthias Braun [Mon, 4 Aug 2008 12:11:30 +0000 (12:11 +0000)]
add support for -x

[r20967]

15 years agonew exprimental phase handling
Matthias Braun [Mon, 4 Aug 2008 11:50:01 +0000 (11:50 +0000)]
new exprimental phase handling

[r20965]

15 years agotypo fix
Matthias Braun [Mon, 4 Aug 2008 11:42:04 +0000 (11:42 +0000)]
typo fix

[r20963]

15 years agorework commandline handling
Matthias Braun [Mon, 4 Aug 2008 11:41:51 +0000 (11:41 +0000)]
rework commandline handling

[r20962]

15 years agoIgnore some VC 'security' warnings
Moritz Kroll [Sat, 2 Aug 2008 14:29:24 +0000 (14:29 +0000)]
Ignore some VC 'security' warnings

[r20945]

15 years agoAdded -shared linker flag. Fixed Link mode.
Moritz Kroll [Sat, 2 Aug 2008 14:27:58 +0000 (14:27 +0000)]
Added -shared linker flag. Fixed Link mode.

[r20944]

15 years agoAdded support for (one) .s/.S input file
Moritz Kroll [Sat, 2 Aug 2008 13:17:41 +0000 (13:17 +0000)]
Added support for (one) .s/.S input file

[r20943]

15 years agocp_error039: Pragma pack not supported
Moritz Kroll [Sat, 2 Aug 2008 10:57:50 +0000 (10:57 +0000)]
cp_error039: Pragma pack not supported

[r20938]

15 years agocp_error038: Parser does not allow attributes in function typedefs
Moritz Kroll [Sat, 2 Aug 2008 10:40:00 +0000 (10:40 +0000)]
cp_error038: Parser does not allow attributes in function typedefs

[r20937]

15 years agoActivate switch lowering
Moritz Kroll [Fri, 1 Aug 2008 19:09:14 +0000 (19:09 +0000)]
Activate switch lowering

[r20920]

15 years agoimprove Makefile for release
Matthias Braun [Fri, 1 Aug 2008 13:43:36 +0000 (13:43 +0000)]
improve Makefile for release

[r20910]

15 years agoupdate make_release.sh
Matthias Braun [Fri, 1 Aug 2008 13:33:50 +0000 (13:33 +0000)]
update make_release.sh

[r20908]

15 years agoFixed broken Makefile (oops...)
Moritz Kroll [Fri, 1 Aug 2008 11:35:28 +0000 (11:35 +0000)]
Fixed broken Makefile (oops...)

[r20896]

15 years agomark constants as variability_constant
Matthias Braun [Fri, 1 Aug 2008 10:58:44 +0000 (10:58 +0000)]
mark constants as variability_constant

[r20894]

15 years agoplease disable it if it needs further testing...
Matthias Braun [Fri, 1 Aug 2008 10:42:56 +0000 (10:42 +0000)]
please disable it if it needs further testing...

[r20891]

15 years agobe robust against unclosed strings
Matthias Braun [Fri, 1 Aug 2008 09:01:49 +0000 (09:01 +0000)]
be robust against unclosed strings

[r20884]

15 years agoimprove error message a bit
Matthias Braun [Fri, 1 Aug 2008 08:57:47 +0000 (08:57 +0000)]
improve error message a bit

[r20883]

15 years agofix cp_error037, fix noconst.c
Matthias Braun [Fri, 1 Aug 2008 08:51:29 +0000 (08:51 +0000)]
fix cp_error037, fix noconst.c

[r20882]

15 years agosimplify testcase
Matthias Braun [Fri, 1 Aug 2008 08:31:20 +0000 (08:31 +0000)]
simplify testcase

[r20880]

15 years agoNEWS+TODO update
Matthias Braun [Fri, 1 Aug 2008 08:23:00 +0000 (08:23 +0000)]
NEWS+TODO update

[r20879]

15 years agoMoved lower_Switch call into irg loop...
Moritz Kroll [Fri, 1 Aug 2008 02:15:51 +0000 (02:15 +0000)]
Moved lower_Switch call into irg loop...

[r20874]

15 years agoAdded 'outdefined' call to switch lowering.
Moritz Kroll [Fri, 1 Aug 2008 02:07:14 +0000 (02:07 +0000)]
Added 'outdefined' call to switch lowering.

[r20873]

15 years agotestcase: __inline__ declaration without implementation aborts cparser
Moritz Kroll [Thu, 31 Jul 2008 19:27:28 +0000 (19:27 +0000)]
testcase: __inline__ declaration without implementation aborts cparser

[r20858]

15 years agoAdded VC8/9 project with ICC. No config.h in SVN, but Makefile will copy default...
Moritz Kroll [Thu, 31 Jul 2008 18:45:44 +0000 (18:45 +0000)]
Added VC8/9 project with ICC. No config.h in SVN, but Makefile will copy default (special version for win32 in win32 folder)

[r20852]

15 years agofix parser crash
Matthias Braun [Thu, 31 Jul 2008 13:07:32 +0000 (13:07 +0000)]
fix parser crash

[r20835]

15 years agodo something with some of the gnu attributes
Matthias Braun [Thu, 31 Jul 2008 09:18:06 +0000 (09:18 +0000)]
do something with some of the gnu attributes

[r20829]

15 years agomore obscure constant expressions
Matthias Braun [Wed, 30 Jul 2008 19:37:22 +0000 (19:37 +0000)]
more obscure constant expressions

[r20826]

15 years agomore constant expression fun
Matthias Braun [Wed, 30 Jul 2008 19:10:38 +0000 (19:10 +0000)]
more constant expression fun

[r20825]

15 years agocorrectly escape cpp and ldflags
Matthias Braun [Wed, 30 Jul 2008 19:06:25 +0000 (19:06 +0000)]
correctly escape cpp and ldflags

[r20824]

15 years agoadd support for -M dependency creation modes
Matthias Braun [Wed, 30 Jul 2008 18:49:53 +0000 (18:49 +0000)]
add support for -M dependency creation modes

[r20823]

15 years agoconst with typeref from an array needs special treatment
Matthias Braun [Wed, 30 Jul 2008 18:49:37 +0000 (18:49 +0000)]
const with typeref from an array needs special treatment

[r20822]

15 years agoanother error
Matthias Braun [Wed, 30 Jul 2008 18:43:41 +0000 (18:43 +0000)]
another error

[r20821]

15 years agodon't forget to skip typerefs
Matthias Braun [Wed, 30 Jul 2008 14:49:51 +0000 (14:49 +0000)]
don't forget to skip typerefs

[r20816]

15 years agodon't forget to skip typerefs
Matthias Braun [Wed, 30 Jul 2008 14:48:33 +0000 (14:48 +0000)]
don't forget to skip typerefs

[r20815]

15 years agodo correct semantic check for pointer arithmetic, support gcc void* arithmetic extension
Matthias Braun [Wed, 30 Jul 2008 14:46:32 +0000 (14:46 +0000)]
do correct semantic check for pointer arithmetic, support gcc void* arithmetic extension

[r20814]

15 years agoignore some gcc options
Matthias Braun [Wed, 30 Jul 2008 14:45:51 +0000 (14:45 +0000)]
ignore some gcc options

[r20813]

15 years agoreorganized tests
Matthias Braun [Wed, 30 Jul 2008 14:44:59 +0000 (14:44 +0000)]
reorganized tests

[r20812]

15 years agomore pointer arith tests
Matthias Braun [Wed, 30 Jul 2008 14:39:42 +0000 (14:39 +0000)]
more pointer arith tests

[r20811]

15 years agopointer arithmetic only allowed with object types
Matthias Braun [Wed, 30 Jul 2008 13:51:50 +0000 (13:51 +0000)]
pointer arithmetic only allowed with object types

[r20809]

15 years agoSynchronized with edgfe:
Michael Beck [Wed, 30 Jul 2008 01:11:08 +0000 (01:11 +0000)]
Synchronized with edgfe:
 - add -f combo option
 - fixed cgana timing
 - moved tail-rec before call optimization (fixed fak.c)

[r20780]

15 years agoimprovements/fixes for asm statement
Matthias Braun [Tue, 29 Jul 2008 09:10:32 +0000 (09:10 +0000)]
improvements/fixes for asm statement

[r20750]

15 years agoimplement asm nodes
Matthias Braun [Tue, 29 Jul 2008 07:08:34 +0000 (07:08 +0000)]
implement asm nodes

[r20747]

15 years agocorrect fix
Matthias Braun [Mon, 28 Jul 2008 07:29:10 +0000 (07:29 +0000)]
correct fix

[r20722]

15 years agoavoid SIZE_TYPE redefined warning
Matthias Braun [Mon, 28 Jul 2008 07:26:36 +0000 (07:26 +0000)]
avoid SIZE_TYPE redefined warning

[r20721]

15 years agorevert accidental commit
Matthias Braun [Fri, 25 Jul 2008 11:06:06 +0000 (11:06 +0000)]
revert accidental commit

[r20689]

15 years agoFix builtin implementations.
Christoph Mallon [Fri, 25 Jul 2008 10:25:40 +0000 (10:25 +0000)]
Fix builtin implementations.

[r20685]

15 years agomakefile fix
Matthias Braun [Fri, 25 Jul 2008 09:07:23 +0000 (09:07 +0000)]
makefile fix

[r20682]

15 years agomore builtins
Matthias Braun [Fri, 25 Jul 2008 09:04:50 +0000 (09:04 +0000)]
more builtins

[r20681]

15 years agosupport for libc builtins
Matthias Braun [Fri, 25 Jul 2008 08:59:48 +0000 (08:59 +0000)]
support for libc builtins

[r20680]

15 years agofix warning
Matthias Braun [Thu, 24 Jul 2008 07:15:52 +0000 (07:15 +0000)]
fix warning

[r20646]