This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
objc/6958: ObjC compiler doesn't corretly work with -fconstant-string-class=
- From: daa at orcsoftware dot spb dot ru
- To: gcc-gnats at gcc dot gnu dot org
- Date: 7 Jun 2002 16:30:18 -0000
- Subject: objc/6958: ObjC compiler doesn't corretly work with -fconstant-string-class=
- Reply-to: daa at orcsoftware dot spb dot ru
>Number: 6958
>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: