[cfe-commits] [PATCH] fix failling regression tests due to calling convention markers on recent ARM ubuntu platforms
Alex Rosenberg
alexr at leftfield.org
Mon Oct 22 09:43:58 PDT 2012
You probably also need some changes in Basic/Targets.cpp as well to make -gnueabihf be equivalent to EABI with -mfloat-abi=hard.
Alex
On Oct 22, 2012, at 9:28 AM, Alex Rosenberg wrote:
> LGTM.
>
> Sent from my iPad
>
> On Oct 22, 2012, at 1:52 AM, David Tweed <David.Tweed at arm.com> wrote:
>
>> Hi, ping:
>>
>> is there anyone who thinks this patch is actually the wrong thing to do?
>>
>> Cheers,
>> Dave
>> -----Original Message-----
>> From: cfe-commits-bounces at cs.uiuc.edu [mailto:cfe-commits-bounces at cs.uiuc.edu] On Behalf Of David Tweed
>> Sent: 19 October 2012 08:52
>> To: 'llvm cfe'; '陳韋任 (Wei-Ren Chen)'; 'Galina Kistanova'
>> Subject: [cfe-commits] [PATCH] fix failling regression tests due to calling convention markers on recent ARM ubuntu platforms
>>
>> Hi, I think that I've finally got a "correct" solution for the regression
>> tests failing due to the change to gnueabihf in the latest ubuntu which
>> implies aapcs-vfp should be the "defaultCC" unless additional command line
>> switches are set. (The code in target info somewhat ad hoc dealing with an
>> ad hoc reality so it's... challenging to follow but I believe the patch is
>> handling things correctly.) It looks like the
>> default-from-ambient-environment code hasn't gone beyond the aapcs calling
>> convention. This patch makes clang recognise that the defaultCC is aapcs_vfp
>> on gnueabihf platforms when no other arguments are specified; I believe it
>> doesn't alter behaviour if either explicit arguments are given or we're on a
>> gnueabihf platform. This has been tested on x86_64 and on a gnueabihf ubuntu
>> Linux pandaboard and it fixes the tests that were failing due to explicit
>> calling-convention markers being emitted and confusing FileCheck.
>>
>> (Note that in the patch CodeGenOpts.FloatABI can be, eg, "" so that the test
>> doesn't contain redundant elements.)
>>
>> Please review and, equally usefully, test. If there are no problems I'll
>> then commit it.
>>
>> Cheers,
>> Dave
>> <defaultSetting.diff>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list