This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Whack detritus in darwin.c


Just removing some useless #if 0 bits that caught my eye.

Stan

2002-09-12 Stan Shebs <shebs@apple.com>

* config/darwin.c (machopic_finish): Remove #if 0 chunks.
(machopic_operand_p): Ditto.

Index: config/darwin.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/darwin.c,v
retrieving revision 1.26
diff -p -r1.26 darwin.c
*** config/darwin.c 21 Aug 2002 02:41:46 -0000 1.26
--- config/darwin.c 12 Sep 2002 19:40:53 -0000
*************** machopic_finish (asm_out_file)
*** 859,876 ****
{
const char *const sym_name = IDENTIFIER_POINTER (TREE_VALUE (temp));
const char *const lazy_name = IDENTIFIER_POINTER (TREE_PURPOSE (temp));
- #if 0
- tree decl = lookup_name_darwin (TREE_VALUE (temp));
- #endif

if (! TREE_USED (temp))
continue;

! if (machopic_ident_defined_p (TREE_VALUE (temp))
! #if 0 /* add back when we have private externs */
! || (decl && DECL_PRIVATE_EXTERN (decl))
! #endif
! )
{
data_section ();
assemble_align (GET_MODE_ALIGNMENT (Pmode));
--- 859,869 ----
{
const char *const sym_name = IDENTIFIER_POINTER (TREE_VALUE (temp));
const char *const lazy_name = IDENTIFIER_POINTER (TREE_PURPOSE (temp));

if (! TREE_USED (temp))
continue;

! if (machopic_ident_defined_p (TREE_VALUE (temp)))
{
data_section ();
assemble_align (GET_MODE_ALIGNMENT (Pmode));
*************** machopic_operand_p (op)
*** 919,936 ****
&& machopic_name_defined_p (XSTR (XEXP (op, 0), 0))
&& machopic_name_defined_p (XSTR (XEXP (op, 1), 0)))
return 1;
-
- #if 0 /*def TARGET_TOC*/ /* i.e., PowerPC */
- /* Without this statement, the compiler crashes while compiling enquire.c
- when targetting PowerPC. It is not known why this code is not needed
- when targetting other processors. */
- else if (GET_CODE (op) == SYMBOL_REF
- && (machopic_classify_name (XSTR (op, 0))
- == MACHOPIC_DEFINED_FUNCTION))
- {
- return 1;
- }
- #endif

return 0;
}
--- 912,917 ----



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]