[Bug target/83641] New: -fstack-clash-protection generates incorrect CFI on i386

2017-12-31 Thread fw at gcc dot gnu.org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org Target Milestone: --- Target: i386 Created attachment 42995 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42995&action=edit unwind.i The a

[Bug target/83641] -fstack-clash-protection generates incorrect CFI on i386

2018-01-01 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83641 Florian Weimer changed: What|Removed |Added Attachment #42995|0 |1 is obsolete|

[Bug middle-end/83654] New: -fstack-clash-protection probes below the stack pointer for VLA with constant size

2018-01-02 Thread fw at gcc dot gnu.org
Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org Target Milestone: --- Created attachment 43010 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43010&action=edit const-vla.c

[Bug middle-end/83654] -fstack-clash-protection probes below the stack pointer for VLA with constant size

2018-01-02 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83654 --- Comment #1 from Florian Weimer --- I forgot to mention that I used “-O2 -fstack-clash-protection”, but there's a valgrind warning with -O0, too.

[Bug middle-end/83654] -fstack-clash-protection probes below the stack pointer for VLA with constant size

2018-01-02 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83654 --- Comment #2 from Florian Weimer --- I forgot to add a compiler barrier to f2 for the executable test case, so it is not strictly equivalent. With it, valgrind reports: ==375147== Invalid read of size 4 ==375147==at 0x8048403: f2 (in /roo

[Bug middle-end/83697] New: Integer overflows in dynamically-sized stack allocations with -fstack-clash-protection

2018-01-05 Thread fw at gcc dot gnu.org
Keywords: wrong-code Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org Target Milestone: --- Created attachment 43039 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43

[Bug target/83994] New: %ebx is clobbered by stack-clash probing for regparm-3 function in PIC mode

2018-01-23 Thread fw at gcc dot gnu.org
: wrong-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org Target Milestone: --- Target: i686 Created attachment 43219 --> https://gcc.gnu.org/bugzilla/attachment.

[Bug target/83994] %ebx is clobbered by stack-clash probing for regparm-3 function in PIC mode

2018-01-23 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83994 --- Comment #2 from Florian Weimer --- It's still callee-saved, so it is picked by get_scratch_register_on_entry if it is saved by the function, under the assumption that it is used only after the prologue has saved it and there is no need to sav

[Bug target/84039] New: x86 retpolines and CFI

2018-01-25 Thread fw at gcc dot gnu.org
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org Target Milestone: --- Target: x86-64 I tried this: struct C { virtual ~C(); virtual void f(); }; void f (C *p) { p->f(); p->f(); } with r256939 and -mindirect-branch

[Bug target/84064] New: ICE in ix86_expand_prologue related to -fstack-clash-protection and memcpy on i686

2018-01-26 Thread fw at gcc dot gnu.org
Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: law at redhat dot com Reporter: fw at gcc dot gnu.org Target Milestone: --- Target: i686 Compile this with -O2 -m32 -march=i686 -fstack-clash-protection

[Bug target/84128] New: i686: Stack spilling in -fstack-clash-protection prologue neglects %esp change

2018-01-30 Thread fw at gcc dot gnu.org
: wrong-code Severity: normal Priority: P3 Component: target Assignee: law at redhat dot com Reporter: fw at gcc dot gnu.org Target Milestone: --- Target: i686 Created attachment 43291 --> https://gcc.gnu.org/bugzilla/attachment.cgi

[Bug target/84128] i686: Stack spilling in -fstack-clash-protection prologue neglects %esp change

2018-01-30 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84128 --- Comment #1 from Florian Weimer --- Also seems to affect -fstack-check.

[Bug target/84064] ICE in ix86_expand_prologue related to -fstack-clash-protection and memcpy on i686

2018-01-30 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84064 Florian Weimer changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug target/84146] New: ICE with -mcet in dwarf2out_var_location, involving sigsetjmp

2018-01-31 Thread fw at gcc dot gnu.org
Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org Blocks: 81652 Target Milestone: --- Target: x86-64 Created attachment 43306 --> https://gcc.gnu.

[Bug target/84146] ICE with -mcet in dwarf2out_var_location, involving sigsetjmp

2018-01-31 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84146 Florian Weimer changed: What|Removed |Added See Also||https://bugzilla.redhat.com

[Bug target/84148] CET shouldn't be enabled in 32-bit run-time libraries by default

2018-01-31 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84148 Florian Weimer changed: What|Removed |Added CC||fw at gcc dot gnu.org --- Comment #1

[Bug libstdc++/89461] FAIL: experimental/net/timer/waitable/cons.cc

2019-02-27 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89461 Florian Weimer changed: What|Removed |Added CC||fw at gcc dot gnu.org --- Comment #4

[Bug libfortran/88805] hidden symbol `__cpu_model' is referenced by DSO

2019-03-14 Thread fw at gcc dot gnu.org
||fw at gcc dot gnu.org --- Comment #5 from Florian Weimer --- I can reproduce this using g++ and gcc-8.3.1-2.fc29.x86_64, with this test file: static int implementation_avx2 (void) { return 1; } static int implementation (void) { return 0; } static __typeof__ (implementation

[Bug libfortran/88805] hidden symbol `__cpu_model' is referenced by DSO

2019-03-14 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88805 --- Comment #6 from Florian Weimer --- Note: Current libtool does not know about the need for linking against libgcc.a, either, so this should be fixed by changing how libgcc and libgcc_s are linked, not in the compiler drivers.

[Bug libfortran/88805] hidden symbol `__cpu_model' is referenced by DSO

2019-03-14 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88805 --- Comment #7 from Florian Weimer --- Related mailing list discussion: https://gcc.gnu.org/ml/gcc/2019-03/msg00106.html

[Bug libfortran/88805] hidden symbol `__cpu_model' is referenced by DSO

2019-03-14 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88805 Florian Weimer changed: What|Removed |Added Status|NEW |WAITING See Also|

[Bug libgcc/60790] libatomic convenience library selects IFUNC implementation before obtaining cpu info.

2019-03-20 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60790 --- Comment #14 from Florian Weimer --- Author: fw Date: Wed Mar 20 10:42:35 2019 New Revision: 269818 URL: https://gcc.gnu.org/viewcvs?rev=269818&root=gcc&view=rev Log: PR libgcc/60790: x86: Do not assume ELF constructors run before IFUNC resol

[Bug libgcc/60790] libatomic convenience library selects IFUNC implementation before obtaining cpu info.

2019-03-20 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60790 Florian Weimer changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/89923] printf format check and char8_t

2019-04-04 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89923 --- Comment #3 from Florian Weimer --- But the precedent with wchar_t is that the type of the format string determines the type of the %s arguments. I'm not sure if that's a good precedent, but it's what we have today.

[Bug target/89093] [9 Regression] C++ exception handling clobbers d8 VFP register

2019-04-15 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89093 --- Comment #47 from Florian Weimer --- (In reply to Bernd Edlinger from comment #43) > does anybody know what is the Ada and/or D syntax for that? Syntax for what? I fear we need eagerly load all vector registers before calling the personality

[Bug target/89093] [9 Regression] C++ exception handling clobbers d8 VFP register

2019-04-16 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89093 --- Comment #49 from Florian Weimer --- (In reply to Bernd Edlinger from comment #48) > (In reply to Florian Weimer from comment #47) > > (In reply to Bernd Edlinger from comment #43) > > > does anybody know what is the Ada and/or D syntax for th

[Bug go/90110] [9 Regression] libgo fails to build against glibc 2.19

2019-04-17 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90110 Florian Weimer changed: What|Removed |Added CC||fw at gcc dot gnu.org --- Comment #8

[Bug target/65886] [5/6 Regression] Copy reloc in PIE incompatible with DSO created by -Wl,-Bsymbolic

2019-04-23 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65886 Florian Weimer changed: What|Removed |Added CC||fw at gcc dot gnu.org --- Comment #38

[Bug tree-optimization/90245] A data race with a segmentation fault handler

2019-04-25 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90245 Florian Weimer changed: What|Removed |Added CC||fw at gcc dot gnu.org --- Comment #2

[Bug libstdc++/90370] Does 0 correspond to a POSIX errno value for std::system_category?

2019-05-08 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90370 Florian Weimer changed: What|Removed |Added CC||fw at gcc dot gnu.org --- Comment #2

[Bug libstdc++/90370] Does 0 correspond to a POSIX errno value for std::system_category?

2019-05-10 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90370 --- Comment #4 from Florian Weimer --- (In reply to Jonathan Wakely from comment #3) > The issue is basically that the C++ Standard Library defines two categories > for error numbers known to the implementation: "generic" and "system", where > th

[Bug libstdc++/90370] Does 0 correspond to a POSIX errno value for std::system_category?

2019-05-10 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90370 --- Comment #5 from Florian Weimer --- (In reply to Florian Weimer from comment #4) > (In reply to Jonathan Wakely from comment #3) > > The issue is basically that the C++ Standard Library defines two categories > > for error numbers known to the

[Bug c++/90485] New: Improve error message for throw/noexcept/const after function attribute

2019-05-15 Thread fw at gcc dot gnu.org
: diagnostic Severity: minor Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org Target Milestone: --- Consider this: void f1() __attribute__ ((__noreturn__)) throw (); void f2() __attribute__ ((__noreturn__

[Bug c++/90569] __STDCPP_DEFAULT_NEW_ALIGNMENT__ is wrong for i386-pc-solaris2.11

2019-05-23 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90569 Florian Weimer changed: What|Removed |Added CC||fw at gcc dot gnu.org --- Comment #8

[Bug tree-optimization/90579] Huge store forward stall due to vectorizer

2019-06-07 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90579 Florian Weimer changed: What|Removed |Added CC||fw at gcc dot gnu.org See

[Bug c/91092] New: Error on implicit function declarations by default

2019-07-05 Thread fw at gcc dot gnu.org
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org Target Milestone: --- Once configure scripts have been cleaned up (and we have verified this for Fedora and perhaps Debian), c99/gnu99/c11/gnu11 mode should all

[Bug c/91093] New: Error on implicit int by default

2019-07-05 Thread fw at gcc dot gnu.org
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org Target Milestone: --- Once configure scripts have been cleaned up (and we have verified this for Fedora and perhaps Debian), c99/gnu99/c11/gnu11 modes should all default to emitting

[Bug c/91092] Error on implicit function declarations by default

2019-07-05 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91092 --- Comment #2 from Florian Weimer --- Current util-linux is an example: $ ./configure […] checking wchar_t support... yes […] $ ./configure CC="gcc -Werror=implicit-function-declaration" […] configure: WARNING: wchar_t support not found; not bu

[Bug c/91092] Error on implicit function declarations by default

2019-07-05 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91092 --- Comment #7 from Florian Weimer --- (In reply to Jonathan Wakely from comment #5) > Would an ugly but pragmatic approach be possible? e.g. if the first line of > the translation unit is "/* confdefs.h */ then assume GCC is being invoked > by c

[Bug c/91092] Error on implicit function declarations by default

2019-07-05 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91092 --- Comment #9 from Florian Weimer --- (In reply to Andreas Schwab from comment #8) > What about cmake, metaconfig, meson, scons, ... I hope that the more modern things get this correct and encourage more high-level checks. I plan to build Fedo

[Bug tree-optimization/86435] New: -fsemantic-interposition does not appear to have any effect

2018-07-08 Thread fw at gcc dot gnu.org
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org Target Milestone: --- Target: x86_64 Consider this program: int a; int f1 (int a) { return a; } int f2 (void) { return f1 (a) - a

[Bug tree-optimization/86435] -fsemantic-interposition does not appear to have any effect

2018-07-08 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86435 --- Comment #2 from Florian Weimer --- (In reply to Alexander Monakov from comment #1) > Without -fpic, f1 is considered not interposable. That's an odd assumption. ld can interpose the definition with -z muldefs, after all.

[Bug tree-optimization/86435] -fsemantic-interposition does not appear to have any effect

2018-07-08 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86435 --- Comment #4 from Florian Weimer --- (In reply to Andreas Schwab from comment #3) > But the assembler is allowed to resolve the reference directly without the > possibility for interposition. Hmm. The assembler would still produce a relocatio

[Bug c/53769] [C11]: Macros __STDC_NO_THREADS__ / __STDC_NO_ATOMIC__ missing.

2018-07-12 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53769 Florian Weimer changed: What|Removed |Added CC||fw at gcc dot gnu.org --- Comment #7

[Bug c/53769] [C11]: Macros __STDC_NO_THREADS__ / __STDC_NO_ATOMIC__ missing.

2018-08-27 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53769 --- Comment #9 from Florian Weimer --- (In reply to Vincent Lefèvre from comment #8) > (In reply to Florian Weimer from comment #7) > > Furthermore, if I don't misread the standard, the expectation is that if an > > implementation does not suppor

[Bug middle-end/81035] noreturn leads to worse code due to lack of sibcall optimization

2018-09-21 Thread fw at gcc dot gnu.org
||2018-09-21 Assignee|unassigned at gcc dot gnu.org |fw at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Florian Weimer --- Documentation patch posted: https://gcc.gnu.org/ml/gcc-patches/2018-09/msg01224.html

[Bug c/87379] New: Warn about function pointer casts which differ in variadic-ness

2018-09-21 Thread fw at gcc dot gnu.org
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org CC: msebor at gcc dot gnu.org Target Milestone: --- It is fairly common to assume that that the ... part of a variadic

[Bug middle-end/81035] noreturn leads to worse code due to lack of sibcall optimization

2018-09-21 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81035 --- Comment #3 from Florian Weimer --- Author: fw Date: Fri Sep 21 19:49:36 2018 New Revision: 264490 URL: https://gcc.gnu.org/viewcvs?rev=264490&root=gcc&view=rev Log: Document that attribute noreturn inhibits tail call optimization PR

[Bug middle-end/81035] noreturn leads to worse code due to lack of sibcall optimization

2018-09-21 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81035 Florian Weimer changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/82699] ENDBR isn't generated at function entrance (with -mfentry)

2018-09-24 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82699 Florian Weimer changed: What|Removed |Added Summary|ENDBR isn't generated at|ENDBR isn't generated at

[Bug target/87411] New: -fcf-protection -mindirect-branch=thunk incorrectly

2018-09-24 Thread fw at gcc dot gnu.org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org Target Milestone: --- Target: x86_64

[Bug target/87411] -fcf-protection -mindirect-branch=thunk incorrectly marked as CET

2018-09-24 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87411 Florian Weimer changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/87412] New: -fcf-protection and -mindirect-branch=thunk are incompatible on x86_64

2018-09-24 Thread fw at gcc dot gnu.org
-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org Target Milestone: --- Target: x86_64 Consider this test program: __attribute__ ((weak)) int f1 (int (*f2) (void

[Bug target/83970] -mindirect-branch=thunk -fno-plt generates CET-incompatible thunk

2018-09-24 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83970 --- Comment #1 from Florian Weimer --- Bug 87412 is a related issue, but without -fno-plt.

[Bug target/87414] New: -mindirect-branch=thunk produces thunk with incorrect CFI on x86_64

2018-09-24 Thread fw at gcc dot gnu.org
Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org CC: hjl.tools at gmail dot com Target Milestone: --- Target: x86_64 GCC 9.0.0 (20180924) generates

[Bug target/87421] GCC generates unaligned movdqa

2018-09-24 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87421 Florian Weimer changed: What|Removed |Added CC||fw at gcc dot gnu.org --- Comment #2

[Bug target/84039] x86 retpolines and CFI

2018-10-01 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84039 Florian Weimer changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug target/84829] -mieee-fp causes to link with -lieee but that is no longer available

2018-03-12 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84829 --- Comment #4 from Florian Weimer --- Does -mieee-fp still impact code generation on i386? What about x86-64 with SSE2? I would expect that existing users of -mieee-fp receive an error when they compile and link with a upgraded glibc, so I don

[Bug target/84829] -mieee-fp causes to link with -lieee but that is no longer available

2018-03-12 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84829 --- Comment #6 from Florian Weimer --- (In reply to Jakub Jelinek from comment #5) > -mieee-fp does affect code generation on x86 and m68k, but I don't see how > it is related to any changes in glibc. > And besides code generation changes it affe

[Bug sanitizer/84761] AddressSanitizer is not compatible with glibc 2.27 on x86

2018-03-19 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84761 --- Comment #1 from Florian Weimer --- This bit needs to change for glibc 2.27 and later: #ifdef __i386__ # define DL_INTERNAL_FUNCTION __attribute__((regparm(3), stdcall)) #else # define DL_INTERNAL_FUNCTION #endif We removed the regparm attri

[Bug sanitizer/84761] AddressSanitizer is not compatible with glibc 2.27 on x86

2018-03-19 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84761 --- Comment #3 from Florian Weimer --- (In reply to rguent...@suse.de from comment #2) > I think as there are already quite some __GLIBC_PREREQ uses in the > sanitizer lib changing the above prototype appropriately would be > good enough. If th

[Bug c++/48562] [C++0x] warn about uses of initializer_list that will lead to dangling pointers

2018-03-28 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48562 Florian Weimer changed: What|Removed |Added CC||fw at gcc dot gnu.org See

[Bug libgcc/85120] New: __get_cpuid

2018-03-29 Thread fw at gcc dot gnu.org
: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org Target Milestone: --- Target: i686 __get_cpuid performs the EFLAGS check even with -march=x86-64. I think the instruction was introduced with the Pentium, so we can avoid the check

[Bug libgcc/60790] libatomic convenience library selects IFUNC implementation before obtaining cpu info.

2018-03-29 Thread fw at gcc dot gnu.org
at gcc dot gnu.org |fw at gcc dot gnu.org

[Bug target/80878] -mcx16 (enable 128 bit CAS) on x86_64 seems not to work on 7.1.0

2018-03-29 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80878 Florian Weimer changed: What|Removed |Added Status|RESOLVED|NEW Last reconfirmed|

[Bug target/80878] -mcx16 (enable 128 bit CAS) on x86_64 seems not to work on 7.1.0

2018-03-29 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80878 --- Comment #16 from Florian Weimer --- (In reply to andysem from comment #12) > Is read-only memory a valid use case for __atomic intrinsics anyway? These > intrinsics are primarily targeted to implement std::atomic, I strongly disagree about t

[Bug libgcc/60790] libatomic convenience library selects IFUNC implementation before obtaining cpu info.

2018-03-29 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60790 --- Comment #10 from Florian Weimer --- Patch posted: https://gcc.gnu.org/ml/gcc-patches/2018-03/msg01546.html

[Bug c/66298] -Wmisleading-indentation should also detect missing indentation

2018-11-07 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66298 --- Comment #3 from Florian Weimer --- This would also help to detect the incorrect pragma placement in bug 63326: int main() { int result = 1; if (result < 0) #pragma GCC diagnostic ignored "-Wunused-result" return result; return 0; }

[Bug libstdc++/87855] std::optional only copy-constructible if T is trivially copy-constructible

2018-11-19 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87855 Florian Weimer changed: What|Removed |Added CC||fw at gcc dot gnu.org --- Comment #15

[Bug libgcc/60790] libatomic convenience library selects IFUNC implementation before obtaining cpu info.

2018-11-19 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60790 --- Comment #13 from Florian Weimer --- My GCC 8 backport has not been reviewed yet: https://gcc.gnu.org/ml/gcc-patches/2018-10/msg00524.html

[Bug libgcc/71744] Concurrently throwing exceptions is not scalable

2018-11-19 Thread fw at gcc dot gnu.org
||2018-11-19 Assignee|unassigned at gcc dot gnu.org |fw at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #31 from Florian Weimer --- (In reply to Martin Liška from comment #30) > Jakub: Can the bug be marked as resolved?

[Bug c/88088] -Wtrampolines should be enabled by -Wall (or -Wextra)

2018-11-20 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88088 --- Comment #6 from Florian Weimer --- I'm not a fan of target-specific warnings. In this case, the number of targets where this the warning would not be appropriate would be vanishingly small, though, so I do not think this is a problem in prac

[Bug c/88088] -Wtrampolines should be enabled by -Wall (or -Wextra)

2018-11-20 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88088 --- Comment #8 from Florian Weimer --- (In reply to Segher Boessenkool from comment #7) > The number of targets where such a warning is meaningless is _big_, that is > the point (most of the (older) embedded targets). There are a lot of targets

[Bug tree-optimization/88240] Potential optimization bug: invalid pre-load of floating-point value could cause SIGFPE-underflow if value is integer

2018-11-28 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88240 Florian Weimer changed: What|Removed |Added CC||fw at gcc dot gnu.org --- Comment #5

[Bug tree-optimization/88240] Potential optimization bug: invalid pre-load of floating-point value could cause SIGFPE-underflow if value is integer

2018-11-29 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88240 --- Comment #9 from Florian Weimer --- (In reply to Thomas De Schampheleire from comment #6) > (In reply to Florian Weimer from comment #5) > > This is QEMU with TCG, right? It could be an i387 emulation bug. > > I don't think so. Isn't it so t

[Bug middle-end/69537] New: Incorrect -Wmaybe-uninitialized warning with enum variable

2016-01-28 Thread fw at gcc dot gnu.org
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org Target Milestone: --- gcc -O2 -Wall yields: t.c: In function ‘yp_update’: t.c:27:3: warning: ‘master’ may be used uninitialized in this function [-Wmaybe

[Bug c++/69843] New: C++: Inconsistent treatment of may_alias attribute and forward declarations

2016-02-16 Thread fw at gcc dot gnu.org
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org Target Milestone: --- This is a bit inconsistent. I would expect an error on the definition because it is inconsistent with the forward declaration

[Bug c++/69843] C++: Inconsistent treatment of may_alias attribute and forward declarations

2016-02-16 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69843 --- Comment #2 from Florian Weimer --- (In reply to Jakub Jelinek from comment #1) > Is the forward declaration here in glibc headers? > If yes, using __attribute__((may_alias)) there too wouldn't hurt. > Or do you mean users forward declare stan

[Bug c/66298] -Wmisleading-indentation should also detect missing indentation

2016-02-26 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66298 --- Comment #1 from Florian Weimer --- Other examples. All should receive warnings. while (check_something()) // do_something(); (commented out) do_something(); if (check_something()) #include "/dev/null" do_something(); if (che

[Bug c++/70126] VLA accepted in sizeof and typedef, allowing integer overflow

2016-03-07 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70126 --- Comment #1 from Florian Weimer --- There seems to be a fundamental incompatibility here with supporting the GNU CC VLA extension and this new (and apparently dead) C++ VLA specification. I wonder how much existing G++ code applies sizeof to

[Bug c/70458] New: Function and function pointers that, when called, imply an optimization barrier

2016-03-30 Thread fw at gcc dot gnu.org
: enhancement Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org Target Milestone: --- In glibc, we have a few cases where we call a function through an inappropriately typed function pointer, or from a different

[Bug c/70458] Function and function pointers that, when called, imply an optimization barrier

2016-03-30 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70458 --- Comment #3 from Florian Weimer --- (In reply to Richard Biener from comment #2) > I also seriously question > > "The glibc consensus is to keep such calls." > > can you provide a reference to the relevant discussion? https://sourceware.org

[Bug c/70753] New: missing diagnostic in C11 mode: sizeof, _Alignof of function type

2016-04-21 Thread fw at gcc dot gnu.org
-invalid Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org Target Milestone: --- GCC accepts this code, but sizeof of a function type is invalid in C11 (and likely earlier). It is a

[Bug c/70753] missing diagnostic in C11 mode: sizeof, _Alignof of function type

2016-04-21 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70753 --- Comment #2 from Florian Weimer --- (In reply to Marek Polacek from comment #1) > Why would it have to be error? If you want errors instead of warnings, use > -pedantic-errors. I did not know about -pedantic-errors. It is extremely surprisi

[Bug sanitizer/71160] New: libasan: Backport support for malloc within dlsym

2016-05-17 Thread fw at gcc dot gnu.org
: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org Target Milestone: --- Please backport this ASAN

[Bug c/71255] Auto-annotate sockaddr related structs with may_alias

2016-05-24 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 Florian Weimer changed: What|Removed |Added CC||fw at gcc dot gnu.org --- Comment #3

[Bug c/71255] Auto-annotate sockaddr related structs with may_alias

2016-05-24 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #5 from Florian Weimer --- (In reply to Marek Polacek from comment #4) > Can you provide an example how do you envision such a pragma? Should it > only have an effect on "sockaddr{,_*}"-named structs? I expect that we'd put somethin

[Bug c/71255] Implement #pragma may_alias

2016-05-24 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #9 from Florian Weimer --- (In reply to rguent...@suse.de from comment #8) > While a pragma might work I'd say for the case in question we'd like to > have a "tentative" forward declaration that can be merged with subsequent > forward

[Bug c/71255] Implement #pragma may_alias

2016-05-26 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #14 from Florian Weimer --- I believe the equivalent C test case: #include struct sockaddr; struct sockaddr *f(); struct __attribute__((may_alias)) sockaddr {}; struct sockaddr *f() { return NULL; } still does not work: t.c:7:

[Bug c/71255] Implement #pragma may_alias

2016-05-27 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #16 from Florian Weimer --- (In reply to Marek Polacek from comment #15) > Yeah, only the C++ side was changed. I think it's wrong that we reject the > testcase in Comment 14 in C (I have a fix for that). Good. > But even with that

[Bug c/71255] Implement #pragma may_alias

2016-05-27 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #18 from Florian Weimer --- (In reply to rguent...@suse.de from comment #17) > On Fri, 27 May 2016, fw at gcc dot gnu.org wrote: > > I think the real question is whether it matters anywhere if a pointer to an > > in

[Bug c/71255] Implement #pragma may_alias

2016-05-30 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #20 from Florian Weimer --- (In reply to rguent...@suse.de from comment #19) > On Fri, 27 May 2016, fw at gcc dot gnu.org wrote: > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 > > > > --- Comment

[Bug c/71255] Implement #pragma may_alias

2016-06-07 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #22 from Florian Weimer --- (In reply to Marek Polacek from comment #21) > The testcase in Comment 14 should now compile fine. What's the best way to detect that a compiler has this fix? We cannot use a configure check. Is there an

[Bug c/71255] Implement #pragma may_alias

2016-06-07 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #25 from Florian Weimer --- (In reply to Manuel López-Ibáñez from comment #23) > (In reply to Florian Weimer from comment #22) > > (In reply to Marek Polacek from comment #21) > > > The testcase in Comment 14 should now compile fine.

[Bug c/71255] Implement #pragma may_alias

2016-06-08 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71255 --- Comment #28 from Florian Weimer --- We can put such a version check into the glibc headers and see how it works out in practice. As long as there is consensus to fix any related breakage (related to the attribute and forward declarations) fo

[Bug sanitizer/71445] libsanitizer build failure on aarch64-linux-gnu with recent glibc

2016-06-10 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71445 --- Comment #15 from Florian Weimer --- There is now a proposal to revert the glibc change instead: https://sourceware.org/ml/libc-alpha/2016-06/msg00339.html

[Bug target/80180] Incorrect codegen from rdseed intrinsic use

2017-07-26 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80180 Florian Weimer changed: What|Removed |Added CC||fw at gcc dot gnu.org --- Comment #5

[Bug c/81577] New: -ftrack-macro-expansion=0 causes spurious “this ‘else’ clause does not guard” with -Wall

2017-07-27 Thread fw at gcc dot gnu.org
Keywords: diagnostic Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org Target Milestone: --- Created attachment 41844 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41

[Bug target/81646] New: i386 SSE2 compilation mode which preserves psABI stack alignment without requiring it

2017-08-01 Thread fw at gcc dot gnu.org
Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org Target Milestone: --- Target: i386 It would be helpful to have an i386 compilation mode which preserves the 16-byte stack

[Bug target/81646] i386 SSE2 compilation mode which preserves psABI stack alignment without requiring it

2017-08-01 Thread fw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81646 --- Comment #3 from Florian Weimer --- (In reply to Jakub Jelinek from comment #1) > The Linux ABI says the stack should be 16-byte alignment, anything else is a > bug. The GCC manual recommends this (under -mincoming-stack-boundary): This

<    1   2   3   4   5   >