[Bug target/64953] Compiling sourcecode for STM32F103 causes USB errors with some optimization settings

2015-02-10 Thread manuel.reimer at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64953 --- Comment #17 from manuel.reimer at gmx dot de --- I've tried that and unfortunately I still get the errors when connecting my STM32 via USB. So the only solution, available for me, seems to be to add a note to the sourcecode that it has

[Bug target/64953] Compiling sourcecode for STM32F103 causes USB errors with some optimization settings

2015-02-10 Thread manuel.reimer at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64953 manuel.reimer at gmx dot de changed: What|Removed |Added Status|RESOLVED|REOPENED

[Bug target/64953] Compiling sourcecode for STM32F103 causes USB errors with some optimization settings

2015-02-10 Thread manuel.reimer at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64953 manuel.reimer at gmx dot de changed: What|Removed |Added Resolution|INVALID |FIXED --- Comment #14 from

[Bug target/64953] Compiling sourcecode for STM32F103 causes USB errors with some optimization settings

2015-02-10 Thread manuel.reimer at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64953 --- Comment #12 from manuel.reimer at gmx dot de --- (In reply to Richard Earnshaw from comment #11) > We don't have your hardware and we don't have the full code to your > application, so we aren't going to be able to help

[Bug target/64953] Compiling sourcecode for STM32F103 causes USB errors with some optimization settings

2015-02-08 Thread manuel.reimer at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64953 --- Comment #9 from manuel.reimer at gmx dot de --- The two commits are in different branches. How to bisect in this case?

[Bug target/64953] Compiling sourcecode for STM32F103 causes USB errors with some optimization settings

2015-02-08 Thread manuel.reimer at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64953 --- Comment #7 from manuel.reimer at gmx dot de --- I've tried to find out when the bug first occured. This one (oldes 4.9 snapshot, I can get) already has the problem: ftp://gcc.gnu.org/pub/gcc/snapshots/4.9-20140302/ And this one (newes

[Bug target/64953] Compiling sourcecode for STM32F103 causes USB errors with some optimization settings

2015-02-06 Thread manuel.reimer at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64953 --- Comment #6 from manuel.reimer at gmx dot de --- The exact command line is: arm-none-eabi-gcc -c -mthumb -mcpu=cortex-m3 -mthumb-interwork -I. -Os -ffunction-sections -fdata-sections -Wall -Wimplicit -Wcast-align -Wpointer-arith -Wswitch

[Bug target/64953] Compiling sourcecode for STM32F103 causes USB errors with some optimization settings

2015-02-06 Thread manuel.reimer at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64953 --- Comment #5 from manuel.reimer at gmx dot de --- Created attachment 34690 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34690&action=edit Preprocessed file for "usb.c"

[Bug target/64953] Compiling sourcecode for STM32F103 causes USB errors with some optimization settings

2015-02-06 Thread manuel.reimer at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64953 --- Comment #3 from manuel.reimer at gmx dot de --- Thank you for your suggestion. This helped me to narrow this down to the function "usbReset": https://github.com/tormodvolden/maple-bootloader/blob/unify_platforms/usb.c#L258 If I us

[Bug c/64953] Compiling sourcecode for STM32F103 causes USB errors with some optimization settings

2015-02-05 Thread manuel.reimer at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64953 --- Comment #1 from manuel.reimer at gmx dot de --- One addition: The same problem exists with other "USB based" sourcecode. For example with this one: https://github.com/j1rie/IRMP_STM32/ olebowle at vdr-portal.de did a nice overvie

[Bug c/64953] New: Compiling sourcecode for STM32F103 causes USB errors with some optimization settings

2015-02-05 Thread manuel.reimer at gmx dot de
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: manuel.reimer at gmx dot de I've tried to compile this sourcecode for an STM32F103 controller: https://github.com/tormodvolden/maple-bootloader/tree/unify_plat