[Bug middle-end/85633] reorders function ignoring fpu exception state

2018-05-03 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85633 --- Comment #4 from Julian Taylor --- Oh that is unfortunate. I guess one has to inject the dependency in the fpu checking function as an argument then.

[Bug middle-end/85633] reorders function ignoring fpu exception state

2018-05-03 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85633 --- Comment #2 from Julian Taylor --- changing the fpu state does not count as a side effect? This doesn't seem plausible, this type of code is one the reasons the fpu exception state exists. There is a lot of code written with this in mind

[Bug c/85633] New: [8 Regression] reorders function ignoring fpu exception state

2018-05-03 Thread jtaylor.debian at googlemail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: jtaylor.debian at googlemail dot com Target Milestone: --- gcc-8 seems to ignore the global fpu exception state when reordering functions. In this example it reorders

[Bug target/85100] New: __builtin_cpu_supports avx does not verify OS supports it

2018-03-27 Thread jtaylor.debian at googlemail dot com
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: jtaylor.debian at googlemail dot com Target Milestone: --- __builtin_cpu_supports("avx") checks that the cpu supports avx instructions, but without OS support the instructi

[Bug tree-optimization/80198] [6/7 Regression] does not vectorize generic inplace integer operation

2017-03-27 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80198 --- Comment #5 from Julian Taylor --- I have been searching for a workaround as this has pretty bad performance impact in my usecase. I found that putting this into the inplace conditional #pragma GCC ivdep allows it to be vectorized again with

[Bug tree-optimization/65917] [6 Regression] XFAIL: gcc.dg/tree-ssa/20030922-2.c scan-tree-dump-times dom1 "if " 2

2017-03-26 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65917 Julian Taylor changed: What|Removed |Added CC||jtaylor.debian at googlemail dot c

[Bug tree-optimization/80198] regression [6/7], does not vectorize generic inplace integer operation

2017-03-26 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80198 Julian Taylor changed: What|Removed |Added Summary|regression, does not|regression [6/7], does not

[Bug tree-optimization/80198] regression, does not vectorize generic inplace integer operation

2017-03-26 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80198 Julian Taylor changed: What|Removed |Added Summary|does not vectorize generic |regression, does not

[Bug tree-optimization/80198] New: does not vectorize generic inplace integer operation

2017-03-26 Thread jtaylor.debian at googlemail dot com
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: jtaylor.debian at googlemail dot com Target Milestone: --- In the following code the generic function does not vectorize when provided with arguments that do an inplace operation. GCC does emit vector

[Bug c/79128] export unsafe-math-optimization cpp defintion

2017-01-18 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79128 Julian Taylor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/79128] New: export unsafe-math-optimization cpp defintion

2017-01-18 Thread jtaylor.debian at googlemail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: jtaylor.debian at googlemail dot com Target Milestone: --- GCC provides the __FAST_MATH__ when building with -ffast-math. This allows c libraries to use other types of math functions that still comply with this setting, e.g

[Bug c/79117] __builtin_isfinite edge case incorrect on i386

2017-01-18 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79117 --- Comment #3 from Julian Taylor --- using isinf is not correct as isinf(nan) == 0 why does isinf do the truncation on x87 and isfinite does not?

[Bug c/79117] New: __builtin_isfinite edge case incorrect on 32 bit

2017-01-17 Thread jtaylor.debian at googlemail dot com
: c Assignee: unassigned at gcc dot gnu.org Reporter: jtaylor.debian at googlemail dot com Target Milestone: --- following program (arguably) incorrectly outputs "not finite when compiled: gcc test.c -O2 -m32 on gcc 6.3.0 #include #include void __attribute__((noi

[Bug libgomp/66553] openmp tasks produce libgomp warnings with fsanitize=thread

2016-10-12 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66553 --- Comment #3 from Julian Taylor --- Would adding a libgomp threadsanitizer configure switch be an option? It could enable --disable-linux-futex which you need for omp critical sections, set the right compile and link flags and add some extra

