Warnings about conflicting options
Bug #1592635 reported by
emblocks
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Arm Embedded Toolchain |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi,
Someone uses in a project the two following switches which is fine in 4.8:
-mcpu=cortex-m7 and -march=armv7e-m
the cortex-m7 is also a armv7e-m as far as I know.
5.3.1 is giving me the warnings for every file:
"warning: switch -mcpu=cortex-m7 conflicts with -march=armv7e-m switch"
why?
Changed in gcc-arm-embedded: | |
status: | New → Invalid |
To post a comment you must log in.
Hi emblocks,
This is because we define an extra feature for the cortex-m7. This is the FL_NO_VOLATILE feature which indicates that volatile memory should not be put in an IT block.
In our check to detect whether an -march option is compatible with a -mcpu option we check that they define the same set of features. This is why you see that warning. We advise against the use of both -mcpu and -march switches.
Best Regards,
Andre