public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Patches to enable -ftrack-macro-expansion by default
@ 2012-04-10 14:53 Dodji Seketeli
  2012-04-10 14:55 ` [PATCH 01/11] Fix cpp_sys_macro_p with -ftrack-macro-expansion Dodji Seketeli
                   ` (13 more replies)
  0 siblings, 14 replies; 68+ messages in thread
From: Dodji Seketeli @ 2012-04-10 14:53 UTC (permalink / raw)
  To: GCC Patches; +Cc: Tom Tromey, Jason Merrill, Gabriel Dos Reis

Hello,

I am proposing a series of patches which is supposed to address the
remaining issues (I am aware of) preventing us from enabling the
-ftrack-macro-expansion by default.

The idea is to address each issue I notice in the course of trying to
bootstrap the compiler and running the tests with
-ftrack-macro-expansion enabled.

Beside the fixes, I ended up disabling the -ftrack-macro-expansion for
many test cases (sometimes globally in the dg-*.exp files, or on a
case by case basis), because that option changes the compiler output
and so requires that I either adapt the test case or disable the
option.  For other tests, I chose to adapt the test case.

You will find the patch series as a follow-up of this message.

-- 
		Dodji

^ permalink raw reply	[flat|nested] 68+ messages in thread
* Re: Patches to enable -ftrack-macro-expansion by default
@ 2012-05-01  6:35 Uros Bizjak
  2012-05-01  9:36 ` Dodji Seketeli
  0 siblings, 1 reply; 68+ messages in thread
From: Uros Bizjak @ 2012-05-01  6:35 UTC (permalink / raw)
  To: gcc-patches; +Cc: Dodji Seketeli

Hello!

> > I am proposing a series of patches which is supposed to address the
> > remaining issues (I am aware of) preventing us from enabling the
> > -ftrack-macro-expansion by default.
> >
> > The idea is to address each issue I notice in the course of trying to
> > bootstrap the compiler and running the tests with
> > -ftrack-macro-expansion enabled.
> >
> > Beside the fixes, I ended up disabling the -ftrack-macro-expansion for
> > many test cases (sometimes globally in the dg-*.exp files, or on a
> > case by case basis), because that option changes the compiler output
> > and so requires that I either adapt the test case or disable the
> > option.  For other tests, I chose to adapt the test case.
>
> I have finally applied this series of 14 patches to the mainline today.
> The SVN revisions are from r186965 to r186978.

Your patch introduced:

FAIL: gcc.dg/gomp/macro-4.c (internal compiler error)
FAIL: gcc.dg/gomp/macro-4.c (test for excess errors)

on alphaev68-pc-linux-gnu. The failure is silent on
x86_64-pc-linux-gnu, but can be uncovered by valgrind:

$ valgrind ~/gcc-build/gcc/cc1 -fopenmp -Wunknown-pragmas macro-4.c

==2461== Conditional jump or move depends on uninitialised value(s)
==2461==    at 0xE2B9D2: _cpp_pop_context (macro.c:2143)
==2461==    by 0xE1B1EF: skip_rest_of_line(cpp_reader*) (directives.c:207)
==2461==    by 0xE1BBFE: end_directive(cpp_reader*, int) (directives.c:298)
==2461==    by 0xE1E2B0:
_ZL19destringize_and_runP10cpp_readerPK10cpp_string.isra.6
(directives.c:1762)
==2461==    by 0xE1E473: _cpp_do__Pragma (directives.c:1833)
==2461==    by 0xE2B924: builtin_macro(cpp_reader*, cpp_hashnode*) (macro.c:409)
==2461==    by 0xE2BFC7: enter_macro_context(cpp_reader*,
cpp_hashnode*, cpp_token const*, unsigned int) (macro.c:1156)
==2461==    by 0xE2D66D: cpp_get_token_1(cpp_reader*, unsigned int*)
(macro.c:2391)
==2461==    by 0x584EB2: c_lex_with_flags(tree_node**, unsigned int*,
unsigned char*, int) (c-lex.c:302)
==2461==    by 0x532684: c_lex_one_token(c_parser*, c_token*) (c-parser.c:221)
==2461==    by 0x538F0D:
c_parser_compound_statement_nostart(c_parser*) (c-parser.c:401)
==2461==    by 0x54627B: c_parser_compound_statement(c_parser*)
(c-parser.c:4071)
==2461==

Uros.

^ permalink raw reply	[flat|nested] 68+ messages in thread

end of thread, other threads:[~2012-08-26 20:14 UTC | newest]

Thread overview: 68+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-10 14:53 Patches to enable -ftrack-macro-expansion by default Dodji Seketeli
2012-04-10 14:55 ` [PATCH 01/11] Fix cpp_sys_macro_p with -ftrack-macro-expansion Dodji Seketeli
2012-04-11 13:40   ` Jason Merrill
2012-04-14 18:05     ` Dodji Seketeli
2012-04-15  3:52       ` Jason Merrill
2012-04-10 14:57 ` [PATCH 02/11] Fix token pasting " Dodji Seketeli
2012-04-11 13:41   ` Jason Merrill
2012-04-14 18:07     ` Dodji Seketeli
2012-04-10 15:08 ` [PATCH 03/11] Fix PCH crash on GTYed pointer-to-scalar field of a Dodji Seketeli
2012-04-11  3:15   ` Laurynas Biveinis
2012-04-10 19:43 ` [PATCH 04/11] Fix expansion point loc for macro-like tokens Dodji Seketeli
2012-04-11 13:46   ` Jason Merrill
2012-04-25  9:07     ` Dodji Seketeli
2012-04-29  4:08       ` Jason Merrill
2012-04-29 16:55         ` Dodji Seketeli
2012-04-30  3:20           ` Jason Merrill
2012-04-10 19:50 ` [PATCH 05/11] Make expand_location resolve to locus in main source file Dodji Seketeli
2012-04-11 13:49   ` Jason Merrill
2012-04-25  9:50     ` Dodji Seketeli
2012-04-25 15:31       ` Dodji Seketeli
2012-04-29  4:11         ` Jason Merrill
2012-04-29 16:57           ` Dodji Seketeli
2012-04-10 19:56 ` [PATCH 06/11] Strip "<built-in>" loc from displayed expansion context Dodji Seketeli
2012-04-11 13:50   ` Jason Merrill
2012-04-10 20:31 ` [PATCH 07/11] Fix -Wuninitialized for -ftrack-macro-expansion Dodji Seketeli
2012-04-11 13:52   ` Jason Merrill
2012-04-11  9:00 ` [PATCH 09/11] Fix va_arg type location Dodji Seketeli
2012-04-11 13:36   ` Gabriel Dos Reis
2012-04-11  9:26 ` [PATCH 08/11] Make conversion warnings work on NULL with -ftrack-macro-expansion Dodji Seketeli
2012-04-11 13:33   ` Gabriel Dos Reis
2012-04-25 13:42     ` Dodji Seketeli
2012-04-25 14:07       ` Gabriel Dos Reis
2012-04-25 14:50         ` Dodji Seketeli
2012-04-25 15:22           ` Gabriel Dos Reis
2012-04-25 13:55 ` [PATCH 10/13] Fix location for static class members Dodji Seketeli
2012-04-25 14:13   ` Gabriel Dos Reis
2012-04-25 14:04 ` [PATCH 11/13] Fix va_start related location Dodji Seketeli
2012-04-25 14:11   ` Gabriel Dos Reis
2012-04-25 15:20     ` Dodji Seketeli
2012-04-25 15:23       ` Gabriel Dos Reis
2012-04-27 15:06         ` Dodji Seketeli
2012-04-27 21:46           ` Dodji Seketeli
2012-04-28 23:30             ` Gabriel Dos Reis
2012-04-25 14:17 ` [PATCH 12/13] Adjust relevant test cases wrt -ftrack-macro-expansion=[0|2] Dodji Seketeli
2012-04-25 15:25   ` Gabriel Dos Reis
2012-04-29 17:38     ` Dodji Seketeli
2012-04-30  6:23       ` Dodji Seketeli
2012-04-30  7:34         ` Gabriel Dos Reis
2012-04-30 16:09       ` Mike Stump
2012-05-02 17:22         ` Greta Yorsh
2012-04-25 23:23   ` Benjamin Kosnik
2012-04-25 14:33 ` [PATCH 13/13] Switch -ftrack-macro-expansion=2 on by default Dodji Seketeli
2012-04-25 15:27   ` Gabriel Dos Reis
2012-04-25 17:50     ` Tom Tromey
2012-04-30 11:47 ` Patches to enable -ftrack-macro-expansion " Dodji Seketeli
2012-05-08 10:31   ` Andreas Krebbel
2012-08-26  0:28   ` Gerald Pfeifer
2012-08-26  0:41     ` Gabriel Dos Reis
2012-08-26  8:32       ` Dodji Seketeli
2012-08-26 20:01         ` Gerald Pfeifer
2012-08-26 20:14           ` Gabriel Dos Reis
2012-05-01  6:35 Uros Bizjak
2012-05-01  9:36 ` Dodji Seketeli
2012-05-01 10:45   ` Dodji Seketeli
2012-05-01 12:52   ` Jason Merrill
2012-05-01 16:05     ` Dodji Seketeli
2012-05-02 16:43       ` Uros Bizjak
2012-05-02 16:56         ` Dodji Seketeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).