Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
493edb72
Commit
493edb72
authored
Dec 17, 2012
by
Matthias Braun
Browse files
fix a few -pedantic warnings
parent
39d27142
Changes
9
Hide whitespace changes
Inline
Side-by-side
ir/ana/irlivechk.c
View file @
493edb72
...
...
@@ -49,8 +49,8 @@
typedef
struct
bl_info_t
{
const
ir_node
*
block
;
/**< The block. */
int
be_tgt_calc
:
1
;
int
id
:
31
;
/**< a tight number for the block.
unsigned
be_tgt_calc
:
1
;
unsigned
id
:
31
;
/**< a tight number for the block.
we're just reusing the pre num from
the DFS. */
bitset_t
*
red_reachable
;
/**< Holds all id's if blocks reachable
...
...
ir/be/arm/bearch_arm_t.h
View file @
493edb72
...
...
@@ -73,12 +73,12 @@ enum arm_architectures {
/** Floating point instruction set. */
enum
arm_fp_architectures
{
ARM_FPU_FPA_EXT_V1
=
0x
8
0000000
,
/**< Base FPA instruction set. */
ARM_FPU_FPA_EXT_V2
=
0x
4
0000000
,
/**< LFM/SFM. */
ARM_FPU_VFP_EXT_NONE
=
0x
2
0000000
,
/**< Use VFP word-ordering. */
ARM_FPU_VFP_EXT_V1xD
=
0x
1
0000000
,
/**< Base VFP instruction set. */
ARM_FPU_VFP_EXT_V1
=
0x0
8
000000
,
/**< Double-precision insns. */
ARM_FPU_VFP_EXT_V2
=
0x0
4
000000
,
/**< ARM10E VFPr1. */
ARM_FPU_FPA_EXT_V1
=
0x
4
0000000
,
/**< Base FPA instruction set. */
ARM_FPU_FPA_EXT_V2
=
0x
2
0000000
,
/**< LFM/SFM. */
ARM_FPU_VFP_EXT_NONE
=
0x
1
0000000
,
/**< Use VFP word-ordering. */
ARM_FPU_VFP_EXT_V1xD
=
0x0
8
000000
,
/**< Base VFP instruction set. */
ARM_FPU_VFP_EXT_V1
=
0x0
4
000000
,
/**< Double-precision insns. */
ARM_FPU_VFP_EXT_V2
=
0x0
2
000000
,
/**< ARM10E VFPr1. */
ARM_FPU_SOFTFLOAT
=
0x01000000
,
/**< soft float library */
ARM_FPU_NONE
=
0
,
...
...
@@ -93,7 +93,7 @@ enum arm_fp_architectures {
ARM_FPU_ARCH_SOFTFLOAT
=
ARM_FPU_SOFTFLOAT
,
ARM_FPU_MASK
=
0x
f
f000000
,
ARM_FPU_MASK
=
0x
7
f000000
,
};
/** Returns non-zero if FPA instructions should be issued. */
...
...
ir/be/becopyheur.c
View file @
493edb72
...
...
@@ -57,8 +57,8 @@ typedef struct conflict_t {
*/
typedef
struct
node_stat_t
{
ir_node
*
irn
;
int
new_color
;
int
pinned_local
:
1
;
int
new_color
;
unsigned
pinned_local
:
1
;
}
node_stat_t
;
/**
...
...
ir/debug/debugger.c
View file @
493edb72
...
...
@@ -807,7 +807,7 @@ static void show_by_name(type_or_ent tore, void *env)
printf
(
"%s"
,
get_id_str
(
id
));
}
if
(
irg
)
printf
(
"[%ld] (%p)
\n
"
,
get_irg_graph_nr
(
irg
),
irg
);
printf
(
"[%ld] (%p)
\n
"
,
get_irg_graph_nr
(
irg
),
(
void
*
)
irg
);
else
printf
(
" NULL
\n
"
);
}
...
...
@@ -836,7 +836,7 @@ static void show_by_ldname(type_or_ent tore, void *env)
printf
(
"%s"
,
get_id_str
(
id
));
}
if
(
irg
)
printf
(
"[%ld] (%p)
\n
"
,
get_irg_graph_nr
(
irg
),
irg
);
printf
(
"[%ld] (%p)
\n
"
,
get_irg_graph_nr
(
irg
),
(
void
*
)
irg
);
else
printf
(
" NULL
\n
"
);
}
...
...
ir/ir/irtypes.h
View file @
493edb72
...
...
@@ -265,16 +265,16 @@ typedef struct io_attr {
/** Load attributes. */
typedef
struct
load_attr
{
except_attr
exc
;
/**< The exception attribute. MUST be the first one. */
ir_volatility
volatility
:
1
;
/**< The volatility of this Load operation. */
ir_align
unaligned
:
1
;
/**< The align attribute of this Load operation. */
__extension__
ir_volatility
volatility
:
1
;
/**< The volatility of this Load operation. */
__extension__
ir_align
unaligned
:
1
;
/**< The align attribute of this Load operation. */
ir_mode
*
mode
;
/**< The mode of this Load operation. */
}
load_attr
;
/** Store attributes. */
typedef
struct
store_attr
{
except_attr
exc
;
/**< the exception attribute. MUST be the first one. */
ir_volatility
volatility
:
1
;
/**< The volatility of this Store operation. */
ir_align
unaligned
:
1
;
/**< The align attribute of this Store operation. */
__extension__
ir_volatility
volatility
:
1
;
/**< The volatility of this Store operation. */
__extension__
ir_align
unaligned
:
1
;
/**< The align attribute of this Store operation. */
}
store_attr
;
typedef
struct
phi_attr
{
...
...
ir/lpp/lpp_cplex.c
View file @
493edb72
...
...
@@ -9,8 +9,10 @@
*/
#include
"config.h"
#ifdef WITH_CPLEX
#include
"lpp_cplex.h"
#include
"error.h"
#ifdef WITH_CPLEX
#include
<stdio.h>
#include
<stdlib.h>
...
...
@@ -262,4 +264,12 @@ void lpp_solve_cplex(lpp_t *lpp)
free_cpx
(
cpx
);
}
#else
void
lpp_solve_cplex
(
lpp_t
*
lpp
)
{
(
void
)
lpp
;
panic
(
"libfirm compiled without cplex support"
);
}
#endif
ir/lpp/lpp_cplex.h
View file @
493edb72
...
...
@@ -12,8 +12,6 @@
#include
"lpp.h"
#ifdef WITH_CPLEX
void
lpp_solve_cplex
(
lpp_t
*
lpp
);
#endif
#endif
ir/lpp/lpp_gurobi.c
View file @
493edb72
...
...
@@ -9,8 +9,10 @@
*/
#include
"config.h"
#ifdef WITH_GUROBI
#include
"lpp_gurobi.h"
#include
"error.h"
#ifdef WITH_GUROBI
#include
<stdio.h>
#include
<stdlib.h>
...
...
@@ -20,7 +22,6 @@
#include
<gurobi_c.h>
#include
"error.h"
#include
"sp_matrix.h"
static
char
gurobi_cst_encoding
[
4
]
=
{
0
,
GRB_EQUAL
,
GRB_LESS_EQUAL
,
GRB_GREATER_EQUAL
};
...
...
@@ -225,4 +226,11 @@ void lpp_solve_gurobi(lpp_t *lpp)
free_gurobi
(
grb
);
}
#else
void
lpp_solve_gurobi
(
lpp_t
*
lpp
)
{
(
void
)
lpp
;
}
#endif
ir/lpp/lpp_gurobi.h
View file @
493edb72
...
...
@@ -12,8 +12,6 @@
#include
"lpp.h"
#ifdef WITH_GUROBI
void
lpp_solve_gurobi
(
lpp_t
*
lpp
);
#endif
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment