If the stock filter is a PH3387A, a PH3980 will work fine.
My mother has a 3.1L Pontiac of the same era and thats the filter I threw on it. It was annoying to fit on, there was a wire for the starter motor that I had to finaggle out of the way, aswell as the filter placement over a crossmember made it a tricky angle to work from, but it installed totally fine.
And yes, besides size, these two at least are identical.