[Bug binutils/28791] [z80-unknown-elf-as]: new unexpected overflow warning in v2.37

2022-01-18 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28791

--- Comment #3 from Sergey Belyashov  ---
I have no an idea how to fix it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/28762] [z80-unknown-elf-as]: assembly fails, but fixed with a blank line

2022-01-13 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28762

--- Comment #11 from Sergey Belyashov  ---
(In reply to Nick Clifton from comment #6)
> (In reply to Sergey Belyashov from comment #5)
> > Attached patch which fixes the bug.
> 
> Patch approved - please apply.
> 
> (Thanks for the quick fix! :-)

As I know, I have no rights to apply fixes.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/28762] [z80-unknown-elf-as]: assembly fails, but fixed with a blank line

2022-01-12 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28762

--- Comment #9 from Sergey Belyashov  ---
It is intermediate buffer. There is already preparsed test (no comments, white
spaces reduced to one space, etc).
The buffer is 32*1024 size (32768 bytes). So if "LD A" is in buffer1 and ",B\n"
in the buffer2, then comma is lost.
If you add any non-whitespace symbol before this line then A is moved to
buffer2 and no issues appear.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/28762] [z80-unknown-elf-as]: assembly fails, but fixed with a blank line

2022-01-12 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28762

--- Comment #5 from Sergey Belyashov  ---
Created attachment 13903
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13903=edit
Fix symbol lost on buffer load

do_scub_chars() has special behaviour to parse Z80 alternate register pair AF'.
There was a bug when symbol 'a' is present but next symbol is not 'f'. If 'a'
was last symbol of previous buffer and 'f' is not first symbol of the next
buffer then it losts.

Attached patch which fixes the bug.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/28762] [z80-unknown-elf-as]: assembly fails, but fixed with a blank line

2022-01-11 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28762

--- Comment #4 from Sergey Belyashov  ---
Bug is present in current development branch.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/27878] [z80-unknown-elf]: ld (hl), <16 bit immediate> should fail assembly

2021-05-19 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27878

--- Comment #2 from Sergey Belyashov  ---
Created attachment 13463
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13463=edit
Fix silent compilation of overflow constants

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/27415] eZ80 relocation computation fails unexpectedly

2021-05-05 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27415

Sergey Belyashov  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/27415] eZ80 relocation computation fails unexpectedly

2021-05-05 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27415

--- Comment #2 from Sergey Belyashov  ---
Created attachment 13421
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13421=edit
Workaround patch

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/27415] eZ80 relocation computation fails unexpectedly

2021-05-05 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27415

--- Comment #1 from Sergey Belyashov  ---
Term "high word" means word which is higher than low word: x >> 16.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/27415] eZ80 relocation computation fails unexpectedly

2021-05-05 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27415

Sergey Belyashov  changed:

   What|Removed |Added

 CC||sergey.belyashov at gmail dot 
com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/27823] [z80-unknown-elf] invalid instruction `ld h, ()` should not assemble

2021-05-05 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27823

Sergey Belyashov  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/27823] [z80-unknown-elf] invalid instruction `ld h, ()` should not assemble

2021-05-05 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27823

--- Comment #1 from Sergey Belyashov  ---
Created attachment 13420
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13420=edit
Patch which fixes this bug and adds tests

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/27047] .bss pseudo operation not supported for target z80-unknown-elf

2020-12-11 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27047

--- Comment #5 from Sergey Belyashov  ---
I think, it is OK. I just took code from blackfin source.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/27047] .bss pseudo operation not supported for target z80-unknown-elf

2020-12-11 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27047

--- Comment #3 from Sergey Belyashov  ---
Created attachment 13038
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13038=edit
Add .bss instruction support

This patch adds support for .bss directive.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/27047] bss section not supported for target z80-unknown-elf

2020-12-11 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27047

--- Comment #1 from Sergey Belyashov  ---
.bss section is supported. But .bss pseudo operation is not supported. You can
create .bss section using .section pseudo operation.

Just try:
$ cat a.s
   .section .bss
myvar: .ds 2
$ z80-unknown-elf-as a.s
$ z80-unknown-elf-readelf -t a.out
...
  [ 3] .bss
   NOBITS   34 02 00   0   0  1
   [0003]: WRITE, ALLOC
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/26692] New: [Z80][PATCH] Small GAS code improvements

2020-10-01 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26692

Bug ID: 26692
   Summary: [Z80][PATCH] Small GAS code improvements
   Product: binutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: sergey.belyashov at gmail dot com
  Target Milestone: ---

Created attachment 12880
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12880=edit
Small code improvements

Add explicit initialization of expression structures.
Improve hash sign handling when SDCC compatibility mode enabled.
Improve indirect addressing detection

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25690] New: [Z80] Add support for XREF and XDEF directives

2020-03-17 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25690

Bug ID: 25690
   Summary: [Z80] Add support for XREF and XDEF directives
   Product: binutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: sergey.belyashov at gmail dot com
  Target Milestone: ---

Created attachment 12385
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12385=edit
Add support for XREF and XDEF directives

Also updated GAS documentation.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25633] z80: [PATCH] Fix unsupported register registration

2020-03-16 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25633

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12349|0   |1
is obsolete||

--- Comment #1 from Sergey Belyashov  ---
Created attachment 12380
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12380=edit
Fix unsupported register registration

Fix test failures for z80-coff target.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25668] z80: [patch] Fix colonless labels support

2020-03-16 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25668

Sergey Belyashov  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25668] New: z80: [patch] Fix colonless labels support

2020-03-13 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25668

Bug ID: 25668
   Summary: z80: [patch] Fix colonless labels support
   Product: binutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: sergey.belyashov at gmail dot com
  Target Milestone: ---

Created attachment 12371
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12371=edit
Fix colonless labels support

GAS in colonless mode fails to compile lines containing colonless label and
instruction with first operand inside parentheses, like:
lab1 jp (hl)
lab2 ld (address),a

This patch fixes it. Moreover, it replaces earlier colonless simulation by
standard LABELS_WITHOUT_COLONS macro definition.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25633] z80: [PATCH] Fix unsupported register registration

2020-03-06 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25633

Sergey Belyashov  changed:

   What|Removed |Added

 CC||nickc at sourceware dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/25641] New: z80: [patch] Fix eZ80 disassembler

2020-03-06 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25641

Bug ID: 25641
   Summary: z80: [patch] Fix eZ80 disassembler
   Product: binutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: sergey.belyashov at gmail dot com
  Target Milestone: ---

Created attachment 12353
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12353=edit
Fix disassembling ED+A4/AC/B4/BC opcodes

Fix invalid disassemble for opcodes:
ED A4 - outi2
ED AC - outd2
ED B4 - oti2r
ED BC - otd2r

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/25641] z80: [patch] Fix eZ80 disassembler

2020-03-06 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25641

Sergey Belyashov  changed:

   What|Removed |Added

 CC||nickc at sourceware dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25633] New: z80: [PATCH] Fix unsupported register registration

2020-03-05 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25633

Bug ID: 25633
   Summary: z80: [PATCH] Fix unsupported register registration
   Product: binutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: sergey.belyashov at gmail dot com
  Target Milestone: ---

Created attachment 12349
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12349=edit
Fix unsupported register registration

Fix registration of unsupported by target CPU registers.
Simplify z80.exp testsuit file. Now test are globbered by mask *.d.
Remove invalid information about Z80 CPU features in built-in help.

GBZ80 have no support for registers I, IX*, IY*, R, and MB; Z180 have no
support for IXL, IXH, IYL, IYH, and MB... Now all these names can be used for
generic symbols.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25627] z80: [patch] Fix instruction assemble and disassemble bug

2020-03-03 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25627

Sergey Belyashov  changed:

   What|Removed |Added

 CC||nickc at sourceware dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25627] New: z80: [patch] Fix instruction assemble and disassemble bug

2020-03-03 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25627

Bug ID: 25627
   Summary: z80: [patch] Fix instruction assemble and disassemble
bug
   Product: binutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: sergey.belyashov at gmail dot com
  Target Milestone: ---

Created attachment 12339
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12339=edit
fix LD IY,(HL) and LD (HL),IX

The patch fixed invalid compilation of instruction LD IY,(HL) and disassemble
of this and LD (HL),IX instruction. Also it update testsuit.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25604] z80: [patch] Fix segfault caused by infinite recursion

2020-02-26 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25604

Sergey Belyashov  changed:

   What|Removed |Added

 CC||nickc at sourceware dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25604] New: z80: [patch] Fix segfault caused by infinite recursion

2020-02-26 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25604

Bug ID: 25604
   Summary: z80: [patch] Fix segfault caused by infinite recursion
   Product: binutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: sergey.belyashov at gmail dot com
  Target Milestone: ---

Created attachment 12324
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12324=edit
fix recursion patch

Fix GAS segfault on some rare circumstances.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25602] New: Unclear documentation about .altmacro

2020-02-26 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25602

Bug ID: 25602
   Summary: Unclear documentation about .altmacro
   Product: binutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: sergey.belyashov at gmail dot com
  Target Milestone: ---

1. .altmacro documentation has no any examples. But usage of %expr is unclear
(it is hard to understand, that it works for macro arguments).
2. There is no information about ampersand symbol, which can be used as
delimiter in the macro (present in the .macro documentation). But how to do
bitwise AND inside macro (backslash and exclamation does not work as
escapes)?!? Go..le does not know it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/25537] z80: [patch] Move machine type compatibility check from emulation to the BFD (remove code duplication)

2020-02-19 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25537

Sergey Belyashov  changed:

   What|Removed |Added

