Commit dbb6088f by Olivier Hainque Committed by Olivier Hainque

gstab.h (stab_code_type): Define, to be used instead of the __stab_debug_code enum, made anonymous.

	* gstab.h (stab_code_type): Define, to be used instead of the
	__stab_debug_code enum, made anonymous.  Add 2009 to the copyright
	notice.
	* dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
	occurrences by stab_code_type.
	* mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.

From-SVN: r147734
parent 7ec49257
2009-05-20 Olivier Hainque <hainque@adacore.com>
* gstab.h (stab_code_type): Define, to be used instead of the
__stab_debug_code enum, made anonymous. Add 2009 to the copyright
notice.
* dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
occurrences by stab_code_type.
* mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
2009-05-20 Martin Jambor <mjambor@suse.cz> 2009-05-20 Martin Jambor <mjambor@suse.cz>
* tree-flow.h (insert_edge_copies_seq): Undeclare. * tree-flow.h (insert_edge_copies_seq): Undeclare.
......
...@@ -275,8 +275,6 @@ static const char *base_input_file; ...@@ -275,8 +275,6 @@ static const char *base_input_file;
#include "gstab.h" #include "gstab.h"
#define STAB_CODE_TYPE enum __stab_debug_code
/* 1 if PARM is passed to this function in memory. */ /* 1 if PARM is passed to this function in memory. */
#define PARM_PASSED_IN_MEMORY(PARM) \ #define PARM_PASSED_IN_MEMORY(PARM) \
...@@ -326,7 +324,7 @@ static void dbxout_type_name (tree); ...@@ -326,7 +324,7 @@ static void dbxout_type_name (tree);
static void dbxout_class_name_qualifiers (tree); static void dbxout_class_name_qualifiers (tree);
static int dbxout_symbol_location (tree, tree, const char *, rtx); static int dbxout_symbol_location (tree, tree, const char *, rtx);
static void dbxout_symbol_name (tree, const char *, int); static void dbxout_symbol_name (tree, const char *, int);
static void dbxout_common_name (tree, const char *, STAB_CODE_TYPE); static void dbxout_common_name (tree, const char *, stab_code_type);
static const char *dbxout_common_check (tree, int *); static const char *dbxout_common_check (tree, int *);
static void dbxout_global_decl (tree); static void dbxout_global_decl (tree);
static void dbxout_type_decl (tree, int); static void dbxout_type_decl (tree, int);
...@@ -842,7 +840,7 @@ do { \ ...@@ -842,7 +840,7 @@ do { \
to DBX_FINISH_STABS; see above for details. */ to DBX_FINISH_STABS; see above for details. */
static void static void
dbxout_finish_complex_stabs (tree sym, STAB_CODE_TYPE code, dbxout_finish_complex_stabs (tree sym, stab_code_type code,
rtx addr, const char *label, int number) rtx addr, const char *label, int number)
{ {
int line ATTRIBUTE_UNUSED; int line ATTRIBUTE_UNUSED;
...@@ -2852,7 +2850,7 @@ static int ...@@ -2852,7 +2850,7 @@ static int
dbxout_symbol_location (tree decl, tree type, const char *suffix, rtx home) dbxout_symbol_location (tree decl, tree type, const char *suffix, rtx home)
{ {
int letter = 0; int letter = 0;
STAB_CODE_TYPE code; stab_code_type code;
rtx addr = 0; rtx addr = 0;
int number = 0; int number = 0;
int regno = -1; int regno = -1;
...@@ -3157,7 +3155,7 @@ dbxout_symbol_name (tree decl, const char *suffix, int letter) ...@@ -3157,7 +3155,7 @@ dbxout_symbol_name (tree decl, const char *suffix, int letter)
emits the N_BCOMM and N_ECOMM stabs. */ emits the N_BCOMM and N_ECOMM stabs. */
static void static void
dbxout_common_name (tree decl, const char *name, STAB_CODE_TYPE op) dbxout_common_name (tree decl, const char *name, stab_code_type op)
{ {
dbxout_begin_complex_stabs (); dbxout_begin_complex_stabs ();
stabstr_S (name); stabstr_S (name);
...@@ -3325,7 +3323,7 @@ dbxout_parms (tree parms) ...@@ -3325,7 +3323,7 @@ dbxout_parms (tree parms)
{ {
tree eff_type; tree eff_type;
char letter; char letter;
STAB_CODE_TYPE code; stab_code_type code;
int number; int number;
/* Perform any necessary register eliminations on the parameter's rtl, /* Perform any necessary register eliminations on the parameter's rtl,
......
/* Copyright (C) 1997, 1998, 2001 Free Software Foundation, Inc. /* Copyright (C) 1997, 1998, 2001, 2009 Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.
...@@ -21,12 +21,15 @@ along with GCC; see the file COPYING3. If not see ...@@ -21,12 +21,15 @@ along with GCC; see the file COPYING3. If not see
#define __define_stab(NAME, CODE, STRING) NAME=CODE, #define __define_stab(NAME, CODE, STRING) NAME=CODE,
enum __stab_debug_code enum
{ {
#include "stab.def" #include "stab.def"
LAST_UNUSED_STAB_CODE LAST_UNUSED_STAB_CODE
}; };
/* stabs debug codes really are integers with expressive names. */
typedef int stab_code_type;
#undef __define_stab #undef __define_stab
#endif /* ! GCC_GSTAB_H */ #endif /* ! GCC_GSTAB_H */
...@@ -675,8 +675,6 @@ main (void) ...@@ -675,8 +675,6 @@ main (void)
#include "gstab.h" #include "gstab.h"
#define STAB_CODE_TYPE enum __stab_debug_code
#ifndef MALLOC_CHECK #ifndef MALLOC_CHECK
#ifdef __SABER__ #ifdef __SABER__
#define MALLOC_CHECK #define MALLOC_CHECK
......
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