[prev in list] [next in list] [prev in thread] [next in thread]
List: pcc-list
Subject: Re: pcc fails to compile itself on openbsd/amd64
From: Anders Magnusson <ragge () ludd ! ltu ! se>
Date: 2010-10-31 19:39:51
Message-ID: 4CCDC607.1050101 () ludd ! ltu ! se
[Download RAW message or body]
On 10/31/2010 08:05 PM, Steve Kargl wrote:
> On Sun, Oct 31, 2010 at 11:31:04AM -0700, Steve Kargl wrote:
>
> > ../../arch/amd64/local.c, line 1086: warning: conversion to 'int' from 'long' may \
> > alter its value
> > /tmp/ctm.aLv1cg: Assembler messages:
> > /tmp/ctm.aLv1cg:2045: Error: suffix or operands invalid for `fildll'
> > *** Error code 1
> >
> > I'll try to reduce the code to a testcase.
> >
> >
> Reduced testcase.
>
> #include "pass1.h"
>
> void
> cclocal(NODE *p)
> {
> NODE *l;
> int o;
> TWORD t;
>
> o = p->n_op;
> if (o == ICON) {
> CONSZ val = l->n_lval;
> l->n_op = FCON;
> l->n_dcon = val;
> }
> }
>
> Looks like an optimization problem.
>
> troutmask:sgk[243] ~/work/bin/pcc -Dos_freebsd -Dmach_amd64 -I. -I../.. -I../../mip \
> -I../../arch/amd64 -I../../os/freebsd -c -g zxc.c troutmask:sgk[244] ~/work/bin/pcc \
> -Dos_freebsd -Dmach_amd64 -I. -I../.. -I../../mip -I../../arch/amd64 \
> -I../../os/freebsd -c -g -O2 zxc.c
> /tmp/ctm.4ZsKel: Assembler messages:
> /tmp/ctm.4ZsKel:573: Error: suffix or operands invalid for `fildll'
>
Thanks, fixed. fildll cannot load from general regs.
-- Ragge
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic