Commit bb1f73c2 by Andrew Pinski Committed by Andrew Pinski

re PR pch/35027 ("too short to be a PCH file" warning should be conditional on -Winvalid-PCH)

2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR pch/35027
        * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
        file" warning condtional on -Winvalid-PCH.

From-SVN: r132574
parent 8ddcfde1
2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR pch/35027
* c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
file" warning condtional on -Winvalid-PCH.
2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
* expmed.c (extract_bit_field): Always use adjust_address for MEM.
......
......@@ -243,8 +243,9 @@ c_common_valid_pch (cpp_reader *pfile, const char *name, int fd)
fatal_error ("can%'t read %s: %m", name);
else if (sizeread != IDENT_LENGTH + 16)
{
cpp_error (pfile, CPP_DL_WARNING, "%s: too short to be a PCH file",
name);
if (cpp_get_options (pfile)->warn_invalid_pch)
cpp_error (pfile, CPP_DL_WARNING, "%s: too short to be a PCH file",
name);
return 2;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment