[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 maltsevm at gmail dot com changed: What|Removed |Added CC||maltsevm at

[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

[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 rearnsha at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |RESOLVED

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

[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 pinskia at gcc dot gnu.org changed: What|Removed |Added Status|REOPENED|RESOLVED

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

[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 trippels at gcc dot gnu.org --- (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:

[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 #10 from Markus Trippelsdorf trippels at gcc dot gnu.org --- (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

[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-06 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64953 --- Comment #4 from Markus Trippelsdorf trippels at gcc dot gnu.org --- 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

[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=34690action=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 #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-05 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64953 Markus Trippelsdorf trippels at gcc dot gnu.org changed: What|Removed |Added CC|