bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

alpha support


From: Bowie Owens
Subject: alpha support
Date: Thu, 16 Aug 2001 08:54:41 +1000

Hi,

I am trying to get GNU as going on the OSF1 V4.0 1229 alpha we have
at work. Binutils-2.11.2 does not compile as is, there is a problem
with LITUSE_BASE not being defined gas/config/tc-alpha.c. I must admit
I don't really know what is going on, but if the defines are moved
above the #ifdef RELOC_OP_P then everything compiles ok. Below are the
results of diff -C 5. I would appreciate it if someone with a bit more
understanding could take a look and check if that is a reasonable way
to fix the problem.

Having made that change, the next thing I want to do is build gcc (2.95.3)
to use the GNU as and ld (--with-gnu-as and --with-gnu-ld). However,
I have run into a problem here as well. When the first build of xgcc
tries to compile libio/floatconv.c the assembler fails on a floating
point constant: ``floatconv.s:2184: Error: cannot create floating-point
number''. I have attached floatconv.s.gz.


*** tc-alpha.c  Thu Jun  7 13:15:27 2001
--- ../../../../binutils-2.11.2/gas/config/tc-alpha.c   Fri Aug 10 12:26:14 
2001***************
*** 461,470 ****
--- 461,474 ----
   * longer than 64 characters, else longer symbol names are truncated.
   */
  
  #endif
  
+ #define LITUSE_BASE   1
+ #define LITUSE_BYTOFF 2
+ #define LITUSE_JSR    3
+ 
  #ifdef RELOC_OP_P
  /* A table to map the spelling of a relocation operand into an appropriate
     bfd_reloc_code_real_type type.  The table is assumed to be ordered such
     that op-O_literal indexes into it.  */
  
***************
*** 471,483 ****
  #define ALPHA_RELOC_TABLE(op)                                         \
  &alpha_reloc_op[ ((!USER_RELOC_P (op))                                        
\
                  ? (abort (), 0)                                       \
                  : (int) (op) - (int) O_literal) ]
  
- #define LITUSE_BASE   1
- #define LITUSE_BYTOFF 2
- #define LITUSE_JSR    3
  
  static const struct alpha_reloc_op_tag {
    const char *name;                           /* string to lookup */
    size_t length;                              /* size of the string */
    bfd_reloc_code_real_type reloc;             /* relocation before frob */
--- 475,484 ----


-- Bowie Owens

CSIRO Mathematical & Information Sciences
phone : +61 3 9545 8055
email : address@hidden

Attachment: floatconv.s.gz
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]