RFR: 8295795: hsdis does not build with binutils 2.39+ [v8]

Robbin Ehn rehn at openjdk.org
Thu Nov 23 07:56:20 UTC 2023


On Thu, 23 Nov 2023 07:47:30 GMT, Galder Zamarreño <duke at openjdk.org> wrote:

>> Yes, you are correct, this was not my intention.
>> For some reason I mixed up AC_LANG_SOURCE and AC_LANG_PROGRAM.
>> 
>> But nested function are fine, so there is actually no issue with it.
>
>> But nested function are fine, so there is actually no issue with it.
> 
> Is it? The compilation error above says "error: function definition is not allowed here". It seems to me is saying that the compilation fails because of the nested function. Am I missing something?

I don't know why.


[rehn at rehn-xps ~]$ cat m.c
int main() {
  void foo() {
    return;
  };
  foo();
  return 0;
}
[rehn at rehn-xps ~]$ gcc -Wall -Wextra -std=c89 m.c 
[rehn at rehn-xps ~]$

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

PR Review Comment: https://git.openjdk.org/jdk/pull/15138#discussion_r1403010196


More information about the build-dev mailing list