Bug 795 - non-ascii-identifier problems exposed by GCC tests: gcc.dg/ucnid-2.c, 3, 4 and 6.
Summary: non-ascii-identifier problems exposed by GCC tests: gcc.dg/ucnid-2.c, 3, 4 an...
Status: RESOLVED WORKSFORME
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.17
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-17 19:34 UTC by Hans-Peter Nilsson
Modified: 2005-04-28 12:01 UTC (History)
1 user (show)

See Also:
Host:
Target: mmix-knuth-mmixware
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans-Peter Nilsson 2005-03-17 19:34:23 UTC
All have the same .log info:
ucnid-2.c: Assembler messages:
ucnid-2.c:6: Error: unknown opcode: `is'
ucnid-2.c:10: Error: unknown opcode: `is'
ucnid-2.c:14: Error: unknown opcode: `is'

Minimal test-case (in which the first two characters are 0xc3 and 0x80):
\303\200        IS @
Comment 1 Nick Clifton 2005-03-18 11:38:01 UTC
Hi Hans-Peter,

  0x80 and 0xc3 are not ASCII characters, so why would you expect GAS to be able
to assemble them if they are not inside a string defintion ?

  For what it is worth I was able to compile and assemble all of the ucnid-?.c
testcases using the latest binutils and gcc with an mmix-knuth-mmixware
toolchain and I did not see these errors.

Cheers
  Nick
Comment 2 Hans-Peter Nilsson 2005-03-18 12:10:47 UTC
In response to comment #1, I would expect GAS to assemble it because it's
generated by GCC (presumed correct).  Since you have a mmix-knuth-mmixware
toolchain available, I suggest looking at the generated assembly from
gcc.dg/ucnid-2.c.  You should see this symbol.  I don't know why you had success
assembling the test-cases on your system.  I'm on FC2.
Comment 3 Hans-Peter Nilsson 2005-03-18 12:16:31 UTC
Perhaps not as obvious as I thought, so I'll mention that the GCC ucnid tests
are supposed to test exactly what this PR is about; UCN-coded identifiers.
Comment 4 Hans-Peter Nilsson 2005-03-18 12:18:05 UTC
...except of course that the identifiers aren't UCN-encoded in the GCC-generated
assembly.
Comment 5 Nick Clifton 2005-03-18 13:06:59 UTC
Subject: Re:  UCN problems exposed by GCC tests: gcc.dg/ucnid-2.c,
 3,	4 and 6.

Hi Hans-Peter,

> In response to comment #1, I would expect GAS to assemble it because it's
> generated by GCC (presumed correct).

My current theory is that it must be a gcc bug.  But then I could just 
be passing the buck...

>  Since you have a mmix-knuth-mmixware
> toolchain available, I suggest looking at the generated assembly from
> gcc.dg/ucnid-2.c.  You should see this symbol. 

Hmm, well what I see is:

   [...]
   LC:0	IS @
         BYTE #e3,#82,#b2,#0
    [...]

(with no embedded 0x80 or 0xc3 characters)	

> I don't know why you had success
> assembling the test-cases on your system.  I'm on FC2.

I'm on RedHat Enterprise Linux 3 but I am using a gcc toolchain built 
from today's sources in the FSF GCC repository (and today's binutils).

Cheers
   Nick



Comment 6 Hans-Peter Nilsson 2005-04-28 12:01:19 UTC
I guess after all it *was* a gcc bug as these tests started to pass with
LAST_UPDATED "Wed Apr 13 18:35:48 UTC 2005"
(failed with "Wed Apr 13 11:20:46 UTC 2005").