Summary|[Z80][PATCH] Move machine   |z80: [patch] Move machine
   |type compatibility check|type compatibility check
   |from emulation to the BFD   |from emulation to the BFD
   ||(remove code duplication)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25517] Z80: [patch] Use -march=CPU[-EXT][+EXT] instead of -gbz80/-z80n/etc

2020-02-19 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25517

Sergey Belyashov  changed:

   What|Removed |Added

Summary|[Z80][PATCH] Use|Z80: [patch] Use
   |-march=CPU[-EXT][+EXT]  |-march=CPU[-EXT][+EXT]
   |instead of lot of options   |instead of -gbz80/-z80n/etc
   |of GAS  |

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25576] z80: [patch] Remove unnecessary local label definition

2020-02-19 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25576

Sergey Belyashov  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25576] New: z80: [patch] Remove unnecessary local label definition

2020-02-19 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25576

Bug ID: 25576
   Summary: z80: [patch] Remove unnecessary local label definition
   Product: binutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: sergey.belyashov at gmail dot com
  Target Milestone: ---

Created attachment 12301
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12301=edit
Remove unnecessary local label definition

I have missunderstood about local/global names. I think, that all non-local
(which are identified by assembler or BFD) symbols are global.

This patch removes SDCC compatibility for:
- mark all non-global symbols prefixed by underscore as local.
- clear dollar-label cache after any non-dollar-label definition (cause test
fail, because really local label is used in it - fixed).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/12269] unknown-z80-coff: Incorrect assembly of indexed register offsets from equ declarations

2020-02-17 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=12269

Sergey Belyashov  changed:

   What|Removed |Added

 CC||nickc at redhat dot com,
   ||sergey.belyashov at gmail dot 
com

--- Comment #4 from Sergey Belyashov  ---
Please close the bug as fixed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/25537] [Z80][PATCH] Move machine type compatibility check from emulation to the BFD

2020-02-17 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25537

Sergey Belyashov  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/21565] Z80: Incorrect linkage of call instructions

2020-02-17 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21565

--- Comment #2 from Sergey Belyashov  ---
Please close the bug as invalid.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25517] [Z80][PATCH] Use -march=CPU[-EXT][+EXT] instead of lot of options of GAS

2020-02-17 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25517

--- Comment #4 from Sergey Belyashov  ---
Sorry. My previous message is invalid. Do not close!

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25517] [Z80][PATCH] Use -march=CPU[-EXT][+EXT] instead of lot of options of GAS

2020-02-17 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25517

--- Comment #3 from Sergey Belyashov  ---
Please close this bug as invalid.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/21565] Z80: Incorrect linkage of call instructions

2020-02-17 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21565

Sergey Belyashov  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25531] [Z80][PATCH] Fix SDCC support

2020-02-12 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25531

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12282|0   |1
is obsolete||

--- Comment #1 from Sergey Belyashov  ---
Created attachment 12291
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12291=edit
Fix SDCC support

Add related change from another patch.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25517] [Z80][PATCH] Use -march=CPU[-EXT][+EXT] instead of lot of options of GAS

2020-02-12 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25517

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12273|0   |1
is obsolete||

--- Comment #2 from Sergey Belyashov  ---
Created attachment 12290
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12290=edit
Add -march option to GAS

Removed unnecessary changes.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/25537] New: [Z80][PATCH] Move machine type compatibility check from emulation to the BFD

2020-02-12 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25537

Bug ID: 25537
   Summary: [Z80][PATCH] Move machine type compatibility check
from emulation to the BFD
   Product: binutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: enhancement
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: sergey.belyashov at gmail dot com
  Target Milestone: ---

Created attachment 12289
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12289=edit
Move compatibility check from emulation template to BFD

This patch moves machine type compatibility checking from emulation template to
BFD (bfd/cpu-z80.c). Now emulation template contains small code which calls
standard bfd_arch_get_compatible () to determine machine of result file.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25531] [Z80][PATCH] Fix SDCC support

2020-02-11 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25531

Sergey Belyashov  changed:

   What|Removed |Added

 Target||z80-unknown-*
 CC||nickc at redhat dot com
Version|unspecified |2.34

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25531] New: [Z80][PATCH] Fix SDCC support

2020-02-11 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25531

Bug ID: 25531
   Summary: [Z80][PATCH] Fix SDCC support
   Product: binutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: sergey.belyashov at gmail dot com
  Target Milestone: ---

Created attachment 12282
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12282=edit
Fix SDCC support

Currently GAS cannot compile code like `add a,#<(label)`, because it expect
direct memory access, but it is immediate load.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/25519] [PATCH]unique.exp: Update contains_unique_symbol

2020-02-08 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25519

Sergey Belyashov  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #1 from Sergey Belyashov  ---
Already fixed

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/25519] [PATCH]unique.exp: Update contains_unique_symbol

2020-02-08 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25519

Sergey Belyashov  changed:

   What|Removed |Added

 CC||hjl.tools at gmail dot com,
   ||nickc at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/25519] New: [PATCH]unique.exp: Update contains_unique_symbol

2020-02-08 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25519

