aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/StudioIntegration/lufa_toolchain.xml
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2013-03-20 17:50:56 +0000
committerDean Camera <dean@fourwalledcubicle.com>2013-03-20 17:50:56 +0000
commit6e8642185a8db602628ea18e6d03d3f71e8be448 (patch)
tree07b30e7b4014e33ca26e3fed73601eca3fea088d /LUFA/StudioIntegration/lufa_toolchain.xml
parentb2e49663f69ff4bea336ef3c9151f29025042cb9 (diff)
downloadlufa-6e8642185a8db602628ea18e6d03d3f71e8be448.tar.gz
lufa-6e8642185a8db602628ea18e6d03d3f71e8be448.tar.bz2
lufa-6e8642185a8db602628ea18e6d03d3f71e8be448.zip
Fix corrupted disassembly listing (LSS) files due to linker relaxations; pass -mrelax to the compiler to make it aware of, and able to compensate for, linker relaxations.
Diffstat (limited to 'LUFA/StudioIntegration/lufa_toolchain.xml')
-rw-r--r--LUFA/StudioIntegration/lufa_toolchain.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/LUFA/StudioIntegration/lufa_toolchain.xml b/LUFA/StudioIntegration/lufa_toolchain.xml
index 45a9ba902..04863cf83 100644
--- a/LUFA/StudioIntegration/lufa_toolchain.xml
+++ b/LUFA/StudioIntegration/lufa_toolchain.xml
@@ -20,7 +20,7 @@
<toolchain-config name="avrgcc.compiler.optimization.OtherFlags" value="-fdata-sections" toolchain="avrgcc"/>
<toolchain-config name="avrgcc.compiler.optimization.PrepareFunctionsForGarbageCollection" value="True" toolchain="avrgcc"/>
<toolchain-config name="avrgcc.compiler.warnings.AllWarnings" value="True" toolchain="avrgcc"/>
- <toolchain-config name="avrgcc.compiler.miscellaneous.OtherFlags" value="-std=gnu99 -fno-strict-aliasing" toolchain="avrgcc"/>
+ <toolchain-config name="avrgcc.compiler.miscellaneous.OtherFlags" value="-mrelax -std=gnu99 -fno-strict-aliasing" toolchain="avrgcc"/>
<toolchain-config name="avrgcc.linker.optimization.GarbageCollectUnusedSections" value="True" toolchain="avrgcc"/>
<toolchain-config name="avrgcc.linker.optimization.RelaxBranches" value="True" toolchain="avrgcc"/>
</module>
@@ -35,7 +35,7 @@
<toolchain-config name="avr32gcc.compiler.optimization.OtherFlags" value="-fdata-sections" toolchain="avr32gcc"/>
<toolchain-config name="avr32gcc.compiler.optimization.PrepareFunctionsForGarbageCollection" value="True" toolchain="avr32gcc"/>
<toolchain-config name="avr32gcc.compiler.warnings.AllWarnings" value="True" toolchain="avr32gcc"/>
- <toolchain-config name="avr32gcc.compiler.miscellaneous.OtherFlags" value="-std=gnu99 -fno-strict-aliasing -mno-cond-exec-before-reload" toolchain="avr32gcc"/>
+ <toolchain-config name="avr32gcc.compiler.miscellaneous.OtherFlags" value="-mrelax -std=gnu99 -fno-strict-aliasing -mno-cond-exec-before-reload" toolchain="avr32gcc"/>
<toolchain-config name="avr32gcc.linker.optimization.GarbageCollectUnusedSections" value="True" toolchain="avr32gcc"/>
<toolchain-config name="avr32gcc.linker.optimization.RelaxBranches" value="True" toolchain="avr32gcc"/>
</module>