Bug 235467 - cpp crash with -Wmissing-include-dirs
cpp crash with -Wmissing-include-dirs
Status: CLOSED WORKSFORME
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
6
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-04-05 18:31 EDT by Behdad Esfahbod
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-04-14 13:53:58 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Behdad Esfahbod 2007-04-05 18:31:15 EDT
Description of problem:

I use a lot of warning flags and I've been seeing gcc crash building firefox and
freetype (but not many other projects I build).  Anyway, I have tracked it down
to -Wmissing-include-dirs and a minimal test case.  Should be something very silly.


Version-Release number of selected component (if applicable):

cpp-4.1.1-51.fc6


Steps to Reproduce:
1. Create a file named x.c containing one line:

        #include "x.h"

2. Run:

        cpp -Wmissing-include-dirs -Ixx x.c
  
Actual results:

cc1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.


Expected results:

# 1 "x.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "x.c"
x.c:1:22: error: x.h: No such file or directory
Comment 1 Jakub Jelinek 2007-04-06 04:16:41 EDT
Sorry, can't reproduce this, with either cpp-4.1.1-51.fc6 on ppc32
or cpp-4.1.1-52.el5.1 on x86_64.
All I get is:
cpp -Wmissing-include-dirs -Ixx x.c
cc1: warning: xx: No such file or directory
# 1 "x.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "x.c"
x.c:1:15: error: x.h: No such file or directory

Note You need to log in before you can comment on or make changes to this bug.