Bug ID: 25519
   Summary: [PATCH]unique.exp: Update contains_unique_symbol
   Product: binutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: sergey.belyashov at gmail dot com
  Target Milestone: ---

Created attachment 12274
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12274=edit
Update contains_unique_symbol

Since commit 9fc0b501af78b changed symbols from a/b to a_val/b_val,
contains_unique_symbol needs adjustment.

* testsuite/ld-unique/unique.exp (contains_unique_symbol): Updated.

Patch author: H.J.Lu

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25517] [Z80][PATCH] Use -march=CPU[-EXT][+EXT] instead of lot of options of GAS

2020-02-07 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25517

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12272|0   |1
is obsolete||

--- Comment #1 from Sergey Belyashov  ---
Created attachment 12273
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12273=edit
Add -march option to GAS

More strict default CPU selection. Polished help and manual.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25517] [Z80][PATCH] Use -march=CPU[-EXT][+EXT] instead of lot of options of GAS

2020-02-07 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25517

Sergey Belyashov  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25517] New: [Z80][PATCH] Use -march=CPU[-EXT][+EXT] instead of lot of options of GAS

2020-02-07 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25517

Bug ID: 25517
   Summary: [Z80][PATCH] Use -march=CPU[-EXT][+EXT] instead of lot
of options of GAS
   Product: binutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: enhancement
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: sergey.belyashov at gmail dot com
  Target Milestone: ---

Created attachment 12272
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12272=edit
Add -march option to GAS

Historically Z80 GAS port uses options -z80, -r800 and similar to select ISA,
and much of -Fins, -Wnud and similar to enable/disable undocumented
instructions. This patch replaces all of them by generic option
-march=CPU[-EXT...][+EXT...]. Where CPU is one of currently supported by Z80
GAS port CPUs (z80, z180, ez80...) and EXT is one or more of extentions and
undocumented instruction mnemonics. For example option -march=Z80-full+sli
selects Z80 CPU, removes support for all undocumented instructions, and adds
support for instruction SLI. It is not same as in i386 port (idea is taken from
there), but little shorter.

Also I remove recently added options -gbz80 and -z80n, which are not in any
release.

All old options are removed from manual and build-in help. But support for them
is kept for backward compatibility. I think, it may be removed after several
years.

All test are updated too.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25469] [Z80][PATCH] Add support for GBZ80, Z80N CPUs and DWARF

2020-02-06 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25469

--- Comment #11 from Sergey Belyashov  ---
Yes. z80.em contains all necessary.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25469] [Z80][PATCH] Add support for GBZ80, Z80N CPUs and DWARF

2020-02-05 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25469

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12251|0   |1
is obsolete||

--- Comment #8 from Sergey Belyashov  ---
Created attachment 12258
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12258=edit
Add support GBZ80 and Z80N CPUs. Fix LD tests failures.

Temporary remove DWARF support. I cannot fix eh5 test failure.

Now no more regressions will be reported.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25469] [Z80][PATCH] Add support for GBZ80, Z80N CPUs and DWARF

2020-02-04 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25469

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12249|0   |1
is obsolete||

--- Comment #7 from Sergey Belyashov  ---
Created attachment 12251
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12251=edit
Add support GBZ80, Z80N and DWARF. Fix LD tests failures.

Fix most of LD test failures!!!

Currently only folowing tests fails:
- ld-elf/eh5 (I do not know why, and how to fix)
- ld-elf/merge (Z80 target cannot relocate cross-segment subtractions)
- ld-elf/pr22450 (.dc.a allocates 16-bit value (it is correct for Z80), but not
32 as expected)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25469] [Z80][PATCH] Add support for GBZ80, Z80N CPUs and DWARF

2020-02-04 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25469

Sergey Belyashov  changed:

   What|Removed |Added

Summary|[Z80][PATCH] Add support|[Z80][PATCH] Add support
   |for GameBoy Z80 CPU and |for GBZ80, Z80N CPUs and
   |.cfi directives |DWARF

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25469] [Z80][PATCH] Add support for GameBoy Z80 CPU and .cfi directives

2020-02-04 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25469

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12242|0   |1
is obsolete||

--- Comment #6 from Sergey Belyashov  ---
Created attachment 12249
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12249=edit
Add support GBZ80, Z80N CPUs and DWARF

