diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-06-12 18:01:28 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-06-12 18:01:28 +0200 |
| commit | b38fb646aac04ff7dbd5e465dd0c951bdd79a83c (patch) | |
| tree | f17441dcab157ef470e3563db0f87490c8e99e19 | |
| parent | 9f75c9df0474acc984d937f2b817b46f280724fd (diff) | |
| parent | a6e80f36afca7b7f6eeaf557cdbd1effca5cc810 (diff) | |
| parent | 7c929e1a969c9488745ccbd71c5a825ed8f4bec4 (diff) | |
| download | sparse-dev-b38fb646aac04ff7dbd5e465dd0c951bdd79a83c.tar.gz | |
Merge branches 'has-builtin' and 'builtin-predef' into tip
This will merge the following topic branches:
* builtin-dyn:
Expansion of macros like __FILE__, __DATE__, ... must, contrary
to usual macros, be done dynamically.
This series improves support for them:
- consider them as defined (like GCC do)
- use table + method for their expansion (avoid useless compares)
- add support for __INCLUDE_LEVEL__ & __BASE_FILE__
* builtin-predef:
Add a function: predefine() which allow to directly add
the definition of a simple macro (without args and with
a single number or ident as definition).
Also do the conversion of the concerned predefined macros
and some cleanups.
* builtin-overflow:
Add support for builtins doing overflow checking.
* has-builtin:
Add support for the __has_builtin() macro.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
