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

14 years agomost of the -fopt flags are handled now by looking at the optimisation list
Matthias Braun [Wed, 16 Dec 2009 16:11:14 +0000 (16:11 +0000)]
most of the -fopt flags are handled now by looking at the optimisation list

[r26799]

14 years agofixes for M_except changes
Matthias Braun [Fri, 11 Dec 2009 16:49:57 +0000 (16:49 +0000)]
fixes for M_except changes

[r26781]

14 years agoDo not use tab to align table columns.
Christoph Mallon [Sat, 28 Nov 2009 09:51:34 +0000 (09:51 +0000)]
Do not use tab to align table columns.

[r26761]

14 years agoUnbreak build: loop_optimization() is undeclared.
Christoph Mallon [Sat, 28 Nov 2009 09:51:27 +0000 (09:51 +0000)]
Unbreak build: loop_optimization() is undeclared.

[r26760]

14 years agoOptions for loop optimization added.
Christian Helmer [Mon, 23 Nov 2009 15:26:11 +0000 (15:26 +0000)]
Options for loop optimization added.

[r26738]

14 years agoSlightly simplify daisy chaining several lists.
Christoph Mallon [Fri, 20 Nov 2009 12:05:27 +0000 (12:05 +0000)]
Slightly simplify daisy chaining several lists.

[r26735]

14 years agoReplace if-cascade by switch.
Christoph Mallon [Fri, 20 Nov 2009 12:05:23 +0000 (12:05 +0000)]
Replace if-cascade by switch.

[r26734]

14 years agoAdd next_if(), which consumes the next token, if it is of the desired type.
Christoph Mallon [Fri, 20 Nov 2009 12:05:20 +0000 (12:05 +0000)]
Add next_if(), which consumes the next token, if it is of the desired type.

[r26733]

14 years agoReduce variable scope.
Christoph Mallon [Fri, 20 Nov 2009 12:05:16 +0000 (12:05 +0000)]
Reduce variable scope.

[r26732]

14 years agoCorrect indentation.
Christoph Mallon [Fri, 20 Nov 2009 12:05:12 +0000 (12:05 +0000)]
Correct indentation.

[r26731]

14 years agoFixed doxygen comments.
Michael Beck [Tue, 3 Nov 2009 23:19:57 +0000 (23:19 +0000)]
Fixed doxygen comments.

[r26710]

14 years agoallow overriding of assembler, linker, preprocessor with environment variables
Matthias Braun [Thu, 24 Sep 2009 13:42:30 +0000 (13:42 +0000)]
allow overriding of assembler, linker, preprocessor with environment variables

[r26650]

14 years agoCorrect off-by-one error of source position in parse_qualified_identifier().
Christoph Mallon [Tue, 15 Sep 2009 07:50:34 +0000 (07:50 +0000)]
Correct off-by-one error of source position in parse_qualified_identifier().

[r26530]

14 years agoSmall simplification for lexing wide strings/char literals.
Christoph Mallon [Fri, 11 Sep 2009 11:39:10 +0000 (11:39 +0000)]
Small simplification for lexing wide strings/char literals.

[r26523]

14 years agoFix C/should_fail/init2.c: if there is no outer_type (error case), just go on.
Christoph Mallon [Fri, 11 Sep 2009 11:33:57 +0000 (11:33 +0000)]
Fix C/should_fail/init2.c: if there is no outer_type (error case), just go on.

[r26522]

14 years agoRemove return at end of function.
Christoph Mallon [Fri, 11 Sep 2009 11:33:04 +0000 (11:33 +0000)]
Remove return at end of function.

[r26521]

14 years agowrite an error message if architecture is unknown
Matthias Braun [Wed, 9 Sep 2009 13:39:19 +0000 (13:39 +0000)]
write an error message if architecture is unknown

[r26506]

14 years agoMinor simplification.
Christoph Mallon [Wed, 2 Sep 2009 06:21:16 +0000 (06:21 +0000)]
Minor simplification.

[r26466]

14 years ago- Bugfix: missing '\0' added
Michael Beck [Sat, 29 Aug 2009 13:28:02 +0000 (13:28 +0000)]
- Bugfix: missing '\0' added

[r26445]

14 years agoCorrect typo in commment.
Christoph Mallon [Thu, 27 Aug 2009 13:27:55 +0000 (13:27 +0000)]
Correct typo in commment.

[r26439]

14 years agowhen redeclaring stuff with different attributes merge the attributes and don't displ...
Matthias Braun [Mon, 17 Aug 2009 12:45:38 +0000 (12:45 +0000)]
when redeclaring stuff with different attributes merge the attributes and don't display the redundant declaration warning

[r26373]

14 years agoextend/fix timing stuff
Matthias Braun [Fri, 7 Aug 2009 15:27:39 +0000 (15:27 +0000)]
extend/fix timing stuff

[r26322]

