From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Z9wbL-00052I-2r for mharc-grub-devel@gnu.org; Tue, 30 Jun 2015 10:33:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9wbE-00051u-Io for grub-devel@gnu.org; Tue, 30 Jun 2015 10:33:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9wbD-0004KB-8k for grub-devel@gnu.org; Tue, 30 Jun 2015 10:33:24 -0400 Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]:34002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9wbC-0004K5-UZ for grub-devel@gnu.org; Tue, 30 Jun 2015 10:33:23 -0400 Received: by wgqq4 with SMTP id q4so11526934wgq.1 for ; Tue, 30 Jun 2015 07:33:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Q3bzFz5M9e0qv1cRLFAa5kvP1HJksmHmXVC6eNWTUvc=; b=Si1SDlyy1VLNRiR1OyesV0b9DHV0a1v9oNNUexHjmlfyYg0k+AnDVEiW9C8tpqL1kA fnghrrwTibSGda7IUuYf5AdCj229cU+kNXwMq02YQJD0K2J/wo2xaMA3Wjzj1MWF/MOa KYWT9HFQozawC80r2Toza4iHdgMI2OXDcyKd3W8StMmtD/aDBOUBLnePQ6o5bVfYjoiW 91Svb3ikxxVgWEFfNsPXbM4+KTsGMwKs9cq66SccmBYlhbA8quGd/pinYzCgWv1Kjg7F yCZeAc2kC9y5NowYOviBrf9dWAeCvWw/IwyRTN5jGcskDeg/B4/vD2DTxqBfyQIaZ0g5 GpBQ== MIME-Version: 1.0 X-Received: by 10.194.158.42 with SMTP id wr10mr38603293wjb.81.1435674802209; Tue, 30 Jun 2015 07:33:22 -0700 (PDT) Received: by 10.27.175.106 with HTTP; Tue, 30 Jun 2015 07:33:21 -0700 (PDT) Received: by 10.27.175.106 with HTTP; Tue, 30 Jun 2015 07:33:21 -0700 (PDT) In-Reply-To: References: <1435669013-3741-1-git-send-email-pfsmorigo@linux.vnet.ibm.com> <1435669013-3741-2-git-send-email-pfsmorigo@linux.vnet.ibm.com> Date: Tue, 30 Jun 2015 16:33:21 +0200 Message-ID: Subject: Re: [PATCH 1/2] Add powerpc little-endian (ppc64le) flags From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: multipart/alternative; boundary=089e013c6478994b360519bd16f7 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::234 Cc: Paulo Flabiano Smorigo X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2015 14:33:29 -0000 --089e013c6478994b360519bd16f7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable What about clang? Le 30 juin 2015 16:30, "Andrei Borzenkov" a =C3=A9cri= t : > On Tue, Jun 30, 2015 at 5:03 PM, Vladimir 'phcoder' Serbinenko > wrote: > > Which compilers support these flags? I'm concerned of breaking old > compilers > > > > -static and -mbig-endian are listed in gcc 2.95.3 documentation for PPC. > > > Le 30 juin 2015 14:57, "Paulo Flabiano Smorigo" > > a =C3=A9crit : > >> > >> libgcc dependency was removed *just* for this target because > >> the distros that use ppc64el doesn't have 32-bit support on it. > >> > >> * configure.ac: Add targets for powerpc64el and skip libgcc. > >> * Makefile.am: Likewise. > >> --- > >> configure.ac | 8 ++++++++ > >> 1 file changed, 8 insertions(+) > >> > >> diff --git a/configure.ac b/configure.ac > >> index fd8a62e..0a79fad 100644 > >> --- a/configure.ac > >> +++ b/configure.ac > >> @@ -116,6 +116,7 @@ if test "x$with_platform" =3D x; then > >> x86_64-*) platform=3Dpc ;; > >> powerpc-*) platform=3Dieee1275 ;; > >> powerpc64-*) platform=3Dieee1275 ;; > >> + powerpc64le-*) platform=3Dieee1275 ;; > >> sparc64-*) platform=3Dieee1275 ;; > >> mipsel-*) platform=3Dloongson ;; > >> mips-*) platform=3Darc ;; > >> @@ -138,6 +139,7 @@ case "$target_cpu"-"$platform" in > >> x86_64-none) ;; > >> x86_64-*) target_cpu=3Di386 ;; > >> powerpc64-ieee1275) target_cpu=3Dpowerpc ;; > >> + powerpc64le-ieee1275) target_cpu=3Dpowerpc ;; > >> esac > >> > >> # Check if the platform is supported, make final adjustments. > >> @@ -601,6 +603,12 @@ if test "x$target_cpu" =3D xi386 && test "x$platf= orm" > >> !=3D xemu; then > >> TARGET_CFLAGS=3D"$TARGET_CFLAGS -march=3Di386" > >> fi > >> > >> +if test x$target_cpu =3D xpowerpc; then > >> + TARGET_CFLAGS=3D"$TARGET_CFLAGS -mbig-endian" > >> + TARGET_CCASFLAGS=3D"$TARGET_CCASFLAGS -mbig-endian" > >> + TARGET_LDFLAGS=3D"$TARGET_LDFLAGS -static -mbig-endian" > >> +fi > >> + > >> if test "x$target_m32" =3D x1; then > >> # Force 32-bit mode. > >> TARGET_CFLAGS=3D"$TARGET_CFLAGS -m32" > >> -- > >> 2.1.0 > >> > >> > >> _______________________________________________ > >> Grub-devel mailing list > >> Grub-devel@gnu.org > >> https://lists.gnu.org/mailman/listinfo/grub-devel > > > > > > _______________________________________________ > > Grub-devel mailing list > > Grub-devel@gnu.org > > https://lists.gnu.org/mailman/listinfo/grub-devel > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel > --089e013c6478994b360519bd16f7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

