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]

target/5715: alpha-OSF - sends incorrect options to as.



>Number:         5715
>Category:       target
>Synopsis:       alpha-OSF - sends incorrect options to as.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 17 13:06:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     tilps@hotmail.com
>Release:        3.0.3
>Organization:
>Environment:
alphaev56-dec-osf4.0d
>Description:
gcc/config/alpha/osf.h 
includes the line
#define ASM_SPEC "%{!mgas:-g %(asm_oldas)} -nocpp %{pg} -O0"

problems with this line include -O0 is sent when mgas is
selected - and gas doesnt support -O0

also -nocpp is Always sent - which is bad when the input file is .s - and needs cpp ... - prehaps gcc should be running cpp on .s - but I couldnt find anywhere that it was programmed to do so.
>How-To-Repeat:
compiling mozilla 0.9.8 - the xpcom/reflect/md/unix 
running make causes gcc calls the OSF as - which core dumps because it cant handle the .s file which contains comments.
After installing gas to try and fix this - gcc just dies at assembly stage no matter what - since -O0 gets passed to as which gas doesnt understand.
>Fix:
modify the ASM_SPEC line to be more intelligent.
>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]