This is the mail archive of the gcc-bugs@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]

[Bug c/69911] [6 Regression] Massive test failures on ia32


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69911

--- Comment #3 from Mark Wielaard <mark at gcc dot gnu.org> ---
Author: mark
Date: Tue Feb 23 11:47:19 2016
New Revision: 233627

URL: https://gcc.gnu.org/viewcvs?rev=233627&root=gcc&view=rev
Log:
PR c/69911 Check main_input_filename and DECL_SOURCE_FILE are not NULL.

DECL_SOURCE_FILE can be NULL (for example when DECL_ARTIFICIAL).
So make sure to check before comparing against main_input_filename.

gcc/ChangeLog

        PR c/69911
        * cgraphunit.c (check_global_declaration): Check main_input_filename
        and DECL_SOURCE_FILE are not NULL.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cgraphunit.c

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