Bug 171296 - [ARM] Enable GCC visibility
Summary: [ARM] Enable GCC visibility
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Don Olmstead
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-25 16:23 PDT by Don Olmstead
Modified: 2017-04-26 11:28 PDT (History)
9 users (show)

See Also:


Attachments
Patch (1.30 KB, patch)
2017-04-25 17:05 PDT, Don Olmstead
achristensen: review-
achristensen: commit-queue-
Details | Formatted Diff | Diff
Patch with GCC 4 check removed (1.28 KB, patch)
2017-04-26 10:43 PDT, Don Olmstead
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Don Olmstead 2017-04-25 16:23:16 PDT
The export macros for WebKit have a guard to prevent the GCC visibility attribute on ARM. This was originally done back in 2009 with https://trac.webkit.org/changeset/48251/webkit. It appears that armcc now supports the visibility attribute, http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0472j/chr1359124978628.html, so this can be enabled.
Comment 1 Don Olmstead 2017-04-25 17:05:39 PDT
Created attachment 308169 [details]
Patch

Enables GCC visibility for armcc. GCC needs to be >= 4 to have support. Clang also exposes this macro.
Comment 2 Don Olmstead 2017-04-25 17:06:32 PDT
This fixes the feedback from https://bugs.webkit.org/show_bug.cgi?id=171240 that wasn't gotten to before landing.
Comment 3 Alex Christensen 2017-04-26 00:33:57 PDT
I don't think we support gcc older than 4.
Comment 4 Michael Catanzaro 2017-04-26 10:25:56 PDT
(In reply to Alex Christensen from comment #3)
> I don't think we support gcc older than 4.

Yeah, GCC 4.0 was released in 2005 and there's no way to compile WebKit with anything less than GCC 4.9. We have checks to prevent this in other places. No need for that version test.
Comment 5 Alex Christensen 2017-04-26 10:40:00 PDT
Comment on attachment 308169 [details]
Patch

Ok, that's what I thought.  Let's just remove the checks.
Comment 6 Don Olmstead 2017-04-26 10:43:17 PDT
Created attachment 308265 [details]
Patch with GCC 4 check removed
Comment 7 WebKit Commit Bot 2017-04-26 11:28:04 PDT
Comment on attachment 308265 [details]
Patch with GCC 4 check removed

Clearing flags on attachment: 308265

Committed r215817: <http://trac.webkit.org/changeset/215817>
Comment 8 WebKit Commit Bot 2017-04-26 11:28:06 PDT
All reviewed patches have been landed.  Closing bug.