Fix one test (used label name `a', which is Z80 register name)

eh5 test is still failed (it is new test, which is enabled after enabling of
DWARF). I think, problem is another place. For example, elf/discard tests fails
due to silence of linker (test expects warning). Linker silently succeed due to
discarding of symbol which should go to discard section. I think, same bug
causes failure of PR 10549 (GNU OS ABI on STB_GNU_UNIQUE). I completely do not
understand what happens there.

Moreover, there are two assertion fails in four places of testsuit:
./ld-new: BFD (GNU Binutils) 2.34.50.20200127 assertion fail
../../bfd/elf.c:3550
./ld-new: BFD (GNU Binutils) 2.34.50.20200127 assertion fail
../../bfd/elf.c:3655

This change patch no regressions (at least, detectible by tests).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25469] [Z80][PATCH] Add support for GameBoy Z80 CPU and .cfi directives

2020-01-31 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25469

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12238|0   |1
is obsolete||

--- Comment #5 from Sergey Belyashov  ---
Created attachment 12242
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12242=edit
Add support GBZ80 and Z80N

Fix COFF linker test failures

I have no idea how to fix ld-elf/eh5 test failure. It is new test which was
enabled when I enable DWARF generation for Z80 target.

There is part of log:
regexp "^0+01(58|70) 0+0014 0+01(5c|74) FDE cie=0+ pc=.*$"
line   "0158 0010  CIE"

regexp "^  DW_CFA_advance_loc: 4 to .*$"
line   "  Version:   1"

regexp "^  DW_CFA_def_cfa: r0(.*) ofs 16$"
line   "  Augmentation:  "zR""

regexp "^  DW_CFA_nop$"
line   "  Code alignment factor: 1"

regexp "^  DW_CFA_nop$"
line   "  Data alignment factor: -1"

regexp "^  DW_CFA_nop$"
line   "  Return address column: 7"

regexp "^0+01(70|88) 0+0014 0+0(01c|148|15c) FDE cie=0+0(02c|030|170) pc=.*$"
line   "  Augmentation data: 0b"

regexp "^  DW_CFA_advance_loc: 4 to .*$"
line   "  DW_CFA_nop"

regexp "^  DW_CFA_def_cfa: r0(.*) ofs 16$"
line   "  DW_CFA_nop"
...
I have no expirience in DWARF. Can somebody helps me?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25469] [Z80][PATCH] Add support for GameBoy Z80 CPU and .cfi directives

2020-01-30 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25469

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12237|0   |1
is obsolete||

--- Comment #3 from Sergey Belyashov  ---
Created attachment 12238
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12238=edit
Add support GBZ80 and Z80N

Fix new relocation
Add LD test for new relocation

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25469] [Z80][PATCH] Add support for GameBoy Z80 CPU and .cfi directives

2020-01-29 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25469

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12236|0   |1
is obsolete||

--- Comment #2 from Sergey Belyashov  ---
Created attachment 12237
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12237=edit
Add GBZ80 and Z80N support, gcsections, and DWARF

Add support for Z80N (Z80 Next) CPU.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25469] [Z80][PATCH] Add support for GameBoy Z80 CPU and .cfi directives

2020-01-29 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25469

Sergey Belyashov  changed:

   What|Removed |Added

Summary|[Z80][PATCH] Add support|[Z80][PATCH] Add support
   |for GameBoy Z80 CPU |for GameBoy Z80 CPU and
   ||.cfi directives

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25469] [Z80][PATCH] Add support for GameBoy Z80 CPU

2020-01-29 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25469

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12232|0   |1
is obsolete||

--- Comment #1 from Sergey Belyashov  ---
Created attachment 12236
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12236=edit
Complete GBZ80 support, gcsections, DWARF

Add define to enable gc-sections support (but linker warns, that --gc-sections
option is ignored, I do not know why).
Add support for DWARF (enables some tests, one of which (eh5) fails).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25469] [Z80][PATCH] Add support for GameBoy Z80 CPU

2020-01-27 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25469

Sergey Belyashov  changed:

   What|Removed |Added

 Target||z80-unknown-*
 CC||nickc at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25469] New: [Z80][PATCH] Add support for GameBoy Z80 CPU

2020-01-27 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25469

Bug ID: 25469
   Summary: [Z80][PATCH] Add support for GameBoy Z80 CPU
   Product: binutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: enhancement
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: sergey.belyashov at gmail dot com
  Target Milestone: ---

Created attachment 12232
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12232=edit
Add support GBZ80

This patch completes support for GameBoy Z80 CPU.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/17054] Z80 assembler does not support the 'defm' directive

2020-01-17 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=17054

Sergey Belyashov  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

--- Comment #1 from Sergey Belyashov  ---
Please close as fixed:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6655dba246bd164d953fe220a0e3d4eed85bb268

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25377] [Z80][PATCH] 16 bit FP support and documentation update

2020-01-14 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25377

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12197|0   |1
is obsolete||

--- Comment #2 from Sergey Belyashov  ---
Created attachment 12198
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12198=edit
16 bit FP support and documentation update

Fix some failing GAS tests

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25377] [Z80][PATCH] 16 bit FP support and documentation update

2020-01-14 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25377

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12191|0   |1
is obsolete||

--- Comment #1 from Sergey Belyashov  ---
Created attachment 12197
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12197=edit
16 bit FP support and documentation update

Fixed tests.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25377] [Z80][PATCH] 16 bit FP support and documentation update

2020-01-14 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25377

Sergey Belyashov  changed:

   What|Removed |Added

 CC||nickc at sourceware dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25377] [Z80][PATCH] 16 bit FP support and documentation update

2020-01-13 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25377

Sergey Belyashov  changed:

   What|Removed |Added

 Target||z80-unknown-*
   Severity|normal  |enhancement

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25377] New: [Z80][PATCH] 16 bit FP support and documentation update

2020-01-13 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25377

Bug ID: 25377
   Summary: [Z80][PATCH] 16 bit FP support and documentation
update
   Product: binutils
   Version: 2.34 (HEAD)
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: sergey.belyashov at gmail dot com
  Target Milestone: ---

Created attachment 12191
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12191=edit
16 bit FP support and documentation update

This patch:
* fix incorrect disassemble of invalid eZ80 opcode prefix sequence (now emitted
".db" instead of "nop")
* add test for fix above
* add support for half precision FP numbers (16 bit, ieee754 compatible)
* update GAS documentation

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25224] [Z80][PATCH] Add support for Zilog Z180 and eZ80 CPUs

2020-01-09 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25224

--- Comment #29 from Sergey Belyashov  ---
Created attachment 12180
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12180=edit
Fix build on aarch64

Yes, you are right. data defined as signed char data[6];

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/25344] z80 disassembler recursion

2020-01-09 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25344

--- Comment #6 from Sergey Belyashov  ---
Created attachment 12179
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12179=edit
Correct disassembly of incorrect opcode prefixes

This patch fixes incorrect disassembly of extra opcode prefixes. Now them
disassembled as .db directive as described in comment #3.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25224] [Z80][PATCH] Add support for Zilog Z180 and eZ80 CPUs

2020-01-09 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25224

--- Comment #23 from Sergey Belyashov  ---
Created attachment 12177
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12177=edit
Fix warning

This patch fixes all places where character literal defined by '\xXX' form is
compared with character variable.

(I was surprized, that character literals has integer type in C)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/25344] z80 disassembler recursion

2020-01-05 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25344

--- Comment #3 from Sergey Belyashov  ---
Looks good. I suggest to change printing of "nop ;%s" by ".db 0x%02x ; nop" in
case of double prefix. Or I may to do it later.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/25344] z80 disassembler recursion

2020-01-04 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25344

--- Comment #1 from Sergey Belyashov  ---
You are right. 0x40, 0x49, 0x52 and 0x5b are ez80 opcode prefixes which changes
memory model of next instruction. 0x40 + 0x40 is impossible opcode.

I will fix it soon (within a week). You may try fix it. Move lines placed at
end of suffix() (opcodes/z80.c):
  buf_in->n_used += buf.n_used;
  buf_in->n_fetch += buf.n_fetch;
before:
  if (*p == '.') /* suffix already present */

It should fix error.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25224] [Z80][PATCH] Add support for Zilog Z180 and eZ80 CPUs

2019-12-30 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25224

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12152|0   |1
is obsolete||

--- Comment #17 from Sergey Belyashov  ---
Created attachment 12154
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12154=edit
Add support for Z180 and eZ80 to bfd/gas/binutils/ld

Fix error, which causes invalid machine flags when linking to ELF output.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25224] [Z80][PATCH] Add support for Zilog Z180 and eZ80 CPUs

2019-12-27 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25224

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12150|0   |1
is obsolete||

--- Comment #16 from Sergey Belyashov  ---
Created attachment 12152
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12152=edit
Add support for Z180 and eZ80 to bfd/gas/binutils/ld

Small fixes. Reduced number of subpatches

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25224] [Z80][PATCH] Add support for Zilog Z180 and eZ80 CPUs

2019-12-27 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25224

Sergey Belyashov  changed:

   What|Removed |Added

   Severity|normal  |enhancement

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25224] [Z80][PATCH] Add support for Zilog Z180 and eZ80 CPUs

2019-12-26 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25224

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12143|0   |1
is obsolete||

--- Comment #15 from Sergey Belyashov  ---
Created attachment 12150
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12150=edit
Add support for Z180 and eZ80 to bfd/gas/binutils/ld

Fix readelf (fixes much failed elf tests)
Add floating number support
Improve SDCC compatibility

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25311] [PATCH] Replace macro NO_STRING_ESCAPES

2019-12-24 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25311

Sergey Belyashov  changed:

   What|Removed |Added

 CC||amodra at gmail dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25311] New: [PATCH] Replace macro NO_STRING_ESCAPES

2019-12-24 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25311

Bug ID: 25311
   Summary: [PATCH] Replace macro NO_STRING_ESCAPES
   Product: binutils
   Version: 2.34 (HEAD)
Status: UNCONFIRMED
  Severity: enhancement
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: sergey.belyashov at gmail dot com
  Target Milestone: ---

Created attachment 12144
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12144=edit
Replaces NO_STRING_ESCAPES by TC_STRING_ESCAPES

Currently there is no way to disable/enable string escaping by backslash from
command line. Most of targers enables string escaping, but two are not (z80 and
ppc-coff). Implementing support for Z80-ELF target I cannot pass much of GAS
and LD tests because most of them use backslash escaping inside strings (mostly
.ascii "...\0").
Current patch replaces NO_STRING_ESCAPES by macro TC_STRING_ESCAPES. By default
if not defined it equals to 1. For targets Z80 and PPC-COFF it is defined to 0.
But it can be defined as function call. So it is more flexible as current way.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25224] [Z80][PATCH] Add support for Zilog Z180 and eZ80 CPUs

2019-12-23 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25224

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12142|0   |1
is obsolete||

--- Comment #14 from Sergey Belyashov  ---
Created attachment 12143
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12143=edit
Add support for Z180 and eZ80 to bfd/gas/binutils/ld

Added option to set non-standard local label prefix (for example underscore).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25224] [Z80][PATCH] Add support for Zilog Z180 and eZ80 CPUs

2019-12-23 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25224

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12137|0   |1
is obsolete||

--- Comment #13 from Sergey Belyashov  ---
Created attachment 12142
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12142=edit
Add support for Z180 and eZ80 to bfd/gas/binutils/ld

Fixed version of previous patch

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25224] [Z80][PATCH] Add support for Zilog Z180 and eZ80 CPUs

2019-12-20 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25224

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12136|0   |1
is obsolete||

--- Comment #12 from Sergey Belyashov  ---
Created attachment 12137
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12137=edit
Add support for Z180 and eZ80 to bfd/gas/binutils/ld

Fixed fail of some tests

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25224] [Z80][PATCH] Add support for Zilog Z180 and eZ80 CPUs

2019-12-20 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25224

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12132|0   |1
is obsolete||

--- Comment #11 from Sergey Belyashov  ---
Created attachment 12136
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12136=edit
Add support for Z180 and eZ80 to bfd/gas/binutils/ld

Fixed failing common tests, so now z80-coff passes all GAS tests.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25224] [Z80][PATCH] Add support for Zilog Z180 and eZ80 CPUs

2019-12-18 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25224

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12127|0   |1
is obsolete||

--- Comment #10 from Sergey Belyashov  ---
Created attachment 12132
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12132=edit
Add support for Z180 and eZ80 to bfd/gas/binutils/ld

This is commulative patch with ChangeLog and NEWS files

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25224] [Z80][PATCH] Add support for Zilog Z180 and eZ80 CPUs

2019-12-18 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25224

Sergey Belyashov  changed:

   What|Removed |Added

Summary|[Z80][PATCH] Add support|[Z80][PATCH] Add support
   |for Zylog Z180 and eZ80 |for Zilog Z180 and eZ80
   |CPUs|CPUs

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25224] [Z80][PATCH] Add support for Zilog Z180 and eZ80 CPUs

2019-12-18 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25224

--- Comment #9 from Sergey Belyashov  ---
How to provide changes for ChangeLog and NEWS files? They looks like often
updated, so my patch will cause conflicts.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25224] [Z80][PATCH] Add support for Zylog Z180 and eZ80 CPUs

2019-12-17 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25224

--- Comment #7 from Sergey Belyashov  ---
What is preffered?
1. join all patches to one
2. keep them as is, but add separate patch for ChangeLog/NEWS files
3. recreate patches with corresponding update of ChangeLog/NEWS files in each
patch

Should I create separate repository (on github for example) with my changes?

Currently I'm fixing incomplete SDCC support (extra relocations required, 90%
done)...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25224] [Z80][PATCH] Add support for Zylog Z180 and eZ80 CPUs

2019-12-16 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25224

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12124|0   |1
is obsolete||

--- Comment #5 from Sergey Belyashov  ---
Created attachment 12127
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12127=edit
Add support for Z180 and eZ80 to bfd/gas/binutils/ld

Updated BFD32_BACKENDS and BFD32_BACKENDS_CFILES in bfd/Makefile.am.

Added SDCC compatibility mode. Now gas may compile files generated by SDCC.
There is only one issue: SDCC produces global labels with double colon and
local labels with single colon. GAS cannot mark single colon labels as local.
So all labels are global. So SDCC small improvement required (is not duscussion
for the thread).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25224] [Z80][PATCH] Add support for Zylog Z180 and eZ80 CPUs

2019-12-13 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25224

--- Comment #3 from Sergey Belyashov  ---
Hi Nick,

Can you explain, what do you mean:
> Do you have a binutils copyright assignment on file with the FSF ?

I need to sign some "papers" or I need to add some headers to files?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25275] Dollar labels do not work

2019-12-13 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25275

Sergey Belyashov  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID

--- Comment #1 from Sergey Belyashov  ---
Sorry, it is caused by unimplemented bfd_is_local_label_name()

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25275] New: Dollar labels do not work

2019-12-13 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25275

Bug ID: 25275
   Summary: Dollar labels do not work
   Product: binutils
   Version: 2.34 (HEAD)
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: sergey.belyashov at gmail dot com
  Target Milestone: ---

Note: Dollar label is true temporary label which lives between two normal label
definition.

I trying to compile next Z80 code (z80-unknown-coff, target is not sufficient,
but DOLLAR_LOCAL_LABELS should be defined as 1 in target sources: tc-*.h and/or
te-*.h):

.text
.org0
start:
di
jr  000100$
000100$:
jp  .Lbegin
;
.Lbegin:
ld  b,5
000100$:
inc a
jr  z,000101$
djnz000100$
ret
000101$:
ret
.end

$ LC_MESSAGES=C ../as-new -z80 -a test.s
test.s: Assembler messages:
test.s: Error: local label `"100" (instance number 3 of a dollar label)' is not
defined
GAS LISTING test.s  page 1


   1.text
   2.org0
   3start:
   4  F3di
   5  18 00 jr  000100$
   6000100$:
   7  C3 06 00  jp  .Lbegin
   8;
   9.Lbegin:
  10  06 05 ld  b,5
  11000100$:
  12  3Cinc a
  13  28 03 jr  z,000101$
  14  10 FF djnz000100$
  15  C9ret
  16000101$:
  17  C9ret
  18.end

GAS LISTING test.s  page 2


DEFINED SYMBOLS
*ABS*: fake
  test.s:3  .text: start

UNDEFINED SYMBOLS
L1003
Compiler does not known dollar-labels defined before use. Is it OK?

Moreover, I try to find any test for dollar-label usage, but it not present. So
this feature exists in sources but not tested anythere!

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25224] [Z80][PATCH] Add support for Zylog Z180 and eZ80 CPUs

