This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

objc/6958: ObjC compiler doesn't corretly work with -fconstant-string-class=


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]