cparser
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]

14 years agoerror out when compiling multiple source files to firm graphs - this is not supported...
Matthias Braun [Tue, 6 Apr 2010 14:45:11 +0000 (14:45 +0000)]
error out when compiling multiple source files to firm graphs - this is not supported currently

[r27349]

14 years agofix -Wunreachable-code warnings
Matthias Braun [Wed, 31 Mar 2010 11:13:32 +0000 (11:13 +0000)]
fix -Wunreachable-code warnings

[r27334]

14 years agoadd missing opt_frame, use per-irg tailrec optimisation; update .gitignore
Matthias Braun [Mon, 29 Mar 2010 21:08:17 +0000 (21:08 +0000)]
add missing opt_frame, use per-irg tailrec optimisation; update .gitignore

[r27329]

14 years agofix invalid warning for '*' length modifiers
Matthias Braun [Mon, 15 Mar 2010 14:31:51 +0000 (14:31 +0000)]
fix invalid warning for '*' length modifiers

[r27298]

14 years agofix warnings and remove unnecessary current_ir_graph setting
Matthias Braun [Fri, 12 Mar 2010 19:05:29 +0000 (19:05 +0000)]
fix warnings and remove unnecessary current_ir_graph setting

[r27294]

14 years agoCorrect false positives about variables used in out expressions using "=" of asm...
Christoph Mallon [Thu, 11 Mar 2010 14:08:18 +0000 (14:08 +0000)]
Correct false positives about variables used in out expressions using "=" of asm statements not being read.

[r27288]

14 years agofix wrong line numbers in error messages
Matthias Braun [Tue, 9 Mar 2010 22:27:41 +0000 (22:27 +0000)]
fix wrong line numbers in error messages

[r27284]

14 years agoimplement -W
Matthias Braun [Tue, 9 Mar 2010 21:37:35 +0000 (21:37 +0000)]
implement -W

[r27280]

14 years agoremove unused entities directly before backend so we catch more cases
Matthias Braun [Sun, 7 Mar 2010 20:29:34 +0000 (20:29 +0000)]
remove unused entities directly before backend so we catch more cases

[r27269]

14 years agofix warning
Matthias Braun [Wed, 3 Mar 2010 14:48:59 +0000 (14:48 +0000)]
fix warning

[r27253]

14 years ago- remove block parameter from new_r_Proj and new_rd_Proj
Matthias Braun [Mon, 1 Mar 2010 13:38:45 +0000 (13:38 +0000)]
- remove block parameter from new_r_Proj and new_rd_Proj
- cleanup ir_spec generation a bit

[r27251]

14 years agonew_Block doesn't set current_block anymore; remove some unused and strange functions
Matthias Braun [Fri, 26 Feb 2010 13:56:32 +0000 (13:56 +0000)]
new_Block doesn't set current_block anymore; remove some unused and strange functions

[r27226]

14 years agoSimplify.
Christoph Mallon [Thu, 25 Feb 2010 17:54:37 +0000 (17:54 +0000)]
Simplify.

[r27221]

14 years agoSort.
Christoph Mallon [Thu, 25 Feb 2010 17:54:35 +0000 (17:54 +0000)]
Sort.

[r27220]

14 years agofix a few memory errors introduced with the last commit
Matthias Braun [Wed, 24 Feb 2010 17:38:37 +0000 (17:38 +0000)]
fix a few memory errors introduced with the last commit

[r27218]

14 years agono need to use alloca on C99
Matthias Braun [Wed, 24 Feb 2010 17:14:51 +0000 (17:14 +0000)]
no need to use alloca on C99

[r27217]

14 years agofix cp_errro060
Matthias Braun [Wed, 24 Feb 2010 15:52:44 +0000 (15:52 +0000)]
fix cp_errro060

[r27215]

14 years agofix
Matthias Braun [Wed, 24 Feb 2010 15:15:25 +0000 (15:15 +0000)]
fix

[r27213]

