Fix profile build for gcc on Mac OSX
authorJoona Kiiski <joona.kiiski@gmail.com>
Sun, 18 Jan 2015 09:04:49 +0000 (09:04 +0000)
committerJoona Kiiski <joona.kiiski@gmail.com>
Sun, 18 Jan 2015 14:42:30 +0000 (14:42 +0000)
Switch back to using -fprofile-generate and
-fprofile-use flags

No functional change

Resolves #219
Resolves #210

src/Makefile

index 53bbc1f..1f4ce73 100644 (file)
@@ -447,7 +447,7 @@ gcc-profile-prepare:
 
 gcc-profile-make:
        $(MAKE) ARCH=$(ARCH) COMP=$(COMP) \
-       EXTRACXXFLAGS='-fprofile-arcs' \
+       EXTRACXXFLAGS='-fprofile-generate' \
        EXTRALDFLAGS='-lgcov' \
        all
 
@@ -456,7 +456,7 @@ gcc-profile-use:
 # "internal compiler error" for gcc versions 4.7.x
        @rm -f ucioption.gc*
        $(MAKE) ARCH=$(ARCH) COMP=$(COMP) \
-       EXTRACXXFLAGS='-fbranch-probabilities' \
+       EXTRACXXFLAGS='-fprofile-use' \
        EXTRALDFLAGS='-lgcov' \
        all