[Bug c++/90886] New: loop/while/for problem

2019-06-14 Thread joe at freakyacres dot com
: unassigned at gcc dot gnu.org Reporter: joe at freakyacres dot com Target Milestone: --- I apologize because this all got a little bit above my head. But the following code only runs the "for" loop once. volatile unsigned char x; int main() { while (1) { for (unsig

[Bug target/90886] loop/while/for problem

2019-06-14 Thread joe at freakyacres dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90886 --- Comment #2 from Joe --- Using built-in specs. Reading specs from /usr/lib/gcc/avr/5.4.0/device-specs/specs-avr2 COLLECT_GCC=avr-gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/avr/5.4.0/lto-wrapper Target: avr Configured with: ../gcc/configure -v --enab

[Bug target/90886] loop/while/for problem

2019-06-14 Thread joe at freakyacres dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90886 --- Comment #3 from Joe --- Changing i to 127 produces following assembly... volatile unsigned char x; int main() { while (1) { for (unsigned char i = 0 ; i < 127 ; i++) { x = i; } } } 0090 : 90: 80 e0 ldi

[Bug target/90886] loop/while/for problem

2019-06-14 Thread joe at freakyacres dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90886 Joe changed: What|Removed |Added Version|5.4.0 |7.3.0 --- Comment #5 from Joe --- Tested with 7.3

[Bug target/90886] loop/while/for problem

2019-06-14 Thread joe at freakyacres dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90886 --- Comment #6 from Joe --- Hmmm... Maybe 7.3.0 isn't supported either.

[Bug target/90886] loop/while/for problem

2019-06-14 Thread joe at freakyacres dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90886 Joe changed: What|Removed |Added Version|7.3.0 |7.4.0 --- Comment #8 from Joe --- Here is assembl

[Bug target/90886] loop/while/for problem

2019-06-14 Thread joe at freakyacres dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90886 --- Comment #9 from Joe --- Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure

[Bug target/90886] loop/while/for problem

2019-06-14 Thread joe at freakyacres dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90886 --- Comment #10 from Joe --- probably noticed but code is always "i <" not "i =" as I stated in the previous comments.