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/24101] [3.4/4.0/4.1 Regression] Segfault with preprocessed source



------- Comment #12 from uros at gcc dot gnu dot org  2005-11-09 07:51 -------
Subject: Bug 24101

Author: uros
Date: Wed Nov  9 07:51:51 2005
New Revision: 106679

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106679
Log:
gcc/

        PR c/24101
        * toplev.c (process_options): Initialize debug_hooks early
        in case lang_hooks.post_options ends up calling a debug_hook.
        * cppinit.c (read_original_filename): Temporarily set
        state.in_directive before calling _cpp_lex_direct for
        CPP_HASH tokens.

gcc/testsuite/

        PR c/24101
        * gcc.dg/pr24101-1.i, gcc.dg/pr24101-2.i: New tests.
        * gcc.dg/dg.exp: Run main loop also for *.i files.


Added:
    branches/gcc-3_4-branch/gcc/testsuite/gcc.dg/pr24101-1.i
      - copied unchanged from r106677, trunk/gcc/testsuite/gcc.dg/pr24101-1.i
    branches/gcc-3_4-branch/gcc/testsuite/gcc.dg/pr24101-2.i
      - copied unchanged from r106677, trunk/gcc/testsuite/gcc.dg/pr24101-2.i
Modified:
    branches/gcc-3_4-branch/gcc/ChangeLog
    branches/gcc-3_4-branch/gcc/cppinit.c
    branches/gcc-3_4-branch/gcc/testsuite/ChangeLog
    branches/gcc-3_4-branch/gcc/testsuite/gcc.dg/dg.exp
    branches/gcc-3_4-branch/gcc/toplev.c


-- 


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


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