[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

[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
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=edit Failing pre processed output [jamrial@Arc

[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=edit Preprocessed output created with -freport-bug [jamrial@ArchVM ~]$ c++ -std=c++17 -c ccBqWFGo.ii /home/jamr

[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=edit Preprocessed output created with -freport-bug [jamrial@ArchVM ~]$ gcc -fno-m

[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=edit Preprocessed output created with -freport-

[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=edit Preprocessed output as created by -freport-bug /home/jamrial/range-v3/include/range

[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=edit Preprocessed output as created by -freport-bug /home/jamrial/range-v3/include/range

[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

[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=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=edit Test case [jamrial@ArchVM ~]$ gcc -v Using built-in specs. COLLECT_GCC=

[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=edit Assembly and preprocessed output of miscompiled file http://fate.ffmpeg.

[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=edit Preprocessed source as generated by -freport-

[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=edit Preprocessed source as generated by -freport-bug /home/jamrial/x265/sou

[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

[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
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 eax

[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 James Almer changed: What|Removed |Added Component|rtl-optimization|tree-optimization --- Comment #5 from

[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=edit -save-temps output for all three files

[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 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=x86_64-archlinux-gcc-experimental

[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 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=edit Preprocessed source as generated by -freport-bug In file included from /h

[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 jamrial at gmail dot com changed: What|Removed |Added CC||jamrial at gmail

[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 jamrial at gmail dot com changed: What|Removed |Added CC||jamrial at gmail

[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 jamrial at gmail dot com --- Created attachment 35804 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35804action=edit Preprocessed code where a test instruction is still generated Please look

[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 typename struct A; template bool struct enable_if; template typename T, T struct B

[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 jamrial at gmail dot com --- FWIW, testcase from Comment 2 of pr66405 unedited: [jamrial@archVM ~]$ cat pr66405_c2.cpp template typename struct A; template bool struct enable_if; template typename T, T struct B

[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 jamrial at gmail dot com --- (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

[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 jamrial at gmail dot com --- Created attachment 35683 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35683action=edit Preprocessed source as generated by -freport-bug, third test case, gcc 5.1.1 svn 223417

[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 jamrial at gmail dot com --- (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

[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 jamrial at gmail dot com --- (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

[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=35674action=edit Preprocessed source as generated by -freport-bug GCC 6.0.0 svn 223906 In file

[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=35608action=edit Preprocessed source as generated by -freport-bug GCC 6.0.0 svn 223625 In file

[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 jamrial at gmail dot com changed: What|Removed |Added Known to work|5.1.0

[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 jamrial at gmail dot com --- Created attachment 35594 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35594action=edit Preprocessed source as generated by -freport-bug, from the second test case

[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 jamrial at gmail dot com --- (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

[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=35494action=edit Preprocessed

[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 jamrial at gmail dot com --- 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

[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=35428action=edit Preprocessed source as generated by -freport-bug In file included from ./boost

[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 jamrial at gmail dot com --- (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

[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 jamrial at gmail dot com --- 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

[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
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 -mbmi2 -O3

[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=35328action=edit Assembly output https

[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 jamrial at gmail dot com changed: What|Removed |Added CC||jamrial at gmail