[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gas m68k/MRI Internal error, aborting
From: |
Nick Clifton |
Subject: |
Re: gas m68k/MRI Internal error, aborting |
Date: |
19 Sep 2002 15:52:58 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 |
Hi Gene,
> With the following MRI style line in the source file,
>
> OPT P=68881
>
> gas shuts down with the following message:
>
> filename.asm.s:5: Internal error, aborting at ../../gas/config/tc-m68k.c line
> 3983 in select_control_regs Please report this bug.
Thanks for reporting this bug. I am fixing it by applying the
following patch, so that now GAS says:
Warning: architecture not yet selected: defaulting to 68020
Cheers
Nick
2002-09-19 Nick Clifton <address@hidden>
* config/tc-m68k.c (select_control_regs): Handle situation where
architecture has not yet been selected.
Index: gas/config/tc-m68k.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-m68k.c,v
retrieving revision 1.41
diff -c -3 -p -w -r1.41 tc-m68k.c
*** gas/config/tc-m68k.c 5 Sep 2002 00:01:18 -0000 1.41
--- gas/config/tc-m68k.c 19 Sep 2002 14:48:49 -0000
*************** select_control_regs ()
*** 3950,3955 ****
--- 3950,3960 ----
/* Note which set of "movec" control registers is available. */
switch (cpu_of_arch (current_architecture))
{
+ case 0:
+ as_warn (_("architecture not yet selected: defaulting to 68020"));
+ control_regs = m68020_control_regs;
+ break;
+
case m68000:
control_regs = m68000_control_regs;
break;