[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch #7293] patch for dfaexec() bug on FreeBSD
From: |
Adam Katz |
Subject: |
[patch #7293] patch for dfaexec() bug on FreeBSD |
Date: |
Thu, 26 Aug 2010 23:16:32 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.36 Safari/534.3 |
URL:
<http://savannah.gnu.org/patch/?7293>
Summary: patch for dfaexec() bug on FreeBSD
Project: grep
Submitted by: khopesh
Submitted on: Thu 26 Aug 2010 11:16:31 PM GMT
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
When compiling with gcc 2.95.4 on FreeBSD 4.11-STABLE, this error came
about:
gmake[2]: Entering directory `/usr/home/adkatz/grep-2.6.3/src'
CC dfa.o
dfa.c: In function `dfaexec':
dfa.c:2802: syntax error before `unsigned'
dfa.c:2803: `saved_end' undeclared (first use in this function)
dfa.c:2803: (Each undeclared identifier is reported only once
dfa.c:2803: for each function it appears in.)
gmake[2]: *** [dfa.o] Error 1
gmake[2]: Leaving directory `/usr/home/adkatz/grep-2.6.3/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/home/adkatz/grep-2.6.3'
gmake: *** [all] Error 2
This appears to be due to declaration of a variable later in a function than
it should be. I moved the declaration and things seem fully funcitonal, but I
haven't bothered to figure out how to thoroughly test that specific function.
Patch attached.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 26 Aug 2010 11:16:31 PM GMT Name: dfa.c.patch Size: 646B By:
khopesh
moved declaration of saved_end to top of function, kept assignment in-place.
<http://savannah.gnu.org/patch/download.php?file_id=21319>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?7293>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [patch #7293] patch for dfaexec() bug on FreeBSD,
Adam Katz <=