[arch-general] gcc broken - Arch specific, applying optimization incorrectly - may explain unexplained problems

Jelle van der Waa jelle at vdwaa.nl
Wed Mar 14 08:26:53 UTC 2018


On 03/13/18 at 08:44pm, David C. Rankin wrote:
> On 03/13/2018 03:28 PM, mar77i via arch-general wrote:
> > On 03/13/2018 02:17 AM, PkmX via arch-general wrote:
> >> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84607
> > 
> > Pass -std=... to compiling the programi n question. If it's in clear deviation of what the respective standard dictates, it's a bug.
> > 
> > 
> > ​Sent with ProtonMail Secure Email.​
> > 
> 
> Yes, confirmed it was indeed a bug:
> 
>   $ gcc -Wall -Wextra -pedantic -std=c11 -o bin/infunc2 infunc2.c
>   $ ./bin/infunc2
>   In main
> 
> And, with Jelle van der Waa's suggestion, I loaded clang (which I never
> otherwise install) and it confirms the issue further:
> 
>   $ clang -Wall -Wextra -pedantic -std=c11 -o infunc2 infunc2.c
>   $ ./infunc2
>   In func
>   In main
> 
> The only part I'm unclear on is where in the fix process
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84607 is on getting fixed and
> when that will trickle down to us.

In the comments it reads: "Fixed on the trunk." In commit https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=258061

As I suggested, create a bugtracker issue for gcc on our bugtracker
otherwise you'll have to wait on a new gcc minor release.

-- 
Jelle van der Waa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/arch-general/attachments/20180314/fa02bf81/attachment.asc>


More information about the arch-general mailing list