[Bug c/45286] kact.sa_restorer = restore_rt; in sigaction.c glibc get miss compile with -fPIE on x86_64

2015-07-04 Thread zorry at gentoo dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45286

--- Comment #21 from Magnus Granberg zorry at gentoo dot org ---
Do this happen on gcc 6.0 with --enable-default-pie and trunk glibc?


[Bug plugins/56754] some missing plugin headers during installation in gcc 4.8

2013-03-31 Thread zorry at gentoo dot org


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



--- Comment #4 from Magnus Granberg zorry at gentoo dot org 2013-03-31 
21:33:45 UTC ---

Created attachment 29761

  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=29761

This patch readd TARGET_H to PLUGIN_HEADERS



This patch is posted on gcc-patch ml and on

https://bugs.gentoo.org/show_bug.cgi?id=463564


[Bug plugins/56754] some missing plugin headers during installation in gcc 4.8

2013-03-27 Thread zorry at gentoo dot org


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



--- Comment #1 from Magnus Granberg zorry at gentoo dot org 2013-03-28 
03:22:04 UTC ---

Revision 188166 remove TARGET_H from GIMPLE_H.

when TARGET_H did get remove from GIMPLE_H it don't get

pass to IPA_PROP_H, so it can't get pass to PLUGIN_HEADERS.


[Bug pch/52194] New: FAIL: gcc.dg/pch/common-1.c -O0 -g -I. (internal compiler error) on PaX enable kernels (RANDMMAP)

2012-02-09 Thread zorry at gentoo dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52194

 Bug #: 52194
   Summary: FAIL: gcc.dg/pch/common-1.c  -O0 -g -I. (internal
compiler error) on PaX enable kernels (RANDMMAP)
Classification: Unclassified
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: pch
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: zo...@gentoo.org


Running
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/gcc/testsuite/gcc.dg/pch/pch.exp
...
FAIL: gcc.dg/pch/common-1.c  -O0 -g -I. (internal compiler error)
FAIL: gcc.dg/pch/common-1.c  -O0 -g -I. (test for excess errors)
FAIL: gcc.dg/pch/common-1.c  -O0 -g assembly comparison
FAIL: gcc.dg/pch/common-1.c   -O0  -I. (internal compiler error)
FAIL: gcc.dg/pch/common-1.c   -O0  -I. (test for excess errors)
FAIL: gcc.dg/pch/common-1.c   -O0  assembly comparison
FAIL: gcc.dg/pch/common-1.c   -O1  -I. (internal compiler error)
FAIL: gcc.dg/pch/common-1.c   -O1  -I. (test for excess errors)
FAIL: gcc.dg/pch/common-1.c   -O1  assembly comparison
FAIL: gcc.dg/pch/common-1.c   -O2  -I. (internal compiler error)
FAIL: gcc.dg/pch/common-1.c   -O2  -I. (test for excess errors)
FAIL: gcc.dg/pch/common-1.c   -O2  assembly comparison
FAIL: gcc.dg/pch/common-1.c   -O3 -fomit-frame-pointer  -I. (internal compiler
error)
FAIL: gcc.dg/pch/common-1.c   -O3 -fomit-frame-pointer  -I. (test for excess
errors)
FAIL: gcc.dg/pch/common-1.c   -O3 -fomit-frame-pointer  assembly comparison
FAIL: gcc.dg/pch/common-1.c   -O3 -g  -I. (internal compiler error)
FAIL: gcc.dg/pch/common-1.c   -O3 -g  -I. (test for excess errors)
FAIL: gcc.dg/pch/common-1.c   -O3 -g  assembly comparison
FAIL: gcc.dg/pch/common-1.c   -Os  -I. (internal compiler error)
FAIL: gcc.dg/pch/common-1.c   -Os  -I. (test for excess errors)
FAIL: gcc.dg/pch/common-1.c   -Os  assembly comparison

=== gcc Summary ===

# of expected passes14
# of unexpected failures21

Most pch test fails on PaX enable kernel with

CONFIG_PAX_ASLR=y
CONFIG_PAX_RANDUSTACK=y
CONFIG_PAX_RANDMMAP=y

