diff options
author | 2017-03-11 21:46:03 +0100 | |
---|---|---|
committer | 2017-03-11 21:46:03 +0100 | |
commit | 0e7760adbc27b6b5670263587ce1f623e569db65 (patch) | |
tree | 1122bd7113eaa40650ce489e9dab411f4cf7cc4f /dev-lang/gnat-gpl/files | |
parent | dev-python/simpleeval: Version bumps to 0.9.5 (diff) | |
download | gentoo-0e7760adbc27b6b5670263587ce1f623e569db65.tar.gz gentoo-0e7760adbc27b6b5670263587ce1f623e569db65.tar.bz2 gentoo-0e7760adbc27b6b5670263587ce1f623e569db65.zip |
dev-lang/gnat-gpl: Add gnat-gpl-2016
Package-Manager: portage-2.3.3
Diffstat (limited to 'dev-lang/gnat-gpl/files')
-rw-r--r-- | dev-lang/gnat-gpl/files/gcc-spec-env-r1.patch | 87 | ||||
-rw-r--r-- | dev-lang/gnat-gpl/files/gnat-gpl-2016-gentoo.patch | 39 |
2 files changed, 126 insertions, 0 deletions
diff --git a/dev-lang/gnat-gpl/files/gcc-spec-env-r1.patch b/dev-lang/gnat-gpl/files/gcc-spec-env-r1.patch new file mode 100644 index 000000000000..a58926836e4e --- /dev/null +++ b/dev-lang/gnat-gpl/files/gcc-spec-env-r1.patch @@ -0,0 +1,87 @@ +2013-08-22 Magnus Granberg <zorry@gentoo.org> + + * gcc/gcc.c (main): Add support for external spec file via the GCC_SPECS env var + and move the process of the user specifed specs. + + This allows us to easily control pie/ssp defaults with gcc-config profiles. + Original patch by Rob Holland + Extended to support multiple entries separated by ':' by Kevin F. Quinn + Modified to use getenv instead of poisoned GET_ENVIRONMENT by Ryan Hill + Modified to process the GCC_SPECS env var befor DRIVER_SELF_SPECS by Magnus Granberg + +--- gcc-4.8-20130210/gcc/gcc.c 2013-02-05 16:55:31.000000000 +0100 ++++ gcc-4.8-20130210-work/gcc/gcc.c 2013-07-26 02:32:14.625089864 +0200 +@@ -6427,6 +6428,48 @@ main (int argc, char **argv) + do_option_spec (option_default_specs[i].name, + option_default_specs[i].spec); + ++#if !(defined (__MSDOS__) || defined (OS2) || defined (VMS) || defined (WIN32)) ++ /* Add specs listed in GCC_SPECS. Note; in the process of separating ++ * each spec listed, the string is overwritten at token boundaries ++ * (':') with '\0', an effect of strtok_r(). ++ */ ++ specs_file = getenv ("GCC_SPECS"); ++ if (specs_file && (strlen(specs_file) > 0)) ++ { ++ char *spec, *saveptr; ++ for (spec=strtok_r(specs_file,":",&saveptr); ++ spec!=NULL; ++ spec=strtok_r(NULL,":",&saveptr)) ++ { ++ struct user_specs *user = (struct user_specs *) ++ xmalloc (sizeof (struct user_specs)); ++ user->next = (struct user_specs *) 0; ++ user->filename = spec; ++ if (user_specs_tail) ++ user_specs_tail->next = user; ++ else ++ user_specs_head = user; ++ user_specs_tail = user; ++ } ++ } ++#endif ++ /* Process any user specified specs in the order given on the command ++ * line. */ ++ for (uptr = user_specs_head; uptr; uptr = uptr->next) ++ { ++ char *filename = find_a_file (&startfile_prefixes, uptr->filename, ++ R_OK, true); ++ read_specs (filename ? filename : uptr->filename, false, true); ++ } ++ /* Process any user self specs. */ ++ { ++ struct spec_list *sl; ++ for (sl = specs; sl; sl = sl->next) ++ if (sl->name_len == sizeof "self_spec" - 1 ++ && !strcmp (sl->name, "self_spec")) ++ do_self_spec (*sl->ptr_spec); ++ } ++ + /* Process DRIVER_SELF_SPECS, adding any new options to the end + of the command line. */ + +@@ -6535,24 +6578,6 @@ main (int argc, char **argv) + PREFIX_PRIORITY_LAST, 0, 1); + } + +- /* Process any user specified specs in the order given on the command +- line. */ +- for (uptr = user_specs_head; uptr; uptr = uptr->next) +- { +- char *filename = find_a_file (&startfile_prefixes, uptr->filename, +- R_OK, true); +- read_specs (filename ? filename : uptr->filename, false, true); +- } +- +- /* Process any user self specs. */ +- { +- struct spec_list *sl; +- for (sl = specs; sl; sl = sl->next) +- if (sl->name_len == sizeof "self_spec" - 1 +- && !strcmp (sl->name, "self_spec")) +- do_self_spec (*sl->ptr_spec); +- } +- + if (compare_debug) + { + enum save_temps save; diff --git a/dev-lang/gnat-gpl/files/gnat-gpl-2016-gentoo.patch b/dev-lang/gnat-gpl/files/gnat-gpl-2016-gentoo.patch new file mode 100644 index 000000000000..b715a006c218 --- /dev/null +++ b/dev-lang/gnat-gpl/files/gnat-gpl-2016-gentoo.patch @@ -0,0 +1,39 @@ +--- patch/09_all_default-ssp.patch.old 2017-01-08 16:14:09.377755019 +0100 ++++ patch/09_all_default-ssp.patch 2017-01-08 16:15:48.792764201 +0100 +@@ -78,14 +78,14 @@ + optimizing. The default value is 32. + --- a/gcc/cp/lang-specs.h + +++ b/gcc/cp/lang-specs.h +-@@ -46,7 +46,7 @@ along with GCC; see the file COPYING3. If not see ++@@ -46,7 +46,7 @@ + %(cpp_options) %2 -o %{save-temps*:%b.ii} %{!save-temps*:%g.ii} \n}\ + cc1plus %{save-temps*|no-integrated-cpp:-fpreprocessed %{save-temps*:%b.ii} %{!save-temps*:%g.ii}}\ + %{!save-temps*:%{!no-integrated-cpp:%(cpp_unique_options)}}\ + - %(cc1_options) %2\ + + %(cc1_options) %(ssp_default) %2\ +- %{!fsyntax-only:%{!fdump-ada-spec*:-o %g.s %{!o*:--output-pch=%i.gch}\ +- %W{o*:--output-pch=%*}}%V}}}}", ++ %{!fsyntax-only:-o %g.s %{!fdump-ada-spec*:%{!fdump-xref*:%{!o*:--output-pch=%i.gch}\ ++ %W{o*:--output-pch=%*}}}%V}}}}", + CPLUSPLUS_CPP_SPEC, 0, 0}, + @@ -57,11 +57,11 @@ along with GCC; see the file COPYING3. If not see + %(cpp_options) %2 -o %{save-temps*:%b.ii} %{!save-temps*:%g.ii} \n}\ +@@ -151,14 +151,14 @@ + /* This contains cpp options which are not passed when the preprocessor + output will be used by another program. */ + @@ -1015,9 +1024,9 @@ static const struct compiler default_compilers[] = +- %{save-temps*|traditional-cpp|no-integrated-cpp:%(trad_capable_cpp) \ ++ %{save-temps*|fdump-scos|traditional-cpp|no-integrated-cpp:%(trad_capable_cpp) \ + %(cpp_options) -o %{save-temps*:%b.i} %{!save-temps*:%g.i} \n\ + cc1 -fpreprocessed %{save-temps*:%b.i} %{!save-temps*:%g.i} \ + - %(cc1_options)}\ + + %(cc1_options) %(ssp_default)}\ +- %{!save-temps*:%{!traditional-cpp:%{!no-integrated-cpp:\ +-- cc1 %(cpp_unique_options) %(cc1_options)}}}\ +-+ cc1 %(cpp_unique_options) %(cc1_options) %(ssp_default)}}}\ ++ %{!save-temps*:%{!fdump-scos:%{!traditional-cpp:%{!no-integrated-cpp:\ ++- cc1 %(cpp_unique_options) %(cc1_options)}}}}\ +++ cc1 %(cpp_unique_options) %(cc1_options) %(ssp_default)}}}}\ + %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 1}, + {"-", + "%{!E:%e-E or -x required when input is from standard input}\ |