This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgomp/81805] Another libgomp.c/for-5.c failure on nvptx -- illegal memory access


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81805

--- Comment #5 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Tom de Vries from comment #4)
> (gdb) call debug_generic_expr (cond)
> (signed long) i < 0


And the conversion from unsigned to signed comparison is done here in
c_parser_omp_for_loop:
...
(gdb) call debug_generic_expr (cond)
<<< Unknown tree: c_maybe_const_expr

  i >>> > 9223372036854775807
(gdb) n
15030             cond = c_fully_fold (cond, false, NULL);
(gdb) n
15031             switch (cond_expr.original_code)
(gdb) call debug_generic_expr (cond)
(signed long) i < 0
...

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]