This is GCC Bugzilla
This is GCC Bugzilla Version 2.20+
View Bug Activity | Format For Printing | Clone This Bug
I'm building and testing an x86->sh4 crosscompiler with http://kegel.com/crosstool With either gcc-3.3 or gcc-ss-3_3-20030714 I get: Testing debug/20020327-1.c, -gstabs1 ... FAIL: gcc.dg/debug/20020327-1.c (test for excess errors) Excess errors: /tmp/cc8dFF7Y.s: Assembler messages: /tmp/cc8dFF7Y.s:66: Error: symbol `Letext' is already defined
I can confirm this on the mainline (20030718).
The problem looks like DBX_OUTPUT_MAIN_SOURCE_FILE_END is defined wrong and uses Letext which it should not for this test as Letext is the function which is defined in the file. Maybe adding a . infront of the label will fix it.
Or convert it to use asm_printf like below: #define DBX_OUTPUT_MAIN_SOURCE_FILE_END(FILE, FILENAME) \ asm_fprintf (FILE, \ "\t.stabs \"\",%d,0,0,%LLetext\n%LLetext:\n", N_SO N_SO)
Created an attachment (id=5399) [edit] patch that should fix it
Can you try this patch which should fix it?
Since this is minor target and this never quiet work right anyways, I am moving this to 3.4.1 while waiting for the results.
Dan, can you test the patch, or send the asm from the failing testcase? Thanks.
The patch seems to fix the problem when applied to gcc-3.3-20040119!
Thanks, I will ask for approval soon.
Andrew, this is still assigned to you. Any progress in getting your patch approved?
Woops I had forgot to submit it:(. I will do so right now.
Subject: Bug 11608 CVSROOT: /cvs/gcc Module name: gcc Changes by: pinskia@gcc.gnu.org 2004-05-01 00:48:33 Modified files: gcc : ChangeLog gcc/config/sh : elf.h Log message: 2004-04-20 Andrew Pinski <pinskia@physics.uc.edu> PR target/11608 * config/sh/elf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Update and make it more like the one in config/dbxelf.h. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.3536&r2=2.3537 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sh/elf.h.diff?cvsroot=gcc&r1=1.32&r2=1.33
Fixed on the mainline for 3.5.0.