Bug 15476

Summary: utils.h "enum errors" forward (incomplete) declaration causes build failure
Product: gdb Reporter: Joel Brobecker <brobecker>
Component: buildAssignee: Joel Brobecker <brobecke>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 7.6   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

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 cvs-commit@gcc.gnu.org 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