What about clang?

Le=C2=A030 juin 2015 16:30, "Andrei Borzenk= ov" <arvidjaar@gmail.com= > a =C3=A9crit=C2=A0:
On Tue, Jun 30, 2015 at 5:03 PM, Vladimir 'phcoder' Serbinenko=
<phcoder@gmail.com> wrote: > Which compilers support these flags? I'm concerned of breaking old= compilers
>

-static and -mbig-endian are listed in gcc 2.95.3 documentation for PPC.
> Le 30 juin 2015 14:57, "Paulo Flabiano Smorigo"
> <pfsmorigo@linux.vn= et.ibm.com> a =C3=A9crit :
>>
>> libgcc dependency was removed *just* for this target because
>> the distros that use ppc64el doesn't have 32-bit support on it= .
>>
>> * configure.ac: Add targets for powerpc64el and skip libgcc.
>> * Makefile.am: Likewise.
>> ---
>>=C2=A0 configure.ac | 8 ++++++++
>>=C2=A0 1 file changed, 8 insertions(+)
>>
>> diff --git a/configure.ac b/configure.ac
>> index fd8a62e..0a79fad 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -116,6 +116,7 @@ if test "x$with_platform" =3D x; the= n
>>=C2=A0 =C2=A0 =C2=A0 x86_64-*) platform=3Dpc ;;
>>=C2=A0 =C2=A0 =C2=A0 powerpc-*) platform=3Dieee1275 ;;
>>=C2=A0 =C2=A0 =C2=A0 powerpc64-*) platform=3Dieee1275 ;;
>> +=C2=A0 =C2=A0 powerpc64le-*) platform=3Dieee1275 ;;
>>=C2=A0 =C2=A0 =C2=A0 sparc64-*) platform=3Dieee1275 ;;
>>=C2=A0 =C2=A0 =C2=A0 mipsel-*) platform=3Dloongson ;;
>>=C2=A0 =C2=A0 =C2=A0 mips-*) platform=3Darc ;;
>> @@ -138,6 +139,7 @@ case "$target_cpu"-"$platform&q= uot; in
>>=C2=A0 =C2=A0 x86_64-none) ;;
>>=C2=A0 =C2=A0 x86_64-*) target_cpu=3Di386 ;;
>>=C2=A0 =C2=A0 powerpc64-ieee1275) target_cpu=3Dpowerpc ;;
>> +=C2=A0 powerpc64le-ieee1275) target_cpu=3Dpowerpc ;;
>>=C2=A0 esac
>>
>>=C2=A0 # Check if the platform is supported, make final adjustments= .
>> @@ -601,6 +603,12 @@ if test "x$target_cpu" =3D xi386 &a= mp;& test "x$platform"
>> !=3D xemu; then
>>=C2=A0 =C2=A0 TARGET_CFLAGS=3D"$TARGET_CFLAGS -march=3Di386&qu= ot;
>>=C2=A0 fi
>>
>> +if test x$target_cpu =3D xpowerpc; then
>> +=C2=A0 TARGET_CFLAGS=3D"$TARGET_CFLAGS -mbig-endian" >> +=C2=A0 TARGET_CCASFLAGS=3D"$TARGET_CCASFLAGS -mbig-endian&qu= ot;
>> +=C2=A0 TARGET_LDFLAGS=3D"$TARGET_LDFLAGS -static -mbig-endia= n"
>> +fi
>> +
>>=C2=A0 if test "x$target_m32" =3D x1; then
>>=C2=A0 =C2=A0 # Force 32-bit mode.
>>=C2=A0 =C2=A0 TARGET_CFLAGS=3D"$TARGET_CFLAGS -m32"
>> --
>> 2.1.0
>>
>>
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> https://lists.gnu.org/mailman/listinfo/gr= ub-devel
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-de= vel
>

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
--089e013c6478994b360519bd16f7--