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]

[Bug target/33755] Gcc 4.2.2 broken for mips linux kernel builds



------- Comment #8 from daney at gcc dot gnu dot org  2007-10-12 22:35 -------
It appears to be a GCC bug not binutils:

If you look at the assembly output for gcc-4.2, we emit:

    lui     $2,%hi($LC6)

But there is no corresponding %lo($LC6) to be found.  No amount of relocation
sorting could overcome this problem.

The corresponding printk calls are also missing.  Very strange.

This is fixed in 4.3.

(sid)ddaney@swarm:~/junk$ gcc -c -O2 -G0 -mno-abicalls -march=mips32r2 33755.i 
(sid)ddaney@swarm:~/junk$ ld -m elf32ltsmip -r 33755.o
(sid)ddaney@swarm:~/junk$ gcc --version
gcc (GCC) 4.3.0 20071011 (experimental) [trunk revision 129239]


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33755


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