From 55e9a31706048703c561b3ab4b07d070babab52c Mon Sep 17 00:00:00 2001 From: Brian Schmalz Date: Thu, 15 Oct 2015 17:35:18 -0500 Subject: [PATCH] Fix for issue #617. Added -fno-toplevel-reorder to C and C++ compiler options. --- hardware/pic32/platform.txt | 4 ++-- hardware/pic32/platforms.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hardware/pic32/platform.txt b/hardware/pic32/platform.txt index 37d814239..4aec2d061 100644 --- a/hardware/pic32/platform.txt +++ b/hardware/pic32/platform.txt @@ -3,10 +3,10 @@ name=chipKIT version=1.6.0 compiler.c.cmd=pic32-gcc compiler.path={runtime.hardware.path}/pic32/compiler/pic32-tools/bin/ -compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -g3 -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist +compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -g3 -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder compiler.c.extra_flags= compiler.cpp.cmd=pic32-g++ -compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -g3 -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist +compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -g3 -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder compiler.cpp.extra_flags= compiler.S.flags=-O2 -g1 -c -Wa,--gdwarf-2 compiler.ar.cmd=pic32-ar diff --git a/hardware/pic32/platforms.txt b/hardware/pic32/platforms.txt index 88d2762a8..ef1a2b017 100644 --- a/hardware/pic32/platforms.txt +++ b/hardware/pic32/platforms.txt @@ -15,9 +15,9 @@ pic32.name=chipKit #pic32.compiler.path=/opt/mac-pic32/bin/ pic32.compiler.c.cmd=pic32-gcc pic32.compiler.path={0}/hardware/pic32/compiler/pic32-tools/bin/ -pic32.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist +pic32.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-fno-toplevel-reorder pic32.compiler.cpp.cmd=pic32-g++ -pic32.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist +pic32.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-fno-toplevel-reorder pic32.compiler.S.flags=-O2::-g1::-c::-Wa,--gdwarf-2 pic32.compiler.ar.cmd=pic32-ar pic32.compiler.ar.flags=rcs