Bug 15476 - utils.h "enum errors" forward (incomplete) declaration causes build failure
Summary: utils.h "enum errors" forward (incomplete) declaration causes build failure
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: build (show other bugs)
Version: 7.6
: P2 normal
Target Milestone: ---
Assignee: Joel Brobecker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-16 10:33 UTC by Joel Brobecker
Modified: 2013-05-16 10:57 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Brobecker 2013-05-16 10:33:46 UTC
gdb/utils.h contains a forward declaration of type "enum errors", and this causes a build failure with old GCC compilers. I suspect the same is true of non-GNU compiler, as enum forward declarations are a GNU extension.

Ref: http://www.sourceware.org/ml/gdb-patches/2013-04/msg00829.html

A fix was checked it at:
http://www.sourceware.org/ml/gdb-patches/2013-05/msg00522.html

This PR is to backport the patch to the GDB 7.6 branch.
Comment 1 Sourceware Commits 2013-05-16 10:55:01 UTC
CVSROOT:	/cvs/src
Module name:	src
Branch: 	gdb_7_6-branch
Changes by:	brobecke@sourceware.org	2013-05-16 10:55:00

Modified files:
	gdb            : ChangeLog 

Log message:
	Add PR entry to the last gdb/ChangeLog entry.
	
	(PR 15476)

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&only_with_tag=gdb_7_6-branch&r1=1.15260.2.54&r2=1.15260.2.55