[Bug target/94134] pdp11-aout puts initial variable into .text section rather than .data

2020-09-17 Thread casner at acm dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94134 --- Comment #17 from Stephen Casner --- Thanks.

[Bug target/94134] pdp11-aout puts initial variable into .text section rather than .data

2020-09-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94134 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/94134] pdp11-aout puts initial variable into .text section rather than .data

2020-09-17 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94134 --- Comment #15 from CVS Commits --- The releases/gcc-8 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:4910b2e4cfe25c95fef18cf54125b788c190cfb2 commit r8-10462-g4910b2e4cfe25c95fef18cf54125b788c190cfb2 Author: Jakub Jelinek

[Bug target/94134] pdp11-aout puts initial variable into .text section rather than .data

2020-03-17 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94134 --- Comment #14 from CVS Commits --- The releases/gcc-9 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:f1125cf88ac0c97d819e4f81d556fbcd1161270e commit r9-8391-gf1125cf88ac0c97d819e4f81d556fbcd1161270e Author: Jakub Jelinek

[Bug target/94134] pdp11-aout puts initial variable into .text section rather than .data

2020-03-11 Thread casner at acm dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94134 --- Comment #13 from Stephen Casner --- (In reply to Stephen Casner from comment #9) (Commenting on my own comment) > 1. pdp11-aout does not have a .lcommon or .lcomm section, just .text, .data > and .bss. But also I'm missing something about

[Bug target/94134] pdp11-aout puts initial variable into .text section rather than .data

2020-03-11 Thread casner at acm dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94134 --- Comment #12 from Stephen Casner --- (In reply to pkoning from comment #11) > (In reply to Stephen Casner from comment #9) > > 7. Emitting the zero-initialized variable into .data when it happens to > > follow a nonzero-initialized variable

[Bug target/94134] pdp11-aout puts initial variable into .text section rather than .data

2020-03-11 Thread pkoning at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94134 --- Comment #11 from pkoning at gcc dot gnu.org --- (In reply to Stephen Casner from comment #9) A lot of these questions should have answers in the GCC Internals manual, which is quite good. And also quite dense. I know it a little, enough

[Bug target/94134] pdp11-aout puts initial variable into .text section rather than .data

2020-03-11 Thread casner at acm dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94134 --- Comment #10 from Stephen Casner --- One more question: I'm working on binutils ld as well, wanting to implement a new option --imagic for pdp11-aout that outputs magic number 0413 and sets both .text and .data at address 0 (with .bss to

[Bug target/94134] pdp11-aout puts initial variable into .text section rather than .data

2020-03-11 Thread casner at acm dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94134 --- Comment #9 from Stephen Casner --- Thank you all for your prompt action on this bug. I have some comments and questions if you are willing to help with my education about gcc internals: 1. pdp11-aout does not have a .lcommon or .lcomm

[Bug target/94134] pdp11-aout puts initial variable into .text section rather than .data

2020-03-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94134 --- Comment #8 from Jakub Jelinek --- commit r10-7129-gd42ff1d3b62521829d90e5b972baba2a0339e2bf Author: Jakub Jelinek Date: Wed Mar 11 18:35:13 2020 +0100 pdp11: Fix handling of common (local and global) vars [PR94134] As mentioned

[Bug target/94134] pdp11-aout puts initial variable into .text section rather than .data

2020-03-11 Thread pkoning at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94134 --- Comment #7 from pkoning at gcc dot gnu.org --- Thanks Jakub. Inspecting the generated assembly language is a sufficient check of the fix in my view. It's interesting that the test case shows the problem only with -O0. When optimizing,

[Bug target/94134] pdp11-aout puts initial variable into .text section rather than .data

2020-03-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94134 Jakub Jelinek changed: What|Removed |Added Last reconfirmed||2020-03-11 Ever confirmed|0

[Bug target/94134] pdp11-aout puts initial variable into .text section rather than .data

2020-03-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94134 Jakub Jelinek changed: What|Removed |Added CC||pkoning at gcc dot gnu.org --- Comment

[Bug target/94134] pdp11-aout puts initial variable into .text section rather than .data

2020-03-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94134 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #4

[Bug target/94134] pdp11-aout puts initial variable into .text section rather than .data

2020-03-11 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94134 --- Comment #3 from Andrew Pinski --- Most targets output .lcommon or similar for this case.

[Bug target/94134] pdp11-aout puts initial variable into .text section rather than .data

2020-03-11 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94134 Andrew Pinski changed: What|Removed |Added CC||coryan+gccbugzilla at google dot c

[Bug target/94134] pdp11-aout puts initial variable into .text section rather than .data

2020-03-11 Thread casner at acm dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94134 Stephen Casner changed: What|Removed |Added Target||pdp11-aout --- Comment #1 from Stephen