public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: objc/6959: ObjC compiler doesn't corretly work with -fconstant-string-class=
@ 2002-09-01  5:15 nicola
  0 siblings, 0 replies; 2+ messages in thread
From: nicola @ 2002-09-01  5:15 UTC (permalink / raw)
  To: daa, gcc-bugs, gcc-prs, nicola, nobody

Synopsis: ObjC compiler doesn't corretly work with -fconstant-string-class=

Responsible-Changed-From-To: unassigned->nicola
Responsible-Changed-By: nicola
Responsible-Changed-When: Sun Sep  1 05:15:51 2002
Responsible-Changed-Why:
    I looked at it
State-Changed-From-To: open->closed
State-Changed-By: nicola
State-Changed-When: Sun Sep  1 05:15:51 2002
State-Changed-Why:
    It's not a bug - the class layout in the testcase is not
    the one it's supposed to be (but yet it should be documented
    better), changing it to be the required one fixes the problem

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6959


^ permalink raw reply	[flat|nested] 2+ messages in thread

* objc/6959: ObjC compiler doesn't corretly work with -fconstant-string-class=
@ 2002-06-07  9:36 daa
  0 siblings, 0 replies; 2+ messages in thread
From: daa @ 2002-06-07  9:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         6959
>Category:       objc
>Synopsis:       ObjC compiler doesn't corretly work with -fconstant-string-class=
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 07 09:36:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Aleksey Dukhnyakov
>Release:        gcc3.1
>Organization:
>Environment:
RedHat Linux
>Description:
Linker fails !
Please see minimized testcase bug1.m:

$ gcc -v
Reading specs from /home/daa/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: ./configure  : (reconfigured) ./configure
Thread model: single
gcc version 3.1
$ gcc bug1.m -fconstant-string-class=NSConstantString -lobjc
bug1.m:1:2: warning: #import is obsolete, use an #ifndef wrapper in the header f
ile
/tmp/cciVxsfG.o(.data+0x280): relocation truncated to fit: R_386_16 .rodata
collect2: ld returned 1 exit status

There is workaround for this :

$ gcc bug.m -fconstant-string-class=NSConstantString -lobjc -DFIX
bug1.m:1:2: warning: #import is obsolete, use an #ifndef 
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="bug1.m"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bug1.m"

I2ltcG9ydCA8b2JqYy9vYmpjLmg+DQoNCkBpbnRlcmZhY2UgTlNPYmplY3Qgew0KQHB1YmxpYyAN
CiAgICBDbGFzcyAgIGlzYTsNCiNpZiBkZWZpbmVkKEZJWCkNCiAgICB1bnNpZ25lZCBpbnQgX19w
cml2YXRlX2RhdGE7IA0KI2Vsc2UNCiAgICB1bnNpZ25lZCBzaG9ydCBfcmM7DQogICAgdW5zaWdu
ZWQgc2hvcnQgX2luZm87DQojZW5kaWYNCn0NCkBlbmQNCg0KQGludGVyZmFjZSBOU0NvbnN0YW50
U3RyaW5nIDogTlNPYmplY3Qgew0KQHB1YmxpYw0KICAgdm9pZCAqYnVmZmVyOw0KICAgdW5zaWdu
ZWQgaW50IGxlbmd0aDsNCn0NCkBlbmQNCg0KQGltcGxlbWVudGF0aW9uIE5TT2JqZWN0DQpAZW5k
DQoNCkBpbXBsZW1lbnRhdGlvbiBOU0NvbnN0YW50U3RyaW5nDQpAZW5kDQoNCmludCBtYWluKCkN
CnsNCiAgICBOU0NvbnN0YW50U3RyaW5nICogc3RyID0gQCJIZWxsbyI7IA0KICAgIHJldHVybiAw
Ow0KfQ0KDQo=


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-01 12:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-01  5:15 objc/6959: ObjC compiler doesn't corretly work with -fconstant-string-class= nicola
  -- strict thread matches above, loose matches on Subject: below --
2002-06-07  9:36 daa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).