URL:
  <http://savannah.gnu.org/bugs/?20621>

                 Summary: Configure.in "if and how we can waste code space"
fails due to bug in test code
                 Project: Gforth
            Submitted by: None
            Submitted on: Sunday 07/29/2007 at 19:28 UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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.





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sunday 07/29/2007 at 19:28 UTC  Name: gforth.patch  Size: 303B   By:
None

<http://savannah.gnu.org/bugs/download.php?file_id=13520>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?20621>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
bug-gforth mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/bug-gforth

Reply via email to