bugGforth - Bugs: bug #20621, Configure.in "if and how we...

 
 

bug #20621: Configure.in "if and how we can waste code space" fails due to bug in test code

Submitted by:  None
Submitted on:  Sun 29 Jul 2007 07:28:20 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 30 Jul 2007 07:49:15 AM UTC, comment #1:

This is fixed in the latest snapshot
<http://www.complang.tuwien.ac.at/forth/gforth/Snapshots/gforth-0.6.9-20070604.tar.gz>
and the current development version
<http://www.complang.tuwien.ac.at/forth/gforth/cvs-public/>

Anton Ertl <anton>
Project Administrator
Sun 29 Jul 2007 07:28:20 PM UTC, original submission:

Using gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)

The "if and how we can waste code space" fails due to a bug in the test code. Cose examination of the test reveals that each of the
tested scenarios fails with:

error: label at end of compound statement

Changing the test code in configure.in from:

int foo(int x)
{
if (x) {
label1:
asm("$i");
label2:
}
return (&&label2)-(&&label1);
}

to:

int foo(int x)
{
if (x) {
label1:
asm("$i");
label2:
;
}
return (&&label2)-(&&label1);
}

fixes the test code syntax error and allows the tests to run.

A patch file is attached.

This fix allows the dynamic code generation to occur.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #13520:  gforth.patch added by None (303B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by anton (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 30 Jul 2007 07:49:15 AM UTCantonStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Sun 29 Jul 2007 07:28:20 PM UTCNoneAttached File-=>Added gforth.patch, #13520

    Back to the top


    Powered by Savane 3.1-cleanup1