mirror of git://gcc.gnu.org/git/gcc.git
gcse.c (set_hash_table_size): Now unsigned.
* gcse.c (set_hash_table_size): Now unsigned. * sdbout.c (template_name_p): Add "const" to avoid warnings. (sdbout_record_type_name, plain_type_1, sdbout_symbol): Likewise. (sdbout_one_type, sdbout_parms, sdbout_reg_parms): Likewise. (sdbout_end_epilogue): Remove variable NAME. * system.h (getopt): Add default definition. * config/alpha/alpha.c (print_operand): Don't continue processing after issuing error. (summarize_insn): Avoid use of UL in constant. From-SVN: r36974
This commit is contained in:
parent
1468899dc2
commit
ebb13e7eb8
|
|
@ -1,5 +1,15 @@
|
||||||
Fri Oct 20 13:33:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
Fri Oct 20 13:33:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
||||||
|
|
||||||
|
* gcse.c (set_hash_table_size): Now unsigned.
|
||||||
|
* sdbout.c (template_name_p): Add "const" to avoid warnings.
|
||||||
|
(sdbout_record_type_name, plain_type_1, sdbout_symbol): Likewise.
|
||||||
|
(sdbout_one_type, sdbout_parms, sdbout_reg_parms): Likewise.
|
||||||
|
(sdbout_end_epilogue): Remove variable NAME.
|
||||||
|
* system.h (getopt): Add default definition.
|
||||||
|
* config/alpha/alpha.c (print_operand): Don't continue processing
|
||||||
|
after issuing error.
|
||||||
|
(summarize_insn): Avoid use of UL in constant.
|
||||||
|
|
||||||
* function.c (locate_and_pad_parm): Use host_integerp and tree_low_cst.
|
* function.c (locate_and_pad_parm): Use host_integerp and tree_low_cst.
|
||||||
|
|
||||||
* fold-const.c (force_fit_type): Unsigned values can overflow
|
* fold-const.c (force_fit_type): Unsigned values can overflow
|
||||||
|
|
|
||||||
|
|
@ -372,7 +372,7 @@ static unsigned int expr_hash_table_size;
|
||||||
static struct expr **expr_hash_table;
|
static struct expr **expr_hash_table;
|
||||||
|
|
||||||
/* Total size of the copy propagation hash table, in elements. */
|
/* Total size of the copy propagation hash table, in elements. */
|
||||||
static int set_hash_table_size;
|
static unsigned int set_hash_table_size;
|
||||||
|
|
||||||
/* The table itself.
|
/* The table itself.
|
||||||
This is an array of `set_hash_table_size' elements. */
|
This is an array of `set_hash_table_size' elements. */
|
||||||
|
|
|
||||||
19
gcc/sdbout.c
19
gcc/sdbout.c
|
|
@ -429,7 +429,7 @@ static int
|
||||||
template_name_p (name)
|
template_name_p (name)
|
||||||
tree name;
|
tree name;
|
||||||
{
|
{
|
||||||
register char *ptr = IDENTIFIER_POINTER (name);
|
register const char *ptr = IDENTIFIER_POINTER (name);
|
||||||
while (*ptr && *ptr != '<')
|
while (*ptr && *ptr != '<')
|
||||||
ptr++;
|
ptr++;
|
||||||
|
|
||||||
|
|
@ -440,7 +440,7 @@ static void
|
||||||
sdbout_record_type_name (type)
|
sdbout_record_type_name (type)
|
||||||
tree type;
|
tree type;
|
||||||
{
|
{
|
||||||
char *name = 0;
|
const char *name = 0;
|
||||||
int no_name;
|
int no_name;
|
||||||
|
|
||||||
if (KNOWN_TYPE_TAG (type))
|
if (KNOWN_TYPE_TAG (type))
|
||||||
|
|
@ -516,7 +516,8 @@ plain_type_1 (type, level)
|
||||||
&& DECL_NAME (TYPE_NAME (type)) != 0
|
&& DECL_NAME (TYPE_NAME (type)) != 0
|
||||||
&& TREE_CODE (DECL_NAME (TYPE_NAME (type))) == IDENTIFIER_NODE)
|
&& TREE_CODE (DECL_NAME (TYPE_NAME (type))) == IDENTIFIER_NODE)
|
||||||
{
|
{
|
||||||
char *name = IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (type)));
|
const char *name
|
||||||
|
= IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (type)));
|
||||||
|
|
||||||
if (!strcmp (name, "char"))
|
if (!strcmp (name, "char"))
|
||||||
return T_CHAR;
|
return T_CHAR;
|
||||||
|
|
@ -709,7 +710,7 @@ sdbout_symbol (decl, local)
|
||||||
tree context = NULL_TREE;
|
tree context = NULL_TREE;
|
||||||
rtx value;
|
rtx value;
|
||||||
int regno = -1;
|
int regno = -1;
|
||||||
char *name;
|
const char *name;
|
||||||
|
|
||||||
sdbout_one_type (type);
|
sdbout_one_type (type);
|
||||||
|
|
||||||
|
|
@ -1246,7 +1247,7 @@ sdbout_one_type (type)
|
||||||
&& host_integerp (DECL_SIZE (tem), 1)
|
&& host_integerp (DECL_SIZE (tem), 1)
|
||||||
&& host_integerp (bit_position (tem), 0))
|
&& host_integerp (bit_position (tem), 0))
|
||||||
{
|
{
|
||||||
char *name;
|
const char *name;
|
||||||
|
|
||||||
CONTIN;
|
CONTIN;
|
||||||
name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (tem));
|
name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (tem));
|
||||||
|
|
@ -1302,7 +1303,7 @@ sdbout_parms (parms)
|
||||||
if (DECL_NAME (parms))
|
if (DECL_NAME (parms))
|
||||||
{
|
{
|
||||||
int current_sym_value = 0;
|
int current_sym_value = 0;
|
||||||
char *name = IDENTIFIER_POINTER (DECL_NAME (parms));
|
const char *name = IDENTIFIER_POINTER (DECL_NAME (parms));
|
||||||
|
|
||||||
if (name == 0 || *name == 0)
|
if (name == 0 || *name == 0)
|
||||||
name = gen_fake_label ();
|
name = gen_fake_label ();
|
||||||
|
|
@ -1433,7 +1434,7 @@ sdbout_reg_parms (parms)
|
||||||
for (; parms; parms = TREE_CHAIN (parms))
|
for (; parms; parms = TREE_CHAIN (parms))
|
||||||
if (DECL_NAME (parms))
|
if (DECL_NAME (parms))
|
||||||
{
|
{
|
||||||
char *name = IDENTIFIER_POINTER (DECL_NAME (parms));
|
const char *name = IDENTIFIER_POINTER (DECL_NAME (parms));
|
||||||
|
|
||||||
/* Report parms that live in registers during the function
|
/* Report parms that live in registers during the function
|
||||||
but were passed in memory. */
|
but were passed in memory. */
|
||||||
|
|
@ -1594,8 +1595,8 @@ sdbout_end_function (line)
|
||||||
void
|
void
|
||||||
sdbout_end_epilogue ()
|
sdbout_end_epilogue ()
|
||||||
{
|
{
|
||||||
char *name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (current_function_decl));
|
PUT_SDB_EPILOGUE_END
|
||||||
PUT_SDB_EPILOGUE_END (name);
|
(IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (current_function_decl)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Output sdb info for the given label. Called only if LABEL_NAME (insn)
|
/* Output sdb info for the given label. Called only if LABEL_NAME (insn)
|
||||||
|
|
|
||||||
|
|
@ -396,6 +396,10 @@ extern char *getcwd PARAMS ((char *, size_t));
|
||||||
extern char *getenv PARAMS ((const char *));
|
extern char *getenv PARAMS ((const char *));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined (HAVE_DECL_GETOPT) && !HAVE_DECL_GETOPT
|
||||||
|
extern int getopt PARAMS ((int, char **, char *));
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined (HAVE_DECL_GETWD) && !HAVE_DECL_GETWD
|
#if defined (HAVE_DECL_GETWD) && !HAVE_DECL_GETWD
|
||||||
extern char *getwd PARAMS ((char *));
|
extern char *getwd PARAMS ((char *));
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue