This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/56311] gcc/include-fixed/stdio.h: In function ‘_func’: gcc/include-fixed/stdio.h:135:3: error: expected declaration specifiers before ‘__extension__’
- From: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 22 Jul 2017 17:53:39 +0000
- Subject: [Bug bootstrap/56311] gcc/include-fixed/stdio.h: In function ‘_func’: gcc/include-fixed/stdio.h:135:3: error: expected declaration specifiers before ‘__extension__’
- Auto-submitted: auto-generated
- References: <bug-56311-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56311
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |egallager at gcc dot gnu.org
--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to devurandom from comment #4)
> Created attachment 29454 [details]
> gcc-4.7.2-inclhack-hpux10_stdio_declarations.patch
>
> Attached patch fixes the issue for me. Someone with a HP-UX 10 system should
> probably test it, though!
>
> I added an $ anchor to the end of the match, to exclude the __iob_func()
> line that MinGW seems to use. If there is anything (e.g. a comment) after
> __iob on HP-UX 10, this will obviously fail! (But then it might have created
> bad code before, too.)
Please send the patch to the gcc-patches mailing list (if it's still needed)
and cc the relevant maintainers. John David Anglin is the HPUX guy.