[Bug c++/114571] -Wzero-as-null-pointer-constant does not complain about NULL

2024-04-03 Thread ossman at cendio dot se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114571 --- Comment #3 from Pierre Ossman --- And another odd case; gcc 5 complains about this: > const char *a; > a = NULL; but not: > const char *a = NULL; gcc 13 complains about neither, and clang about both.

[Bug c++/114573] -Wzero-as-null-pointer-constant complains on enum with explicit cast

2024-04-03 Thread ossman at cendio dot se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114573 --- Comment #2 from Pierre Ossman --- Indeed. It is part of an effort to have a more modern C++ style in TigerVNC. One item was preferring nullptr over NULL, and this issue became an obstacle there. Right now, we did a #pragma, but if there is

[Bug c++/114571] -Wzero-as-null-pointer-constant does not complain about NULL

2024-04-03 Thread ossman at cendio dot se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114571 --- Comment #2 from Pierre Ossman --- Found another case that neither gcc 5, gcc 13, nor clang complain about for some odd reason: > assert(thing == NULL); All three complain about: > assert(thing == 0); Not sure what's going on here.

[Bug c++/114573] New: -Wzero-as-null-pointer-constant complains on enum with explicit cast

2024-04-03 Thread ossman at cendio dot se via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ossman at cendio dot se Target Milestone: --- g++ complains about the following code when -Wzero-as-null-pointer-constant is given: > enum { ZERO, ONE, TWO }; > > e

[Bug c++/114571] -Wzero-as-null-pointer-constant does not complain about NULL

2024-04-03 Thread ossman at cendio dot se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114571 --- Comment #1 from Pierre Ossman --- Hmm.. I found bug 77513, and r9-873. So I guess this is intentional? This makes the warning somewhat pointless. We want to make sure developers standardise on nullptr, both for style and since the

[Bug c++/114571] New: -Wzero-as-null-pointer-constant does not complain about NULL

2024-04-03 Thread ossman at cendio dot se via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ossman at cendio dot se Target Milestone: --- Created attachment 57857 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57857=edit Test case We are looking at bringing

[Bug objc/108743] -fconstant-cfstrings not supported

2023-02-10 Thread ossman at cendio dot se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108743 --- Comment #5 from Pierre Ossman --- Could you consider adding -fconstant-cfstrings as an alias? It would make life easier for making build systems compiler agnostic.

[Bug objc/108743] -fconstant-cfstrings not supported

2023-02-10 Thread ossman at cendio dot se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108743 --- Comment #4 from Pierre Ossman --- I am indeed trying to compile for macOS. Specifically Qt5, which is designed with just Xcode in mind.

[Bug objc/108743] -fconstant-cfstrings not supported

2023-02-09 Thread ossman at cendio dot se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108743 --- Comment #2 from Pierre Ossman --- Great news. And that is the same thing as clang's -fconstant-cfstrings? Unfortunately, I couldn't see -mconstant-cfstrings in gcc's documentation, but I may be looking in the wrong place.

[Bug objc/108743] New: -fconstant-cfstrings not supported

2023-02-09 Thread ossman at cendio dot se via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: ossman at cendio dot se Target Milestone: --- Some programs designed for clang want this flag. I'm unsure exactly how important it is. The description sounds like it's just some optimization. To make things worse, it is mentioned

[Bug target/52991] attribute packed broken on mingw32?

2015-07-14 Thread ossman at cendio dot se
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991 Pierre Ossman ossman at cendio dot se changed: What|Removed |Added CC||ossman at cendio

[Bug middle-end/66587] New: -no_compact_unwind is dropped for -nodefaultlibs/-nostdlib

2015-06-18 Thread ossman at cendio dot se
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: ossman at cendio dot se Target Milestone: --- As the summary states, you will get bitten by bug 41260 if you happen to specify -nodefaultlibs or -nostdlib as -no_compact_unwind

[Bug middle-end/66587] -no_compact_unwind is dropped for -nodefaultlibs/-nostdlib

2015-06-18 Thread ossman at cendio dot se
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66587 --- Comment #2 from Pierre Ossman ossman at cendio dot se --- Note that darwin12.h also exists on trunk that needs to be modified as well.

[Bug middle-end/66587] -no_compact_unwind is dropped for -nodefaultlibs/-nostdlib

2015-06-18 Thread ossman at cendio dot se
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66587 --- Comment #1 from Pierre Ossman ossman at cendio dot se --- Created attachment 35802 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35802action=edit possible patch

[Bug plugins/66300] New: GCC_ENABLE_PLUGINS references undefined variables, breaking configure

2015-05-27 Thread ossman at cendio dot se
Priority: P3 Component: plugins Assignee: unassigned at gcc dot gnu.org Reporter: ossman at cendio dot se Target Milestone: --- The GCC_ENABLE_PLUGINS macro references the variables gcc_cv_nm and gcc_cv_objdump which will not be set outside of gcc/configure

[Bug sanitizer/61955] libsanitizer fails to compile on RHEL4

2015-05-21 Thread ossman at cendio dot se
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61955 --- Comment #9 from Pierre Ossman ossman at cendio dot se --- (In reply to Andreas Schwab from comment #5) linux/aio_abi.h was added in 2.5.32. https://git.kernel.org/cgit/linux/kernel/git/tglx/history.git/commit/ ?id

[Bug sanitizer/61955] libsanitizer fails to compile on RHEL4

2015-05-21 Thread ossman at cendio dot se
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61955 Pierre Ossman ossman at cendio dot se changed: What|Removed |Added CC||ossman at cendio

[Bug sanitizer/61955] libsanitizer fails to compile on RHEL4

2015-05-21 Thread ossman at cendio dot se
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61955 --- Comment #11 from Pierre Ossman ossman at cendio dot se --- Not really. :) I stumbled upon this trying to use 2.4 headers, so I honestly haven't tried 2.6.9, RHEL variant or otherwise.

[Bug target/42159] unwinding issues on darwin

2015-04-01 Thread ossman at cendio dot se
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42159 --- Comment #32 from Pierre Ossman ossman at cendio dot se --- (In reply to Jack Howarth from comment #31) You might check out the original posting on this issue... http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-September/025900.html I

[Bug target/42159] unwinding issues on darwin

2015-04-01 Thread ossman at cendio dot se
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42159 --- Comment #33 from Pierre Ossman ossman at cendio dot se --- Created attachment 35198 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35198action=edit Remove unwinder on OS X

[Bug target/42159] unwinding issues on darwin

2015-03-31 Thread ossman at cendio dot se
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42159 --- Comment #30 from Pierre Ossman ossman at cendio dot se --- (In reply to Dominique d'Humieres from comment #29) I can reopen the PR, but I don't see the point: (1) I can reproduce the problem only on x86_64-apple-darwin10 with gcc version

[Bug target/42159] unwinding issues on darwin

2015-03-31 Thread ossman at cendio dot se
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42159 Pierre Ossman ossman at cendio dot se changed: What|Removed |Added CC||ossman at cendio

[Bug libobjc/64051] New: broken exception model detection in libobjc's configure

2014-11-24 Thread ossman at cendio dot se
Priority: P3 Component: libobjc Assignee: unassigned at gcc dot gnu.org Reporter: ossman at cendio dot se The configure script for libobjc tries to determine if the compiler is using setjmp/longjmp (SJLJ) for exception handling. But it does this by checking the output

[Bug libobjc/64051] broken exception model detection in libobjc's configure

2014-11-24 Thread ossman at cendio dot se
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64051 --- Comment #3 from Pierre Ossman ossman at cendio dot se --- libstdc++ compiles fine though, but the previous stage did indeed include a C++ compiler. But even with that requirement, it still seems a bit dangerous. What if the previous compiler

[Bug libobjc/64051] broken exception model detection in libobjc's configure

2014-11-24 Thread ossman at cendio dot se
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64051 --- Comment #4 from Pierre Ossman ossman at cendio dot se --- I assumed that this would be what happened: Given --build=B --host=H and --target=T: 1. A gcc would be configured with --build=B --host=H --target=T and put in the installation

[Bug libobjc/64051] broken exception model detection in libobjc's configure

2014-11-24 Thread ossman at cendio dot se
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64051 --- Comment #6 from Pierre Ossman ossman at cendio dot se --- Just to make sure I understand you perfectly. This is not supported: ../configure --build=A --host=B --target=B Instead you have to do: ../configure --build=A --host=A --target

[Bug target/60428] non-exception (e.g. C) ARM Linux programs depend on libgcc_s

2014-11-17 Thread ossman at cendio dot se
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60428 --- Comment #3 from Pierre Ossman ossman at cendio dot se --- Comments?

[Bug target/60428] New: non-exception (e.g. C) ARM Linux programs depend on libgcc_s

2014-03-05 Thread ossman at cendio dot se
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: ossman at cendio dot se When compiling a C program for ARM Linux, you can easily end up with dependencies on libgcc_s. This is very annoying as it is not how other targets behave

[Bug target/60428] non-exception (e.g. C) ARM Linux programs depend on libgcc_s

2014-03-05 Thread ossman at cendio dot se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60428 --- Comment #1 from Pierre Ossman ossman at cendio dot se --- Created attachment 32266 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=32266action=edit patch to weaken unwind symbols

[Bug target/60428] non-exception (e.g. C) ARM Linux programs depend on libgcc_s

2014-03-05 Thread ossman at cendio dot se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60428 --- Comment #2 from Pierre Ossman ossman at cendio dot se --- Created attachment 32267 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=32267action=edit test case

[Bug c/53083] gcc bug in moving from the SSE registers back onto the heap.

2013-07-02 Thread ossman at cendio dot se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53083 --- Comment #11 from Pierre Ossman ossman at cendio dot se --- Created attachment 30419 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30419action=edit main.c We've also been hitting this, so here is a reduced test case to provoke the bug

[Bug c/53083] gcc bug in moving from the SSE registers back onto the heap.

2013-07-02 Thread ossman at cendio dot se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53083 --- Comment #12 from Pierre Ossman ossman at cendio dot se --- Created attachment 30420 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30420action=edit Makefile

[Bug c/53083] gcc bug in moving from the SSE registers back onto the heap.

2013-07-02 Thread ossman at cendio dot se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53083 --- Comment #13 from Pierre Ossman ossman at cendio dot se --- This was tested using gcc 4.7.2 and gcc 4.5.3.

[Bug libstdc++/48881] Dynamic link to libstdc++-6.dll / libgcc_s_sjlj-1.dll produces broken binaries

2011-12-19 Thread ossman at cendio dot se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48881 Pierre Ossman ossman at cendio dot se changed: What|Removed |Added CC||ossman at cendio

[Bug target/47608] New: libstdc++ links to bad libgcc_s on OS X (libgcc_s rebuilt needlessly and incorrectly)

2011-02-04 Thread ossman at cendio dot se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47608 Summary: libstdc++ links to bad libgcc_s on OS X (libgcc_s rebuilt needlessly and incorrectly) Product: gcc Version: 4.4.3 Status: UNCONFIRMED Severity: normal

[Bug target/47608] libstdc++ links to bad libgcc_s on OS X (libgcc_s rebuilt needlessly and incorrectly)

2011-02-04 Thread ossman at cendio dot se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47608 --- Comment #1 from Pierre Ossman ossman at cendio dot se 2011-02-04 18:12:26 UTC --- Created attachment 23246 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=23246 Hackish workaround This is what I've done here to workaround the problem

[Bug target/47609] New: libstdc++ depends on libgcc_s.10.5 but gets linked to libgcc_s.10.4

2011-02-04 Thread ossman at cendio dot se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47609 Summary: libstdc++ depends on libgcc_s.10.5 but gets linked to libgcc_s.10.4 Product: gcc Version: 4.4.3 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug driver/42955] undecorated cross-compiler gcc fails to find cc1

2010-02-09 Thread ossman at cendio dot se
--- Comment #2 from ossman at cendio dot se 2010-02-09 09:35 --- Like so: /usr/sparc-sun-solaris2.10/bin/gcc -v Using built-in specs. Target: sparc-sun-solaris2.10 Configured with: ../gcc-4.4.3/configure --prefix=/usr --mandir=/usr/share/man --target=sparc-sun-solaris2.10

[Bug driver/42955] undecorated cross-compiler gcc fails to find cc1

2010-02-09 Thread ossman at cendio dot se
--- Comment #3 from ossman at cendio dot se 2010-02-09 09:36 --- Btw, my workaround for now is to remove the binaries in /usr/sparc-sun-solaris2.10/bin and replace them with symlinks as gcc will resolve any symlinks before trying to determine its runtime prefix. -- http

[Bug regression/42955] New: undecorated cross-compiler gcc fails to find cc1

2010-02-04 Thread ossman at cendio dot se
Product: gcc Version: 4.4.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: regression AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ossman at cendio dot se http://gcc.gnu.org/bugzilla/show_bug.cgi?id