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

2015-02-13 Thread maltsevm at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64953 Mikhail Maltsev changed: What|Removed |Added CC||maltsevm at gmail dot com --- Comment

[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 to be

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

2015-02-10 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64953 Andrew Pinski changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[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 Resolution

[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 rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64953 Richard Earnshaw changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[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 you debug this. The ha

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

2015-02-10 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64953 Richard Earnshaw changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

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

2015-02-08 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64953 --- Comment #10 from Markus Trippelsdorf --- (In reply to manuel.reimer from comment #9) > The two commits are in different branches. How to bisect in this case? gcc's history is linear in git. So you could start with a bad commit on 20140302 a

[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 trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64953 --- Comment #8 from Markus Trippelsdorf --- (In reply to manuel.reimer from comment #7) > 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/snapsh

[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 (newest 4.8 s

[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 -Wre

[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 trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64953 --- Comment #4 from Markus Trippelsdorf --- Ok, thanks. Now please attach the preprocessed source of that file (by adding --save-temps to the compiler invocation). Also post the exact command line you use to compile that file. Maybe something o

[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 use "-Os" on

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

2015-02-05 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64953 Markus Trippelsdorf changed: What|Removed |Added CC||trippels at gcc dot gnu.org --- Co