🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42895

Problems with boolean type conversion

#42895
From: Martin Ohmacht
Date: Fri, 13 Oct 1995 00:00
29 lines
1961 bytes
Hi,

since I've upgraded my gcc-port (cc1plus) from 2.5.8 to 2.6.3,
I obtain awful code for branch decision making. In 2.6.3, all
boolean expressions are converted to boolean type, resulting
in byte representation. My target is a condition code machine
that would benefit from compare and branch sequences rather than
from the generated boolean bytes. Branching is also very expensive
for my target, but the 2.6.3 compiler generates in many cases branches
to compute the booleans and then finally brances on the computed 
boolean. The jump optimizer is not able to reorganize these sequences.

My question:
Is it possible to turn off the many type conversions to boolean type?
I tried to cut down the expansion of nop_expr and similar to boolean,
but lots of other tree types (!,||,&&) also enforce a type conversion.
Or is something special to be considered in order to enable the
jump_optimizer to optimize these sequences?

Any ideas?

Martin 
______________________________________________________________________
Dipl.-Ing. Martin Ohmacht               Universitaet Hannover
                                        Laboratorium fuer
ohmacht@mst.uni-hannover.de             Informationstechnologie
fax:    +49-511-762-5051                Schneiderberg 32
phone:  +49-511-762-5039                D-30167 Hannover
______________________________________________________________________
Technical Details
Message-ID: <307E4AEC.41C67EA6@mst.uni-hannover.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,1ec08bdaee7363f7,start
X-Google-Attributes: gid11318c,public
From: Martin Ohmacht <ohmacht@mst.uni-hannover.de>
Subject: Problems with boolean type conversion
Date: 1995/10/13
Message-ID: <307E4AEC.41C67EA6@mst.uni-hannover.de>
X-Deja-AN: 117523051
sender: news@newsserver.rrzn.uni-hannover.de (News Service)
content-type: text/plain; charset=us-ascii
organization: RRZN
mime-version: 1.0
newsgroups: gnu.gcc.help
x-mailer: Mozilla 2.0b1 (X11; I; SunOS 4.1.3 sun4m)