Program received signal SIGSEGV, Segmentation fault.
linemap_location_from_macro_expansion_p (set=set@entry=0x2e0c3124000,
location=location@entry=22)
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/libcpp/line-map.c:775
775   linemap_assert (location = MAX_SOURCE_LOCATION


[Bug pch/52194] FAIL: gcc.dg/pch/common-1.c -O0 -g -I. (internal compiler error) on PaX enable kernels (RANDMMAP)

2012-02-09 Thread zorry at gentoo dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52194

--- Comment #1 from Magnus Granberg zorry at gentoo dot org 2012-02-09 
21:54:41 UTC ---
Fail on older gcc versions to (4.6 4.5 4.4 4.3)
With a simpel pch test code i got this bt

Program received signal SIGSEGV, Segmentation fault.
linemap_location_from_macro_expansion_p (set=set@entry=0x2e0c3124000,
location=location@entry=22)
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/libcpp/line-map.c:775
775   linemap_assert (location = MAX_SOURCE_LOCATION
(gdb) bt
#0  linemap_location_from_macro_expansion_p (set=set@entry=0x2e0c3124000,
location=location@entry=22)
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/libcpp/line-map.c:775
#1  0x00c98340 in linemap_lookup (set=set@entry=0x2e0c3124000,
line=line@entry=22)
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/libcpp/line-map.c:513
#2  0x00c98681 in linemap_macro_loc_to_def_point
(original_map=0x3a3fb46ba70, location=22, set=0x2e0c3124000)
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/libcpp/line-map.c:953
#3  linemap_resolve_location (set=0x2e0c3124000, loc=optimized out,
lrk=optimized out, map=0x3a3fb46ba70)
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/libcpp/line-map.c:1072
#4  0x00c7e6be in diagnostic_report_current_module (context=0x139cc80,
where=optimized out)
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/gcc/diagnostic.c:273
#5  0x008167c1 in diagnostic_report_current_function
(context=context@entry=0x139cc80, 
diagnostic=diagnostic@entry=0x3a3fb46bb80)
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/gcc/tree-diagnostic.c:39
#6  0x00816839 in default_tree_diagnostic_starter (context=0x139cc80,
diagnostic=0x3a3fb46bb80)
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/gcc/tree-diagnostic.c:47
#7  0x00c7f014 in diagnostic_report_diagnostic (context=0x139cc80,
diagnostic=diagnostic@entry=0x3a3fb46bb80)
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/gcc/diagnostic.c:548
#8  0x00c7ff7c in fatal_error (gmsgid=optimized out)
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/gcc/diagnostic.c:827
#9  0x006968d4 in gt_pch_restore (f=0x145d770)
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/gcc/ggc-common.c:649
#10 0x00548b12 in c_common_read_pch (pfile=0x13d4d00, name=0x13b8030
doit.h.gch, fd=optimized out, 
orig_name=optimized out)
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/gcc/c-family/c-pch.c:435
#11 0x00c90ee0 in should_stack_file (import=optimized out,
file=0x13b7f00, pfile=optimized out)
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/libcpp/files.c:716
#12 _cpp_stack_file (pfile=0x13d4d00, file=0x13b7f00, import=false)
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/libcpp/files.c:801
#13 0x00c87b29 in do_include_common (pfile=0x13d4d00, type=IT_INCLUDE)
---Type return to continue, or q return to quit---
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/libcpp/directives.c:792
#14 0x00c88b95 in _cpp_handle_directive (pfile=0x13d4d00,
indented=optimized out)
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/libcpp/directives.c:491
#15 0x00c9710d in _cpp_lex_token (pfile=0x13d4d00)
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/libcpp/lex.c:1889
#16 0x00c9c240 in cpp_get_token_1 (pfile=0x13d4d00,
location=0x3a3fb46c064)
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/libcpp/macro.c:2245
#17 0x00543916 in c_lex_with_flags (value=0x3a3fb46c068,
loc=0x3a3fb46c064, cpp_flags=0x0, lex_flags=0)
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/gcc/c-family/c-lex.c:302
#18 0x004fe565 in c_lex_one_token (parser=0x3a3fb46c060,
token=0x3a3fb46c060)
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/gcc/c-parser.c:221
#19 0x00510bc8 in c_parser_peek_token (parser=0x3a3fb46c060)
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/gcc/c-parser.c:401
#20 c_parse_file () at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/gcc/c-parser.c:10815
#21 0x00547fd5 in c_common_parse_file ()
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/gcc/c-family/c-opts.c:1117
#22 0x007f5b08 in compile_file ()
at
/var/tmp/portage/sys-devel/gcc-4.7.0_alpha20120204/work/gcc-4.7-20120204/gcc/toplev.c:557
#23 do_compile () at
/var/tmp/portage/sys-devel/gcc

[Bug driver/48524] spec language does not cover switches with separated form

2011-12-18 Thread zorry at gentoo dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48524

Magnus Granberg zorry at gentoo dot org changed:

   What|Removed |Added

  Attachment #26124|0   |1
is obsolete||

--- Comment #7 from Magnus Granberg zorry at gentoo dot org 2011-12-18 
20:11:32 UTC ---
Created attachment 26128
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26128
switches with separated form -D and -U

Same patch but with a testcase.
Tested on Gentoo with snapshot 4.7-20111217


[Bug driver/48524] spec language does not cover switches with separated form

2011-12-17 Thread zorry at gentoo dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48524

--- Comment #5 from Magnus Granberg zorry at gentoo dot org 2011-12-17 
20:30:17 UTC ---
Created attachment 26122
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26122
switches with separated form -D and -U

This patch make the -D and -U switches with separated form work in the spec
language. Tested on Gentoo with the spec as in comment 2.


[Bug driver/48524] spec language does not cover switches with separated form

2011-12-17 Thread zorry at gentoo dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48524

Magnus Granberg zorry at gentoo dot org changed:

   What|Removed |Added

  Attachment #26122|0   |1
is obsolete||

--- Comment #6 from Magnus Granberg zorry at gentoo dot org 2011-12-17 
21:13:58 UTC ---
Created attachment 26124
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26124
switches with separated form -D and -U

fix typos in the last patch


[Bug c/46315] New: gcc-4.5.1 -O2 -fno-strict-overflow causes bad code generation

2010-11-05 Thread zorry at gentoo dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46315

   Summary: gcc-4.5.1 -O2 -fno-strict-overflow causes bad code
generation
   Product: gcc
   Version: 4.5.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: zo...@gentoo.org


Created attachment 22294
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=22294
testcase

If we disable -fstrict-overflow in the -O2 optimization the testcase segfault
but works fine with -O1 or -fstrict-overflow on in the -O2 optimization.
fl...@yamato mytmpfs % gcc -O2 -fno-strict-overflow testcase.c -o testcase
fl...@yamato mytmpfs % ./testcase
0x400770
0x2
zsh: segmentation fault (core dumped)  ./testcase