Bug 187803 - [JSC] Remove gcc warnings for 32-bit platforms
Summary: [JSC] Remove gcc warnings for 32-bit platforms
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Windows 10
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-07-19 08:32 PDT by Guillaume Emont
Modified: 2018-07-31 08:59 PDT (History)
8 users (show)

See Also:


Attachments
Patch (5.88 KB, patch)
2018-07-19 08:43 PDT, Guillaume Emont
no flags Details | Formatted Diff | Diff
Patch (5.76 KB, patch)
2018-07-20 03:45 PDT, Guillaume Emont
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews206 for win-future (12.91 MB, application/zip)
2018-07-20 20:16 PDT, EWS Watchlist
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Emont 2018-07-19 08:32:47 PDT
Upcoming patch should fix a bunch of warnings we have when compiling on 32-bit platforms (some of them are x86-specific).
Comment 1 Guillaume Emont 2018-07-19 08:43:16 PDT
Created attachment 345348 [details]
Patch

The patch fixing these pesky warnings.
Comment 2 Mark Lam 2018-07-19 10:21:49 PDT
Comment on attachment 345348 [details]
Patch

r- because this broke the Mac 32-bit build.
Comment 3 Guillaume Emont 2018-07-19 16:04:50 PDT
(In reply to Mark Lam from comment #2)
> Comment on attachment 345348 [details]
> Patch
> 
> r- because this broke the Mac 32-bit build.

Could you share a build log?
Comment 4 Mark Lam 2018-07-19 16:09:03 PDT
(In reply to Guillaume Emont from comment #3)
> (In reply to Mark Lam from comment #2)
> > Comment on attachment 345348 [details]
> > Patch
> > 
> > r- because this broke the Mac 32-bit build.
> 
> Could you share a build log?

It's right there in the red EWS bubble above: https://webkit-queues.webkit.org/results/8586996

In file included from /Volumes/Data/EWS/WebKit/WebKitBuild/Release/DerivedSources/JavaScriptCore/unified-sources/UnifiedSource6.cpp:2:
./assembler/MacroAssemblerPrinter.cpp:92:37: error: format specifies type 'int' but the argument has type 'long' [-Werror,-Wformat]
    out.printf("pc:<%p %d>", value, bitwise_cast<intptr_t>(value));
                       ~~           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                       %ld
./assembler/MacroAssemblerPrinter.cpp:104:64: error: format specifies type 'int' but the argument has type 'intptr_t' (aka 'long') [-Werror,-Wformat]
    out.printf("%s:<%p %d>", name, bitwise_cast<void*>(value), value);
                       ~~                                      ^~~~~
                       %ld
./assembler/MacroAssemblerPrinter.cpp:125:95: error: format specifies type 'int' but the argument has type 'intptr_t' (aka 'long') [-Werror,-Wformat]
    out.printf("Address{base:%s:<%p %d>, offset:<0x%x %d>", name, bitwise_cast<void*>(value), value, address.offset, address.offset);
                                    ~~                                                        ^~~~~
                                    %ld
3 errors generated.
Comment 5 Guillaume Emont 2018-07-20 01:33:40 PDT
(In reply to Mark Lam from comment #4)
> (In reply to Guillaume Emont from comment #3)
> > (In reply to Mark Lam from comment #2)
> > > Comment on attachment 345348 [details]
> > > Patch
> > > 
> > > r- because this broke the Mac 32-bit build.
> > 
> > Could you share a build log?
> 
> It's right there in the red EWS bubble above:
> https://webkit-queues.webkit.org/results/8586996
> 
> In file included from
> /Volumes/Data/EWS/WebKit/WebKitBuild/Release/DerivedSources/JavaScriptCore/
> unified-sources/UnifiedSource6.cpp:2:
> ./assembler/MacroAssemblerPrinter.cpp:92:37: error: format specifies type
> 'int' but the argument has type 'long' [-Werror,-Wformat]
>     out.printf("pc:<%p %d>", value, bitwise_cast<intptr_t>(value));
>                        ~~           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                        %ld
> ./assembler/MacroAssemblerPrinter.cpp:104:64: error: format specifies type
> 'int' but the argument has type 'intptr_t' (aka 'long') [-Werror,-Wformat]
>     out.printf("%s:<%p %d>", name, bitwise_cast<void*>(value), value);
>                        ~~                                      ^~~~~
>                        %ld
> ./assembler/MacroAssemblerPrinter.cpp:125:95: error: format specifies type
> 'int' but the argument has type 'intptr_t' (aka 'long') [-Werror,-Wformat]
>     out.printf("Address{base:%s:<%p %d>, offset:<0x%x %d>", name,
> bitwise_cast<void*>(value), value, address.offset, address.offset);
>                                     ~~                                      
> ^~~~~
>                                     %ld
> 3 errors generated.

Oops, sorry, for some reason some EWS bubbles did not appear for me yesterday, got it now, thanks!
Comment 6 Guillaume Emont 2018-07-20 03:45:05 PDT
Created attachment 345439 [details]
Patch

New version of the patch using PRIdPTR -- smaller change and should work on mac 32
Comment 7 EWS Watchlist 2018-07-20 20:16:00 PDT
Comment on attachment 345439 [details]
Patch

Attachment 345439 [details] did not pass win-ews (win):
Output: https://webkit-queues.webkit.org/results/8604941

New failing tests:
http/tests/security/canvas-remote-read-remote-video-localhost.html
Comment 8 EWS Watchlist 2018-07-20 20:16:12 PDT
Created attachment 345498 [details]
Archive of layout-test-results from ews206 for win-future

The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews206  Port: win-future  Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Comment 9 Guillaume Emont 2018-07-30 10:10:46 PDT
Ping reviewer. I think the win bot errors are issues with the bot and not the patch.
Comment 10 Yusuke Suzuki 2018-07-31 08:30:52 PDT
Comment on attachment 345439 [details]
Patch

r=me
Comment 11 WebKit Commit Bot 2018-07-31 08:57:16 PDT
Comment on attachment 345439 [details]
Patch

Clearing flags on attachment: 345439

Committed r234426: <https://trac.webkit.org/changeset/234426>
Comment 12 WebKit Commit Bot 2018-07-31 08:57:18 PDT
All reviewed patches have been landed.  Closing bug.
Comment 13 Radar WebKit Bug Importer 2018-07-31 08:59:18 PDT
<rdar://problem/42773728>