Roland Mainz <[email protected]> writes:

> Hi!
>
> ----
>
> It seems VLAs still do not work - the Sun Studio build now works if we
> use DWARF but gcc now fails like this:
> -- snip --
> ../common/bltins/shiocmd_solaris.c -mcpu=v8 -mno-v8plus
> ERROR: ctfconvert: die 8002: failed to get unsigned (form 0x13)
> Removing pics/bltins/shiocmd_solaris.o
> -- snip --
>
> Does anyone have an idea how to fix this ?

The DWARF side of things is a separate bug:
CR 6379193      ctfconvert needs to support VLA for gcc's DWARF

(among several others that would probably apply to DWARF and/or gcc
and DWARF)

A very brief and perhaps incorrect look suggests that Studio once
again changed things on their end in the way they represent things on
the stabs side.

A very quick test shows:

% /opt/onnv-tools/SUNWspro/SS12/bin/cc -g -xdebugformat=stabs -c foo.c 
% ctfconvert -L foo foo.o
arraydef/fpoff-sep, expecting "-" at "4294967288;(0,29)"
code line: 998, file foo.o
ERROR: ctfconvert: foo.o: Couldn't parse stab 
"argvc:(0,30)=zr(0,4);0;S4294967288;(0,29)" (source file foo.o)
Removing foo.o
% /opt/onnv-tools/SUNWspro/SS11/bin/cc -g -xdebugformat=stabs -c foo.c    
% ctfconvert -L foo foo.o                                             
% 

-- Rich
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to