GCC Plugins - CC1 - Multiple processes on PLUGIN_FINISH_TYPE

2012-04-24 Thread Brett Foster
Hi all, I've been working on a plugin that processes some data. My plugin grabs some data from the tree. I'm trying to understand a certain "weird" behaviour I am seeing. And yeah, I'm new to the mailing list and gcc's innards! Be forgiving! :) I appreciate the help! When I add: register

Question on scan_one_insn in IRA about load parameters from stack slot.

2012-04-24 Thread Bin.Cheng
Hi, In scan_one_insn, gcc checks whether an insn loads a parameter from its stack slot, and then record the fact by decrease the memory cost. What I do not understand is the check condition like below checks the REG_EQUIV note, rather than checking memory access using stack pointer directly. if

GCC 2.8.1 for i370

2012-04-24 Thread Paul Edwards
In GCC 3.4.6, in order to create a single executable called "gcc" that takes C code and produces assembler, I needed to put this code into gcc.c: #ifdef SINGLE_EXECUTABLE { int cnt = 0; while (commands[i].argv[cnt] != NULL) { cnt++; } if (s

Re: locating unsigned type for non-standard precision

2012-04-24 Thread Georg-Johann Lay
Richard Guenther wrote: >> I've run into another issue supporting a 20-bit integer for which I'd >> appreciate a hint. With this code: >> >> typedef long int __attribute__((__a20__)) int20_t; >> int20_t xi; >> int20_t addit () { xi += 0x54321L; } >> >> xi ends up in mode PSImode, which is a

Re: old archives from 1998

2012-04-24 Thread Paul Edwards
The revision history of the FSF version of GCC between the EGCS split and the merge was retained on premerge-fsf-branch. That lets me see that this change was committed by Richard Kenner on 1998-10-04. Thanks Ian. I contacted Richard but unfortunately he had no evidence of communicating with me

Re: locating unsigned type for non-standard precision

2012-04-24 Thread Peter Bigot
On Tue, Apr 24, 2012 at 9:01 AM, Richard Guenther wrote: > On Tue, Apr 24, 2012 at 3:50 PM, Peter Bigot wrote: >> I've run into another issue supporting a 20-bit integer for which I'd >> appreciate a hint.  With this code: >> >>   typedef long int __attribute__((__a20__)) int20_t; >>   int20_t xi

Re: locating unsigned type for non-standard precision

2012-04-24 Thread Richard Guenther
On Tue, Apr 24, 2012 at 3:50 PM, Peter Bigot wrote: > I've run into another issue supporting a 20-bit integer for which I'd > appreciate a hint.  With this code: > >   typedef long int __attribute__((__a20__)) int20_t; >   int20_t xi; >   int20_t addit () { xi += 0x54321L; } > > xi ends up in mode

locating unsigned type for non-standard precision

2012-04-24 Thread Peter Bigot
I've run into another issue supporting a 20-bit integer for which I'd appreciate a hint.  With this code:   typedef long int __attribute__((__a20__)) int20_t;   int20_t xi;   int20_t addit () { xi += 0x54321L; } xi ends up in mode PSImode, which is a MODE_PARTIAL_INT with 20 bits of precision and