RFR: 8308780: Fix the Java Integer types on Windows [v6]

Julian Waters jwaters at openjdk.org
Thu Jun 22 14:08:09 UTC 2023


On Thu, 22 Jun 2023 14:04:48 GMT, Julian Waters <jwaters at openjdk.org> wrote:

>> Which gcc? This code compiles without warnings:
>> 
>> #include <stdio.h>
>> int main() {
>> 	unsigned long i = 1;
>> 	long j = 2;
>> 	printf("%ld %ld %lx %lx %lu %lu\n", i, j, i, j, i, j);
>> 	return 0;
>> }
>> 
>> 
>> # gcc -Wall -Wextra -Wformat=2 test.c
>> # gcc --version
>> gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
>> Copyright (C) 2019 Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions.  There is NO
>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> I'm currently running version 13.1, win32 threads

I'll retry again, maybe the warning has changed now

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/14125#discussion_r1238583800


More information about the hotspot-compiler-dev mailing list