2019-12-13 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25224

Sergey Belyashov  changed:

   What|Removed |Added

 Target||z80-unknown-*
  Component|binutils|gas

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/25224] [Z80][PATCH] Add support for Zylog Z180 and eZ80 CPUs

2019-12-12 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25224

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12091|0   |1
is obsolete||

--- Comment #1 from Sergey Belyashov  ---
Created attachment 12124
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12124=edit
Add support for Z180 and eZ80 to bfd/gas/binutils/ld

Updated archive (all patches are enumerated to proper apply order). Also added
some linker fixes and support for z80-elf32 target.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/25224] [Z80][PATCH] Add support for Zylog Z180 and eZ80 CPUs

2019-12-04 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25224

Sergey Belyashov  changed:

   What|Removed |Added

 CC||amodra at gmail dot com,
   ||nickc at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/21565] Z80: Incorrect linkage of call instructions

2019-12-04 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21565

Sergey Belyashov  changed:

   What|Removed |Added

 CC||sergey.belyashov at gmail dot 
com

--- Comment #1 from Sergey Belyashov  ---
It is correct. Default linker script (*.ld file) contains 0x100 offset for
.text. So produces binary should be loaded at address 0x100. It is done for
CP/M compatibility (it is described by comment in the *.ld script). You may
create your own linker script and place code in any location.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/25224] [Z80][PATCH] Add support for Zylog Z180 and eZ80 CPUs

