------- Comment #8 from ebotcazou at gcc dot gnu dot org 2009-07-04 07:57 ------- > Attaching a fix that works here for Solaris 10 and I think would work for > other Solaris versions.
Thanks. > It changes the spec to account for the other options mentioned in comment 3, > to handle the main issue of the bug (link values-xpg6.o in c99 mode), and > also adds linking of values-xpg4.o as the Solaris manual suggests should be > done. sol2-6.h doesn't exist anymore in GCC 4.4 and later. Since the patch won't be applied to GCC 4.3.x, it must be adjusted. Why was values-xpg4 only added to sol2-6.h and not to sol2.h? > I wasn't sure exactly how to handle the various -std=gnu* modes, so I left > those as they were. Joseph, any recommendations about that? > To enable matching on ':' in std=iso9899:xxxx, I had to augment the spec > language, as suggested in comment 6. I realize you might want to treat this > as a separate issue -- I can open a separate issue for this if you want. The combined patch is fine I think. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40411