https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106529
--- Comment #5 from Thomas Klausner ---
For context, I stumbled over this because meson misdetects sincos on NetBSD.
https://github.com/mesonbuild/meson/issues/10641
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106529
--- Comment #4 from Thomas Klausner ---
Well, I can one-up that one:
int sincos();
int main() {
return sincos();
}
gives:
sincos.c:1:5: warning: conflicting types for built-in function ‘sincos’;
expected ‘void(double, double *, double *)’
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106529
--- Comment #2 from Thomas Klausner ---
Created attachment 53413
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53413=edit
.s file from save-temps
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106529
--- Comment #1 from Thomas Klausner ---
Created attachment 53412
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53412=edit
.i file from save-temps
Assignee: unassigned at gcc dot gnu.org
Reporter: tk at giga dot or.at
Target Milestone: ---
Host: NetBSD/amd64
Target: NetBSD/amd64
Build: NetBSD/amd64
Created attachment 53411
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53411=edit
sec
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94479
--- Comment #10 from Thomas Klausner ---
Thank you for the quick fix!
It works for me as well.
Just for my education, why is this problem only visible on NetBSD and not e.g.
Linux?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94479
--- Comment #6 from Thomas Klausner ---
I can most easily test 8.3.0. I adapted your patch:
--- gcc/gimplify.c.orig 2019-02-07 14:44:31.0 +
+++ gcc/gimplify.c
@@ -6074,7 +6074,10 @@ gimplify_addr_expr (tree *expr_p, gimple
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94479
--- Comment #3 from Thomas Klausner ---
Here's a backtrace from 9.3.0:
rebase.i:5:1: warning: no semicolon at end of struct or union
5 | } e() {
| ^
rebase.i: In function 'e':
rebase.i:6:23: warning: initialization of 'char' from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94479
--- Comment #2 from Thomas Klausner ---
I can provide one for gcc 8.3.0:
rebase.i: In function ‘e’:
rebase.i:7:23: warning: initialization of ‘char’ from ‘char *’ makes integer
from pointer without a cast [-Wint-conversion]
struct b f[] =
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: tk at giga dot or.at
Target Milestone: ---
When compiling git-2.26.0 with gcc 8.3.0, 8.4.0, or 9.3.0 on NetBSD/amd64 with
-fstack-check, I see (output from 8.4.0):
builtin
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85114
--- Comment #4 from Thomas Klausner ---
Thank you for looking at this.
Yes, there are quite a number of changes in NetBSD's gcc:
http://danbala.tuwien.ac.at/~wiz/tmp/netbsd.gcc-6.4.0.diff.gz
(created by:
cd /usr/src/external/gpl3/gcc/dist
cvs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85114
--- Comment #2 from Thomas Klausner ---
Here's the requested output:
Using built-in specs.
COLLECT_GCC=/scratch/mail/thunderbird/work/.gcc/bin/g++
Target: x86_64--netbsd
Configured with: /usr/src/tools/gcc/../../external/gpl3/gcc/dist/configure
++
Assignee: unassigned at gcc dot gnu.org
Reporter: tk at giga dot or.at
Target Milestone: ---
When compiling thunderbird 52.7.0 (currently latest version) with gcc 6.4.0 as
distributed with NetBSD, on NetBSD-8.99.14/amd64, with -fstack-check, I see the
following error
: unassigned at gcc dot gnu.org
Reporter: tk at giga dot or.at
Target Milestone: ---
Created attachment 36732
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36732=edit
Patch fixing the problem.
NetBSD has SSP included in libc:
http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/
++
Assignee: unassigned at gcc dot gnu.org
Reporter: tk at giga dot or.at
Created attachment 32578
-- http://gcc.gnu.org/bugzilla/attachment.cgi?id=32578action=edit
Result of -save-temps
When compiling gambatte r550
(http://sourceforge.net/projects/gambatte/files/gambatte/r550
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60807
--- Comment #1 from Thomas Klausner tk at giga dot or.at ---
This was first filed in the NetBSD bug tracker at
http://gnats.netbsd.org/48731
where it was suggested to file this upstream.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47045
--- Comment #2 from Thomas Klausner tk at giga dot or.at 2010-12-23 09:35:32
UTC ---
I can test on 5.99.40 and 5.99.41/amd64. Just send me short instructions how to
test. Thanks!
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47045
Summary: NetBSD: define changes in ctype.h
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo:
18 matches
Mail list logo