2019-11-25 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25224

Sergey Belyashov  changed:

   What|Removed |Added

Summary|[Z80] Add support for Zylog |[Z80][PATCH] Add support
   |Z180 and eZ80 CPUs  |for Zylog Z180 and eZ80
   ||CPUs

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/25224] New: [Z80] Add support for Zylog Z180 and eZ80 CPUs

2019-11-25 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25224

Bug ID: 25224
   Summary: [Z80] Add support for Zylog Z180 and eZ80 CPUs
   Product: binutils
   Version: 2.34 (HEAD)
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: sergey.belyashov at gmail dot com
  Target Milestone: ---

Created attachment 12091
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12091=edit
Add support for GBZ80, Z180, and eZ80 to bfd/gas/binutils

There is archive with 3 patches (bfd, disassembler, gas), which add full
support for Zylog Z180 and EZ80 CPUs to Z80 arch.
Summary changes:
1. Due to limited number of COFF flags used to identify MACH earlier mask
configuration were changes to enumeration. Old values for bfd_mach_z80* are
kept. 2. Support for GBZ80 (Game Boy Z80 - Z80 with reduced instruction set) is
in initial state, may be later be completed by some one.
3. Undocumented instructions may be enabled/disabled on per target basis, i.e.
you may enable SLI instruction for EZ80, but not all "unportable" instructions.
4. Number of dump columns is increased (longest EZ80 instruction is 6 bytes).

Note:
I suggest to completely remove z80strict and z80full maches:

bfd_mach_z80 - Z80 with some undocumented instructions (common for Z80 and
R800)
bfd_mach_z80strict - Z80 with documented instructions only
bfd_mach_z80full - Z80 with all undocumented instructions

Classic Zylog Z80 supports all undocumented instructions. Later CPUs may
support or not them, but in most cases them have new instructions, so new mach
is required.

-- 
You are receiving this mail because:
You are on the CC list for the bug.