Bug 156337 - S390X and PPC64 architectures detection is wrong
Summary: S390X and PPC64 architectures detection is wrong
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-07 04:25 PDT by Tomas Popela
Modified: 2016-04-12 09:44 PDT (History)
5 users (show)

See Also:


Attachments
Proposed patch (2.48 KB, patch)
2016-04-07 04:28 PDT, Tomas Popela
no flags Details | Formatted Diff | Diff
Proposed patch (3.49 KB, patch)
2016-04-07 05:16 PDT, Tomas Popela
no flags Details | Formatted Diff | Diff
Proposed patch (2.48 KB, patch)
2016-04-07 05:27 PDT, Tomas Popela
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Popela 2016-04-07 04:25:30 PDT
After the https://bugs.webkit.org/show_bug.cgi?id=156015 was committed it showed that the PPC64 detection is wrong as on the CPU(PPC) path was activated even for PPC64. The thing is that GCC defines __ppc__ even on PPC64 and not just on PPC(32). The same applies for S390X.

$  gcc -dM -E - < /dev/null | grep PPC
#define _ARCH_PPCGR 1
#define __PPC64__ 1   <---
#define _ARCH_PPCSQ 1
#define _ARCH_PPC 1
#define __PPC__ 1     <---
#define _ARCH_PPC64 1
Comment 1 Tomas Popela 2016-04-07 04:28:33 PDT
Created attachment 275880 [details]
Proposed patch
Comment 2 Carlos Garcia Campos 2016-04-07 05:00:21 PDT
Comment on attachment 275880 [details]
Proposed patch

View in context: https://bugs.webkit.org/attachment.cgi?id=275880&action=review

> Source/WTF/ChangeLog:8
> +        After the https://bugs.webkit.org/show_bug.cgi?id=156015 was committed

Please, use the revision number here instead of (or in addition to) the bug. I usually grep rev numbers to see commits fixing regressions introduced in other commits, or follow ups, etc. It makes my life easier :-)
Comment 3 Tomas Popela 2016-04-07 05:16:56 PDT
Created attachment 275883 [details]
Proposed patch
Comment 4 Tomas Popela 2016-04-07 05:27:35 PDT
Created attachment 275885 [details]
Proposed patch
Comment 5 WebKit Commit Bot 2016-04-12 09:44:30 PDT
Comment on attachment 275885 [details]
Proposed patch

Clearing flags on attachment: 275885

Committed r199366: <http://trac.webkit.org/changeset/199366>
Comment 6 WebKit Commit Bot 2016-04-12 09:44:35 PDT
All reviewed patches have been landed.  Closing bug.