14 years agobuild plugin specification for cparser (doesn't completely work yet - you have to...
Matthias Braun [Sun, 2 Aug 2009 15:31:32 +0000 (15:31 +0000)]
build plugin specification for cparser (doesn't completely work yet - you have to create builtins.h and revision.h manually)

[r26309]

14 years agoit's called thread-jumps now
Matthias Braun [Thu, 16 Jul 2009 11:41:33 +0000 (11:41 +0000)]
it's called thread-jumps now

[r26283]

14 years agocondeval is called jump threading now
Sebastian Buchwald [Tue, 14 Jul 2009 16:10:38 +0000 (16:10 +0000)]
condeval is called jump threading now

[r26272]

14 years agocondeval is called jump threading now
Sebastian Buchwald [Tue, 14 Jul 2009 15:21:16 +0000 (15:21 +0000)]
condeval is called jump threading now

[r26270]

14 years agocondeval is called jump threading now
Sebastian Buchwald [Tue, 14 Jul 2009 15:18:25 +0000 (15:18 +0000)]
condeval is called jump threading now

[r26269]

14 years agocondeval is called jump threading now
Matthias Braun [Tue, 14 Jul 2009 15:16:02 +0000 (15:16 +0000)]
condeval is called jump threading now

[r26268]

14 years agoremove old/unnecessary files
Matthias Braun [Tue, 14 Jul 2009 15:15:59 +0000 (15:15 +0000)]
remove old/unnecessary files

[r26267]

14 years ago- icc 11 defines __ptr32
Michael Beck [Mon, 6 Jul 2009 20:39:03 +0000 (20:39 +0000)]
- icc 11 defines __ptr32

[r26242]

14 years ago- updated for libFirm w/O irg parameters
Michael Beck [Sun, 5 Jul 2009 17:21:40 +0000 (17:21 +0000)]
- updated for libFirm w/O irg parameters

[r26238]

15 years ago- moved ansi alias to optimization level 2 (like gcc), effectively removing
Michael Beck [Thu, 25 Jun 2009 23:02:46 +0000 (23:02 +0000)]
- moved ansi alias to optimization level 2 (like gcc), effectively removing
  level O4. We loose some benchmarks due to -O3 usage ...

[r26189]

15 years agofix default proj getting constructed in wrong block
Matthias Braun [Fri, 19 Jun 2009 15:12:58 +0000 (15:12 +0000)]
fix default proj getting constructed in wrong block

[r26165]

15 years agoimprove/fix preprocessor flag handling for some cases with assembler files
Matthias Braun [Fri, 19 Jun 2009 11:10:06 +0000 (11:10 +0000)]
improve/fix preprocessor flag handling for some cases with assembler files

[r26161]

15 years agoavoid warnings in the produced jna output
Matthias Braun [Fri, 19 Jun 2009 11:10:03 +0000 (11:10 +0000)]
avoid warnings in the produced jna output

[r26160]

15 years ago64bit compile fix
Matthias Braun [Mon, 15 Jun 2009 12:00:46 +0000 (12:00 +0000)]
64bit compile fix

[r26140]

15 years agouse real (firm) output positions instead of C one (this fixes asm_test7.c
Matthias Braun [Sat, 13 Jun 2009 20:22:06 +0000 (20:22 +0000)]
use real (firm) output positions instead of C one (this fixes asm_test7.c

[r26137]

15 years agoimprove handling of multiple input files
Matthias Braun [Thu, 11 Jun 2009 09:30:27 +0000 (09:30 +0000)]
improve handling of multiple input files

[r26130]

15 years agofix cp_error059
Matthias Braun [Thu, 11 Jun 2009 09:30:26 +0000 (09:30 +0000)]
fix cp_error059

[r26129]

15 years agoredefine __VERSION__ preprocessor macro
Matthias Braun [Thu, 11 Jun 2009 09:30:25 +0000 (09:30 +0000)]
redefine __VERSION__ preprocessor macro

[r26128]

15 years agoHandle ?: in is_address_constant().
Christoph Mallon [Thu, 11 Jun 2009 09:29:28 +0000 (09:29 +0000)]
Handle ?: in is_address_constant().

[r26127]

15 years agoadd a gitignore file (no direct converion between svn:ignore and .gitignore possible...
Matthias Braun [Mon, 8 Jun 2009 13:23:10 +0000 (13:23 +0000)]
add a gitignore file (no direct converion between svn:ignore and .gitignore possible unfortunately)

[r26112]

15 years agosome more work towards (c++) namespace support
Matthias Braun [Mon, 8 Jun 2009 12:29:00 +0000 (12:29 +0000)]
some more work towards (c++) namespace support

[r26111]

15 years agoDeclarations with empty parentheses are incompatible with prototypes with ellipsis.
Christoph Mallon [Wed, 3 Jun 2009 11:01:31 +0000 (11:01 +0000)]
Declarations with empty parentheses are incompatible with prototypes with ellipsis.

[r26097]

15 years agoEmit an error, if a non-variadic function contains va_start.
Christoph Mallon [Wed, 3 Jun 2009 10:21:18 +0000 (10:21 +0000)]
Emit an error, if a non-variadic function contains va_start.

[r26096]

15 years agoIf a K&R function definition has a variadic prototype earlier, then make the function...
Christoph Mallon [Wed, 3 Jun 2009 10:19:58 +0000 (10:19 +0000)]
If a K&R function definition has a variadic prototype earlier, then make the function definition variadic, too.

[r26095]

15 years agofix C/bool2.c
Matthias Braun [Wed, 3 Jun 2009 09:28:56 +0000 (09:28 +0000)]
fix C/bool2.c

[r26094]

15 years agorefactor some cast code, use Convb instead of Mux to handle int->bool conversion
Matthias Braun [Wed, 3 Jun 2009 08:49:08 +0000 (08:49 +0000)]
refactor some cast code, use Convb instead of Mux to handle int->bool conversion

[r26091]

15 years agoadapt to latest libfirm
Matthias Braun [Mon, 1 Jun 2009 08:53:42 +0000 (08:53 +0000)]
adapt to latest libfirm

[r26083]

15 years agofix int->bool conversion
Matthias Braun [Fri, 29 May 2009 11:40:10 +0000 (11:40 +0000)]
fix int->bool conversion

[r26069]

15 years agofix switch generation for dead case
Matthias Braun [Fri, 29 May 2009 10:42:40 +0000 (10:42 +0000)]
fix switch generation for dead case

[r26068]