Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Apr 1996 13:29:13 -1000 (HST)
From:      "David Langford" <langfod@dihelix.com>
To:        alk@Think.COM (Tony Kimball)
Cc:        hackers@FreeBSD.ORG
Subject:   Re: pgcc kernel compiles automated
Message-ID:  <199604112329.NAA19322@caliban.dihelix.com>
In-Reply-To: <199604111847.NAA00908@compound.think.com> from "Tony Kimball" at Apr 11, 96 01:47:59 pm

next in thread | previous in thread | raw e-mail | index | archive | help
Are you actually using "-mpentium"?  IF not I am not sure that using pgcc
actually has an advantage :)

>To eliminate those annoying manual interventions in making kernels
>using pgcc, here is a trivial script.  I just say 'make CC=ccc'
>It assumes that the distribution cc is renamed to kcc, pgcc is
>installed as gcc
>
>#
>#!/bin/sh
>#
># /usr/local/bin/ccc
>#
># script to permit optimal compilation of the kernel using pgcc
># with work-arounds for bugs and other inconveniences
>#
>
>
>for i in $* 
>do
>  case $i in
>  ../../kern/kern_xxx.c)		# pgcc bug -- use this as an
>					# opportunity to hook in the
>					# missing run-time without
>					# touching the makefile
>    if gcc $* ../../libkern/muldi3.c ; then
>      echo gcc -O compile done
>      ld -r -o kern_xxx2.o kern_xxx.o muldi3.o || exit 1
>      mv -f kern_xxx2.o kern_xxx.o 
>      exit 0;
>    else
>      echo kern_xxx gcc -O failed
>      exit 1
>    fi
>    ;;
>  *)
>    ;;
>  esac
>done  
>
>if ! gcc -O6 -fomit-frame-pointer $* ; then # pgcc bug
>  rm -f cc1.core
>  if ! gcc -O3 -fomit-frame-pointer$* ; then # assembly syntax problem
>    rm -f cc1.core
>    if ! kcc -O $* ; then		# *your* problem
>       echo All compilers failed.
>       exit 1
>    else
>       echo kcc -O compile done.
>    fi
>  else
>    echo gcc -O3 compile done.
>  fi
>else
>  echo gcc -O6 compile done.
>fi
>exit 0
>
>  
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604112329.NAA19322>