mirror of git://gcc.gnu.org/git/gcc.git
re PR other/32948 (five warnings and a patch)
fixincludes/ PR other/32948 * fixincl.c (fix_applies): Remove unused variable `name_len'. gcc/ PR other/32948 * c-decl.c (grokdeclarator): Remove unused local variables `typedef_type' and `type_as_written'. * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges): Remove unused local variable `has_hot_blocks'. (fix_crossing_conditional_branches): Remove unused local variable `prev_bb'. From-SVN: r132618
This commit is contained in:
parent
93e501259f
commit
98266db06c
|
@ -1,3 +1,8 @@
|
||||||
|
2008-02-25 Ben Elliston <bje@au.ibm.com>
|
||||||
|
|
||||||
|
PR other/32948
|
||||||
|
* fixincl.c (fix_applies): Remove unused variable `name_len'.
|
||||||
|
|
||||||
2008-02-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
2008-02-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||||
|
|
||||||
* inclhack.def (solaris_math_10): New.
|
* inclhack.def (solaris_math_10): New.
|
||||||
|
|
|
@ -1046,11 +1046,8 @@ fix_applies (tFixDesc* p_fixd)
|
||||||
|
|
||||||
if (pz_scan != (char *) NULL)
|
if (pz_scan != (char *) NULL)
|
||||||
{
|
{
|
||||||
size_t name_len;
|
|
||||||
|
|
||||||
while ((pz_fname[0] == '.') && (pz_fname[1] == '/'))
|
while ((pz_fname[0] == '.') && (pz_fname[1] == '/'))
|
||||||
pz_fname += 2;
|
pz_fname += 2;
|
||||||
name_len = strlen (pz_fname);
|
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,3 +1,14 @@
|
||||||
|
2008-02-25 Ben Elliston <bje@au.ibm.com>
|
||||||
|
|
||||||
|
PR other/32948
|
||||||
|
* c-decl.c (grokdeclarator): Remove unused local variables
|
||||||
|
`typedef_type' and `type_as_written'.
|
||||||
|
* bb-reorder.c
|
||||||
|
(find_rarely_executed_basic_blocks_and_crossing_edges): Remove
|
||||||
|
unused local variable `has_hot_blocks'.
|
||||||
|
(fix_crossing_conditional_branches): Remove unused local variable
|
||||||
|
`prev_bb'.
|
||||||
|
|
||||||
2008-02-25 Uros Bizjak <ubizjak@gmail.com>
|
2008-02-25 Uros Bizjak <ubizjak@gmail.com>
|
||||||
|
|
||||||
PR middle-end/19984
|
PR middle-end/19984
|
||||||
|
|
|
@ -1223,7 +1223,6 @@ find_rarely_executed_basic_blocks_and_crossing_edges (edge **crossing_edges,
|
||||||
int *max_idx)
|
int *max_idx)
|
||||||
{
|
{
|
||||||
basic_block bb;
|
basic_block bb;
|
||||||
bool has_hot_blocks = false;
|
|
||||||
edge e;
|
edge e;
|
||||||
int i;
|
int i;
|
||||||
edge_iterator ei;
|
edge_iterator ei;
|
||||||
|
@ -1235,10 +1234,7 @@ find_rarely_executed_basic_blocks_and_crossing_edges (edge **crossing_edges,
|
||||||
if (probably_never_executed_bb_p (bb))
|
if (probably_never_executed_bb_p (bb))
|
||||||
BB_SET_PARTITION (bb, BB_COLD_PARTITION);
|
BB_SET_PARTITION (bb, BB_COLD_PARTITION);
|
||||||
else
|
else
|
||||||
{
|
BB_SET_PARTITION (bb, BB_HOT_PARTITION);
|
||||||
BB_SET_PARTITION (bb, BB_HOT_PARTITION);
|
|
||||||
has_hot_blocks = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Mark every edge that crosses between sections. */
|
/* Mark every edge that crosses between sections. */
|
||||||
|
@ -1524,7 +1520,6 @@ fix_crossing_conditional_branches (void)
|
||||||
basic_block new_bb;
|
basic_block new_bb;
|
||||||
basic_block last_bb;
|
basic_block last_bb;
|
||||||
basic_block dest;
|
basic_block dest;
|
||||||
basic_block prev_bb;
|
|
||||||
edge succ1;
|
edge succ1;
|
||||||
edge succ2;
|
edge succ2;
|
||||||
edge crossing_edge;
|
edge crossing_edge;
|
||||||
|
@ -1605,7 +1600,6 @@ fix_crossing_conditional_branches (void)
|
||||||
new_bb = create_basic_block (NULL, NULL, last_bb);
|
new_bb = create_basic_block (NULL, NULL, last_bb);
|
||||||
new_bb->aux = last_bb->aux;
|
new_bb->aux = last_bb->aux;
|
||||||
last_bb->aux = new_bb;
|
last_bb->aux = new_bb;
|
||||||
prev_bb = last_bb;
|
|
||||||
last_bb = new_bb;
|
last_bb = new_bb;
|
||||||
/* Put appropriate instructions in new bb. */
|
/* Put appropriate instructions in new bb. */
|
||||||
|
|
||||||
|
|
|
@ -3977,7 +3977,6 @@ grokdeclarator (const struct c_declarator *declarator,
|
||||||
int volatilep;
|
int volatilep;
|
||||||
int type_quals = TYPE_UNQUALIFIED;
|
int type_quals = TYPE_UNQUALIFIED;
|
||||||
const char *name, *orig_name;
|
const char *name, *orig_name;
|
||||||
tree typedef_type = 0;
|
|
||||||
bool funcdef_flag = false;
|
bool funcdef_flag = false;
|
||||||
bool funcdef_syntax = false;
|
bool funcdef_syntax = false;
|
||||||
int size_varies = 0;
|
int size_varies = 0;
|
||||||
|
@ -4051,7 +4050,6 @@ grokdeclarator (const struct c_declarator *declarator,
|
||||||
type = integer_type_node;
|
type = integer_type_node;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef_type = type;
|
|
||||||
size_varies = C_TYPE_VARIABLE_SIZE (type);
|
size_varies = C_TYPE_VARIABLE_SIZE (type);
|
||||||
|
|
||||||
/* Diagnose defaulting to "int". */
|
/* Diagnose defaulting to "int". */
|
||||||
|
@ -4701,7 +4699,6 @@ grokdeclarator (const struct c_declarator *declarator,
|
||||||
|
|
||||||
if (decl_context == PARM)
|
if (decl_context == PARM)
|
||||||
{
|
{
|
||||||
tree type_as_written;
|
|
||||||
tree promoted_type;
|
tree promoted_type;
|
||||||
|
|
||||||
/* A parameter declared as an array of T is really a pointer to T.
|
/* A parameter declared as an array of T is really a pointer to T.
|
||||||
|
@ -4737,8 +4734,6 @@ grokdeclarator (const struct c_declarator *declarator,
|
||||||
else if (type_quals)
|
else if (type_quals)
|
||||||
type = c_build_qualified_type (type, type_quals);
|
type = c_build_qualified_type (type, type_quals);
|
||||||
|
|
||||||
type_as_written = type;
|
|
||||||
|
|
||||||
decl = build_decl (PARM_DECL, declarator->u.id, type);
|
decl = build_decl (PARM_DECL, declarator->u.id, type);
|
||||||
DECL_SOURCE_LOCATION (decl) = declarator->id_loc;
|
DECL_SOURCE_LOCATION (decl) = declarator->id_loc;
|
||||||
if (size_varies)
|
if (size_varies)
|
||||||
|
|
Loading…
Reference in New Issue