[Bug inline-asm/98847] Miscompilation with c++17, templates, and register keyword

2021-04-22 Thread programmerjake at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98847 --- Comment #12 from programmerjake at gmail dot com --- (In reply to Jakub Jelinek from comment #11) > Fixed. Thanks!!

[Bug inline-asm/98847] Miscompilation with c++17, templates, and register keyword

2021-02-01 Thread programmerjake at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98847 --- Comment #8 from programmerjake at gmail dot com --- Can the fix for this be backported to gcc 8 and 9 too? Thanks!

[Bug inline-asm/98847] Miscompilation with c++17, templates, and register keyword

2021-01-27 Thread programmerjake at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98847 --- Comment #4 from programmerjake at gmail dot com --- (In reply to Jakub Jelinek from comment #3) > Created attachment 50066 [details] > gcc11-pr98847.patch > > Untested fix. That will probably also fix bug #98846

[Bug inline-asm/98847] New: Miscompilation with c++17, templates, and register keyword

2021-01-26 Thread programmerjake at gmail dot com via Gcc-bugs
Priority: P3 Component: inline-asm Assignee: unassigned at gcc dot gnu.org Reporter: programmerjake at gmail dot com Target Milestone: --- Host: x86_64-linux-gnu Target: x86_64-linux-gnu In: https://gcc.godbolt.org/z/49xoKP With the following

[Bug c++/98846] New: Spurious -Wregister warning

2021-01-26 Thread programmerjake at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: programmerjake at gmail dot com Target Milestone: --- In: https://gcc.godbolt.org/z/49xoKP With the following code: template int template_get_edx() { register int edx asm("edx"); asm("movl $1234, %%edx\n\t# reg

[Bug jit/87291] Add support for inline asm to libgccjit

2020-06-03 Thread programmerjake at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87291 --- Comment #11 from programmerjake at gmail dot com --- (In reply to programmerjake from comment #10) > (In reply to bouanto from comment #9) > > Does gcc provide a way to specify whether the stack should be aligned > > properly

[Bug jit/87291] Add support for inline asm to libgccjit

2020-06-03 Thread programmerjake at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87291 programmerjake at gmail dot com changed: What|Removed |Added CC||programmerjake at gmail

[Bug jit/87291] New: Add support for inline asm to libgccjit

2018-09-12 Thread programmerjake at gmail dot com
Assignee: dmalcolm at gcc dot gnu.org Reporter: programmerjake at gmail dot com Target Milestone: --- I'm thinking of using libgccjit for generating code for a custom RISC-V architecture. Support for using inline asm would be nice so I can use stock gcc without having to add

[Bug libstdc++/81256] basic_filebuf::close doesn't propagate exceptions

2017-06-29 Thread programmerjake at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81256 --- Comment #1 from programmerjake at gmail dot com --- assuming this is fixed, basic_filebuf::~basic_filebuf will need to add a try-catch to ignore exceptions thrown there instead of calling terminate because it's noexcept.

[Bug libstdc++/81256] New: basic_filebuf::close doesn't propagate exceptions

2017-06-29 Thread programmerjake at gmail dot com
: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: programmerjake at gmail dot com Target Milestone: --- in line 247 of fstream.tcc, basic_filebuf::close ignores exceptions thrown by _M_terminate_output. _M_terminate_output calls unshift on the codecvt facet from

[Bug c++/77562] large amount of memory usage when allocating big arrays

2016-09-11 Thread programmerjake at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77562 --- Comment #6 from programmerjake at gmail dot com --- (In reply to Andrew Pinski from comment #5) > Note I suspect this is due to "long a = 1;" being treated as a constexpr > something like that now. it is. In the original c

[Bug c++/77562] large amount of memory usage when allocating big arrays

2016-09-11 Thread programmerjake at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77562 --- Comment #3 from programmerjake at gmail dot com --- I would think that unrolling loops would be best left till after gimplification.

[Bug c++/77562] New: large amount of memory usage when allocating big arrays

2016-09-11 Thread programmerjake at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: programmerjake at gmail dot com Target Milestone: --- when using gcc 5+, compiling the following code uses a huge amount of memory creating a read-only template object. On gcc 4.9 and before

[Bug c++/71587] New: missed inlining extern template function

2016-06-19 Thread programmerjake at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: programmerjake at gmail dot com Target Milestone: --- missed inlining fn2 version: (Ubuntu 5.3.0-3ubuntu1~14.04) 5.3.0 20151204 command: g++-5 -O3 -S -std=c++11 -xc++ - source: template void fn2(); extern template void fn2

[Bug c++/71248] crash on in-class initializer of array of pointer to member

2016-05-30 Thread programmerjake at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71248 --- Comment #2 from programmerjake at gmail dot com --- still crashes on 4.8.5: g++ (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5

[Bug c++/71248] New: crash on in-class initializer of array of pointer to member

2016-05-23 Thread programmerjake at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: programmerjake at gmail dot com Target Milestone: --- g++ --version g++ (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see

[Bug c++/70447] delete operator not called when destructor throws.

2016-03-29 Thread programmerjake at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70447 programmerjake at gmail dot com changed: What|Removed |Added CC||programmerjake at gmail

[Bug c++/70447] New: delete operator not called when destructor throws.

2016-03-29 Thread programmerjake at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: programmerjake at gmail dot com Target Milestone: --- Created attachment 38126 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38126=edit test source

[Bug c++/68574] New: add -W#pragma-messages equivalent

2015-11-26 Thread programmerjake at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: programmerjake at gmail dot com Target Milestone: --- There is no -Wno-error=... option to prevent conversion of warnings from #pragma GCC warning "..." to error messages when using -Werror Test Case: Source: #pragma G

[Bug c++/68574] add -W#pragma-messages equivalent

2015-11-26 Thread programmerjake at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68574 programmerjake at gmail dot com changed: What|Removed |Added CC||programmerjake at gmail

[Bug c++/66360] New: thread_local variable needs copy constructor

2015-06-01 Thread programmerjake at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: programmerjake at gmail dot com Target Milestone: --- Created attachment 35663 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35663action=edit source code thread_local variable won't compile when trying to forward empty

[Bug c++/61717] New: seg fault on using variadic templates to initialize array

2014-07-04 Thread programmerjake at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: programmerjake at gmail dot com Created attachment 33071 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33071action=edit preprocessed source segmentation fault on using variadic templates

[Bug c++/61717] seg fault on using variadic templates to initialize array

2014-07-04 Thread programmerjake at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61717 --- Comment #1 from programmerjake at gmail dot com --- gcc version string: gcc (Debian 4.9.0-6) 4.9.0