forked from NetBSD/pkgsrc
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add ALTERNATIVES files. - Include necessary object files in the -libs package. - Prune unnecessary libraries from the -libs package. - Set local prefix to LOCALBASE (except tools build), and link against it by default. - Disable -fomit-frame-pointer, we like stack traces. - Disable --as-needed to avoid libgcc_s dependency. - Disable __stack_chk_fail_local (fixes 32-bit) - Support -fclone-functions, -fstrict-calling-conventions, -msave-args - Fix check-shlibs in -libs - Fix TritonDataCenter/pkgsrc-legacy#264 (avoid tls emulation)
- Loading branch information
1 parent
c7c4226
commit 17d7d3f
Showing
25 changed files
with
821 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
bin/c++ @PREFIX@/gcc7/bin/c++ | ||
bin/cc @PREFIX@/gcc7/bin/cc | ||
bin/cpp @PREFIX@/gcc7/bin/cpp | ||
bin/g++ @PREFIX@/gcc7/bin/g++ | ||
bin/gcc @PREFIX@/gcc7/bin/gcc | ||
bin/gcc-ar @PREFIX@/gcc7/bin/gcc-ar | ||
bin/gcc-nm @PREFIX@/gcc7/bin/gcc-nm | ||
bin/gcc-ranlib @PREFIX@/gcc7/bin/gcc-ranlib | ||
bin/gcov @PREFIX@/gcc7/bin/gcov | ||
bin/gcov-dump @PREFIX@/gcc7/bin/gcov-dump | ||
bin/gcov-tool @PREFIX@/gcc7/bin/gcov-tool | ||
bin/gfortran @PREFIX@/gcc7/bin/gfortran | ||
bin/@MACHINE_GNU_PLATFORM@-c++ @PREFIX@/gcc7/bin/@MACHINE_GNU_PLATFORM@-c++ | ||
bin/@MACHINE_GNU_PLATFORM@-g++ @PREFIX@/gcc7/bin/@MACHINE_GNU_PLATFORM@-g++ | ||
bin/@MACHINE_GNU_PLATFORM@-gcc @PREFIX@/gcc7/bin/@MACHINE_GNU_PLATFORM@-gcc | ||
bin/@MACHINE_GNU_PLATFORM@-gcc-@GCC7_DIST_VERSION@ @PREFIX@/gcc7/bin/@MACHINE_GNU_PLATFORM@-gcc-@GCC7_DIST_VERSION@ | ||
bin/@MACHINE_GNU_PLATFORM@-gcc-ar @PREFIX@/gcc7/bin/@MACHINE_GNU_PLATFORM@-gcc-ar | ||
bin/@MACHINE_GNU_PLATFORM@-gcc-nm @PREFIX@/gcc7/bin/@MACHINE_GNU_PLATFORM@-gcc-nm | ||
bin/@MACHINE_GNU_PLATFORM@-gcc-ranlib @PREFIX@/gcc7/bin/@MACHINE_GNU_PLATFORM@-gcc-ranlib | ||
bin/@MACHINE_GNU_PLATFORM@-gfortran @PREFIX@/gcc7/bin/@MACHINE_GNU_PLATFORM@-gfortran |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
$NetBSD$ | ||
|
||
Disable -fomit-frame-pointer. | ||
|
||
--- gcc/caller-save.c.orig 2017-01-01 12:07:43.905435000 +0000 | ||
+++ gcc/caller-save.c | ||
@@ -378,7 +378,7 @@ saved_hard_reg_compare_func (const void | ||
const struct saved_hard_reg *p1 = *(struct saved_hard_reg * const *) v1p; | ||
const struct saved_hard_reg *p2 = *(struct saved_hard_reg * const *) v2p; | ||
|
||
- if (flag_omit_frame_pointer) | ||
+ if (0) | ||
{ | ||
if (p1->call_freq - p2->call_freq != 0) | ||
return p1->call_freq - p2->call_freq; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
$NetBSD$ | ||
|
||
Support -fclone-functions and -fstrict-calling-conventions. | ||
|
||
--- gcc/common.opt.orig 2017-06-22 11:38:22.113724000 +0000 | ||
+++ gcc/common.opt | ||
@@ -1076,6 +1076,11 @@ fcode-hoisting | ||
Common Report Var(flag_code_hoisting) Optimization | ||
Enable code hoisting. | ||
|
||
+fclone-functions | ||
+Common Report Var(flag_clone_functions) Init(1) | ||
+Allow the compiler to clone functions to facilitate certain optimizations. | ||
+Enabled by default. | ||
+ | ||
fcombine-stack-adjustments | ||
Common Report Var(flag_combine_stack_adjustments) Optimization | ||
Looks for opportunities to reduce stack adjustments and stack references. | ||
@@ -2341,6 +2346,10 @@ fstrict-aliasing | ||
Common Report Var(flag_strict_aliasing) Optimization | ||
Assume strict aliasing rules apply. | ||
|
||
+fstrict-calling-conventions | ||
+Common Report Var(flag_strict_calling_conventions) Init(1) | ||
+Use strict ABI calling conventions even for static functions | ||
+ | ||
fstrict-overflow | ||
Common Report Var(flag_strict_overflow) Optimization | ||
Treat signed overflow as undefined. |
Oops, something went wrong.