[Bug tree-optimization/69489] missed vectorization for boolean loop, missed if-conversion

2016-04-21 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69489 --- Comment #14 from Julian Taylor --- I am on x86_64. It actually does vectorize with -mavx but not with -msse2. The other variant of the loop I posted does vectorize with sse2. $ gcc --version gcc (GCC) 7.0.0 20160421 (experimental)

[Bug tree-optimization/69489] missed vectorization for boolean loop, missed if-conversion

2016-04-21 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69489 --- Comment #12 from Julian Taylor --- the testcase in this ticket is not yet vectorized with gcc 20160421 (r235341)

[Bug tree-optimization/69489] New: missed vectorization for boolean loop

2016-01-26 Thread jtaylor.debian at googlemail dot com
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: jtaylor.debian at googlemail dot com Target Milestone: --- following (abbreviated) code does not vectorize with gcc 5.2.1: gcc file.c -O2 -ftree-vectorize -c double yule_bool_distance_char2(const char *u, const char

[Bug c/66970] Add __has_builtin() macro

2016-01-13 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970 Julian Taylor changed: What|Removed |Added CC||jtaylor.debian at googlemail dot c

[Bug tree-optimization/68761] -floop-interchange internal compiler error: in create_tmp_var, at gimple-expr.c:519

2015-12-07 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68761 --- Comment #1 from Julian Taylor --- 5.2.0 seems to also be affected. Also tested 4.9.2 which works. Probably an regression of 5.x then.

[Bug tree-optimization/68761] New: -floop-interchange internal compiler error: in create_tmp_var, at gimple-expr.c:519

2015-12-07 Thread jtaylor.debian at googlemail dot com
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: jtaylor.debian at googlemail dot com Target Milestone: --- following code causes an ICE in gcc 5.3.0 when compiled with -floop-interchange. Not sure

[Bug tree-optimization/68145] [6 Regression] ICE: in vectorizable_store, at tree-vect-stmts.c:5684

2015-11-10 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68145 --- Comment #5 from Julian Taylor --- thanks, the full application now compiles successfully

[Bug tree-optimization/68145] New: [6 Regression] ICE: in vectorizable_store, at tree-vect-stmts.c:5684

2015-10-29 Thread jtaylor.debian at googlemail dot com
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: jtaylor.debian at googlemail dot com Target Milestone: --- Created attachment 36612 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36612=edit reduced testcase

[Bug libgomp/66553] openmp tasks produce libgomp warnings with fsanitize=thread

2015-06-17 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66553 --- Comment #2 from Julian Taylor jtaylor.debian at googlemail dot com --- if it is a false positive, is there a way to silence it too make the thread sanitize more useful with openmp task using programs?

[Bug libgomp/66553] New: openmp tasks produce libgomp warnings with fsanitize=thread

2015-06-16 Thread jtaylor.debian at googlemail dot com
Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: jtaylor.debian at googlemail dot com CC: jakub at gcc dot gnu.org Target Milestone: --- when libgomp has been built with -fsanitize=thread works very well on programs

[Bug middle-end/65796] New: unnecessary stack spills during complex numbers function calls

2015-04-17 Thread jtaylor.debian at googlemail dot com
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: jtaylor.debian at googlemail dot com following function calling cabsf exhibits poor performance when compiled with gcc: #include complex using namespace std; void __attribute__

[Bug tree-optimization/64731] New: poor code when using vector_size((32)) for sse2

2015-01-22 Thread jtaylor.debian at googlemail dot com
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: jtaylor.debian at googlemail dot com It would be nice if for some simple cases too large vector_size for the selected instruction set would still produce efficient code. E.g. using vector_size of 32 for SSE2 code

[Bug c/64006] New: __builtin_mul_overflow fails to signal overflow

2014-11-20 Thread jtaylor.debian at googlemail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: jtaylor.debian at googlemail dot com following code does not print overflow while the result does clearly overflow: $ cat test.c #include stdio.h int __attribute__((noinline)) wrapper(long a, long b, long * r) { return

[Bug lto/63704] New: -flto internal compiler error: in mems_in_disjoint_alias_sets_p, at alias.c:398

2014-10-31 Thread jtaylor.debian at googlemail dot com
: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: jtaylor.debian at googlemail dot com Created attachment 33856 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33856action=edit creduced testcase files attached reduced

[Bug debug/63342] [5 Regression] ICE in loc_list_from_tree, at dwarf2out.c:14698

2014-10-02 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63342 --- Comment #6 from Julian Taylor jtaylor.debian at googlemail dot com --- thanks, head (and branches) work fine now

[Bug debug/60655] [4.9 Regression] ICE: output_operand: invalid expression as operand

2014-09-29 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60655 Julian Taylor jtaylor.debian at googlemail dot com changed: What|Removed |Added CC

[Bug debug/63342] New: [5 Regression] ICE in loc_list_from_tree, at dwarf2out.c:14698

2014-09-23 Thread jtaylor.debian at googlemail dot com
Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: jtaylor.debian at googlemail dot com Created attachment 33538 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33538action=edit preprocessed source with gcc 5 current svn rev 215503

[Bug fortran/62245] New: gfortran miscompiles int() on mips

2014-08-24 Thread jtaylor.debian at googlemail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: jtaylor.debian at googlemail dot com gfortran miscompiles int() for negative overflows leading to a build timeout of python-scipy, see #756905 below a testcase, according to https://gcc.gnu.org/onlinedocs/gfortran/INT.html the result

[Bug fortran/62245] gfortran miscompiles int() on mips

2014-08-24 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62245 --- Comment #2 from Julian Taylor jtaylor.debian at googlemail dot com --- mips is the only architecture with this behavior, all others behave as documented. Shouldn't that be reason enough to change mips? if not please document the exception

[Bug fortran/62245] gfortran miscompiles int() on mips

2014-08-24 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62245 --- Comment #4 from Julian Taylor jtaylor.debian at googlemail dot com --- no x86 behaves as documented, the documentation states the sign is retained. You can debate on what largest integer means here, it could be -1 as -2147483648

[Bug fortran/62245] gfortran miscompiles int() on mips

2014-08-24 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62245 --- Comment #5 from Julian Taylor jtaylor.debian at googlemail dot com --- oh I overlooked you put in positive input, thats strange then the documentation should be updated that its undefined behavior.

[Bug fortran/62245] gfortran miscompiles int() on mips

2014-08-24 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62245 --- Comment #7 from Julian Taylor jtaylor.debian at googlemail dot com --- But the docs indicate that there is no undefined behavior. As I interpret them the result of int() is always well defined. If the documentation would not state what

[Bug fortran/62245] gfortran miscompiles int() on mips

2014-08-24 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62245 --- Comment #9 from Julian Taylor jtaylor.debian at googlemail dot com --- thanks, please also clarify/remove the sentence about the sign as the result sign is not the sign of the input as indicated by the docs.

[Bug driver/62105] sanitizer libraries in wrong command line position in link spec file

2014-08-14 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62105 --- Comment #2 from Julian Taylor jtaylor.debian at googlemail dot com --- -whole-archive applies to static libraries, gcc links a shared library by default using -static-libtsan does not add libtsan at all: $ gcc-4.10 test.c -static-libtsan

[Bug driver/62105] New: sanitizer libraries in wrong command line position in link spec file

2014-08-12 Thread jtaylor.debian at googlemail dot com
Priority: P3 Component: driver Assignee: unassigned at gcc dot gnu.org Reporter: jtaylor.debian at googlemail dot com when linking a file with -fsanitize=* the sanatizer library (e.g. -ltsan is placed before the object on the command line: gcc-4.10 test.c

[Bug middle-end/61725] New: [4.9 Regression] __builtin_ffs(0) leads to bad code generation

2014-07-05 Thread jtaylor.debian at googlemail dot com
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: jtaylor.debian at googlemail dot com __builtin_ffs is well defined for 0 according to the gcc documentation: Returns one plus the index of the least significant 1-bit of x, or if x

[Bug c/61473] register sized memmove not inlined

2014-06-11 Thread jtaylor.debian at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61473 --- Comment #1 from Julian Taylor jtaylor.debian at googlemail dot com --- I am using glibc 2.19-0ubuntu6 from the ubuntu 14.04 trusty repository

[Bug c/61473] New: register sized memmove not inlined

2014-06-11 Thread jtaylor.debian at googlemail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: jtaylor.debian at googlemail dot com in this example file compiled with gcc-4.10 -O3 inlines the memcpy, but not the memmove: #include string.h void a(int *a, int *b) { memcpy(a, b, sizeof(*a)); } void b(int *a, int *b) { memmove

[Bug c/61191] New: cilkplus ICE on syntax error

2014-05-15 Thread jtaylor.debian at googlemail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: jtaylor.debian at googlemail dot com following file with a syntax error (wrong braces at end of line) results in an ICE with gcc-4.9.0 and recent SVN head (14. may 2014): double f(double * A, double * B) { return __sec_reduce_add((B[0:500

[Bug tree-optimization/60575] New: inefficient vectorization of compare into bytes on amd64

2014-03-18 Thread jtaylor.debian at googlemail dot com
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: jtaylor.debian at googlemail dot com this code comparing shorts into chars: void __attribute__((optimize(O3))) f(char * a_, short * b_) { char * restrict

[Bug target/59385] [4.9 regression] gcc 4.9 fails to use fma with __attribute__((target(fma)))

2014-01-31 Thread jtaylor.debian at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59385 --- Comment #8 from Julian Taylor jtaylor.debian at googlemail dot com --- also gcc 4.9 still documents -ffp-contract=fast as being the default while it is apparently not anymore. it's the default unless you override it with -std=c99

[Bug target/58928] Different results from gcc when -mlzcnt is used

2014-01-17 Thread jtaylor.debian at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58928 Julian Taylor jtaylor.debian at googlemail dot com changed: What|Removed |Added CC

[Bug target/54344] illegal instructions generated with multiple arch function attributes

2014-01-13 Thread jtaylor.debian at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54344 Julian Taylor jtaylor.debian at googlemail dot com changed: What|Removed |Added CC

[Bug target/59385] gcc 4.9 fails to use fma with __attribute__((target(fma)))

2014-01-09 Thread jtaylor.debian at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59385 --- Comment #6 from Julian Taylor jtaylor.debian at googlemail dot com --- shouldn't -ffast-math enable -ffp-contract=fast? also gcc 4.9 still documents -ffp-contract=fast as being the default while it is apparently not anymore.

[Bug c/59385] gcc 4.9 fails to use fma with __attribute__((target(fma)))

2013-12-04 Thread jtaylor.debian at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59385 --- Comment #1 from Julian Taylor jtaylor.debian at googlemail dot com --- Created attachment 31381 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=31381action=edit code reproducing the issue

[Bug c/59385] New: gcc 4.9 fails to use fma with __attribute__((target(fma)))

2013-12-04 Thread jtaylor.debian at googlemail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: jtaylor.debian at googlemail dot com attached code does not emit fma instructions in gcc 4.9 while it did in gcc-4.8 (ffast-math is enabled): $ gcc -v COLLECT_GCC=/scratch/jtaylor/gcc/local-trunk

[Bug target/59390] New: presence of __attribute__((target(fma))) declaration breaks __builtin_fma

2013-12-04 Thread jtaylor.debian at googlemail dot com
: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: jtaylor.debian at googlemail dot com compiling this code leads to a compilation error on -O3: #include math.h void fun() __attribute__((target(fma))); void other_fun(double