Commit 96a858dc authored by Matthias Braun's avatar Matthias Braun
Browse files

- change #include <config.h> back to "config.h"

- more work on state registers for x87 fpu rounding modes

[r8743]
parent 10c42ecf
#include <config.h>
#include "config.h"
#include "cpset.h"
......
......@@ -11,7 +11,7 @@
* Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
# include "config.h"
#endif
#include "pmap.h"
......
......@@ -288,9 +288,11 @@ void analyze_irg_args(ir_graph *irg)
ptr_access_kind get_method_param_access(ir_entity *ent, int pos)
{
ir_type *mtp = get_entity_type(ent);
int is_variadic = get_method_variadicity(mtp) == variadicity_variadic;
#ifndef NDEBUG
int is_variadic = get_method_variadicity(mtp) == variadicity_variadic;
assert(0 <= pos && (is_variadic || pos < get_method_n_params(mtp)));
#endif
if (ent->attr.mtd_attr.param_access) {
if (pos < ARR_LEN(ent->attr.mtd_attr.param_access))
......@@ -444,9 +446,11 @@ static void analyze_method_params_weight(ir_entity *ent)
float get_method_param_weight(ir_entity *ent, int pos)
{
ir_type *mtp = get_entity_type(ent);
int is_variadic = get_method_variadicity(mtp) == variadicity_variadic;
#ifndef NDEBUG
int is_variadic = get_method_variadicity(mtp) == variadicity_variadic;
assert(0 <= pos && (is_variadic || pos < get_method_n_params(mtp)));
#endif
if (ent->attr.mtd_attr.param_weight) {
if (pos < ARR_LEN(ent->attr.mtd_attr.param_weight))
......
......@@ -10,7 +10,7 @@
* Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
# include "config.h"
#endif
#ifdef HAVE_STRING_H
......
......@@ -17,7 +17,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#ifdef HAVE_ALLOCA_H
......
......@@ -10,7 +10,7 @@
* Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
# include "config.h"
#endif
#include <assert.h>
......
......@@ -422,9 +422,11 @@ static INLINE ir_node *
_get_irn_intra_n(const ir_node *node, int n) {
ir_node *nn;
assert(node); assert(-1 <= n && n < _get_irn_intra_arity(node));
assert(node);
assert(-1 <= n && n < _get_irn_intra_arity(node));
nn = node->in[n + 1];
assert(nn != NULL);
if (!nn || (nn->op != op_Id)) return nn;
return (node->in[n + 1] = skip_Id(nn));
......
......@@ -6,7 +6,7 @@
tries to guarantee deterministic behavior.
* @version $Id$
*/
#include <config.h>
#include "config.h"
#include "irnodeset.h"
#include "hashptr.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment