Bug 67855 - -g doesn't with x86 interrupt handler
Summary: -g doesn't with x86 interrupt handler
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: debug (show other bugs)
Version: 5.3.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks: 67552
  Show dependency treegraph
 
Reported: 2015-10-05 17:15 UTC by H.J. Lu
Modified: 2015-10-05 17:30 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2015-10-05 17:15:12 UTC
[hjl@gnu-6 interrupt-1]$ cat i-2.i
__attribute__((interrupt))
void
fn (void *frame)
{
}
[hjl@gnu-6 interrupt-1]$ make i-2.s
/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc -B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -O2 -Wall -Wunused-parameter -mno-push-args -m32 -g -S -o i-2.s i-2.i
i-2.i: In function ‘fn’:
i-2.i:5:1: internal compiler error: in vt_add_function_parameter, at var-tracking.c:9736
 }
 ^
0x10c1da1 vt_add_function_parameter
	/export/gnu/import/git/sources/gcc/gcc/var-tracking.c:9736
0x10c2364 vt_add_function_parameters
	/export/gnu/import/git/sources/gcc/gcc/var-tracking.c:9795
0x10c2bc8 vt_initialize
	/export/gnu/import/git/sources/gcc/gcc/var-tracking.c:10012
0x10c36d7 variable_tracking_main_1
	/export/gnu/import/git/sources/gcc/gcc/var-tracking.c:10272
0x10c3801 variable_tracking_main()
	/export/gnu/import/git/sources/gcc/gcc/var-tracking.c:10325
0x10c388e execute
	/export/gnu/import/git/sources/gcc/gcc/var-tracking.c:10362
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
Makefile:33: recipe for target 'i-2.s' failed
make: *** [i-2.s] Error 1
[hjl@gnu-6 interrupt-1]$ 

The parameter in interrupt handler is special and they don't
follow the normal psABI.
Comment 1 H.J. Lu 2015-10-05 17:30:06 UTC
Never mind.  It was caused by my change:

commit fbcc8f30b6311123218e43d301e257e3ae05b622
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Oct 5 06:45:57 2015 -0700

    Force interrupt parameter into register