[PATCH] Fix a regression due to my recent composite_type changes

Joseph S. Myers jsm@polyomino.org.uk
Wed Jun 23 21:29:00 GMT 2004


On Wed, 23 Jun 2004, Andrew Pinski wrote:

> I noticed after my patch to composite_type that I introduced a 
> regression
> but there is no testcase for it yet in the testsuite :(.
> This patch fixes that regression as you cannot use qualify_type with 
> array
> types as it uses c_build_qualified_type which touches the wrong type
> when building the new type.  I also implemented a little memory 

Array types should never be qualified - only the element type should be -
so I think it would be better to abort in the case of array types if there
are any qualifiers.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)



More information about the Gcc-patches mailing list