bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/16012] New: Cross Compile of GNU GCC using IBM as the target ve


From: tomsies at mighty dot co.za
Subject: [Bug gas/16012] New: Cross Compile of GNU GCC using IBM as the target vendor (powerpc or rs6000) crashes with "exec: -u: invalid option"
Date: Tue, 08 Oct 2013 04:25:54 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=16012

            Bug ID: 16012
           Summary: Cross Compile of GNU GCC using IBM as the target
                    vendor (powerpc or rs6000) crashes with "exec: -u:
                    invalid option"
           Product: binutils
           Version: 2.23
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: tomsies at mighty dot co.za

It seems that GCC (version 4.8.1) knows that the IBM assembler uses a -u flag
(treat all undeclared variables as external). When cross compiling GCC with
powerpc-ibm-aix* or rs6000-ibm* as a target the gcc compiler passes -u to the
assembler on the assumption that a native IBM assembler is available. 'as'
generated from binutils with this target however crashes with a -u: unknown
option. I have altered the binutils/gas/as.c code to ignore a -u flag
(similarly to the -w and -X flags) and simply skip the flag and continue. I
would guess that the s390-* targets have the same issue?

I dunno yet if the lack of skipping past undeclared variables as IBM's 'as'
does will allow GCC to compile (its still running), but it seems to me that
bunutils/as  could benefit from this change?

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]