Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--time-report crashes llvm-gcc #5320

Closed
llvmbot opened this issue Sep 11, 2009 · 2 comments
Closed

--time-report crashes llvm-gcc #5320

llvmbot opened this issue Sep 11, 2009 · 2 comments
Labels
bugzilla Issues migrated from bugzilla

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Sep 11, 2009

Bugzilla Link 4948
Resolution FIXED
Resolved on Sep 11, 2009 12:25
Version unspecified
OS Linux
Reporter LLVM Bugzilla Contributor

Extended Description

Compiling any file with --time-report and checks enabled:

$ llvm-gcc --time-report -c empty.c

Execution times (seconds)
llvm backend per file : 0.01 (100%) usr 0.00 ( 0%) sys 0.00 ( 0%) wall 0 kB ( 0%) ggc
TOTAL : 0.01 0.00 0.01 989 kB
Extra diagnostic checks enabled; compiler may run slowly.
Configure with --disable-checking to disable checks.
cc1: llvm/include/llvm/Support/Timer.h:177: llvm::TimerGroup::~TimerGroup(): Assertion `NumTimers == 0 && "TimerGroup destroyed before all contained timers!"' failed.

@llvmbot
Copy link
Collaborator Author

llvmbot commented Sep 11, 2009

It a first glance, it looks like this is because

DwarfException::~DwarfException() {
delete ExceptionTimer;
}

is never being called (lib/CodeGen/AsmPrinter/DwarfException.cpp).

@llvmbot
Copy link
Collaborator Author

llvmbot commented Sep 11, 2009

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
Michael137 pushed a commit to Michael137/llvm-project that referenced this issue Sep 19, 2022
…llvm#5320)

Enable -Wsizeof-array-div and -Wsizeof-pointer-divcompiler.

Also, replace -Wmemset-transposed-args with -Wsuspicious-memaccess. The
latter automatically enables the former and a few other warnings.

Differential Revision: https://reviews.llvm.org/D133783

(cherry picked from commit 157f6fc)
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla
Projects
None yet
Development

No branches or pull requests

1 participant