public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Henderson <rth@cygnus.com>
To: egcs@cygnus.com
Subject: alpha-linux-gnulibc1 patch
Date: Tue, 19 Aug 1997 19:08:13 -0000	[thread overview]
Message-ID: <199708191857.LAA15165@rtl.cygnus.com> (raw)

Linux/Alpha also has need for a "glibc1" option.  The difference
being that it actually was glibc 1.9x, rather than something HJ
and co. cooked up.  ;-)


r~



Tue Aug 19 11:45:30 1997  Richard Henderson  <rth@cygnus.com>

	* config/alpha/elf.h (LINK_SPEC): ld.so changed between glibc 1.99
	and 2.0.0, so recognize USE_GNULIBC_1.
	* config.guess: Recognize alpha-linux-gnulibc1.
	* configure.in (alpha-*-linux-gnulibc1): New target.
	(alpha-*-linux-gnu*): Don't build crtbegin/end; crtstuff cannot
	handle some of the Alpha-specific details.  Correct versions are
	distributed with glibc.


diff -rpc2 -x CVS egcs/config/alpha/elf.h egcs-work/config/alpha/elf.h
*** egcs/config/alpha/elf.h	Mon Aug 18 08:49:48 1997
--- egcs-work/config/alpha/elf.h	Mon Aug 18 11:46:07 1997
*************** Currently only Linux uses this. */
*** 40,43 ****
--- 40,52 ----
  
  #undef LINK_SPEC
+ #ifdef USE_GNULIBC_1
+ #define LINK_SPEC "-m elf64alpha -G 8 %{O*:-O3} %{!O*:-O1}	\
+   %{shared:-shared}						\
+   %{!shared:							\
+     %{!static:							\
+       %{rdynamic:-export-dynamic}				\
+       %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}		\
+     %{static:-static}}"
+ #else
  #define LINK_SPEC "-m elf64alpha -G 8 %{O*:-O3} %{!O*:-O1}	\
    %{shared:-shared}						\
*************** Currently only Linux uses this. */
*** 47,50 ****
--- 56,60 ----
        %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}}	\
      %{static:-static}}"
+ #endif
  
  /* Output at beginning of assembler file.  */
diff -rpc2 -x CVS egcs/config.guess egcs-work/config.guess
*** egcs/config.guess	Mon Aug 18 08:48:59 1997
--- egcs-work/config.guess	Mon Aug 18 13:28:46 1997
*************** EOF
*** 507,510 ****
--- 507,511 ----
  		.end main
  EOF
+ 		LIBC=""
  		${CC-cc} dummy.s -o dummy 2>/dev/null
  		if test "$?" = 0 ; then
*************** EOF
*** 517,524 ****
  					UNAME_MACHINE="alphaev56"
  				;;	
! 		esac	
! 	  fi	
! 	  rm -f dummy.s dummy
! 	  echo ${UNAME_MACHINE}-unknown-linux-gnu ; exit 0
  	elif test "${UNAME_MACHINE}" = "mips" ; then
  	  cat >dummy.c <<EOF
--- 518,531 ----
  					UNAME_MACHINE="alphaev56"
  				;;	
! 			esac	
! 
! 			objdump --private-headers dummy | \
! 			  grep ld.so.1 > /dev/null
! 			if test "$?" = 0 ; then
! 				LIBC="libc1"
! 			fi
! 		fi	
! 		rm -f dummy.s dummy
! 		echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
  	elif test "${UNAME_MACHINE}" = "mips" ; then
  	  cat >dummy.c <<EOF
diff -rpc2 -x CVS egcs/configure.in egcs-work/configure.in
*** egcs/configure.in	Mon Aug 18 08:48:59 1997
--- egcs-work/configure.in	Mon Aug 18 11:49:16 1997
*************** for machine in $build $host $target; do
*** 273,285 ****
  		gas=yes gnu_ld=yes
  		;;
  	alpha*-*-linux-gnu*)
  		tm_file="${tm_file} alpha/linux.h alpha/elf.h"
  		xm_file="${xm_file} alpha/xm-linux.h"
  		target_cpu_default="MASK_GAS"
- 		gas=no
  		tmake_file="t-linux alpha/t-linux"
  		xmake_file=none
  		fixincludes=Makefile.in
- 		extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
  		gas=yes gnu_ld=yes
   		if [[ x$enable_threads = xyes ]]; then
--- 273,295 ----
  		gas=yes gnu_ld=yes
  		;;
+ 	alpha*-*-linux-gnulibc1*)
+ 		tm_file="${tm_file} alpha/linux.h alpha/elf.h"
+ 		xm_file="${xm_file} alpha/xm-linux.h"
+ 		target_cpu_default="MASK_GAS"
+ 		tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux"
+ 		xmake_file=none
+ 		fixincludes=Makefile.in
+ 		gas=yes gnu_ld=yes
+  		if [[ x$enable_threads = xyes ]]; then
+  			thread_file='posix'
+  		fi
+ 		;;
  	alpha*-*-linux-gnu*)
  		tm_file="${tm_file} alpha/linux.h alpha/elf.h"
  		xm_file="${xm_file} alpha/xm-linux.h"
  		target_cpu_default="MASK_GAS"
  		tmake_file="t-linux alpha/t-linux"
  		xmake_file=none
  		fixincludes=Makefile.in
  		gas=yes gnu_ld=yes
   		if [[ x$enable_threads = xyes ]]; then

WARNING: multiple messages have this Message-ID
From: Jeffrey A Law <law@hurl.cygnus.com>
To: egcs@cygnus.com
Subject: Re: Minor SS issue...
Date: Tue, 19 Aug 1997 19:12:41 -0000	[thread overview]
Message-ID: <199708191857.LAA15165@rtl.cygnus.com> (raw)
Message-ID: <19970819191241.KrjLpm8mCQ2QCAaiYZFfKmcjdl4Q2gETNfBuWj7FYSA@z> (raw)
In-Reply-To: Minor SS issue...

  In message <199708191554.KAA02170@monolith.solon.com>you write:
  > Is there a point in egcs-ss-970814 extracting into
  > 	egcs-ss-970814/egcs-ss-970814
  > ?
  > 
  > I feel compelled to say "I heard you the first time".  :)
Huh?

% gzcat *.gz | tar vtf -
drwxrws--- law/cygnus        0 Aug 15 15:42 1997 ./egcs-ss-970814/
-rw-rw---- law/cygnus   176520 Aug 15 11:55 1997 ./egcs-ss-970814/ChangeLog.10

Did you make a directory called egcs-ss-970814, then cd into it,
then extract the snapshot?

Jeff

             reply	other threads:[~1997-08-19 19:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-08-19 19:08 Richard Henderson [this message]
1997-08-19 19:12 ` Minor SS issue Jeffrey A Law

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199708191857.LAA15165@rtl.cygnus.com \
    --to=rth@cygnus.com \
    --cc=egcs@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).