[llvm] r222760 - Reapply 222538 and update tests to explicitly request small code model

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Nov 27 08:30:40 PST 2014


On 27 November 2014 at 11:16, Joerg Sonnenberger
<joerg at britannica.bec.de> wrote:
> On Thu, Nov 27, 2014 at 11:01:54AM -0500, Rafael EspĂ­ndola wrote:
>> This is odd at least.
>>
>> First,  -code-model=smal is the default, please don't specify it everywhere.
>> Second, why the PIC change? The gnu assembler always uses a
>> DW_EH_PE_pcrel encoding. What is the advantage of not doing that?
>
> I specified it explicitly to get a consistent value.

It is consistent. It is the default and it is important that the small
model remains the default.

>I'm not sure pcrel
> buys anything for non-PIC, but using absolute locations is certainly
> more consistent with what we do for CFI.

It is inconsistent with what gas does and it it looks like a
regression. Relative encoding is more efficient and we should keep
using it.

Could you please revert this patch and then apply it again but

* Don't pass the default flag everywhere.
* Don't add the if about PIC-non-PIC.

I ask for a revert and recommit so that the patches are easy to read.

Cheers,
Rafael




More information about the llvm-commits mailing list