too much code elimination by optimizing for size
Bug #1679967 reported by
Christian Neubert
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Arm Embedded Toolchain |
New
|
Undecided
|
Unassigned |
Bug Description
I´m using the following version (output from --version):
arm-none-
lease) [ARM/embedded-
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
If I compile the given file with the options "-Os -S" the compiler eliminates too much code.
no longer affects: | gcc-arm-embedded-native-build-tools |
To post a comment you must log in.
Hi Christian,
Your program contains undefined behavior: it accesses array[64] in the last iteration of the while loop. Try exchanging the two tests.