From 48295d2565b3cbbb052e48b69dee4dbdfb08afeb Mon Sep 17 00:00:00 2001 From: ro Date: Tue, 11 Feb 2014 12:56:39 +0000 Subject: [PATCH] Only assume 4-byte stack alignment on Solaris 9/x86 (PR libgomp/60107) PR libgomp/60107 * config/i386/sol2-9.h: New file. * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*, *-*-solaris2.9*): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207688 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 7 +++++++ gcc/config.gcc | 3 +++ gcc/config/i386/sol2-9.h | 23 +++++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 gcc/config/i386/sol2-9.h diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1a61595cd8c..6458a9b5188 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2014-02-11 Rainer Orth + + PR libgomp/60107 + * config/i386/sol2-9.h: New file. + * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*, + *-*-solaris2.9*): Use it. + 2014-02-10 Nagaraju Mekala * config/microblaze/microblaze.md: Add movsi4_rev insn pattern. diff --git a/gcc/config.gcc b/gcc/config.gcc index c3124be40e9..21566407107 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1537,6 +1537,9 @@ i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) esac with_tune_32=${with_tune_32:-generic} case ${target} in + *-*-solaris2.9*) + tm_file="${tm_file} i386/sol2-9.h" + ;; *-*-solaris2.1[0-9]*) tm_file="${tm_file} i386/x86-64.h i386/sol2-bi.h sol2-bi.h" tm_defines="${tm_defines} TARGET_BI_ARCH=1" diff --git a/gcc/config/i386/sol2-9.h b/gcc/config/i386/sol2-9.h new file mode 100644 index 00000000000..9ae88aae5dc --- /dev/null +++ b/gcc/config/i386/sol2-9.h @@ -0,0 +1,23 @@ +/* Target definitions for GCC for Intel 80386 running Solaris 9 + Copyright (C) 2014 Free Software Foundation, Inc. + +This file is part of GCC. + +GCC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3, or (at your option) +any later version. + +GCC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GCC; see the file COPYING3. If not see +. */ + +/* Solaris 9 only guarantees 4-byte stack alignment as required by the i386 + psABI, so realign it as necessary for SSE instructions. */ +#undef STACK_REALIGN_DEFAULT +#define STACK_REALIGN_DEFAULT 1 -- 2.11.4.GIT