Skip to content

Commit

Permalink
Remove compiler optimizer flags
Browse files Browse the repository at this point in the history
I'm pretty sure everyone's using -Os anyway. This will make the boards menu easier to understand for newbies
  • Loading branch information
MCUdude committed Dec 25, 2017
1 parent bcad68d commit ce9a7b6
Showing 1 changed file with 19 additions and 47 deletions.
66 changes: 19 additions & 47 deletions avr/boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
## and compiler flags are located.
#######################################

menu.BOD=B.O.D
menu.flag=GCC Flags
menu.BOD=BOD
menu.lto=Compiler LTO
menu.clock=Clock

attiny13.name=ATtiny13
Expand Down Expand Up @@ -96,48 +96,20 @@ attiny13.menu.BOD.disabled=Disabled
attiny13.menu.BOD.disabled.bootloader.high_fuses=0xff


########################
#### Compiler flags ####
########################

attiny13.menu.flag.Os_flto=-Os LTO enabled (default)
attiny13.menu.flag.Os_flto.compiler.c.extra_flags=-Wextra -flto
attiny13.menu.flag.Os_flto.compiler.c.elf.extra_flags=-w -flto
attiny13.menu.flag.Os_flto.compiler.cpp.extra_flags=-Wextra -flto
attiny13.menu.flag.Os_flto.compiler.flag_indicator=-D COMPILER_LTO
attiny13.menu.flag.Os_flto.ltoarcmd=avr-gcc-ar

attiny13.menu.flag.Os=-Os
attiny13.menu.flag.Os.compiler.c.extra_flags=
attiny13.menu.flag.Os.compiler.c.elf.extra_flags=
attiny13.menu.flag.Os.compiler.cpp.extra_flags=
attiny13.menu.flag.Os.compiler.flag_indicator=
attiny13.menu.flag.Os.ltoarcmd=avr-ar

attiny13.menu.flag.O1_flto=-O1 LTO enabled
attiny13.menu.flag.O1_flto.compiler.c.extra_flags=-O1 -Wextra -flto
attiny13.menu.flag.O1_flto.compiler.c.elf.extra_flags=-O1 -w -flto
attiny13.menu.flag.O1_flto.compiler.cpp.extra_flags=-O1 -Wextra -flto
attiny13.menu.flag.O1_flto.compiler.lto_indicator=-D COMPILER_LTO
attiny13.menu.flag.O1_flto.ltoarcmd=avr-gcc-ar

attiny13.menu.flag.O1=-O1
attiny13.menu.flag.O1.compiler.c.extra_flags=-O1
attiny13.menu.flag.O1.compiler.c.elf.extra_flags=-O1
attiny13.menu.flag.O1.compiler.cpp.extra_flags=-O1
attiny13.menu.flag.O1.compiler.flag_indicator=
attiny13.menu.flag.O1.ltoarcmd=avr-ar

attiny13.menu.flag.O3_flto=-O3 LTO enabled
attiny13.menu.flag.O3_flto.compiler.c.extra_flags=-O3 -Wextra -flto
attiny13.menu.flag.O3_flto.compiler.c.elf.extra_flags=-O3 -w -flto
attiny13.menu.flag.O3_flto.compiler.cpp.extra_flags=-O3 -Wextra -flto
attiny13.menu.flag.O3_flto.compiler.flag_indicator=-D COMPILER_LTO
attiny13.menu.flag.O3_flto.ltoarcmd=avr-gcc-ar

attiny13.menu.flag.O3=-O3
attiny13.menu.flag.O3.compiler.c.extra_flags=-O3
attiny13.menu.flag.O3.compiler.c.elf.extra_flags=-O3
attiny13.menu.flag.O3.compiler.cpp.extra_flags=-O3
attiny13.menu.flag.O3.compiler.flag_indicator=
attiny13.menu.flag.O3.ltoarcmd=avr-ar
#############
#### LTO ####
#############

attiny13.menu.lto.Os_flto=Enabled (default)
attiny13.menu.lto.Os_flto.compiler.c.extra_flags=-Wextra -flto
attiny13.menu.lto.Os_flto.compiler.c.elf.extra_flags=-w -flto
attiny13.menu.lto.Os_flto.compiler.cpp.extra_flags=-Wextra -flto
attiny13.menu.lto.Os_flto.compiler.flag_indicator=-D COMPILER_LTO
attiny13.menu.lto.Os_flto.ltoarcmd=avr-gcc-ar

attiny13.menu.lto.Os=Disabled
attiny13.menu.lto.Os.compiler.c.extra_flags=
attiny13.menu.lto.Os.compiler.c.elf.extra_flags=
attiny13.menu.lto.Os.compiler.cpp.extra_flags=
attiny13.menu.lto.Os.compiler.flag_indicator=
attiny13.menu.lto.Os.ltoarcmd=avr-ar

0 comments on commit ce9a7b6

Please sign in to comment.