🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Eric Baur Thu, 05 Nov 1992 04:42
gcc-2.3.1 -fpic problem [simple patch]
#1266
Author: Eric Baur
Date: Thu, 05 Nov 1992 04:42
23 lines
1464 bytes
Apparently new code was added to 2.3.1 to simplify some expressions is
assembler output. This broke -fpic.  Attempting to output pic data
references causes the compiler to abort. Here's a simple patch to
varasm.c which seems to cure the problem. 

2217,2220c2217,2218
<   if ( GET_CODE (XEXP (x, 1)) != PC ) 
<       {
<           decode_rtx_const (GET_MODE (x), XEXP (x, 0), &val0);
<           decode_rtx_const (GET_MODE (x), XEXP (x, 1), &val1);
---
>   decode_rtx_const (GET_MODE (x), XEXP (x, 0), &val0);
>   decode_rtx_const (GET_MODE (x), XEXP (x, 1), &val1);
2222,2224c2220,2221
<           if (val0.un.addr.base == val1.un.addr.base)
<               return GEN_INT (val0.un.addr.offset - val1.un.addr.offset);
<       }
---
>   if (val0.un.addr.base == val1.un.addr.base)
>     return GEN_INT (val0.un.addr.offset - val1.un.addr.offset);

Eric Baur                       eric@synnet.com
Synernetics Inc                 (508) 670-9009
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads