Article View: gnu.gcc.bug
Article #858my -Wunused patches
From: rusty
Date: Fri, 08 Dec 1989 00:51
Date: Fri, 08 Dec 1989 00:51
32 lines
1490 bytes
1490 bytes
The patches to final.c weren't correct; it needs to test for 2
defines. Here is the updated patch for final.c:
diff -r -c gcc-1.36-old/final.c gcc-1.36/final.c
*** gcc-1.36-old/final.c Tue Aug 22 20:16:56 1989
--- gcc-1.36/final.c Thu Dec 7 04:54:06 1989
***************
*** 398,405 ****
--- 398,409 ----
int align = min (BIGGEST_ALIGNMENT, BITS_PER_WORD);
extern int current_function_returns_struct;
extern int current_function_needs_context;
+ #if defined(STRUCT_VALUE_INCOMING_REGNUM) || defined(STRUCT_VALUE_REGNUM)
int sval = current_function_returns_struct;
+ #endif
+ #if defined(STATIC_CHAIN_INCOMING_REGNUM) || defined(STATIC_CHAIN_REGNUM)
int cxt = current_function_needs_context;
+ #endif
data_section ();
ASM_OUTPUT_ALIGN (file, floor_log2 (align / BITS_PER_UNIT));
***************
*** 845,852 ****
}
}
}
-
- reinsert_compare:
/* Following a conditional branch, we have a new basic block. */
if (GET_CODE (insn) == JUMP_INSN && GET_CODE (body) == SET
--- 849,854 ----
Technical Details
Message-ID:
<8912080051.AA28969@garnet.berkeley.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!GARNET.BERKELEY.EDU!rustyShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!GARNET.BERKELEY.EDU!rusty From: rusty@GARNET.BERKELEY.EDU Newsgroups: gnu.gcc.bug Subject: my -Wunused patches Message-ID: <8912080051.AA28969@garnet.berkeley.edu> Date: 8 Dec 89 00:51:43 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 32