Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8199338

Use -g0 on solstudio also for compiling C programs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 11
    • 11
    • infrastructure
    • None
    • b04

      On solstudio, we have used -g for generating debug information when compiling C files, but -g0 when compiling C++ programs.

      This is due to the fact that -g, when compiling C++ programs, will prohibit inlining. We do not want that, since we build with debug symbols even in release builds, to get a proper debuginfo file per library. So, we must use -g0. And thus we must have different flags for generating debug symbols for C and C++...

      ... except that the C compiler also accepts -g0, which is an alias for -g. So we can use -g0 everywhere, and have things working like right now, but get the benefit of not having to separate C and C++ flags.

            ihse Magnus Ihse Bursie
            ihse Magnus Ihse Bursie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: