[Bug inline-asm/88559] error: Stack Pointer register clobbered by '%rsp' in 'asm'

2018-12-20 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88559 --- Comment #4 from James Almer --- To expand, as i mentioned and showed in the OP this code has compiled without issues up to some point between December 10 and December 17 with gcc trunk. I'm not arguing about clobbering the stack pointer being

[Bug inline-asm/88559] error: Stack Pointer register clobbered by '%rsp' in 'asm'

2018-12-20 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88559 --- Comment #3 from James Almer --- This code has compiled and the resulting assembly worked without issues for like a dozen major GCC releases, and now it's suddenly invalid?

[Bug inline-asm/88559] New: error: Stack Pointer register clobbered by '%rsp' in 'asm'

2018-12-19 Thread jamrial at gmail dot com
Severity: normal Priority: P3 Component: inline-asm Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- Created attachment 45265 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45265&action=edit Failing pre

[Bug c/83056] New: GCC suggests the use of previously reported undeclared identifiers when reporting new undeclared identifiers

2017-11-19 Thread jamrial at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- $ cat suggest.c enum { TYPE_A, } int fn(void) { int b = TYPE_B; int c = TYPE_C

[Bug c++/82080] ICE: Segmentation fault

2017-09-11 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82080 --- Comment #4 from James Almer --- The regression seems to have started with revision r251433.

[Bug c++/82080] ICE: Segmentation fault

2017-09-05 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82080 James Almer changed: What|Removed |Added Attachment #42105|0 |1 is obsolete|

[Bug c++/82080] New: ICE: Segmentation fault

2017-09-01 Thread jamrial at gmail dot com
: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- Created attachment 42105 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42105&action=edit Preprocessed output created with -freport-bug [jamrial@ArchVM ~]$ c++ -std=c++17 -c ccBqWFGo.i

[Bug tree-optimization/81744] New: ICE: verify_ssa failed, at tree-ssa.c:1186

2017-08-06 Thread jamrial at gmail dot com
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- Created attachment 41942 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41942&action=edit Preprocessed output created with -freport-bug [jamrial@ArchVM

[Bug c++/80812] internal compiler error: in build_value_init_noctor, at cp/init.c:483

2017-05-23 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80812 --- Comment #1 from James Almer --- This started with r248153

[Bug c++/80812] New: internal compiler error: in build_value_init_noctor, at cp/init.c:483

2017-05-17 Thread jamrial at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- Created attachment 41379 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41379&action=edit Preprocessed output creat

[Bug c++/78003] New: c++17: ICE in build_over_call, at cp/call.c:7847

2016-10-16 Thread jamrial at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- Created attachment 39820 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39820&action=edit Preprocessed output as created by -freport-bug /home/jamrial/range-v3/

[Bug c++/66426] ICE: unexpected expression ‘int(Constructible())...’ of kind expr_pack_expansion

2016-08-04 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66426 James Almer changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/72457] New: internal compiler error: Segmentation fault

2016-07-25 Thread jamrial at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- Created attachment 39010 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39010&action=edit Preprocessed output as created by -freport-bug /home/jamrial/range-v3/includ

[Bug c++/70768] Increased compilation time

2016-04-23 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70768 --- Comment #2 from James Almer --- (In reply to Markus Trippelsdorf from comment #1) > Well, you simply need more RAM to compile this testcase, because gcc-6 uses > slightly over 2GB peak, so your machine starts swapping. > On my machine (with 8

[Bug c++/70768] New: Increased compilation time

2016-04-22 Thread jamrial at gmail dot com
: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- Created attachment 38332 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38332&action=edit Preprocessed output The attached preprocessed output (Created from the source using GCC 5, 6 an

[Bug tree-optimization/69726] New: Bogus warnings with -O3 -Wuninitialized

2016-02-08 Thread jamrial at gmail dot com
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- Created attachment 37636 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37636&action=edit Test case [jamrial@ArchVM ~]$ gcc -v Using built-in specs. COLLECT_

[Bug c++/69203] ICE in potential_constant_expression_1, at cp/constexpr.c:4754

2016-01-22 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69203 James Almer changed: What|Removed |Added Attachment #37282|0 |1 is obsolete|

[Bug tree-optimization/69320] New: wrong code generation at -O2 and higher

2016-01-16 Thread jamrial at gmail dot com
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- Created attachment 37377 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37377&action=edit Assembly and preprocessed output of miscompiled file http://fate.ffm

[Bug c++/69203] New: ICE in potential_constant_expression_1, at cp/constexpr.c:4754

2016-01-08 Thread jamrial at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- Created attachment 37282 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37282&action=edit Preprocessed source as generated by -

[Bug inline-asm/68952] New: Wrong code with AVX inline-asm in 32-bit mode

2015-12-16 Thread jamrial at gmail dot com
: inline-asm Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- Regression since GCC 4.9.0. -O0, -O1, -O2 and -O3 are all affected. -Os works as intended. float clipf(float a, float amin, float amax) { float ret; __asm__

[Bug tree-optimization/68806] New: internal compiler error: Segmentation fault

2015-12-08 Thread jamrial at gmail dot com
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- Created attachment 36967 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36967&action=edit Preprocessed source as generated by -freport-bug /home/jamri

[Bug c/68780] _mm256_mul_epi32 intrinsic not working

2015-12-07 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68780 --- Comment #1 from James Almer --- What i assume you want is _mm256_mullo_epi32(a, b), which maps to the vpmulld instruction (Multiply the packed 32-bit integers in a and b, producing intermediate 64-bit integers, and store the low 32 bits of th

[Bug target/68647] New: __builtin_popcountll doesn't generate popcnt instructions when targeting -mpopcnt on x86_32

2015-12-01 Thread jamrial at gmail dot com
IRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- #include int fn (uint64_t a) { return __builtin_popcountll(a); } gcc -O2 -mpopcnt xor

[Bug tree-optimization/67920] [6 Regression] wrong code with -O3

2015-10-13 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67920 --- Comment #9 from James Almer --- (In reply to Yuri Rumyantsev from comment #8) > Please check that revision 228760 will cure your issue. Looks like it did. Thanks.

[Bug tree-optimization/67920] [6 Regression] wrong code with -O3

2015-10-12 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67920 --- Comment #6 from James Almer --- Created attachment 36491 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36491&action=edit -save-temps output for all three files

[Bug tree-optimization/67920] [6 Regression] wrong code with -O3

2015-10-12 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67920 James Almer changed: What|Removed |Added Component|rtl-optimization|tree-optimization --- Comment #5 from Jame

[Bug rtl-optimization/67920] wrong code with -O3

2015-10-10 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67920 --- Comment #3 from James Almer --- (In reply to Andrew Pinski from comment #2) > Can you also compile with -fsanitize=undefined and try that? Can you also > try -fsanitize=address ? > > This might detect if it is a bug in the code vs a bug in

[Bug sanitizer/67921] New: "internal compiler error: in build_polynomial_chrec, at tree-chrec.h:147" when using -fsanitize=undefined

2015-10-10 Thread jamrial at gmail dot com
Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc d

[Bug rtl-optimization/67920] wrong code with -O3

2015-10-10 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67920 --- Comment #1 from James Almer --- For reference you can also check http://fate.ffmpeg.org/report.cgi?time=20151010052205&slot=x86_64-archlinux-gcc-experimental

[Bug rtl-optimization/67920] New: wrong code with -O3

2015-10-10 Thread jamrial at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- Some change to trunk made in the last 18 days is making gcc miscompile the files libavcodec/jpeg2000dec.c libavcodec/j2kenc.c and libavcodec/avuidec.c from ffmpeg git head when -O3 is used

[Bug tree-optimization/67794] New: internal compiler error: Segmentation fault

2015-10-01 Thread jamrial at gmail dot com
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- Created attachment 36432 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36432&action=edit Preprocessed source as generated by -freport-bug In file includ

[Bug middle-end/66872] fold a & ((1 << b) - 1) to a & ~(-1 << b)

2015-07-14 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66872 James Almer changed: What|Removed |Added CC||jamrial at gmail dot com --- Comment #1

[Bug target/59767] __atomic_load_n with __ATOMIC_SEQ_CST should result in a memory barrier

2015-07-02 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59767 James Almer changed: What|Removed |Added CC||jamrial at gmail dot com --- Comment #1

[Bug target/65871] bzhi builtin/intrinsic wrongly assumes bzhi instruction doesn't set the ZF flag

2015-06-18 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65871 --- Comment #9 from James Almer --- Created attachment 35804 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35804&action=edit Preprocessed code where a test instruction is still generated Please look at the attachment. [jamrial@archVM ~]$

[Bug c++/66426] ICE: unexpected expression ‘int(Constructible())...’ of kind expr_pack_expansion

2015-06-05 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66426 --- Comment #1 from James Almer --- FWIW, testcase from Comment 2 of pr66405 unedited: [jamrial@archVM ~]$ cat pr66405_c2.cpp template struct A; template struct enable_if; template struct B; template using and_c = A>; template using Constru

[Bug c++/66426] New: ICE: unexpected expression ‘int(Constructible())...’ of kind expr_pack_expansion

2015-06-05 Thread jamrial at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- [jamrial@archVM ~]$ cat zip.c template struct A; template struct enable_if; template struct B; template using and_c = A

[Bug c++/66067] [6 Regression] tree check ICE: accessed elt 1 of tree_vec with 0 elts in write_template_args, at cp/mangle.c:2574

2015-06-04 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66067 --- Comment #10 from James Almer --- (In reply to Markus Trippelsdorf from comment #9) > I've tested latest gcc-5 branch and still cannot reproduce the issue. > The only ICE I get building range-v3 is PR66405. Odd. I'll see about reporting the g

[Bug c++/66067] [6 Regression] tree check ICE: accessed elt 1 of tree_vec with 0 elts in write_template_args, at cp/mangle.c:2574

2015-06-02 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66067 --- Comment #8 from James Almer --- (In reply to James Almer from comment #7) > (In reply to Markus Trippelsdorf from comment #6) > > (In reply to James Almer from comment #5) > > > Created attachment 35683 [details] > > > Preprocessed source as

[Bug c++/66067] [6 Regression] tree check ICE: accessed elt 1 of tree_vec with 0 elts in write_template_args, at cp/mangle.c:2574

2015-06-02 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66067 --- Comment #7 from James Almer --- (In reply to Markus Trippelsdorf from comment #6) > (In reply to James Almer from comment #5) > > Created attachment 35683 [details] > > Preprocessed source as generated by -freport-bug, third test case, gcc 5.

[Bug c++/66067] [6 Regression] tree check ICE: accessed elt 1 of tree_vec with 0 elts in write_template_args, at cp/mangle.c:2574

2015-06-02 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66067 --- Comment #5 from James Almer --- Created attachment 35683 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35683&action=edit Preprocessed source as generated by -freport-bug, third test case, gcc 5.1.1 svn 223417 How about this one? Crash

[Bug c++/66371] New: ICE: canonical types differ for identical types

2015-06-01 Thread jamrial at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- Created attachment 35674 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35674&action=edit Preprocessed source as generated by -freport-bug GCC 6.0.0 svn 223906

[Bug c++/66270] New: ICE: canonical types differ for identical types

2015-05-23 Thread jamrial at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- Created attachment 35608 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35608&action=edit Preprocessed source as generated by -freport-bug GCC 6.0.0 svn 223625

[Bug c++/66067] [5/6 Regression] tree check ICE: accessed elt 1 of tree_vec with 0 elts in write_template_args, at cp/mangle.c:2574

2015-05-21 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66067 --- Comment #2 from James Almer --- Created attachment 35594 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35594&action=edit Preprocessed source as generated by -freport-bug, from the second test case

[Bug c++/66067] [5/6 Regression] tree check ICE: accessed elt 1 of tree_vec with 0 elts in write_template_args, at cp/mangle.c:2574

2015-05-21 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66067 James Almer changed: What|Removed |Added Known to work|5.1.0 | Summary|[6 Regression] tree ch

[Bug c++/66216] [6 Regression] Defaulted Operators and constructors not working with aligned attribute

2015-05-20 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66216 --- Comment #2 from James Almer --- (In reply to Jonathan Wakely from comment #1) > And now it gives an ICE on trunk, so it's regressed from rejects-valid to > ice-on-valid-code: > > a.cc:1:7: internal compiler error: canonical types differ for

[Bug c++/66067] New: tree check ICE: accessed elt 1 of tree_vec with 0 elts in write_template_args, at cp/mangle.c:2574

2015-05-08 Thread jamrial at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- Created attachment 35494 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35494&acti

[Bug target/65871] bzhi builtin/intrinsic wrongly assumes bzhi instruction doesn't set the ZF flag

2015-05-03 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65871 --- Comment #7 from James Almer --- Thanks for the above fix. I forgot to test BMI1's andn. That one should have an insn modeled this way as well. int foo (unsigned int x, unsigned int y) { if (~x & y) return 1; return 0; } gc

[Bug c++/65936] New: [6 Regression] ICE building libboost_log.so.1.58.0

2015-04-29 Thread jamrial at gmail dot com
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- Created attachment 35428 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35428&action=edit Preprocessed source as generated by -freport-bug In file included from

[Bug target/65871] bzhi builtin/intrinsic wrongly assumes bzhi instruction doesn't set the ZF flag

2015-04-28 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65871 --- Comment #4 from James Almer --- (In reply to Uroš Bizjak from comment #3) > Please see the patch, attached in Comment #2. > > While I can see the use (and benefit) to model the patterns that also set CC > register internally for BEXTR and BZ

[Bug target/65871] bzhi builtin/intrinsic wrongly assumes bzhi instruction doesn't set the ZF flag

2015-04-24 Thread jamrial at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65871 --- Comment #1 from James Almer --- The same apparently happens with bextr, blsi, blsr, and most (if not all) of AMD's tbm instructions. They set the ZF flag but gcc still generates a test instruction. http://www.felixcloutier.com/x86/BEXTR.html

[Bug target/65871] New: bzhi builtin/intrinsic wrongly assumes bzhi instruction doesn't set the ZF flag

2015-04-23 Thread jamrial at gmail dot com
IRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com unsigned foo(void); int main(void) { if (__builtin_ia32_bzhi_si(foo(), foo())) return 1; return 0; } Compiled with -mbmi

[Bug target/65782] New: Assembly failure (invalid register for .seh_savexmm) with -O3 -mavx512f on mingw-w64

2015-04-15 Thread jamrial at gmail dot com
Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Created attachment 35328 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35328&action=edit Assembly output

[Bug target/65671] New: Assembly failure (invalid register operand) with -O3 -mavx512vl

2015-04-03 Thread jamrial at gmail dot com
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com https://raw.githubusercontent.com/foo86/dcadec/e884d9a0d9127528bdc47c1f8db392363fb50876/libdcadec/idct_float.c gcc -O3 -mavx512f -mavx512vl -c -o libdcadec

[Bug target/65368] New: _bzhi_u32 intrinsic generates incorrect code when -O1 or above is specified and index is an immediate

2015-03-09 Thread jamrial at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com The code generated is a simple AND instruction that zeroes the high bits based on the index value starting from the highest

[Bug tree-optimization/60902] [4.9 Regression] ffmpeg built with gcc 4.9 RC produces incorrect flac playback code

2014-04-25 Thread jamrial at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60902 James Almer changed: What|Removed |Added CC||jamrial at gmail dot com --- Comment #32