#29 option -mthumb added for files with individual properties

Next release
closed-fixed
None
9
2013-10-17
2010-07-09
Anonymous
No

When setting properties for an indivdual file (for example setting optimization to -O3 for foo.c only), then -mthumb option are added to the compiler properties of other files all the time.When I don't select the option -mthumb,it will appear in the compiler options,too.

Discussion

  • I don't think there is any relationship between setting properties for individual files and the -mthumb option.

    The -mthumb option is a global project setting and applies to all source files.

    > When I don't select the option -mthumb,it will appear in the compiler options,too.

    How did you do it? If you remove this option from the project settings, it'll not be added to any source file.

    Liviu

     
    • assigned_to: nobody --> ilg-ul
     
  • jun
    jun
    2010-07-12

    I want to describe my steps:
    1 creat a C project ,add a folder and two files to the project.The folder includes the two files
    2 set project setting:Processor:arm9;remove option Thumb
    3 Build Project;it's ok,but viewing the properties of the folder,you will find the option '-mthumb' appearing in the table 'All options'.I'm sure that i don't select the option -mthumb.And the option -mthumb only appear in the properties of the folder.I can't find it in the properties of the project and files;
    4 Then modify properties for the folder(for example setting optimization to -O3 only) and build. Then -mthumb option is added to the files;
    Expect: If I remove this option from the project settings,it'll not be added to any source file

     
  • ok, thank you for the details.

    Liviu

     
    • status: open --> open-accepted
     
  • further tests confirmed the bug.

    changing properties for a folder may break the build for sources below.

    if you unset the global -mthumb option, this setting will be ignored for sources below a folder with custom settings. (i.e. -mthumb will be added even if not needed).

    Liviu

     
  • not only the -mthumb setting is ignored, but also global Debugging setting (i.e. global settings for debug level/format are ignored for sources below a folder with custom settings.

    Liviu

     
    • priority: 5 --> 9
     
    • status: open-accepted --> closed-fixed
    • Group: --> Next release
     
  • fixed starting version 1.x; even more it is possible to redefine global options at tool level, so most of them can be changed.

     
    Last edit: Liviu Ionescu (ilg) 2013-10-17