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 preprocessor/59935] [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59935

--- Comment #9 from Dodji Seketeli <dodji at gcc dot gnu.org> ---
Author: dodji
Date: Tue Jan 28 15:03:19 2014
New Revision: 207195

URL: http://gcc.gnu.org/viewcvs?rev=207195&root=gcc&view=rev
Log:
PR preprocessor/59935 - caret diagnostics crashes on non-file locations

gcc/ChangeLog

    * input.c (location_get_source_line): Bail out on when line number
    is zero, and test the return value of
    lookup_or_add_file_to_cache_tab.

gcc/testsuite/ChangeLog

    * c-c++-common/cpp/warning-zero-location.c: New test.
    * c-c++-common/cpp/warning-zero-location-2.c: Likewise.

Signed-off-by: Dodji Seketeli <dodji@seketeli.org>

Added:
    trunk/gcc/testsuite/c-c++-common/cpp/warning-zero-location-2.c
    trunk/gcc/testsuite/c-c++-common/cpp/warning-zero-location.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/input.c
    trunk/gcc/testsuite/ChangeLog


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