14 years ago- Rework the way literals are handled, these are now kept as strings until
Matthias Braun [Wed, 24 Feb 2010 15:06:07 +0000 (15:06 +0000)]
- Rework the way literals are handled, these are now kept as strings until
  codegeneration
- Don't work with wide-strings inside the compiler but always use utf-8
  encoded "normal" strings. This simplifies some places (like the printf
  format checker) and avoids code duplication.

[r27212]

14 years agoRemove variables, which are only used in assert()ions.
Christoph Mallon [Sat, 20 Feb 2010 17:08:10 +0000 (17:08 +0000)]
Remove variables, which are only used in assert()ions.

[r27194]

14 years agoPrefer get_mode_null() over get_tarval_null().
Christoph Mallon [Sat, 20 Feb 2010 11:51:25 +0000 (11:51 +0000)]
Prefer get_mode_null() over get_tarval_null().

[r27192]

14 years agoMake string literals and shadow copies of initialisers private instead of just local.
Christoph Mallon [Wed, 17 Feb 2010 20:40:31 +0000 (20:40 +0000)]
Make string literals and shadow copies of initialisers private instead of just local.

[r27177]

14 years agofix missing skip_tpyeref; add some more gcc compatibility switches
Matthias Braun [Mon, 15 Feb 2010 21:58:02 +0000 (21:58 +0000)]
fix missing skip_tpyeref; add some more gcc compatibility switches

[r27174]

14 years agofix buffer printer overflowing buffer
Matthias Braun [Mon, 15 Feb 2010 18:27:57 +0000 (18:27 +0000)]
fix buffer printer overflowing buffer

[r27173]

14 years agofix clean target
Matthias Braun [Mon, 15 Feb 2010 18:13:36 +0000 (18:13 +0000)]
fix clean target

[r27172]

14 years agoforgot to add files
Matthias Braun [Mon, 15 Feb 2010 15:56:00 +0000 (15:56 +0000)]
forgot to add files

[r27170]

14 years agocleanup builtin handling and put it into an own file. Also implement a bunch of entit...
Matthias Braun [Mon, 15 Feb 2010 15:55:08 +0000 (15:55 +0000)]
cleanup builtin handling and put it into an own file. Also implement a bunch of entities which are just replace 1:1 with C library function calls

[r27169]

14 years agoforgot to checkin changes builtin includename
Matthias Braun [Mon, 15 Feb 2010 00:04:33 +0000 (00:04 +0000)]
forgot to checkin changes builtin includename

[r27162]

14 years agofix nameclash
Matthias Braun [Sun, 14 Feb 2010 23:59:20 +0000 (23:59 +0000)]
fix nameclash

[r27161]

14 years agolet jam create gen_builtins.h
Matthias Braun [Sun, 14 Feb 2010 23:41:05 +0000 (23:41 +0000)]
let jam create gen_builtins.h

[r27158]

14 years agomodularize revision file updating and include cparser
Matthias Braun [Sun, 14 Feb 2010 23:22:35 +0000 (23:22 +0000)]
modularize revision file updating and include cparser

[r27157]

14 years agofix warning, always use -m32 on mac assembler
Matthias Braun [Sat, 13 Feb 2010 14:37:03 +0000 (14:37 +0000)]
fix warning, always use -m32 on mac assembler

[r27150]

14 years agolocals are not linkage merge
Matthias Braun [Fri, 12 Feb 2010 22:48:00 +0000 (22:48 +0000)]
locals are not linkage merge

[r27140]

14 years agoimplement several new section types including comdat for ELF, this potentially breaks...
Matthias Braun [Fri, 12 Feb 2010 17:54:53 +0000 (17:54 +0000)]
implement several new section types including comdat for ELF, this potentially breaks COFF and MACHO (will fix it asap)

[r27136]

14 years agosupport for local common symbols (whatever that is good for); introduce ir_visibility...
Matthias Braun [Wed, 10 Feb 2010 23:05:45 +0000 (23:05 +0000)]
support for local common symbols (whatever that is good for); introduce ir_visibility_private (not tested yet as they don't occur in C)

[r27109]

14 years agoput zero initialized entities into bss section (not just uninitialized ones); TLS...
Matthias Braun [Wed, 10 Feb 2010 22:09:13 +0000 (22:09 +0000)]
put zero initialized entities into bss section (not just uninitialized ones); TLS entities should go to tbss or tdata

[r27108]

14 years agoAdd option to enable VRP analysis
Jonas Fietz [Wed, 10 Feb 2010 02:51:25 +0000 (02:51 +0000)]
Add option to enable VRP analysis

using -f vrp, one can enable the vrp analysis

[r27099]

14 years agocparser now knows 'unroll-loops'.
Christian Helmer [Mon, 8 Feb 2010 16:32:46 +0000 (16:32 +0000)]
cparser now knows 'unroll-loops'.

[r27088]

14 years agoconstructors/destructors must not have a name
Matthias Braun [Fri, 5 Feb 2010 22:28:10 +0000 (22:28 +0000)]
constructors/destructors must not have a name

[r27077]

14 years agoImplement __builtin_huge_valf and __builtin_huge_vall.
Christoph Mallon [Fri, 5 Feb 2010 21:26:08 +0000 (21:26 +0000)]
Implement __builtin_huge_valf and __builtin_huge_vall.

[r27071]

14 years agoa new garbage collection pass less conservative than gc_irgs (but does not respect...
Matthias Braun [Fri, 5 Feb 2010 18:30:05 +0000 (18:30 +0000)]
a new garbage collection pass less conservative than gc_irgs (but does not respect properties of object-oriented programs)

[r27056]

14 years ago- representing the 3-state visibility (default,local,external) with 2 bits was
Matthias Braun [Thu, 4 Feb 2010 13:27:45 +0000 (13:27 +0000)]
- representing the 3-state visibility (default,local,external) with 2 bits was
  clumsy. Bring back get_entity_visibility and set_entity_visibility

[r27039]

14 years agofurther corrections on 'COMMON' semantic
Matthias Braun [Wed, 3 Feb 2010 20:30:12 +0000 (20:30 +0000)]
further corrections on 'COMMON' semantic

[r27034]

14 years agofix 'COMMON' variables in cparser
Matthias Braun [Wed, 3 Feb 2010 20:25:52 +0000 (20:25 +0000)]
fix 'COMMON' variables in cparser

[r27033]

14 years agofix some assertions; correctly handle weak symbols
Matthias Braun [Wed, 3 Feb 2010 20:03:00 +0000 (20:03 +0000)]
fix some assertions; correctly handle weak symbols

[r27031]

14 years agoRework linkage types in firm.
Matthias Braun [Wed, 3 Feb 2010 19:31:48 +0000 (19:31 +0000)]
Rework linkage types in firm.
- Merge stickyness, visibility and variability into ir_linkage
- Add proper support for common symbols, weak symbols and C++ COMDAT stuff
- Mark OO-features type_visibility, peculiarity and allocation as deprecated
  OO feature will be separated from firm core into higher levels in the long run
- Rework, simplify and fix bugs in begnuas.c

[r27030]

14 years agofix strangeattr.c
Matthias Braun [Mon, 1 Feb 2010 20:45:23 +0000 (20:45 +0000)]
fix strangeattr.c

[r27024]

14 years agoast2firm already layouts structs no need to have such code in driver too
Matthias Braun [Fri, 22 Jan 2010 09:04:51 +0000 (09:04 +0000)]
ast2firm already layouts structs no need to have such code in driver too

[r26992]

14 years agoFixed some usages of type_name in DBG().
Michael Beck [Sat, 9 Jan 2010 02:01:09 +0000 (02:01 +0000)]
Fixed some usages of type_name in DBG().

[r26941]

14 years agofix -O0
Matthias Braun [Thu, 7 Jan 2010 18:36:31 +0000 (18:36 +0000)]
fix -O0

[r26921]

14 years agoLiebe part3: mux lowerer (with minimal changes)
Matthias Braun [Thu, 7 Jan 2010 18:30:31 +0000 (18:30 +0000)]
Liebe part3: mux lowerer (with minimal changes)

[r26919]

14 years agoPrimitive, Pointer, Array and Method types are anonymous now
Matthias Braun [Tue, 5 Jan 2010 15:56:54 +0000 (15:56 +0000)]
Primitive, Pointer, Array and Method types are anonymous now
- There's a new type_dbg_info* that allows you to attach debug names to types
- get_type_name and get_type_ident are now more. The new ir_print_type
  and the usual ir_printf("%+F", type) help in most usage cases.
  But you should be aware that names are not guaranteed to be unique anymore
  (or positively said: You don't have no trouble anymore building unique names
   in code that creates types)
- No need to specify mode for new pointer types anymore (you can still do it
  with set_type_mode)

[r26909]

14 years agofix
Matthias Braun [Mon, 4 Jan 2010 02:04:21 +0000 (02:04 +0000)]
fix

[r26907]

14 years agoset dbg_retrieve in ast2firm where it is defined
Matthias Braun [Mon, 4 Jan 2010 01:12:46 +0000 (01:12 +0000)]
set dbg_retrieve in ast2firm where it is defined

[r26906]

14 years agoFixed broken r26886: bring back debug info for middle-end firm dumps.
Michael Beck [Mon, 4 Jan 2010 00:33:57 +0000 (00:33 +0000)]
Fixed broken r26886: bring back debug info for middle-end firm dumps.

[r26903]

14 years agoadd a printing abstraction layer so we can print type/ast to files and memory buffers
Matthias Braun [Mon, 4 Jan 2010 00:28:46 +0000 (00:28 +0000)]
add a printing abstraction layer so we can print type/ast to files and memory buffers

[r26901]

14 years agopreliminary support for namespace mangling (I had this lying around for some weeks)
Matthias Braun [Sat, 2 Jan 2010 19:30:16 +0000 (19:30 +0000)]
preliminary support for namespace mangling (I had this lying around for some weeks)

[r26889]

14 years agofix for last commit
Matthias Braun [Sat, 2 Jan 2010 18:52:50 +0000 (18:52 +0000)]
fix for last commit

[r26888]

14 years agoremove gen_firm_asm because I am too lazy to fix it (it's probably outdated and I...
Matthias Braun [Sat, 2 Jan 2010 18:33:35 +0000 (18:33 +0000)]
remove gen_firm_asm because I am too lazy to fix it (it's probably outdated and I know noone who uses it)

[r26887]

14 years agodbg_snprint is no more
Matthias Braun [Sat, 2 Jan 2010 18:31:00 +0000 (18:31 +0000)]
dbg_snprint is no more

[r26886]

14 years agofix incorrect type size for wide string literals
Matthias Braun [Tue, 29 Dec 2009 16:23:40 +0000 (16:23 +0000)]
fix incorrect type size for wide string literals

[r26855]

14 years agodon't use compound_graph_path stuff anymore
Matthias Braun [Tue, 29 Dec 2009 15:38:37 +0000 (15:38 +0000)]
don't use compound_graph_path stuff anymore

[r26853]

14 years agofix last commit
Matthias Braun [Mon, 21 Dec 2009 18:08:14 +0000 (18:08 +0000)]
fix last commit

[r26824]

14 years agouse functions instead of macros, reformat/reindent
Matthias Braun [Mon, 21 Dec 2009 17:59:22 +0000 (17:59 +0000)]
use functions instead of macros, reformat/reindent

[r26823]

14 years agoadapt to timer changes
Matthias Braun [Mon, 21 Dec 2009 17:44:17 +0000 (17:44 +0000)]
adapt to timer changes

[r26822]