This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

[fixed-point] Add warnings and add new tests


Hi,

  This patch adds warnings for fixed-point constants
when -pedantic, adds 10 new tests, and updates one test.
Thanks!

Regards,
Chao-ying

libcpp/ChangeLog
2007-05-24  Chao-ying Fu  <fu@mips.com>

	* expr.c (cpp_classify_number): Warn about fixed-point constants
	when -pedantic.

gcc/testsuite/ChangeLog
2007-05-24  Chao-ying Fu  <fu@mips.com>

        * gcc.dg/fixed-point/constant.c: Add constants for _Fract.
        * gcc.dg/fixed-point/cast-bad.c, gcc.dg/fixed-point/composite-type.c,
        * gcc.dg/fixed-point/constants-pedantic.c,
        * gcc.dg/fixed-point/keywords-c89.c,
        * gcc.dg/fixed-point/keywords-c99.c,
        * gcc.dg/fixed-point/keywords-ignored-c99.c,
        * gcc.dg/fixed-point/keywords-pedantic.c,
        * gcc.dg/fixed-point keywords-reserved.c
        * gcc.dg/fixed-point/modes.c, gcc.dg/fixed-point/typespec.c: New tests.

Attachment: gcc.diff
Description: gcc.diff

Attachment: cast-bad.c
Description: cast-bad.c

Attachment: composite-type.c
Description: composite-type.c

Attachment: constants-pedantic.c
Description: constants-pedantic.c

Attachment: keywords-c89.c
Description: keywords-c89.c

Attachment: keywords-c99.c
Description: keywords-c99.c

Attachment: keywords-ignored-c99.c
Description: keywords-ignored-c99.c

Attachment: keywords-pedantic.c
Description: keywords-pedantic.c

Attachment: keywords-reserved.c
Description: keywords-reserved.c

Attachment: modes.c
Description: modes.c

Attachment: typespec.c
Description: typespec.c


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