This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gcc patch] Re: libgcj build bug
- To: java-patches at sourceware dot cygnus dot com, gcc-patches at gcc dot gnu dot org
- Subject: Re: [gcc patch] Re: libgcj build bug
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 11 Aug 1999 16:49:21 -0300
- References: <37A5DB02.AC79CED2@netintouch.com> <rlyafuovp3.fsf@fencer.cygnus.com> <orhfmh9x7f.fsf@cupuacu.lsd.dcc.unicamp.br> <oryaft87kf.fsf_-_@cupuacu.lsd.dcc.unicamp.br>
On Aug 3, 1999, Alexandre Oliva <oliva@dcc.unicamp.br> wrote:
> On Aug 3, 1999, Alexandre Oliva <oliva@dcc.unicamp.br> wrote:
>> On Aug 2, 1999, Anthony Green <green@cygnus.com> wrote:
>>> This is a known problem with GCC on x86 solaris. Try finishing up
>>> with -g0 instead of -g.
Could someone please review (i.e., approve :-) this patch for the
branch? Without it, gcj *must* be run with -g0 on Solaris/x86, so
it's almost useless by default :-(
We're very unlikely to change the __java_boolean representation for
gcc 2.95.1, and this patch is quite straightforward, so I'd love to
get it in.
Index: gcc/ChangeLog
from Alexandre Oliva <oliva@dcc.unicamp.br>
* dwarfout.c (fundamental_type_code): Return FT_boolean for
INTEGER_TYPE with precision==1, it's __java_boolean. Fixes
g++.oliva/dwarf2.C.
Index: gcc/dwarfout.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/dwarfout.c,v
retrieving revision 1.38
diff -u -r1.38 dwarfout.c
--- gcc/dwarfout.c 1999/07/07 00:16:01 1.38
+++ gcc/dwarfout.c 1999/08/03 10:15:09
@@ -1413,6 +1413,10 @@
if (TYPE_PRECISION (type) == CHAR_TYPE_SIZE)
return (TREE_UNSIGNED (type) ? FT_unsigned_char : FT_char);
+ /* In C++, __java_boolean is an INTEGER_TYPE with precision == 1 */
+ if (TYPE_PRECISION (type) == 1)
+ return FT_boolean;
+
abort ();
case REAL_TYPE:
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{dcc.unicamp.br,guarana.{org,com}} aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them