This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

build/2050: remote-utils.c build error: variable declared after statement


>Number:         2050
>Category:       build
>Synopsis:       remote-utils.c build error: variable declared after statement
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          patch
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 09 18:08:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     skunk@iskunk.org
>Release:        gdb-6.4
>Organization:
>Environment:
Red Hat 7.x with GCC 2.96
>Description:
Trivial C code incompatibility: a variable declaration after a statement. I encountered only a single instance of this in building GDB.
>How-To-Repeat:
Build using an older compiler.
>Fix:
See attached patch.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-diff; name="gdb-6.4.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="gdb-6.4.patch"

LS0tIGdkYi02LjQvZ2RiL2dkYnNlcnZlci9yZW1vdGUtdXRpbHMuYwkyMDA1LTA3LTEzIDExOjAy
OjQ5LjAwMDAwMDAwMCAtMDQwMAorKysgZ2RiLTYuNC1wYXRjaGVkL2dkYi9nZGJzZXJ2ZXIvcmVt
b3RlLXV0aWxzLmMJMjAwNS0xMi0wOCAxNzo0OToxOS4wMDAwMDAwMDAgLTA1MDAKQEAgLTY4MSw5
ICs2ODEsMTEgQEAKIAogICAgICAgaWYgKHVzaW5nX3RocmVhZHMpCiAJeworCSAgdW5zaWduZWQg
aW50IGdkYl9pZF9mcm9tX3dhaXQ7CisKIAkgIC8qIEZJWE1FIHJpZ2h0IHBsYWNlIHRvIHNldCB0
aGlzPyAqLwogCSAgdGhyZWFkX2Zyb21fd2FpdCA9ICgoc3RydWN0IGluZmVyaW9yX2xpc3RfZW50
cnkgKiljdXJyZW50X2luZmVyaW9yKS0+aWQ7Ci0JICB1bnNpZ25lZCBpbnQgZ2RiX2lkX2Zyb21f
d2FpdCA9IHRocmVhZF90b19nZGJfaWQgKGN1cnJlbnRfaW5mZXJpb3IpOworCSAgZ2RiX2lkX2Zy
b21fd2FpdCA9IHRocmVhZF90b19nZGJfaWQgKGN1cnJlbnRfaW5mZXJpb3IpOwogCiAJICBpZiAo
ZGVidWdfdGhyZWFkcykKIAkgICAgZnByaW50ZiAoc3RkZXJyLCAiV3JpdGluZyByZXN1bWUgcmVw
bHkgZm9yICVsZFxuXG4iLCB0aHJlYWRfZnJvbV93YWl0KTsK


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]