Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 402366 Details for
Bug 548294
dev-lang/perl-5.20.2 breaks with gcc-5
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add option -P to cpp to fix compilation with gcc-5
perl-gcc-5.patch (text/plain), 1.54 KB, created by
Martin Väth
on 2015-05-01 06:14:09 UTC
(
hide
)
Description:
Add option -P to cpp to fix compilation with gcc-5
Filename:
MIME Type:
Creator:
Martin Väth
Created:
2015-05-01 06:14:09 UTC
Size:
1.54 KB
patch
obsolete
>Backport of https://github.com/Perl/perl5/commit/3bea78d24634e630b610f59957e7a019205a67b2 >--- 1/ext/Errno/Errno_pm.PL >+++ 2/ext/Errno/Errno_pm.PL >@@ -225,20 +225,31 @@ > { # BeOS (support now removed) did not enter this block > # invoke CPP and read the output > >+ my $inhibit_linemarkers = ''; >+ if ($Config{gccversion} =~ /\A(\d+)\./ and $1 >= 5) { >+ # GCC 5.0 interleaves expanded macros with line numbers breaking >+ # each line into multiple lines. RT#123784 >+ $inhibit_linemarkers = ' -P'; >+ } >+ > if ($^O eq 'VMS') { >- my $cpp = "$Config{cppstdin} $Config{cppflags} $Config{cppminus}"; >+ my $cpp = "$Config{cppstdin} $Config{cppflags}" . >+ $inhibit_linemarkers . " $Config{cppminus}"; > $cpp =~ s/sys\$input//i; > open(CPPO,"$cpp errno.c |") or > die "Cannot exec $Config{cppstdin}"; > } elsif ($IsMSWin32 || $^O eq 'NetWare') { >- open(CPPO,"$Config{cpprun} $Config{cppflags} errno.c |") or >- die "Cannot run '$Config{cpprun} $Config{cppflags} errno.c'"; >+ my $cpp = "$Config{cpprun} $Config{cppflags}" . >+ $inhibit_linemarkers; >+ open(CPPO,"$cpp errno.c |") or >+ die "Cannot run '$cpp errno.c'"; > } elsif ($IsSymbian) { >- my $cpp = "gcc -E -I$ENV{SDK}\\epoc32\\include\\libc -"; >+ my $cpp = "gcc -E -I$ENV{SDK}\\epoc32\\include\\libc" . >+ $inhibit_linemarkers ." -"; > open(CPPO,"$cpp < errno.c |") > or die "Cannot exec $cpp"; > } else { >- my $cpp = default_cpp(); >+ my $cpp = default_cpp() . $inhibit_linemarkers; > open(CPPO,"$cpp < errno.c |") > or die "Cannot exec $cpp"; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 548294
: 402366